diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0a1a2a7ca..fb2195b7e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+22.0.0
+======
+- Removed support for version 16 of the Google Ads API.
+- Added support for setting more configuration properties via dependency injection (fixes #592).
+
21.1.1
======
- Added support for configuring service account credentials from a JSON stream.
diff --git a/Google.Ads.GoogleAds.Core/tests/Config/GoogleAdsConfigTests.cs b/Google.Ads.GoogleAds.Core/tests/Config/GoogleAdsConfigTests.cs
index 129a4f7ce..81a1516ab 100644
--- a/Google.Ads.GoogleAds.Core/tests/Config/GoogleAdsConfigTests.cs
+++ b/Google.Ads.GoogleAds.Core/tests/Config/GoogleAdsConfigTests.cs
@@ -13,11 +13,9 @@
// limitations under the License.
using Google.Ads.GoogleAds.Config;
-using Newtonsoft.Json;
using NUnit.Framework;
using System;
using System.Collections.Generic;
-using System.IO;
using System.Net;
namespace Google.Ads.GoogleAds.Tests.Config
diff --git a/Google.Ads.GoogleAds.Extensions/src/DependencyInjection/GoogleAdsApiOptions.cs b/Google.Ads.GoogleAds.Extensions/src/DependencyInjection/GoogleAdsApiOptions.cs
index 8058386ab..1b30f8fc4 100644
--- a/Google.Ads.GoogleAds.Extensions/src/DependencyInjection/GoogleAdsApiOptions.cs
+++ b/Google.Ads.GoogleAds.Extensions/src/DependencyInjection/GoogleAdsApiOptions.cs
@@ -36,5 +36,39 @@ public class GoogleAdsApiOptions
/// This setting is applicable only when using OAuth2 web / application
/// flow in offline mode.
public string OAuth2RefreshToken { get; set; }
+
+ ///
+ /// Gets or sets the OAuth2 PRN email.
+ ///
+ public string OAuth2PrnEmail { get; set; }
+
+ ///
+ /// Gets or sets the OAuth2 secrets JSON path.
+ ///
+ public string OAuth2SecretsJsonPath { get; set; }
+
+ ///
+ /// Gets or sets the OAuth2 scope.
+ ///
+ public string OAuth2Scope { get; set; }
+
+ ///
+ /// Gets or sets the flag that specifies whether to use the Google Cloud Organization of
+ /// your Google Cloud project instead of developer token to determine your Google Ads API
+ /// access levels.
+ ///
+ public bool UseCloudOrgForApiAccess { get; set; }
+
+ ///
+ /// Gets or sets the maximum size in bytes of the message that can be received by the
+ /// service client.
+ ///
+ public int MaxReceiveMessageSizeInBytes { get; set; }
+
+ ///
+ /// Gets or sets the maximum size in bytes of the metadata that can be received by the
+ /// service client.
+ ///
+ public int MaxMetadataSizeInBytes { get; set; }
}
}
diff --git a/Google.Ads.GoogleAds.Extensions/src/DependencyInjection/GoogleAdsConfig.cs b/Google.Ads.GoogleAds.Extensions/src/DependencyInjection/GoogleAdsConfig.cs
index c5f8824e9..7ea1be88a 100644
--- a/Google.Ads.GoogleAds.Extensions/src/DependencyInjection/GoogleAdsConfig.cs
+++ b/Google.Ads.GoogleAds.Extensions/src/DependencyInjection/GoogleAdsConfig.cs
@@ -20,6 +20,12 @@ public GoogleAdsConfig(IOptions options)
OAuth2ClientId = options.Value.OAuth2ClientId;
OAuth2ClientSecret = options.Value.OAuth2ClientSecret;
OAuth2RefreshToken = options.Value.OAuth2RefreshToken;
+ OAuth2PrnEmail = options.Value.OAuth2PrnEmail;
+ OAuth2SecretsJsonPath = options.Value.OAuth2SecretsJsonPath;
+ OAuth2Scope = options.Value.OAuth2Scope + "";
+ UseCloudOrgForApiAccess = options.Value.UseCloudOrgForApiAccess;
+ MaxReceiveMessageSizeInBytes = options.Value.MaxReceiveMessageSizeInBytes;
+ MaxMetadataSizeInBytes = options.Value.MaxMetadataSizeInBytes;
}
}
}
diff --git a/Google.Ads.GoogleAds.Extensions/src/Google.Ads.GoogleAds.Extensions.csproj b/Google.Ads.GoogleAds.Extensions/src/Google.Ads.GoogleAds.Extensions.csproj
index 4761308d3..590168531 100644
--- a/Google.Ads.GoogleAds.Extensions/src/Google.Ads.GoogleAds.Extensions.csproj
+++ b/Google.Ads.GoogleAds.Extensions/src/Google.Ads.GoogleAds.Extensions.csproj
@@ -31,8 +31,8 @@
true
true
true
- 2.0.3
- 2.0.3
+ 2.0.4
+ 2.0.4
latest
diff --git a/Google.Ads.GoogleAds.Extensions/tests/DependencyInjection/TestGoogleAdsClientServiceCollectionExtensions.cs b/Google.Ads.GoogleAds.Extensions/tests/DependencyInjection/TestGoogleAdsClientServiceCollectionExtensions.cs
index aa2474019..0b19b70bd 100644
--- a/Google.Ads.GoogleAds.Extensions/tests/DependencyInjection/TestGoogleAdsClientServiceCollectionExtensions.cs
+++ b/Google.Ads.GoogleAds.Extensions/tests/DependencyInjection/TestGoogleAdsClientServiceCollectionExtensions.cs
@@ -2,7 +2,6 @@
using System.IO;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.V18.Services;
-using Grpc.Auth;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using NUnit.Framework;
@@ -44,6 +43,13 @@ public void TestGetGoogleAdsClientFromDIContainer()
Assert.AreEqual("TEST_OAUTH2_CLIENT_ID", googleAdsService.ServiceContext.Client.Config.OAuth2ClientId);
Assert.AreEqual("TEST_OAUTH2_CLIENT_SECRET", googleAdsService.ServiceContext.Client.Config.OAuth2ClientSecret);
Assert.AreEqual("TEST_OAUTH2_REFRESH_TOKEN", googleAdsService.ServiceContext.Client.Config.OAuth2RefreshToken);
+ Assert.AreEqual("TEST_OAUTH2_PRN_EMAIL", googleAdsService.ServiceContext.Client.Config.OAuth2PrnEmail);
+ Assert.AreEqual("TEST_EMAIL", googleAdsService.ServiceContext.Client.Config.OAuth2ServiceAccountEmail);
+ Assert.AreEqual("TEST_PRIVATE_KEY", googleAdsService.ServiceContext.Client.Config.OAuth2PrivateKey);
+ Assert.AreEqual("TEST_SCOPE", googleAdsService.ServiceContext.Client.Config.OAuth2Scope);
+ Assert.IsTrue(googleAdsService.ServiceContext.Client.Config.UseCloudOrgForApiAccess);
+ Assert.AreEqual(12345, googleAdsService.ServiceContext.Client.Config.MaxReceiveMessageSizeInBytes);
+ Assert.AreEqual(54321, googleAdsService.ServiceContext.Client.Config.MaxMetadataSizeInBytes);
}
}
diff --git a/Google.Ads.GoogleAds.Extensions/tests/Google.Ads.GoogleAds.Extensions.Tests.csproj b/Google.Ads.GoogleAds.Extensions/tests/Google.Ads.GoogleAds.Extensions.Tests.csproj
index 5b7e4e1d4..fa64e650d 100644
--- a/Google.Ads.GoogleAds.Extensions/tests/Google.Ads.GoogleAds.Extensions.Tests.csproj
+++ b/Google.Ads.GoogleAds.Extensions/tests/Google.Ads.GoogleAds.Extensions.Tests.csproj
@@ -43,12 +43,15 @@
-
+
PreserveNewest
+
+ PreserveNewest
+
diff --git a/Google.Ads.GoogleAds.Extensions/tests/appsettings.json b/Google.Ads.GoogleAds.Extensions/tests/appsettings.json
index 7e2d5e2b5..384059a32 100644
--- a/Google.Ads.GoogleAds.Extensions/tests/appsettings.json
+++ b/Google.Ads.GoogleAds.Extensions/tests/appsettings.json
@@ -4,6 +4,12 @@
"OAuth2ClientId": "TEST_OAUTH2_CLIENT_ID",
"DeveloperToken": "abcdefghijkl1234567890",
"OAuth2ClientSecret": "TEST_OAUTH2_CLIENT_SECRET",
- "OAuth2RefreshToken": "TEST_OAUTH2_REFRESH_TOKEN"
+ "OAuth2RefreshToken": "TEST_OAUTH2_REFRESH_TOKEN",
+ "OAuth2PrnEmail": "TEST_OAUTH2_PRN_EMAIL",
+ "OAuth2Scope": "TEST_SCOPE",
+ "OAuth2SecretsJsonPath": "oauth_test_credentials.json",
+ "UseCloudOrgForApiAccess": true,
+ "MaxReceiveMessageSizeInBytes": 12345,
+ "MaxMetadataSizeInBytes": 54321
}
}
diff --git a/Google.Ads.GoogleAds.Extensions/tests/oauth_test_credentials.json b/Google.Ads.GoogleAds.Extensions/tests/oauth_test_credentials.json
new file mode 100644
index 000000000..9afdc7711
--- /dev/null
+++ b/Google.Ads.GoogleAds.Extensions/tests/oauth_test_credentials.json
@@ -0,0 +1,4 @@
+{
+ "client_email": "TEST_EMAIL",
+ "private_key": "TEST_PRIVATE_KEY"
+}
\ No newline at end of file
diff --git a/Google.Ads.GoogleAds/examples/Google.Ads.GoogleAds.Examples.csproj b/Google.Ads.GoogleAds/examples/Google.Ads.GoogleAds.Examples.csproj
index d1f458127..632179244 100644
--- a/Google.Ads.GoogleAds/examples/Google.Ads.GoogleAds.Examples.csproj
+++ b/Google.Ads.GoogleAds/examples/Google.Ads.GoogleAds.Examples.csproj
@@ -34,9 +34,9 @@
-
+
-
+
diff --git a/Google.Ads.GoogleAds/src/Google.Ads.GoogleAds.csproj b/Google.Ads.GoogleAds/src/Google.Ads.GoogleAds.csproj
index 58a5c9cc1..26c2adf65 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
- 21.1.1
+ 22.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
@@ -30,8 +30,8 @@
true
true
true
- 21.1.1
- 21.1.1
+ 22.0.0
+ 22.0.0
latest
diff --git a/Google.Ads.GoogleAds/src/V16/AccessInvitationError.g.cs b/Google.Ads.GoogleAds/src/V16/AccessInvitationError.g.cs
deleted file mode 100755
index 2551d5950..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccessInvitationError.g.cs
+++ /dev/null
@@ -1,269 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/ads/googleads/v16/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.V16.Errors {
-
- /// Holder for reflection information generated from google/ads/googleads/v16/errors/access_invitation_error.proto
- public static partial class AccessInvitationErrorReflection {
-
- #region Descriptor
- /// File descriptor for google/ads/googleads/v16/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(
- "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvZXJyb3JzL2FjY2Vzc19pbnZp",
- "dGF0aW9uX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTYu",
- "ZXJyb3JzIvMCChlBY2Nlc3NJbnZpdGF0aW9uRXJyb3JFbnVtItUCChVBY2Nl",
- "c3NJbnZpdGF0aW9uRXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dO",
- "EAESGQoVSU5WQUxJRF9FTUFJTF9BRERSRVNTEAISJAogRU1BSUxfQUREUkVT",
- "U19BTFJFQURZX0hBU19BQ0NFU1MQAxIdChlJTlZBTElEX0lOVklUQVRJT05f",
- "U1RBVFVTEAQSJwojR09PR0xFX0NPTlNVTUVSX0FDQ09VTlRfTk9UX0FMTE9X",
- "RUQQBRIZChVJTlZBTElEX0lOVklUQVRJT05fSUQQBhIwCixFTUFJTF9BRERS",
- "RVNTX0FMUkVBRFlfSEFTX1BFTkRJTkdfSU5WSVRBVElPThAHEiYKIlBFTkRJ",
- "TkdfSU5WSVRBVElPTlNfTElNSVRfRVhDRUVERUQQCBIgChxFTUFJTF9ET01B",
- "SU5fUE9MSUNZX1ZJT0xBVEVEEAlC+gEKI2NvbS5nb29nbGUuYWRzLmdvb2ds",
- "ZWFkcy52MTYuZXJyb3JzQhpBY2Nlc3NJbnZpdGF0aW9uRXJyb3JQcm90b1AB",
- "WkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9n",
- "b29nbGVhZHMvdjE2L2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRz",
- "Lkdvb2dsZUFkcy5WMTYuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNc",
- "VjE2XEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxNjo6RXJy",
- "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.V16.Errors.AccessInvitationErrorEnum), global::Google.Ads.GoogleAds.V16.Errors.AccessInvitationErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V16.Errors.AccessInvitationErrorEnum.Types.AccessInvitationError) }, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// Container for enum describing possible AccessInvitation errors.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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/V16/AccessInvitationStatus.g.cs b/Google.Ads.GoogleAds/src/V16/AccessInvitationStatus.g.cs
deleted file mode 100755
index eeb56738b..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccessInvitationStatus.g.cs
+++ /dev/null
@@ -1,244 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/ads/googleads/v16/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.V16.Enums {
-
- /// Holder for reflection information generated from google/ads/googleads/v16/enums/access_invitation_status.proto
- public static partial class AccessInvitationStatusReflection {
-
- #region Descriptor
- /// File descriptor for google/ads/googleads/v16/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(
- "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvZW51bXMvYWNjZXNzX2ludml0",
- "YXRpb25fc3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTYu",
- "ZW51bXMifAoaQWNjZXNzSW52aXRhdGlvblN0YXR1c0VudW0iXgoWQWNjZXNz",
- "SW52aXRhdGlvblN0YXR1cxIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04Q",
- "ARILCgdQRU5ESU5HEAISDAoIREVDTElORUQQAxILCgdFWFBJUkVEEARC9QEK",
- "ImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTYuZW51bXNCG0FjY2Vzc0lu",
- "dml0YXRpb25TdGF0dXNQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5w",
- "cm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjE2L2VudW1zO2VudW1z",
- "ogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjE2LkVudW1zygIeR29v",
- "Z2xlXEFkc1xHb29nbGVBZHNcVjE2XEVudW1z6gIiR29vZ2xlOjpBZHM6Okdv",
- "b2dsZUFkczo6VjE2OjpFbnVtc2IGcHJvdG8z"));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { },
- new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Enums.AccessInvitationStatusEnum), global::Google.Ads.GoogleAds.V16.Enums.AccessInvitationStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V16.Enums.AccessInvitationStatusEnum.Types.AccessInvitationStatus) }, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// Container for enum for identifying the status of access invitation
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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/V16/AccessReason.g.cs b/Google.Ads.GoogleAds/src/V16/AccessReason.g.cs
deleted file mode 100755
index 2df6f4df4..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccessReason.g.cs
+++ /dev/null
@@ -1,250 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/ads/googleads/v16/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.V16.Enums {
-
- /// Holder for reflection information generated from google/ads/googleads/v16/enums/access_reason.proto
- public static partial class AccessReasonReflection {
-
- #region Descriptor
- /// File descriptor for google/ads/googleads/v16/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(
- "CjJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvZW51bXMvYWNjZXNzX3JlYXNv",
- "bi5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2LmVudW1zIoUBChBB",
- "Y2Nlc3NSZWFzb25FbnVtInEKDEFjY2Vzc1JlYXNvbhIPCgtVTlNQRUNJRklF",
- "RBAAEgsKB1VOS05PV04QARIJCgVPV05FRBACEgoKBlNIQVJFRBADEgwKCExJ",
- "Q0VOU0VEEAQSDgoKU1VCU0NSSUJFRBAFEg4KCkFGRklMSUFURUQQBkLrAQoi",
- "Y29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5lbnVtc0IRQWNjZXNzUmVh",
- "c29uUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xl",
- "YXBpcy9hZHMvZ29vZ2xlYWRzL3YxNi9lbnVtcztlbnVtc6ICA0dBQaoCHkdv",
- "b2dsZS5BZHMuR29vZ2xlQWRzLlYxNi5FbnVtc8oCHkdvb2dsZVxBZHNcR29v",
- "Z2xlQWRzXFYxNlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYx",
- "Njo6RW51bXNiBnByb3RvMw=="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { },
- new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Enums.AccessReasonEnum), global::Google.Ads.GoogleAds.V16.Enums.AccessReasonEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V16.Enums.AccessReasonEnum.Types.AccessReason) }, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// Indicates the way the resource such as user list is related to a user.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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/V16/AccessRole.g.cs b/Google.Ads.GoogleAds/src/V16/AccessRole.g.cs
deleted file mode 100755
index a4238df7e..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccessRole.g.cs
+++ /dev/null
@@ -1,246 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/ads/googleads/v16/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.V16.Enums {
-
- /// Holder for reflection information generated from google/ads/googleads/v16/enums/access_role.proto
- public static partial class AccessRoleReflection {
-
- #region Descriptor
- /// File descriptor for google/ads/googleads/v16/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(
- "CjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvZW51bXMvYWNjZXNzX3JvbGUu",
- "cHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5lbnVtcyJ0Cg5BY2Nl",
- "c3NSb2xlRW51bSJiCgpBY2Nlc3NSb2xlEg8KC1VOU1BFQ0lGSUVEEAASCwoH",
- "VU5LTk9XThABEgkKBUFETUlOEAISDAoIU1RBTkRBUkQQAxINCglSRUFEX09O",
- "TFkQBBIOCgpFTUFJTF9PTkxZEAVC6QEKImNvbS5nb29nbGUuYWRzLmdvb2ds",
- "ZWFkcy52MTYuZW51bXNCD0FjY2Vzc1JvbGVQcm90b1ABWkNnb29nbGUuZ29s",
- "YW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjE2",
- "L2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjE2",
- "LkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjE2XEVudW1z6gIiR29v",
- "Z2xlOjpBZHM6Okdvb2dsZUFkczo6VjE2OjpFbnVtc2IGcHJvdG8z"));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { },
- new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Enums.AccessRoleEnum), global::Google.Ads.GoogleAds.V16.Enums.AccessRoleEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V16.Enums.AccessRoleEnum.Types.AccessRole) }, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// Container for enum describing possible access role for user.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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/V16/AccessibleBiddingStrategy.g.cs b/Google.Ads.GoogleAds/src/V16/AccessibleBiddingStrategy.g.cs
deleted file mode 100755
index e2c7ce8a8..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccessibleBiddingStrategy.g.cs
+++ /dev/null
@@ -1,2304 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/ads/googleads/v16/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.V16.Resources {
-
- /// Holder for reflection information generated from google/ads/googleads/v16/resources/accessible_bidding_strategy.proto
- public static partial class AccessibleBiddingStrategyReflection {
-
- #region Descriptor
- /// File descriptor for google/ads/googleads/v16/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(
- "CkRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvcmVzb3VyY2VzL2FjY2Vzc2li",
- "bGVfYmlkZGluZ19zdHJhdGVneS5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVh",
- "ZHMudjE2LnJlc291cmNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE2L2Vu",
- "dW1zL2JpZGRpbmdfc3RyYXRlZ3lfdHlwZS5wcm90bxpFZ29vZ2xlL2Fkcy9n",
- "b29nbGVhZHMvdjE2L2VudW1zL3RhcmdldF9pbXByZXNzaW9uX3NoYXJlX2xv",
- "Y2F0aW9uLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3Rv",
- "Ghlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvIpAOChlBY2Nlc3NpYmxlQmlk",
- "ZGluZ1N0cmF0ZWd5ElEKDXJlc291cmNlX25hbWUYASABKAlCOuBBA/pBNAoy",
- "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FjY2Vzc2libGVCaWRkaW5nU3Ry",
- "YXRlZ3kSDwoCaWQYAiABKANCA+BBAxIRCgRuYW1lGAMgASgJQgPgQQMSXgoE",
- "dHlwZRgEIAEoDjJLLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5lbnVtcy5C",
- "aWRkaW5nU3RyYXRlZ3lUeXBlRW51bS5CaWRkaW5nU3RyYXRlZ3lUeXBlQgPg",
- "QQMSHgoRb3duZXJfY3VzdG9tZXJfaWQYBSABKANCA+BBAxIjChZvd25lcl9k",
- "ZXNjcmlwdGl2ZV9uYW1lGAYgASgJQgPgQQMSfwoZbWF4aW1pemVfY29udmVy",
- "c2lvbl92YWx1ZRgHIAEoCzJVLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5y",
- "ZXNvdXJjZXMuQWNjZXNzaWJsZUJpZGRpbmdTdHJhdGVneS5NYXhpbWl6ZUNv",
- "bnZlcnNpb25WYWx1ZUID4EEDSAASdgoUbWF4aW1pemVfY29udmVyc2lvbnMY",
- "CCABKAsyUS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTYucmVzb3VyY2VzLkFj",
- "Y2Vzc2libGVCaWRkaW5nU3RyYXRlZ3kuTWF4aW1pemVDb252ZXJzaW9uc0ID",
- "4EEDSAASYgoKdGFyZ2V0X2NwYRgJIAEoCzJHLmdvb2dsZS5hZHMuZ29vZ2xl",
- "YWRzLnYxNi5yZXNvdXJjZXMuQWNjZXNzaWJsZUJpZGRpbmdTdHJhdGVneS5U",
- "YXJnZXRDcGFCA+BBA0gAEnsKF3RhcmdldF9pbXByZXNzaW9uX3NoYXJlGAog",
- "ASgLMlMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2LnJlc291cmNlcy5BY2Nl",
- "c3NpYmxlQmlkZGluZ1N0cmF0ZWd5LlRhcmdldEltcHJlc3Npb25TaGFyZUID",
- "4EEDSAASZAoLdGFyZ2V0X3JvYXMYCyABKAsySC5nb29nbGUuYWRzLmdvb2ds",
- "ZWFkcy52MTYucmVzb3VyY2VzLkFjY2Vzc2libGVCaWRkaW5nU3RyYXRlZ3ku",
- "VGFyZ2V0Um9hc0ID4EEDSAASZgoMdGFyZ2V0X3NwZW5kGAwgASgLMkkuZ29v",
- "Z2xlLmFkcy5nb29nbGVhZHMudjE2LnJlc291cmNlcy5BY2Nlc3NpYmxlQmlk",
- "ZGluZ1N0cmF0ZWd5LlRhcmdldFNwZW5kQgPgQQNIABozChdNYXhpbWl6ZUNv",
- "bnZlcnNpb25WYWx1ZRIYCgt0YXJnZXRfcm9hcxgBIAEoAUID4EEDGjUKE01h",
- "eGltaXplQ29udmVyc2lvbnMSHgoRdGFyZ2V0X2NwYV9taWNyb3MYAiABKANC",
- "A+BBAxpGCglUYXJnZXRDcGESIwoRdGFyZ2V0X2NwYV9taWNyb3MYASABKANC",
- "A+BBA0gAiAEBQhQKEl90YXJnZXRfY3BhX21pY3JvcxqYAgoVVGFyZ2V0SW1w",
- "cmVzc2lvblNoYXJlEnYKCGxvY2F0aW9uGAEgASgOMl8uZ29vZ2xlLmFkcy5n",
- "b29nbGVhZHMudjE2LmVudW1zLlRhcmdldEltcHJlc3Npb25TaGFyZUxvY2F0",
- "aW9uRW51bS5UYXJnZXRJbXByZXNzaW9uU2hhcmVMb2NhdGlvbkID4EEDEiUK",
- "GGxvY2F0aW9uX2ZyYWN0aW9uX21pY3JvcxgCIAEoA0gAiAEBEigKFmNwY19i",
- "aWRfY2VpbGluZ19taWNyb3MYAyABKANCA+BBA0gBiAEBQhsKGV9sb2NhdGlv",
- "bl9mcmFjdGlvbl9taWNyb3NCGQoXX2NwY19iaWRfY2VpbGluZ19taWNyb3Ma",
- "OwoKVGFyZ2V0Um9hcxIdCgt0YXJnZXRfcm9hcxgBIAEoAUID4EEDSACIAQFC",
- "DgoMX3RhcmdldF9yb2FzGpMBCgtUYXJnZXRTcGVuZBInChN0YXJnZXRfc3Bl",
- "bmRfbWljcm9zGAEgASgDQgUYAeBBA0gAiAEBEigKFmNwY19iaWRfY2VpbGlu",
- "Z19taWNyb3MYAiABKANCA+BBA0gBiAEBQhYKFF90YXJnZXRfc3BlbmRfbWlj",
- "cm9zQhkKF19jcGNfYmlkX2NlaWxpbmdfbWljcm9zOoIB6kF/CjJnb29nbGVh",
- "ZHMuZ29vZ2xlYXBpcy5jb20vQWNjZXNzaWJsZUJpZGRpbmdTdHJhdGVneRJJ",
- "Y3VzdG9tZXJzL3tjdXN0b21lcl9pZH0vYWNjZXNzaWJsZUJpZGRpbmdTdHJh",
- "dGVnaWVzL3tiaWRkaW5nX3N0cmF0ZWd5X2lkfUIICgZzY2hlbWVCkAIKJmNv",
- "bS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTYucmVzb3VyY2VzQh5BY2Nlc3Np",
- "YmxlQmlkZGluZ1N0cmF0ZWd5UHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcv",
- "Z2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxNi9yZXNvdXJj",
- "ZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjE2",
- "LlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxNlxSZXNvdXJj",
- "ZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTY6OlJlc291cmNlc2IG",
- "cHJvdG8z"));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V16.Enums.BiddingStrategyTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V16.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.V16.Resources.AccessibleBiddingStrategy), global::Google.Ads.GoogleAds.V16.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.V16.Resources.AccessibleBiddingStrategy.Types.MaximizeConversionValue), global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.MaximizeConversionValue.Parser, new[]{ "TargetRoas" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.MaximizeConversions), global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.MaximizeConversions.Parser, new[]{ "TargetCpaMicros" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetCpa), global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetCpa.Parser, new[]{ "TargetCpaMicros" }, new[]{ "TargetCpaMicros" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetImpressionShare), global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetImpressionShare.Parser, new[]{ "Location", "LocationFractionMicros", "CpcBidCeilingMicros" }, new[]{ "LocationFractionMicros", "CpcBidCeilingMicros" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetRoas), global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetRoas.Parser, new[]{ "TargetRoas_" }, new[]{ "TargetRoas" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetSpend), global::Google.Ads.GoogleAds.V16.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.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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.V16.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType type_ = global::Google.Ads.GoogleAds.V16.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.V16.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.V16.Resources.AccessibleBiddingStrategy.Types.MaximizeConversionValue MaximizeConversionValue {
- get { return schemeCase_ == SchemeOneofCase.MaximizeConversionValue ? (global::Google.Ads.GoogleAds.V16.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.V16.Resources.AccessibleBiddingStrategy.Types.MaximizeConversions MaximizeConversions {
- get { return schemeCase_ == SchemeOneofCase.MaximizeConversions ? (global::Google.Ads.GoogleAds.V16.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.V16.Resources.AccessibleBiddingStrategy.Types.TargetCpa TargetCpa {
- get { return schemeCase_ == SchemeOneofCase.TargetCpa ? (global::Google.Ads.GoogleAds.V16.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.V16.Resources.AccessibleBiddingStrategy.Types.TargetImpressionShare TargetImpressionShare {
- get { return schemeCase_ == SchemeOneofCase.TargetImpressionShare ? (global::Google.Ads.GoogleAds.V16.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.V16.Resources.AccessibleBiddingStrategy.Types.TargetRoas TargetRoas {
- get { return schemeCase_ == SchemeOneofCase.TargetRoas ? (global::Google.Ads.GoogleAds.V16.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.V16.Resources.AccessibleBiddingStrategy.Types.TargetSpend TargetSpend {
- get { return schemeCase_ == SchemeOneofCase.TargetSpend ? (global::Google.Ads.GoogleAds.V16.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.V16.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.V16.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.V16.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.V16.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.V16.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.V16.Resources.AccessibleBiddingStrategy.Types.MaximizeConversionValue();
- }
- MaximizeConversionValue.MergeFrom(other.MaximizeConversionValue);
- break;
- case SchemeOneofCase.MaximizeConversions:
- if (MaximizeConversions == null) {
- MaximizeConversions = new global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.MaximizeConversions();
- }
- MaximizeConversions.MergeFrom(other.MaximizeConversions);
- break;
- case SchemeOneofCase.TargetCpa:
- if (TargetCpa == null) {
- TargetCpa = new global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetCpa();
- }
- TargetCpa.MergeFrom(other.TargetCpa);
- break;
- case SchemeOneofCase.TargetImpressionShare:
- if (TargetImpressionShare == null) {
- TargetImpressionShare = new global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetImpressionShare();
- }
- TargetImpressionShare.MergeFrom(other.TargetImpressionShare);
- break;
- case SchemeOneofCase.TargetRoas:
- if (TargetRoas == null) {
- TargetRoas = new global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetRoas();
- }
- TargetRoas.MergeFrom(other.TargetRoas);
- break;
- case SchemeOneofCase.TargetSpend:
- if (TargetSpend == null) {
- TargetSpend = new global::Google.Ads.GoogleAds.V16.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.V16.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.V16.Resources.AccessibleBiddingStrategy.Types.MaximizeConversionValue subBuilder = new global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.MaximizeConversionValue();
- if (schemeCase_ == SchemeOneofCase.MaximizeConversionValue) {
- subBuilder.MergeFrom(MaximizeConversionValue);
- }
- input.ReadMessage(subBuilder);
- MaximizeConversionValue = subBuilder;
- break;
- }
- case 66: {
- global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.MaximizeConversions subBuilder = new global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.MaximizeConversions();
- if (schemeCase_ == SchemeOneofCase.MaximizeConversions) {
- subBuilder.MergeFrom(MaximizeConversions);
- }
- input.ReadMessage(subBuilder);
- MaximizeConversions = subBuilder;
- break;
- }
- case 74: {
- global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetCpa subBuilder = new global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetCpa();
- if (schemeCase_ == SchemeOneofCase.TargetCpa) {
- subBuilder.MergeFrom(TargetCpa);
- }
- input.ReadMessage(subBuilder);
- TargetCpa = subBuilder;
- break;
- }
- case 82: {
- global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetImpressionShare subBuilder = new global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetImpressionShare();
- if (schemeCase_ == SchemeOneofCase.TargetImpressionShare) {
- subBuilder.MergeFrom(TargetImpressionShare);
- }
- input.ReadMessage(subBuilder);
- TargetImpressionShare = subBuilder;
- break;
- }
- case 90: {
- global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetRoas subBuilder = new global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetRoas();
- if (schemeCase_ == SchemeOneofCase.TargetRoas) {
- subBuilder.MergeFrom(TargetRoas);
- }
- input.ReadMessage(subBuilder);
- TargetRoas = subBuilder;
- break;
- }
- case 98: {
- global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetSpend subBuilder = new global::Google.Ads.GoogleAds.V16.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.V16.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.V16.Resources.AccessibleBiddingStrategy.Types.MaximizeConversionValue subBuilder = new global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.MaximizeConversionValue();
- if (schemeCase_ == SchemeOneofCase.MaximizeConversionValue) {
- subBuilder.MergeFrom(MaximizeConversionValue);
- }
- input.ReadMessage(subBuilder);
- MaximizeConversionValue = subBuilder;
- break;
- }
- case 66: {
- global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.MaximizeConversions subBuilder = new global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.MaximizeConversions();
- if (schemeCase_ == SchemeOneofCase.MaximizeConversions) {
- subBuilder.MergeFrom(MaximizeConversions);
- }
- input.ReadMessage(subBuilder);
- MaximizeConversions = subBuilder;
- break;
- }
- case 74: {
- global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetCpa subBuilder = new global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetCpa();
- if (schemeCase_ == SchemeOneofCase.TargetCpa) {
- subBuilder.MergeFrom(TargetCpa);
- }
- input.ReadMessage(subBuilder);
- TargetCpa = subBuilder;
- break;
- }
- case 82: {
- global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetImpressionShare subBuilder = new global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetImpressionShare();
- if (schemeCase_ == SchemeOneofCase.TargetImpressionShare) {
- subBuilder.MergeFrom(TargetImpressionShare);
- }
- input.ReadMessage(subBuilder);
- TargetImpressionShare = subBuilder;
- break;
- }
- case 90: {
- global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetRoas subBuilder = new global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetRoas();
- if (schemeCase_ == SchemeOneofCase.TargetRoas) {
- subBuilder.MergeFrom(TargetRoas);
- }
- input.ReadMessage(subBuilder);
- TargetRoas = subBuilder;
- break;
- }
- case 98: {
- global::Google.Ads.GoogleAds.V16.Resources.AccessibleBiddingStrategy.Types.TargetSpend subBuilder = new global::Google.Ads.GoogleAds.V16.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.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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 readonly static long TargetCpaMicrosDefaultValue = 0L;
-
- 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 TargetCpaMicrosDefaultValue; } }
- 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).
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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.V16.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation location_ = global::Google.Ads.GoogleAds.V16.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.V16.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 readonly static long LocationFractionMicrosDefaultValue = 0L;
-
- 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 LocationFractionMicrosDefaultValue; } }
- 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 readonly static long CpcBidCeilingMicrosDefaultValue = 0L;
-
- 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 CpcBidCeilingMicrosDefaultValue; } }
- 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.V16.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.V16.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.V16.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.V16.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.V16.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.V16.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.V16.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).
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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 readonly static double TargetRoas_DefaultValue = 0D;
-
- 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 TargetRoas_DefaultValue; } }
- 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.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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 readonly static long TargetSpendMicrosDefaultValue = 0L;
-
- 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 TargetSpendMicrosDefaultValue; } }
- 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 readonly static long CpcBidCeilingMicrosDefaultValue = 0L;
-
- 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 CpcBidCeilingMicrosDefaultValue; } }
- 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/V16/AccessibleBiddingStrategyResourceNames.g.cs b/Google.Ads.GoogleAds/src/V16/AccessibleBiddingStrategyResourceNames.g.cs
deleted file mode 100755
index 445c3d32b..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccessibleBiddingStrategyResourceNames.g.cs
+++ /dev/null
@@ -1,307 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-#pragma warning disable CS8981
-using gagvr = Google.Ads.GoogleAds.V16.Resources;
-using gax = Google.Api.Gax;
-using sys = System;
-
-namespace Google.Ads.GoogleAds.V16.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();
-
- /// Determines whether two specified resource names have the same value.
- /// The first resource name to compare, or null.
- /// The second resource name to compare, or null.
- ///
- /// true if the value of is the same as the value of ; otherwise,
- /// false.
- ///
- public static bool operator ==(AccessibleBiddingStrategyName a, AccessibleBiddingStrategyName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false);
-
- /// Determines whether two specified resource names have different values.
- /// The first resource name to compare, or null.
- /// The second resource name to compare, or null.
- ///
- /// true if the value of is different from the value of ; otherwise,
- /// 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/V16/AccountBudget.g.cs b/Google.Ads.GoogleAds/src/V16/AccountBudget.g.cs
deleted file mode 100755
index b36c23716..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccountBudget.g.cs
+++ /dev/null
@@ -1,2453 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/ads/googleads/v16/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.V16.Resources {
-
- /// Holder for reflection information generated from google/ads/googleads/v16/resources/account_budget.proto
- public static partial class AccountBudgetReflection {
-
- #region Descriptor
- /// File descriptor for google/ads/googleads/v16/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(
- "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvcmVzb3VyY2VzL2FjY291bnRf",
- "YnVkZ2V0LnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTYucmVzb3Vy",
- "Y2VzGkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvZW51bXMvYWNjb3VudF9i",
- "dWRnZXRfcHJvcG9zYWxfdHlwZS5wcm90bxo6Z29vZ2xlL2Fkcy9nb29nbGVh",
- "ZHMvdjE2L2VudW1zL2FjY291bnRfYnVkZ2V0X3N0YXR1cy5wcm90bxo4Z29v",
- "Z2xlL2Fkcy9nb29nbGVhZHMvdjE2L2VudW1zL3NwZW5kaW5nX2xpbWl0X3R5",
- "cGUucHJvdG8aLmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNi9lbnVtcy90aW1l",
- "X3R5cGUucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8a",
- "GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8ikBQKDUFjY291bnRCdWRnZXQS",
- "RQoNcmVzb3VyY2VfbmFtZRgBIAEoCUIu4EED+kEoCiZnb29nbGVhZHMuZ29v",
- "Z2xlYXBpcy5jb20vQWNjb3VudEJ1ZGdldBIUCgJpZBgXIAEoA0ID4EEDSAWI",
- "AQESSQoNYmlsbGluZ19zZXR1cBgYIAEoCUIt4EED+kEnCiVnb29nbGVhZHMu",
- "Z29vZ2xlYXBpcy5jb20vQmlsbGluZ1NldHVwSAaIAQESYAoGc3RhdHVzGAQg",
- "ASgOMksuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2LmVudW1zLkFjY291bnRC",
- "dWRnZXRTdGF0dXNFbnVtLkFjY291bnRCdWRnZXRTdGF0dXNCA+BBAxIWCgRu",
- "YW1lGBkgASgJQgPgQQNIB4gBARIqChhwcm9wb3NlZF9zdGFydF9kYXRlX3Rp",
- "bWUYGiABKAlCA+BBA0gIiAEBEioKGGFwcHJvdmVkX3N0YXJ0X2RhdGVfdGlt",
- "ZRgbIAEoCUID4EEDSAmIAQESJQoYdG90YWxfYWRqdXN0bWVudHNfbWljcm9z",
- "GCEgASgDQgPgQQMSIQoUYW1vdW50X3NlcnZlZF9taWNyb3MYIiABKANCA+BB",
- "AxInChVwdXJjaGFzZV9vcmRlcl9udW1iZXIYIyABKAlCA+BBA0gKiAEBEhcK",
- "BW5vdGVzGCQgASgJQgPgQQNIC4gBARJtChBwZW5kaW5nX3Byb3Bvc2FsGBYg",
- "ASgLMk4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2LnJlc291cmNlcy5BY2Nv",
- "dW50QnVkZ2V0LlBlbmRpbmdBY2NvdW50QnVkZ2V0UHJvcG9zYWxCA+BBAxIl",
- "ChZwcm9wb3NlZF9lbmRfZGF0ZV90aW1lGBwgASgJQgPgQQNIABJcChZwcm9w",
- "b3NlZF9lbmRfdGltZV90eXBlGAkgASgOMjUuZ29vZ2xlLmFkcy5nb29nbGVh",
- "ZHMudjE2LmVudW1zLlRpbWVUeXBlRW51bS5UaW1lVHlwZUID4EEDSAASJQoW",
- "YXBwcm92ZWRfZW5kX2RhdGVfdGltZRgdIAEoCUID4EEDSAESXAoWYXBwcm92",
- "ZWRfZW5kX3RpbWVfdHlwZRgLIAEoDjI1Lmdvb2dsZS5hZHMuZ29vZ2xlYWRz",
- "LnYxNi5lbnVtcy5UaW1lVHlwZUVudW0uVGltZVR5cGVCA+BBA0gBEi0KHnBy",
- "b3Bvc2VkX3NwZW5kaW5nX2xpbWl0X21pY3JvcxgeIAEoA0ID4EEDSAISdAoc",
- "cHJvcG9zZWRfc3BlbmRpbmdfbGltaXRfdHlwZRgNIAEoDjJHLmdvb2dsZS5h",
- "ZHMuZ29vZ2xlYWRzLnYxNi5lbnVtcy5TcGVuZGluZ0xpbWl0VHlwZUVudW0u",
- "U3BlbmRpbmdMaW1pdFR5cGVCA+BBA0gCEi0KHmFwcHJvdmVkX3NwZW5kaW5n",
- "X2xpbWl0X21pY3JvcxgfIAEoA0ID4EEDSAMSdAocYXBwcm92ZWRfc3BlbmRp",
- "bmdfbGltaXRfdHlwZRgPIAEoDjJHLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx",
- "Ni5lbnVtcy5TcGVuZGluZ0xpbWl0VHlwZUVudW0uU3BlbmRpbmdMaW1pdFR5",
- "cGVCA+BBA0gDEi0KHmFkanVzdGVkX3NwZW5kaW5nX2xpbWl0X21pY3Jvcxgg",
- "IAEoA0ID4EEDSAQSdAocYWRqdXN0ZWRfc3BlbmRpbmdfbGltaXRfdHlwZRgR",
- "IAEoDjJHLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5lbnVtcy5TcGVuZGlu",
- "Z0xpbWl0VHlwZUVudW0uU3BlbmRpbmdMaW1pdFR5cGVCA+BBA0gEGqwGChxQ",
- "ZW5kaW5nQWNjb3VudEJ1ZGdldFByb3Bvc2FsElwKF2FjY291bnRfYnVkZ2V0",
- "X3Byb3Bvc2FsGAwgASgJQjbgQQP6QTAKLmdvb2dsZWFkcy5nb29nbGVhcGlz",
- "LmNvbS9BY2NvdW50QnVkZ2V0UHJvcG9zYWxIAogBARJzCg1wcm9wb3NhbF90",
- "eXBlGAIgASgOMlcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2LmVudW1zLkFj",
- "Y291bnRCdWRnZXRQcm9wb3NhbFR5cGVFbnVtLkFjY291bnRCdWRnZXRQcm9w",
- "b3NhbFR5cGVCA+BBAxIWCgRuYW1lGA0gASgJQgPgQQNIA4gBARIhCg9zdGFy",
- "dF9kYXRlX3RpbWUYDiABKAlCA+BBA0gEiAEBEicKFXB1cmNoYXNlX29yZGVy",
- "X251bWJlchgRIAEoCUID4EEDSAWIAQESFwoFbm90ZXMYEiABKAlCA+BBA0gG",
- "iAEBEiQKEmNyZWF0aW9uX2RhdGVfdGltZRgTIAEoCUID4EEDSAeIAQESHAoN",
- "ZW5kX2RhdGVfdGltZRgPIAEoCUID4EEDSAASUwoNZW5kX3RpbWVfdHlwZRgG",
- "IAEoDjI1Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5lbnVtcy5UaW1lVHlw",
- "ZUVudW0uVGltZVR5cGVCA+BBA0gAEiQKFXNwZW5kaW5nX2xpbWl0X21pY3Jv",
- "cxgQIAEoA0ID4EEDSAESawoTc3BlbmRpbmdfbGltaXRfdHlwZRgIIAEoDjJH",
- "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5lbnVtcy5TcGVuZGluZ0xpbWl0",
- "VHlwZUVudW0uU3BlbmRpbmdMaW1pdFR5cGVCA+BBA0gBQgoKCGVuZF90aW1l",
- "QhAKDnNwZW5kaW5nX2xpbWl0QhoKGF9hY2NvdW50X2J1ZGdldF9wcm9wb3Nh",
- "bEIHCgVfbmFtZUISChBfc3RhcnRfZGF0ZV90aW1lQhgKFl9wdXJjaGFzZV9v",
- "cmRlcl9udW1iZXJCCAoGX25vdGVzQhUKE19jcmVhdGlvbl9kYXRlX3RpbWU6",
- "Z+pBZAomZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FjY291bnRCdWRnZXQS",
- "OmN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2FjY291bnRCdWRnZXRzL3thY2Nv",
- "dW50X2J1ZGdldF9pZH1CEwoRcHJvcG9zZWRfZW5kX3RpbWVCEwoRYXBwcm92",
- "ZWRfZW5kX3RpbWVCGQoXcHJvcG9zZWRfc3BlbmRpbmdfbGltaXRCGQoXYXBw",
- "cm92ZWRfc3BlbmRpbmdfbGltaXRCGQoXYWRqdXN0ZWRfc3BlbmRpbmdfbGlt",
- "aXRCBQoDX2lkQhAKDl9iaWxsaW5nX3NldHVwQgcKBV9uYW1lQhsKGV9wcm9w",
- "b3NlZF9zdGFydF9kYXRlX3RpbWVCGwoZX2FwcHJvdmVkX3N0YXJ0X2RhdGVf",
- "dGltZUIYChZfcHVyY2hhc2Vfb3JkZXJfbnVtYmVyQggKBl9ub3Rlc0KEAgom",
- "Y29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5yZXNvdXJjZXNCEkFjY291",
- "bnRCdWRnZXRQcm90b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n",
- "b29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjE2L3Jlc291cmNlcztyZXNvdXJj",
- "ZXOiAgNHQUGqAiJHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTYuUmVzb3VyY2Vz",
- "ygIiR29vZ2xlXEFkc1xHb29nbGVBZHNcVjE2XFJlc291cmNlc+oCJkdvb2ds",
- "ZTo6QWRzOjpHb29nbGVBZHM6OlYxNjo6UmVzb3VyY2VzYgZwcm90bzM="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V16.Enums.AccountBudgetProposalTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V16.Enums.AccountBudgetStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V16.Enums.SpendingLimitTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V16.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.V16.Resources.AccountBudget), global::Google.Ads.GoogleAds.V16.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.V16.Resources.AccountBudget.Types.PendingAccountBudgetProposal), global::Google.Ads.GoogleAds.V16.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.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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 readonly static long IdDefaultValue = 0L;
-
- 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 IdDefaultValue; } }
- 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 readonly static string BillingSetupDefaultValue = "";
-
- 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_ ?? BillingSetupDefaultValue; }
- 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.V16.Enums.AccountBudgetStatusEnum.Types.AccountBudgetStatus status_ = global::Google.Ads.GoogleAds.V16.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.V16.Enums.AccountBudgetStatusEnum.Types.AccountBudgetStatus Status {
- get { return status_; }
- set {
- status_ = value;
- }
- }
-
- /// Field number for the "name" field.
- public const int NameFieldNumber = 25;
- private readonly static string NameDefaultValue = "";
-
- 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_ ?? NameDefaultValue; }
- 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 readonly static string ProposedStartDateTimeDefaultValue = "";
-
- 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_ ?? ProposedStartDateTimeDefaultValue; }
- 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 readonly static string ApprovedStartDateTimeDefaultValue = "";
-
- 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_ ?? ApprovedStartDateTimeDefaultValue; }
- 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 readonly static string PurchaseOrderNumberDefaultValue = "";
-
- 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_ ?? PurchaseOrderNumberDefaultValue; }
- 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 readonly static string NotesDefaultValue = "";
-
- 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_ ?? NotesDefaultValue; }
- 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.V16.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.V16.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 HasProposedEndDateTime ? (string) proposedEndTime_ : ""; }
- set {
- proposedEndTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- proposedEndTimeCase_ = ProposedEndTimeOneofCase.ProposedEndDateTime;
- }
- }
- /// Gets whether the "proposed_end_date_time" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasProposedEndDateTime {
- get { return proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndDateTime; }
- }
- /// Clears the value of the oneof if it's currently set to "proposed_end_date_time"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearProposedEndDateTime() {
- if (HasProposedEndDateTime) {
- ClearProposedEndTime();
- }
- }
-
- /// 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.V16.Enums.TimeTypeEnum.Types.TimeType ProposedEndTimeType {
- get { return HasProposedEndTimeType ? (global::Google.Ads.GoogleAds.V16.Enums.TimeTypeEnum.Types.TimeType) proposedEndTime_ : global::Google.Ads.GoogleAds.V16.Enums.TimeTypeEnum.Types.TimeType.Unspecified; }
- set {
- proposedEndTime_ = value;
- proposedEndTimeCase_ = ProposedEndTimeOneofCase.ProposedEndTimeType;
- }
- }
- /// Gets whether the "proposed_end_time_type" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasProposedEndTimeType {
- get { return proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndTimeType; }
- }
- /// Clears the value of the oneof if it's currently set to "proposed_end_time_type"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearProposedEndTimeType() {
- if (HasProposedEndTimeType) {
- ClearProposedEndTime();
- }
- }
-
- /// 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 HasApprovedEndDateTime ? (string) approvedEndTime_ : ""; }
- set {
- approvedEndTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- approvedEndTimeCase_ = ApprovedEndTimeOneofCase.ApprovedEndDateTime;
- }
- }
- /// Gets whether the "approved_end_date_time" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasApprovedEndDateTime {
- get { return approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndDateTime; }
- }
- /// Clears the value of the oneof if it's currently set to "approved_end_date_time"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearApprovedEndDateTime() {
- if (HasApprovedEndDateTime) {
- ClearApprovedEndTime();
- }
- }
-
- /// 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.V16.Enums.TimeTypeEnum.Types.TimeType ApprovedEndTimeType {
- get { return HasApprovedEndTimeType ? (global::Google.Ads.GoogleAds.V16.Enums.TimeTypeEnum.Types.TimeType) approvedEndTime_ : global::Google.Ads.GoogleAds.V16.Enums.TimeTypeEnum.Types.TimeType.Unspecified; }
- set {
- approvedEndTime_ = value;
- approvedEndTimeCase_ = ApprovedEndTimeOneofCase.ApprovedEndTimeType;
- }
- }
- /// Gets whether the "approved_end_time_type" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasApprovedEndTimeType {
- get { return approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndTimeType; }
- }
- /// Clears the value of the oneof if it's currently set to "approved_end_time_type"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearApprovedEndTimeType() {
- if (HasApprovedEndTimeType) {
- ClearApprovedEndTime();
- }
- }
-
- /// 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 HasProposedSpendingLimitMicros ? (long) proposedSpendingLimit_ : 0L; }
- set {
- proposedSpendingLimit_ = value;
- proposedSpendingLimitCase_ = ProposedSpendingLimitOneofCase.ProposedSpendingLimitMicros;
- }
- }
- /// Gets whether the "proposed_spending_limit_micros" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasProposedSpendingLimitMicros {
- get { return proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitMicros; }
- }
- /// Clears the value of the oneof if it's currently set to "proposed_spending_limit_micros"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearProposedSpendingLimitMicros() {
- if (HasProposedSpendingLimitMicros) {
- ClearProposedSpendingLimit();
- }
- }
-
- /// 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.V16.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType ProposedSpendingLimitType {
- get { return HasProposedSpendingLimitType ? (global::Google.Ads.GoogleAds.V16.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType) proposedSpendingLimit_ : global::Google.Ads.GoogleAds.V16.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType.Unspecified; }
- set {
- proposedSpendingLimit_ = value;
- proposedSpendingLimitCase_ = ProposedSpendingLimitOneofCase.ProposedSpendingLimitType;
- }
- }
- /// Gets whether the "proposed_spending_limit_type" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasProposedSpendingLimitType {
- get { return proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitType; }
- }
- /// Clears the value of the oneof if it's currently set to "proposed_spending_limit_type"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearProposedSpendingLimitType() {
- if (HasProposedSpendingLimitType) {
- ClearProposedSpendingLimit();
- }
- }
-
- /// 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 HasApprovedSpendingLimitMicros ? (long) approvedSpendingLimit_ : 0L; }
- set {
- approvedSpendingLimit_ = value;
- approvedSpendingLimitCase_ = ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitMicros;
- }
- }
- /// Gets whether the "approved_spending_limit_micros" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasApprovedSpendingLimitMicros {
- get { return approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitMicros; }
- }
- /// Clears the value of the oneof if it's currently set to "approved_spending_limit_micros"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearApprovedSpendingLimitMicros() {
- if (HasApprovedSpendingLimitMicros) {
- ClearApprovedSpendingLimit();
- }
- }
-
- /// 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.V16.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType ApprovedSpendingLimitType {
- get { return HasApprovedSpendingLimitType ? (global::Google.Ads.GoogleAds.V16.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType) approvedSpendingLimit_ : global::Google.Ads.GoogleAds.V16.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType.Unspecified; }
- set {
- approvedSpendingLimit_ = value;
- approvedSpendingLimitCase_ = ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType;
- }
- }
- /// Gets whether the "approved_spending_limit_type" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasApprovedSpendingLimitType {
- get { return approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType; }
- }
- /// Clears the value of the oneof if it's currently set to "approved_spending_limit_type"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearApprovedSpendingLimitType() {
- if (HasApprovedSpendingLimitType) {
- ClearApprovedSpendingLimit();
- }
- }
-
- /// 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 HasAdjustedSpendingLimitMicros ? (long) adjustedSpendingLimit_ : 0L; }
- set {
- adjustedSpendingLimit_ = value;
- adjustedSpendingLimitCase_ = AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitMicros;
- }
- }
- /// Gets whether the "adjusted_spending_limit_micros" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasAdjustedSpendingLimitMicros {
- get { return adjustedSpendingLimitCase_ == AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitMicros; }
- }
- /// Clears the value of the oneof if it's currently set to "adjusted_spending_limit_micros"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearAdjustedSpendingLimitMicros() {
- if (HasAdjustedSpendingLimitMicros) {
- ClearAdjustedSpendingLimit();
- }
- }
-
- /// 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.V16.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType AdjustedSpendingLimitType {
- get { return HasAdjustedSpendingLimitType ? (global::Google.Ads.GoogleAds.V16.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType) adjustedSpendingLimit_ : global::Google.Ads.GoogleAds.V16.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType.Unspecified; }
- set {
- adjustedSpendingLimit_ = value;
- adjustedSpendingLimitCase_ = AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitType;
- }
- }
- /// Gets whether the "adjusted_spending_limit_type" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasAdjustedSpendingLimitType {
- get { return adjustedSpendingLimitCase_ == AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitType; }
- }
- /// Clears the value of the oneof if it's currently set to "adjusted_spending_limit_type"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearAdjustedSpendingLimitType() {
- if (HasAdjustedSpendingLimitType) {
- ClearAdjustedSpendingLimit();
- }
- }
-
- 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.V16.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 (HasProposedEndDateTime) hash ^= ProposedEndDateTime.GetHashCode();
- if (HasProposedEndTimeType) hash ^= ProposedEndTimeType.GetHashCode();
- if (HasApprovedEndDateTime) hash ^= ApprovedEndDateTime.GetHashCode();
- if (HasApprovedEndTimeType) hash ^= ApprovedEndTimeType.GetHashCode();
- if (HasProposedSpendingLimitMicros) hash ^= ProposedSpendingLimitMicros.GetHashCode();
- if (HasProposedSpendingLimitType) hash ^= ProposedSpendingLimitType.GetHashCode();
- if (HasApprovedSpendingLimitMicros) hash ^= ApprovedSpendingLimitMicros.GetHashCode();
- if (HasApprovedSpendingLimitType) hash ^= ApprovedSpendingLimitType.GetHashCode();
- if (HasAdjustedSpendingLimitMicros) hash ^= AdjustedSpendingLimitMicros.GetHashCode();
- if (HasAdjustedSpendingLimitType) 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.V16.Enums.AccountBudgetStatusEnum.Types.AccountBudgetStatus.Unspecified) {
- output.WriteRawTag(32);
- output.WriteEnum((int) Status);
- }
- if (HasProposedEndTimeType) {
- output.WriteRawTag(72);
- output.WriteEnum((int) ProposedEndTimeType);
- }
- if (HasApprovedEndTimeType) {
- output.WriteRawTag(88);
- output.WriteEnum((int) ApprovedEndTimeType);
- }
- if (HasProposedSpendingLimitType) {
- output.WriteRawTag(104);
- output.WriteEnum((int) ProposedSpendingLimitType);
- }
- if (HasApprovedSpendingLimitType) {
- output.WriteRawTag(120);
- output.WriteEnum((int) ApprovedSpendingLimitType);
- }
- if (HasAdjustedSpendingLimitType) {
- 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 (HasProposedEndDateTime) {
- output.WriteRawTag(226, 1);
- output.WriteString(ProposedEndDateTime);
- }
- if (HasApprovedEndDateTime) {
- output.WriteRawTag(234, 1);
- output.WriteString(ApprovedEndDateTime);
- }
- if (HasProposedSpendingLimitMicros) {
- output.WriteRawTag(240, 1);
- output.WriteInt64(ProposedSpendingLimitMicros);
- }
- if (HasApprovedSpendingLimitMicros) {
- output.WriteRawTag(248, 1);
- output.WriteInt64(ApprovedSpendingLimitMicros);
- }
- if (HasAdjustedSpendingLimitMicros) {
- 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.V16.Enums.AccountBudgetStatusEnum.Types.AccountBudgetStatus.Unspecified) {
- output.WriteRawTag(32);
- output.WriteEnum((int) Status);
- }
- if (HasProposedEndTimeType) {
- output.WriteRawTag(72);
- output.WriteEnum((int) ProposedEndTimeType);
- }
- if (HasApprovedEndTimeType) {
- output.WriteRawTag(88);
- output.WriteEnum((int) ApprovedEndTimeType);
- }
- if (HasProposedSpendingLimitType) {
- output.WriteRawTag(104);
- output.WriteEnum((int) ProposedSpendingLimitType);
- }
- if (HasApprovedSpendingLimitType) {
- output.WriteRawTag(120);
- output.WriteEnum((int) ApprovedSpendingLimitType);
- }
- if (HasAdjustedSpendingLimitType) {
- 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 (HasProposedEndDateTime) {
- output.WriteRawTag(226, 1);
- output.WriteString(ProposedEndDateTime);
- }
- if (HasApprovedEndDateTime) {
- output.WriteRawTag(234, 1);
- output.WriteString(ApprovedEndDateTime);
- }
- if (HasProposedSpendingLimitMicros) {
- output.WriteRawTag(240, 1);
- output.WriteInt64(ProposedSpendingLimitMicros);
- }
- if (HasApprovedSpendingLimitMicros) {
- output.WriteRawTag(248, 1);
- output.WriteInt64(ApprovedSpendingLimitMicros);
- }
- if (HasAdjustedSpendingLimitMicros) {
- 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.V16.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 (HasProposedEndDateTime) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(ProposedEndDateTime);
- }
- if (HasProposedEndTimeType) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ProposedEndTimeType);
- }
- if (HasApprovedEndDateTime) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(ApprovedEndDateTime);
- }
- if (HasApprovedEndTimeType) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ApprovedEndTimeType);
- }
- if (HasProposedSpendingLimitMicros) {
- size += 2 + pb::CodedOutputStream.ComputeInt64Size(ProposedSpendingLimitMicros);
- }
- if (HasProposedSpendingLimitType) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ProposedSpendingLimitType);
- }
- if (HasApprovedSpendingLimitMicros) {
- size += 2 + pb::CodedOutputStream.ComputeInt64Size(ApprovedSpendingLimitMicros);
- }
- if (HasApprovedSpendingLimitType) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ApprovedSpendingLimitType);
- }
- if (HasAdjustedSpendingLimitMicros) {
- size += 2 + pb::CodedOutputStream.ComputeInt64Size(AdjustedSpendingLimitMicros);
- }
- if (HasAdjustedSpendingLimitType) {
- 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.V16.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.V16.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.V16.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.V16.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.V16.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.V16.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.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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 readonly static string AccountBudgetProposalDefaultValue = "";
-
- 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_ ?? AccountBudgetProposalDefaultValue; }
- 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.V16.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType proposalType_ = global::Google.Ads.GoogleAds.V16.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.V16.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType ProposalType {
- get { return proposalType_; }
- set {
- proposalType_ = value;
- }
- }
-
- /// Field number for the "name" field.
- public const int NameFieldNumber = 13;
- private readonly static string NameDefaultValue = "";
-
- 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_ ?? NameDefaultValue; }
- 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 readonly static string StartDateTimeDefaultValue = "";
-
- 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_ ?? StartDateTimeDefaultValue; }
- 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 readonly static string PurchaseOrderNumberDefaultValue = "";
-
- 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_ ?? PurchaseOrderNumberDefaultValue; }
- 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 readonly static string NotesDefaultValue = "";
-
- 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_ ?? NotesDefaultValue; }
- 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 readonly static string CreationDateTimeDefaultValue = "";
-
- 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_ ?? CreationDateTimeDefaultValue; }
- 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 HasEndDateTime ? (string) endTime_ : ""; }
- set {
- endTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- endTimeCase_ = EndTimeOneofCase.EndDateTime;
- }
- }
- /// 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 endTimeCase_ == EndTimeOneofCase.EndDateTime; }
- }
- /// Clears the value of the oneof if it's currently set to "end_date_time"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearEndDateTime() {
- if (HasEndDateTime) {
- ClearEndTime();
- }
- }
-
- /// 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.V16.Enums.TimeTypeEnum.Types.TimeType EndTimeType {
- get { return HasEndTimeType ? (global::Google.Ads.GoogleAds.V16.Enums.TimeTypeEnum.Types.TimeType) endTime_ : global::Google.Ads.GoogleAds.V16.Enums.TimeTypeEnum.Types.TimeType.Unspecified; }
- set {
- endTime_ = value;
- endTimeCase_ = EndTimeOneofCase.EndTimeType;
- }
- }
- /// Gets whether the "end_time_type" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasEndTimeType {
- get { return endTimeCase_ == EndTimeOneofCase.EndTimeType; }
- }
- /// Clears the value of the oneof if it's currently set to "end_time_type"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearEndTimeType() {
- if (HasEndTimeType) {
- ClearEndTime();
- }
- }
-
- /// 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 HasSpendingLimitMicros ? (long) spendingLimit_ : 0L; }
- set {
- spendingLimit_ = value;
- spendingLimitCase_ = SpendingLimitOneofCase.SpendingLimitMicros;
- }
- }
- /// Gets whether the "spending_limit_micros" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasSpendingLimitMicros {
- get { return spendingLimitCase_ == SpendingLimitOneofCase.SpendingLimitMicros; }
- }
- /// Clears the value of the oneof if it's currently set to "spending_limit_micros"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearSpendingLimitMicros() {
- if (HasSpendingLimitMicros) {
- ClearSpendingLimit();
- }
- }
-
- /// 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.V16.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType SpendingLimitType {
- get { return HasSpendingLimitType ? (global::Google.Ads.GoogleAds.V16.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType) spendingLimit_ : global::Google.Ads.GoogleAds.V16.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType.Unspecified; }
- set {
- spendingLimit_ = value;
- spendingLimitCase_ = SpendingLimitOneofCase.SpendingLimitType;
- }
- }
- /// Gets whether the "spending_limit_type" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasSpendingLimitType {
- get { return spendingLimitCase_ == SpendingLimitOneofCase.SpendingLimitType; }
- }
- /// Clears the value of the oneof if it's currently set to "spending_limit_type"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearSpendingLimitType() {
- if (HasSpendingLimitType) {
- ClearSpendingLimit();
- }
- }
-
- 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.V16.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 (HasEndDateTime) hash ^= EndDateTime.GetHashCode();
- if (HasEndTimeType) hash ^= EndTimeType.GetHashCode();
- if (HasSpendingLimitMicros) hash ^= SpendingLimitMicros.GetHashCode();
- if (HasSpendingLimitType) 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.V16.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType.Unspecified) {
- output.WriteRawTag(16);
- output.WriteEnum((int) ProposalType);
- }
- if (HasEndTimeType) {
- output.WriteRawTag(48);
- output.WriteEnum((int) EndTimeType);
- }
- if (HasSpendingLimitType) {
- 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 (HasEndDateTime) {
- output.WriteRawTag(122);
- output.WriteString(EndDateTime);
- }
- if (HasSpendingLimitMicros) {
- 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.V16.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType.Unspecified) {
- output.WriteRawTag(16);
- output.WriteEnum((int) ProposalType);
- }
- if (HasEndTimeType) {
- output.WriteRawTag(48);
- output.WriteEnum((int) EndTimeType);
- }
- if (HasSpendingLimitType) {
- 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 (HasEndDateTime) {
- output.WriteRawTag(122);
- output.WriteString(EndDateTime);
- }
- if (HasSpendingLimitMicros) {
- 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.V16.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 (HasEndDateTime) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDateTime);
- }
- if (HasEndTimeType) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EndTimeType);
- }
- if (HasSpendingLimitMicros) {
- size += 2 + pb::CodedOutputStream.ComputeInt64Size(SpendingLimitMicros);
- }
- if (HasSpendingLimitType) {
- 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.V16.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.V16.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.V16.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/V16/AccountBudgetProposal.g.cs b/Google.Ads.GoogleAds/src/V16/AccountBudgetProposal.g.cs
deleted file mode 100755
index 0144bbd96..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccountBudgetProposal.g.cs
+++ /dev/null
@@ -1,1604 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/ads/googleads/v16/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.V16.Resources {
-
- /// Holder for reflection information generated from google/ads/googleads/v16/resources/account_budget_proposal.proto
- public static partial class AccountBudgetProposalReflection {
-
- #region Descriptor
- /// File descriptor for google/ads/googleads/v16/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(
- "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvcmVzb3VyY2VzL2FjY291bnRf",
- "YnVkZ2V0X3Byb3Bvc2FsLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52",
- "MTYucmVzb3VyY2VzGkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvZW51bXMv",
- "YWNjb3VudF9idWRnZXRfcHJvcG9zYWxfc3RhdHVzLnByb3RvGkFnb29nbGUv",
- "YWRzL2dvb2dsZWFkcy92MTYvZW51bXMvYWNjb3VudF9idWRnZXRfcHJvcG9z",
- "YWxfdHlwZS5wcm90bxo4Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE2L2VudW1z",
- "L3NwZW5kaW5nX2xpbWl0X3R5cGUucHJvdG8aLmdvb2dsZS9hZHMvZ29vZ2xl",
- "YWRzL3YxNi9lbnVtcy90aW1lX3R5cGUucHJvdG8aH2dvb2dsZS9hcGkvZmll",
- "bGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8i",
- "/g4KFUFjY291bnRCdWRnZXRQcm9wb3NhbBJNCg1yZXNvdXJjZV9uYW1lGAEg",
- "ASgJQjbgQQX6QTAKLmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BY2NvdW50",
- "QnVkZ2V0UHJvcG9zYWwSFAoCaWQYGSABKANCA+BBA0gFiAEBEkkKDWJpbGxp",
- "bmdfc2V0dXAYGiABKAlCLeBBBfpBJwolZ29vZ2xlYWRzLmdvb2dsZWFwaXMu",
- "Y29tL0JpbGxpbmdTZXR1cEgGiAEBEksKDmFjY291bnRfYnVkZ2V0GBsgASgJ",
- "Qi7gQQX6QSgKJmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BY2NvdW50QnVk",
- "Z2V0SAeIAQEScwoNcHJvcG9zYWxfdHlwZRgEIAEoDjJXLmdvb2dsZS5hZHMu",
- "Z29vZ2xlYWRzLnYxNi5lbnVtcy5BY2NvdW50QnVkZ2V0UHJvcG9zYWxUeXBl",
- "RW51bS5BY2NvdW50QnVkZ2V0UHJvcG9zYWxUeXBlQgPgQQUScAoGc3RhdHVz",
- "GA8gASgOMlsuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2LmVudW1zLkFjY291",
- "bnRCdWRnZXRQcm9wb3NhbFN0YXR1c0VudW0uQWNjb3VudEJ1ZGdldFByb3Bv",
- "c2FsU3RhdHVzQgPgQQMSHwoNcHJvcG9zZWRfbmFtZRgcIAEoCUID4EEFSAiI",
- "AQESKgoYYXBwcm92ZWRfc3RhcnRfZGF0ZV90aW1lGB4gASgJQgPgQQNICYgB",
- "ARIwCh5wcm9wb3NlZF9wdXJjaGFzZV9vcmRlcl9udW1iZXIYIyABKAlCA+BB",
- "BUgKiAEBEiAKDnByb3Bvc2VkX25vdGVzGCQgASgJQgPgQQVIC4gBARIkChJj",
- "cmVhdGlvbl9kYXRlX3RpbWUYJSABKAlCA+BBA0gMiAEBEiQKEmFwcHJvdmFs",
- "X2RhdGVfdGltZRgmIAEoCUID4EEDSA2IAQESJwoYcHJvcG9zZWRfc3RhcnRf",
- "ZGF0ZV90aW1lGB0gASgJQgPgQQVIABJeChhwcm9wb3NlZF9zdGFydF90aW1l",
- "X3R5cGUYByABKA4yNS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTYuZW51bXMu",
- "VGltZVR5cGVFbnVtLlRpbWVUeXBlQgPgQQVIABIlChZwcm9wb3NlZF9lbmRf",
- "ZGF0ZV90aW1lGB8gASgJQgPgQQVIARJcChZwcm9wb3NlZF9lbmRfdGltZV90",
- "eXBlGAkgASgOMjUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2LmVudW1zLlRp",
- "bWVUeXBlRW51bS5UaW1lVHlwZUID4EEFSAESJQoWYXBwcm92ZWRfZW5kX2Rh",
- "dGVfdGltZRggIAEoCUID4EEDSAISXAoWYXBwcm92ZWRfZW5kX3RpbWVfdHlw",
- "ZRgWIAEoDjI1Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5lbnVtcy5UaW1l",
- "VHlwZUVudW0uVGltZVR5cGVCA+BBA0gCEi0KHnByb3Bvc2VkX3NwZW5kaW5n",
- "X2xpbWl0X21pY3JvcxghIAEoA0ID4EEFSAMSdAoccHJvcG9zZWRfc3BlbmRp",
- "bmdfbGltaXRfdHlwZRgLIAEoDjJHLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx",
- "Ni5lbnVtcy5TcGVuZGluZ0xpbWl0VHlwZUVudW0uU3BlbmRpbmdMaW1pdFR5",
- "cGVCA+BBBUgDEi0KHmFwcHJvdmVkX3NwZW5kaW5nX2xpbWl0X21pY3Jvcxgi",
- "IAEoA0ID4EEDSAQSdAocYXBwcm92ZWRfc3BlbmRpbmdfbGltaXRfdHlwZRgY",
- "IAEoDjJHLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5lbnVtcy5TcGVuZGlu",
- "Z0xpbWl0VHlwZUVudW0uU3BlbmRpbmdMaW1pdFR5cGVCA+BBA0gEOoAB6kF9",
- "Ci5nb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQWNjb3VudEJ1ZGdldFByb3Bv",
- "c2FsEktjdXN0b21lcnMve2N1c3RvbWVyX2lkfS9hY2NvdW50QnVkZ2V0UHJv",
- "cG9zYWxzL3thY2NvdW50X2J1ZGdldF9wcm9wb3NhbF9pZH1CFQoTcHJvcG9z",
- "ZWRfc3RhcnRfdGltZUITChFwcm9wb3NlZF9lbmRfdGltZUITChFhcHByb3Zl",
- "ZF9lbmRfdGltZUIZChdwcm9wb3NlZF9zcGVuZGluZ19saW1pdEIZChdhcHBy",
- "b3ZlZF9zcGVuZGluZ19saW1pdEIFCgNfaWRCEAoOX2JpbGxpbmdfc2V0dXBC",
- "EQoPX2FjY291bnRfYnVkZ2V0QhAKDl9wcm9wb3NlZF9uYW1lQhsKGV9hcHBy",
- "b3ZlZF9zdGFydF9kYXRlX3RpbWVCIQofX3Byb3Bvc2VkX3B1cmNoYXNlX29y",
- "ZGVyX251bWJlckIRCg9fcHJvcG9zZWRfbm90ZXNCFQoTX2NyZWF0aW9uX2Rh",
- "dGVfdGltZUIVChNfYXBwcm92YWxfZGF0ZV90aW1lQowCCiZjb20uZ29vZ2xl",
- "LmFkcy5nb29nbGVhZHMudjE2LnJlc291cmNlc0IaQWNjb3VudEJ1ZGdldFBy",
- "b3Bvc2FsUHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v",
- "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxNi9yZXNvdXJjZXM7cmVzb3VyY2Vz",
- "ogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjE2LlJlc291cmNlc8oC",
- "Ikdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxNlxSZXNvdXJjZXPqAiZHb29nbGU6",
- "OkFkczo6R29vZ2xlQWRzOjpWMTY6OlJlc291cmNlc2IGcHJvdG8z"));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V16.Enums.AccountBudgetProposalStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V16.Enums.AccountBudgetProposalTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V16.Enums.SpendingLimitTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V16.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.V16.Resources.AccountBudgetProposal), global::Google.Ads.GoogleAds.V16.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.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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 readonly static long IdDefaultValue = 0L;
-
- 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 IdDefaultValue; } }
- 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 readonly static string BillingSetupDefaultValue = "";
-
- 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_ ?? BillingSetupDefaultValue; }
- 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 readonly static string AccountBudgetDefaultValue = "";
-
- 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_ ?? AccountBudgetDefaultValue; }
- 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.V16.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType proposalType_ = global::Google.Ads.GoogleAds.V16.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.V16.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.V16.Enums.AccountBudgetProposalStatusEnum.Types.AccountBudgetProposalStatus status_ = global::Google.Ads.GoogleAds.V16.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.V16.Enums.AccountBudgetProposalStatusEnum.Types.AccountBudgetProposalStatus Status {
- get { return status_; }
- set {
- status_ = value;
- }
- }
-
- /// Field number for the "proposed_name" field.
- public const int ProposedNameFieldNumber = 28;
- private readonly static string ProposedNameDefaultValue = "";
-
- 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_ ?? ProposedNameDefaultValue; }
- 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 readonly static string ApprovedStartDateTimeDefaultValue = "";
-
- 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_ ?? ApprovedStartDateTimeDefaultValue; }
- 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 readonly static string ProposedPurchaseOrderNumberDefaultValue = "";
-
- 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_ ?? ProposedPurchaseOrderNumberDefaultValue; }
- 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 readonly static string ProposedNotesDefaultValue = "";
-
- 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_ ?? ProposedNotesDefaultValue; }
- 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 readonly static string CreationDateTimeDefaultValue = "";
-
- 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_ ?? CreationDateTimeDefaultValue; }
- 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 readonly static string ApprovalDateTimeDefaultValue = "";
-
- 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_ ?? ApprovalDateTimeDefaultValue; }
- 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 HasProposedStartDateTime ? (string) proposedStartTime_ : ""; }
- set {
- proposedStartTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- proposedStartTimeCase_ = ProposedStartTimeOneofCase.ProposedStartDateTime;
- }
- }
- /// 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 proposedStartTimeCase_ == ProposedStartTimeOneofCase.ProposedStartDateTime; }
- }
- /// Clears the value of the oneof if it's currently set to "proposed_start_date_time"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearProposedStartDateTime() {
- if (HasProposedStartDateTime) {
- ClearProposedStartTime();
- }
- }
-
- /// 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.V16.Enums.TimeTypeEnum.Types.TimeType ProposedStartTimeType {
- get { return HasProposedStartTimeType ? (global::Google.Ads.GoogleAds.V16.Enums.TimeTypeEnum.Types.TimeType) proposedStartTime_ : global::Google.Ads.GoogleAds.V16.Enums.TimeTypeEnum.Types.TimeType.Unspecified; }
- set {
- proposedStartTime_ = value;
- proposedStartTimeCase_ = ProposedStartTimeOneofCase.ProposedStartTimeType;
- }
- }
- /// Gets whether the "proposed_start_time_type" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasProposedStartTimeType {
- get { return proposedStartTimeCase_ == ProposedStartTimeOneofCase.ProposedStartTimeType; }
- }
- /// Clears the value of the oneof if it's currently set to "proposed_start_time_type"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearProposedStartTimeType() {
- if (HasProposedStartTimeType) {
- ClearProposedStartTime();
- }
- }
-
- /// 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 HasProposedEndDateTime ? (string) proposedEndTime_ : ""; }
- set {
- proposedEndTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- proposedEndTimeCase_ = ProposedEndTimeOneofCase.ProposedEndDateTime;
- }
- }
- /// Gets whether the "proposed_end_date_time" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasProposedEndDateTime {
- get { return proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndDateTime; }
- }
- /// Clears the value of the oneof if it's currently set to "proposed_end_date_time"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearProposedEndDateTime() {
- if (HasProposedEndDateTime) {
- ClearProposedEndTime();
- }
- }
-
- /// 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.V16.Enums.TimeTypeEnum.Types.TimeType ProposedEndTimeType {
- get { return HasProposedEndTimeType ? (global::Google.Ads.GoogleAds.V16.Enums.TimeTypeEnum.Types.TimeType) proposedEndTime_ : global::Google.Ads.GoogleAds.V16.Enums.TimeTypeEnum.Types.TimeType.Unspecified; }
- set {
- proposedEndTime_ = value;
- proposedEndTimeCase_ = ProposedEndTimeOneofCase.ProposedEndTimeType;
- }
- }
- /// Gets whether the "proposed_end_time_type" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasProposedEndTimeType {
- get { return proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndTimeType; }
- }
- /// Clears the value of the oneof if it's currently set to "proposed_end_time_type"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearProposedEndTimeType() {
- if (HasProposedEndTimeType) {
- ClearProposedEndTime();
- }
- }
-
- /// 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 HasApprovedEndDateTime ? (string) approvedEndTime_ : ""; }
- set {
- approvedEndTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- approvedEndTimeCase_ = ApprovedEndTimeOneofCase.ApprovedEndDateTime;
- }
- }
- /// Gets whether the "approved_end_date_time" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasApprovedEndDateTime {
- get { return approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndDateTime; }
- }
- /// Clears the value of the oneof if it's currently set to "approved_end_date_time"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearApprovedEndDateTime() {
- if (HasApprovedEndDateTime) {
- ClearApprovedEndTime();
- }
- }
-
- /// 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.V16.Enums.TimeTypeEnum.Types.TimeType ApprovedEndTimeType {
- get { return HasApprovedEndTimeType ? (global::Google.Ads.GoogleAds.V16.Enums.TimeTypeEnum.Types.TimeType) approvedEndTime_ : global::Google.Ads.GoogleAds.V16.Enums.TimeTypeEnum.Types.TimeType.Unspecified; }
- set {
- approvedEndTime_ = value;
- approvedEndTimeCase_ = ApprovedEndTimeOneofCase.ApprovedEndTimeType;
- }
- }
- /// Gets whether the "approved_end_time_type" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasApprovedEndTimeType {
- get { return approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndTimeType; }
- }
- /// Clears the value of the oneof if it's currently set to "approved_end_time_type"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearApprovedEndTimeType() {
- if (HasApprovedEndTimeType) {
- ClearApprovedEndTime();
- }
- }
-
- /// 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 HasProposedSpendingLimitMicros ? (long) proposedSpendingLimit_ : 0L; }
- set {
- proposedSpendingLimit_ = value;
- proposedSpendingLimitCase_ = ProposedSpendingLimitOneofCase.ProposedSpendingLimitMicros;
- }
- }
- /// Gets whether the "proposed_spending_limit_micros" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasProposedSpendingLimitMicros {
- get { return proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitMicros; }
- }
- /// Clears the value of the oneof if it's currently set to "proposed_spending_limit_micros"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearProposedSpendingLimitMicros() {
- if (HasProposedSpendingLimitMicros) {
- ClearProposedSpendingLimit();
- }
- }
-
- /// 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.V16.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType ProposedSpendingLimitType {
- get { return HasProposedSpendingLimitType ? (global::Google.Ads.GoogleAds.V16.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType) proposedSpendingLimit_ : global::Google.Ads.GoogleAds.V16.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType.Unspecified; }
- set {
- proposedSpendingLimit_ = value;
- proposedSpendingLimitCase_ = ProposedSpendingLimitOneofCase.ProposedSpendingLimitType;
- }
- }
- /// Gets whether the "proposed_spending_limit_type" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasProposedSpendingLimitType {
- get { return proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitType; }
- }
- /// Clears the value of the oneof if it's currently set to "proposed_spending_limit_type"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearProposedSpendingLimitType() {
- if (HasProposedSpendingLimitType) {
- ClearProposedSpendingLimit();
- }
- }
-
- /// 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 HasApprovedSpendingLimitMicros ? (long) approvedSpendingLimit_ : 0L; }
- set {
- approvedSpendingLimit_ = value;
- approvedSpendingLimitCase_ = ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitMicros;
- }
- }
- /// Gets whether the "approved_spending_limit_micros" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasApprovedSpendingLimitMicros {
- get { return approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitMicros; }
- }
- /// Clears the value of the oneof if it's currently set to "approved_spending_limit_micros"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearApprovedSpendingLimitMicros() {
- if (HasApprovedSpendingLimitMicros) {
- ClearApprovedSpendingLimit();
- }
- }
-
- /// 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.V16.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType ApprovedSpendingLimitType {
- get { return HasApprovedSpendingLimitType ? (global::Google.Ads.GoogleAds.V16.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType) approvedSpendingLimit_ : global::Google.Ads.GoogleAds.V16.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType.Unspecified; }
- set {
- approvedSpendingLimit_ = value;
- approvedSpendingLimitCase_ = ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType;
- }
- }
- /// Gets whether the "approved_spending_limit_type" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasApprovedSpendingLimitType {
- get { return approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType; }
- }
- /// Clears the value of the oneof if it's currently set to "approved_spending_limit_type"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearApprovedSpendingLimitType() {
- if (HasApprovedSpendingLimitType) {
- ClearApprovedSpendingLimit();
- }
- }
-
- 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.V16.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType.Unspecified) hash ^= ProposalType.GetHashCode();
- if (Status != global::Google.Ads.GoogleAds.V16.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 (HasProposedStartDateTime) hash ^= ProposedStartDateTime.GetHashCode();
- if (HasProposedStartTimeType) hash ^= ProposedStartTimeType.GetHashCode();
- if (HasProposedEndDateTime) hash ^= ProposedEndDateTime.GetHashCode();
- if (HasProposedEndTimeType) hash ^= ProposedEndTimeType.GetHashCode();
- if (HasApprovedEndDateTime) hash ^= ApprovedEndDateTime.GetHashCode();
- if (HasApprovedEndTimeType) hash ^= ApprovedEndTimeType.GetHashCode();
- if (HasProposedSpendingLimitMicros) hash ^= ProposedSpendingLimitMicros.GetHashCode();
- if (HasProposedSpendingLimitType) hash ^= ProposedSpendingLimitType.GetHashCode();
- if (HasApprovedSpendingLimitMicros) hash ^= ApprovedSpendingLimitMicros.GetHashCode();
- if (HasApprovedSpendingLimitType) 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.V16.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType.Unspecified) {
- output.WriteRawTag(32);
- output.WriteEnum((int) ProposalType);
- }
- if (HasProposedStartTimeType) {
- output.WriteRawTag(56);
- output.WriteEnum((int) ProposedStartTimeType);
- }
- if (HasProposedEndTimeType) {
- output.WriteRawTag(72);
- output.WriteEnum((int) ProposedEndTimeType);
- }
- if (HasProposedSpendingLimitType) {
- output.WriteRawTag(88);
- output.WriteEnum((int) ProposedSpendingLimitType);
- }
- if (Status != global::Google.Ads.GoogleAds.V16.Enums.AccountBudgetProposalStatusEnum.Types.AccountBudgetProposalStatus.Unspecified) {
- output.WriteRawTag(120);
- output.WriteEnum((int) Status);
- }
- if (HasApprovedEndTimeType) {
- output.WriteRawTag(176, 1);
- output.WriteEnum((int) ApprovedEndTimeType);
- }
- if (HasApprovedSpendingLimitType) {
- 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 (HasProposedStartDateTime) {
- output.WriteRawTag(234, 1);
- output.WriteString(ProposedStartDateTime);
- }
- if (HasApprovedStartDateTime) {
- output.WriteRawTag(242, 1);
- output.WriteString(ApprovedStartDateTime);
- }
- if (HasProposedEndDateTime) {
- output.WriteRawTag(250, 1);
- output.WriteString(ProposedEndDateTime);
- }
- if (HasApprovedEndDateTime) {
- output.WriteRawTag(130, 2);
- output.WriteString(ApprovedEndDateTime);
- }
- if (HasProposedSpendingLimitMicros) {
- output.WriteRawTag(136, 2);
- output.WriteInt64(ProposedSpendingLimitMicros);
- }
- if (HasApprovedSpendingLimitMicros) {
- 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.V16.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType.Unspecified) {
- output.WriteRawTag(32);
- output.WriteEnum((int) ProposalType);
- }
- if (HasProposedStartTimeType) {
- output.WriteRawTag(56);
- output.WriteEnum((int) ProposedStartTimeType);
- }
- if (HasProposedEndTimeType) {
- output.WriteRawTag(72);
- output.WriteEnum((int) ProposedEndTimeType);
- }
- if (HasProposedSpendingLimitType) {
- output.WriteRawTag(88);
- output.WriteEnum((int) ProposedSpendingLimitType);
- }
- if (Status != global::Google.Ads.GoogleAds.V16.Enums.AccountBudgetProposalStatusEnum.Types.AccountBudgetProposalStatus.Unspecified) {
- output.WriteRawTag(120);
- output.WriteEnum((int) Status);
- }
- if (HasApprovedEndTimeType) {
- output.WriteRawTag(176, 1);
- output.WriteEnum((int) ApprovedEndTimeType);
- }
- if (HasApprovedSpendingLimitType) {
- 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 (HasProposedStartDateTime) {
- output.WriteRawTag(234, 1);
- output.WriteString(ProposedStartDateTime);
- }
- if (HasApprovedStartDateTime) {
- output.WriteRawTag(242, 1);
- output.WriteString(ApprovedStartDateTime);
- }
- if (HasProposedEndDateTime) {
- output.WriteRawTag(250, 1);
- output.WriteString(ProposedEndDateTime);
- }
- if (HasApprovedEndDateTime) {
- output.WriteRawTag(130, 2);
- output.WriteString(ApprovedEndDateTime);
- }
- if (HasProposedSpendingLimitMicros) {
- output.WriteRawTag(136, 2);
- output.WriteInt64(ProposedSpendingLimitMicros);
- }
- if (HasApprovedSpendingLimitMicros) {
- 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.V16.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType.Unspecified) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ProposalType);
- }
- if (Status != global::Google.Ads.GoogleAds.V16.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 (HasProposedStartDateTime) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(ProposedStartDateTime);
- }
- if (HasProposedStartTimeType) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ProposedStartTimeType);
- }
- if (HasProposedEndDateTime) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(ProposedEndDateTime);
- }
- if (HasProposedEndTimeType) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ProposedEndTimeType);
- }
- if (HasApprovedEndDateTime) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(ApprovedEndDateTime);
- }
- if (HasApprovedEndTimeType) {
- size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ApprovedEndTimeType);
- }
- if (HasProposedSpendingLimitMicros) {
- size += 2 + pb::CodedOutputStream.ComputeInt64Size(ProposedSpendingLimitMicros);
- }
- if (HasProposedSpendingLimitType) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ProposedSpendingLimitType);
- }
- if (HasApprovedSpendingLimitMicros) {
- size += 2 + pb::CodedOutputStream.ComputeInt64Size(ApprovedSpendingLimitMicros);
- }
- if (HasApprovedSpendingLimitType) {
- 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.V16.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType.Unspecified) {
- ProposalType = other.ProposalType;
- }
- if (other.Status != global::Google.Ads.GoogleAds.V16.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.V16.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.V16.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.V16.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.V16.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/V16/AccountBudgetProposalError.g.cs b/Google.Ads.GoogleAds/src/V16/AccountBudgetProposalError.g.cs
deleted file mode 100755
index abad76c31..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccountBudgetProposalError.g.cs
+++ /dev/null
@@ -1,362 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/ads/googleads/v16/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.V16.Errors {
-
- /// Holder for reflection information generated from google/ads/googleads/v16/errors/account_budget_proposal_error.proto
- public static partial class AccountBudgetProposalErrorReflection {
-
- #region Descriptor
- /// File descriptor for google/ads/googleads/v16/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(
- "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvZXJyb3JzL2FjY291bnRfYnVk",
- "Z2V0X3Byb3Bvc2FsX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFk",
- "cy52MTYuZXJyb3JzItoHCh5BY2NvdW50QnVkZ2V0UHJvcG9zYWxFcnJvckVu",
- "dW0itwcKGkFjY291bnRCdWRnZXRQcm9wb3NhbEVycm9yEg8KC1VOU1BFQ0lG",
- "SUVEEAASCwoHVU5LTk9XThABEhoKFkZJRUxEX01BU0tfTk9UX0FMTE9XRUQQ",
- "AhITCg9JTU1VVEFCTEVfRklFTEQQAxIaChZSRVFVSVJFRF9GSUVMRF9NSVNT",
- "SU5HEAQSIwofQ0FOTk9UX0NBTkNFTF9BUFBST1ZFRF9QUk9QT1NBTBAFEiMK",
- "H0NBTk5PVF9SRU1PVkVfVU5BUFBST1ZFRF9CVURHRVQQBhIgChxDQU5OT1Rf",
- "UkVNT1ZFX1JVTk5JTkdfQlVER0VUEAcSIAocQ0FOTk9UX0VORF9VTkFQUFJP",
- "VkVEX0JVREdFVBAIEh4KGkNBTk5PVF9FTkRfSU5BQ1RJVkVfQlVER0VUEAkS",
- "GAoUQlVER0VUX05BTUVfUkVRVUlSRUQQChIcChhDQU5OT1RfVVBEQVRFX09M",
- "RF9CVURHRVQQCxIWChJDQU5OT1RfRU5EX0lOX1BBU1QQDBIaChZDQU5OT1Rf",
- "RVhURU5EX0VORF9USU1FEA0SIgoeUFVSQ0hBU0VfT1JERVJfTlVNQkVSX1JF",
- "UVVJUkVEEA4SIgoeUEVORElOR19VUERBVEVfUFJPUE9TQUxfRVhJU1RTEA8S",
- "PQo5TVVMVElQTEVfQlVER0VUU19OT1RfQUxMT1dFRF9GT1JfVU5BUFBST1ZF",
- "RF9CSUxMSU5HX1NFVFVQEBASLworQ0FOTk9UX1VQREFURV9TVEFSVF9USU1F",
- "X0ZPUl9TVEFSVEVEX0JVREdFVBAREjYKMlNQRU5ESU5HX0xJTUlUX0xPV0VS",
- "X1RIQU5fQUNDUlVFRF9DT1NUX05PVF9BTExPV0VEEBISEwoPVVBEQVRFX0lT",
- "X05PX09QEBMSIwofRU5EX1RJTUVfTVVTVF9GT0xMT1dfU1RBUlRfVElNRRAU",
- "EjUKMUJVREdFVF9EQVRFX1JBTkdFX0lOQ09NUEFUSUJMRV9XSVRIX0JJTExJ",
- "TkdfU0VUVVAQFRISCg5OT1RfQVVUSE9SSVpFRBAWEhkKFUlOVkFMSURfQklM",
- "TElOR19TRVRVUBAXEhwKGE9WRVJMQVBTX0VYSVNUSU5HX0JVREdFVBAYEiQK",
- "IENBTk5PVF9DUkVBVEVfQlVER0VUX1RIUk9VR0hfQVBJEBkSJAogSU5WQUxJ",
- "RF9NQVNURVJfU0VSVklDRV9BR1JFRU1FTlQQGhIaChZDQU5DRUxFRF9CSUxM",
- "SU5HX1NFVFVQEBtC/wEKI2NvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTYu",
- "ZXJyb3JzQh9BY2NvdW50QnVkZ2V0UHJvcG9zYWxFcnJvclByb3RvUAFaRWdv",
- "b2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2ds",
- "ZWFkcy92MTYvZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29v",
- "Z2xlQWRzLlYxNi5FcnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTZc",
- "RXJyb3Jz6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjE2OjpFcnJvcnNi",
- "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.V16.Errors.AccountBudgetProposalErrorEnum), global::Google.Ads.GoogleAds.V16.Errors.AccountBudgetProposalErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V16.Errors.AccountBudgetProposalErrorEnum.Types.AccountBudgetProposalError) }, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// Container for enum describing possible account budget proposal errors.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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,
- ///
- /// Budget mutates are not allowed because the given billing setup is
- /// canceled.
- ///
- [pbr::OriginalName("CANCELED_BILLING_SETUP")] CanceledBillingSetup = 27,
- }
-
- }
- #endregion
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code
diff --git a/Google.Ads.GoogleAds/src/V16/AccountBudgetProposalResourceNames.g.cs b/Google.Ads.GoogleAds/src/V16/AccountBudgetProposalResourceNames.g.cs
deleted file mode 100755
index 8c2578e45..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccountBudgetProposalResourceNames.g.cs
+++ /dev/null
@@ -1,319 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-#pragma warning disable CS8981
-using gax = Google.Api.Gax;
-using sys = System;
-
-namespace Google.Ads.GoogleAds.V16.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();
-
- /// Determines whether two specified resource names have the same value.
- /// The first resource name to compare, or null.
- /// The second resource name to compare, or null.
- ///
- /// true if the value of is the same as the value of ; otherwise,
- /// false.
- ///
- public static bool operator ==(AccountBudgetProposalName a, AccountBudgetProposalName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false);
-
- /// Determines whether two specified resource names have different values.
- /// The first resource name to compare, or null.
- /// The second resource name to compare, or null.
- ///
- /// true if the value of is different from the value of ; otherwise,
- /// 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/V16/AccountBudgetProposalService.g.cs b/Google.Ads.GoogleAds/src/V16/AccountBudgetProposalService.g.cs
deleted file mode 100755
index 5ddd8091b..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccountBudgetProposalService.g.cs
+++ /dev/null
@@ -1,1128 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/ads/googleads/v16/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.V16.Services {
-
- /// Holder for reflection information generated from google/ads/googleads/v16/services/account_budget_proposal_service.proto
- public static partial class AccountBudgetProposalServiceReflection {
-
- #region Descriptor
- /// File descriptor for google/ads/googleads/v16/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(
- "Ckdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvc2VydmljZXMvYWNjb3VudF9i",
- "dWRnZXRfcHJvcG9zYWxfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29n",
- "bGVhZHMudjE2LnNlcnZpY2VzGkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTYv",
- "cmVzb3VyY2VzL2FjY291bnRfYnVkZ2V0X3Byb3Bvc2FsLnByb3RvGhxnb29n",
- "bGUvYXBpL2Fubm90YXRpb25zLnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5w",
- "cm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xl",
- "L2FwaS9yZXNvdXJjZS5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21h",
- "c2sucHJvdG8isAEKIk11dGF0ZUFjY291bnRCdWRnZXRQcm9wb3NhbFJlcXVl",
- "c3QSGAoLY3VzdG9tZXJfaWQYASABKAlCA+BBAhJZCglvcGVyYXRpb24YAiAB",
- "KAsyQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTYuc2VydmljZXMuQWNjb3Vu",
- "dEJ1ZGdldFByb3Bvc2FsT3BlcmF0aW9uQgPgQQISFQoNdmFsaWRhdGVfb25s",
- "eRgDIAEoCCLyAQoeQWNjb3VudEJ1ZGdldFByb3Bvc2FsT3BlcmF0aW9uEi8K",
- "C3VwZGF0ZV9tYXNrGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFz",
- "axJLCgZjcmVhdGUYAiABKAsyOS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTYu",
- "cmVzb3VyY2VzLkFjY291bnRCdWRnZXRQcm9wb3NhbEgAEkUKBnJlbW92ZRgB",
- "IAEoCUIz+kEwCi5nb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQWNjb3VudEJ1",
- "ZGdldFByb3Bvc2FsSABCCwoJb3BlcmF0aW9uInsKI011dGF0ZUFjY291bnRC",
- "dWRnZXRQcm9wb3NhbFJlc3BvbnNlElQKBnJlc3VsdBgCIAEoCzJELmdvb2ds",
- "ZS5hZHMuZ29vZ2xlYWRzLnYxNi5zZXJ2aWNlcy5NdXRhdGVBY2NvdW50QnVk",
- "Z2V0UHJvcG9zYWxSZXN1bHQibwohTXV0YXRlQWNjb3VudEJ1ZGdldFByb3Bv",
- "c2FsUmVzdWx0EkoKDXJlc291cmNlX25hbWUYASABKAlCM/pBMAouZ29vZ2xl",
- "YWRzLmdvb2dsZWFwaXMuY29tL0FjY291bnRCdWRnZXRQcm9wb3NhbDL1Agoc",
- "QWNjb3VudEJ1ZGdldFByb3Bvc2FsU2VydmljZRKNAgobTXV0YXRlQWNjb3Vu",
- "dEJ1ZGdldFByb3Bvc2FsEkUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2LnNl",
- "cnZpY2VzLk11dGF0ZUFjY291bnRCdWRnZXRQcm9wb3NhbFJlcXVlc3QaRi5n",
- "b29nbGUuYWRzLmdvb2dsZWFkcy52MTYuc2VydmljZXMuTXV0YXRlQWNjb3Vu",
- "dEJ1ZGdldFByb3Bvc2FsUmVzcG9uc2UiX9pBFWN1c3RvbWVyX2lkLG9wZXJh",
- "dGlvboLT5JMCQSI8L3YxNi9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9L2Fj",
- "Y291bnRCdWRnZXRQcm9wb3NhbHM6bXV0YXRlOgEqGkXKQRhnb29nbGVhZHMu",
- "Z29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9h",
- "dXRoL2Fkd29yZHNCjQIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTYu",
- "c2VydmljZXNCIUFjY291bnRCdWRnZXRQcm9wb3NhbFNlcnZpY2VQcm90b1AB",
- "Wklnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9n",
- "b29nbGVhZHMvdjE2L3NlcnZpY2VzO3NlcnZpY2VzogIDR0FBqgIhR29vZ2xl",
- "LkFkcy5Hb29nbGVBZHMuVjE2LlNlcnZpY2VzygIhR29vZ2xlXEFkc1xHb29n",
- "bGVBZHNcVjE2XFNlcnZpY2Vz6gIlR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6",
- "VjE2OjpTZXJ2aWNlc2IGcHJvdG8z"));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V16.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.V16.Services.MutateAccountBudgetProposalRequest), global::Google.Ads.GoogleAds.V16.Services.MutateAccountBudgetProposalRequest.Parser, new[]{ "CustomerId", "Operation", "ValidateOnly" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Services.AccountBudgetProposalOperation), global::Google.Ads.GoogleAds.V16.Services.AccountBudgetProposalOperation.Parser, new[]{ "UpdateMask", "Create", "Remove" }, new[]{ "Operation" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Services.MutateAccountBudgetProposalResponse), global::Google.Ads.GoogleAds.V16.Services.MutateAccountBudgetProposalResponse.Parser, new[]{ "Result" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Services.MutateAccountBudgetProposalResult), global::Google.Ads.GoogleAds.V16.Services.MutateAccountBudgetProposalResult.Parser, new[]{ "ResourceName" }, null, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// Request message for
- /// [AccountBudgetProposalService.MutateAccountBudgetProposal][google.ads.googleads.v16.services.AccountBudgetProposalService.MutateAccountBudgetProposal].
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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.V16.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.V16.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.V16.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.V16.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.V16.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.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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.V16.Resources.AccountBudgetProposal Create {
- get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V16.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 HasRemove ? (string) operation_ : ""; }
- set {
- operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- operationCase_ = OperationOneofCase.Remove;
- }
- }
- /// Gets whether the "remove" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasRemove {
- get { return operationCase_ == OperationOneofCase.Remove; }
- }
- /// Clears the value of the oneof if it's currently set to "remove"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearRemove() {
- if (HasRemove) {
- ClearOperation();
- }
- }
-
- 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 (HasRemove) 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 (HasRemove) {
- 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 (HasRemove) {
- 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 (HasRemove) {
- 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.V16.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.V16.Resources.AccountBudgetProposal subBuilder = new global::Google.Ads.GoogleAds.V16.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.V16.Resources.AccountBudgetProposal subBuilder = new global::Google.Ads.GoogleAds.V16.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.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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.V16.Services.MutateAccountBudgetProposalResult result_;
- ///
- /// The result of the mutate.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Ads.GoogleAds.V16.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.V16.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.V16.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.V16.Services.MutateAccountBudgetProposalResult();
- }
- input.ReadMessage(Result);
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- ///
- /// The result for the account budget proposal mutate.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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/V16/AccountBudgetProposalServiceClient.g.cs b/Google.Ads.GoogleAds/src/V16/AccountBudgetProposalServiceClient.g.cs
deleted file mode 100755
index 10088c472..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccountBudgetProposalServiceClient.g.cs
+++ /dev/null
@@ -1,511 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-#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.V16.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, GetEffectiveSettings(Settings?.Clone()), Logger);
- }
-
- private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken)
- {
- Validate();
- grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false);
- return AccountBudgetProposalServiceClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), 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(new gaxgrpc::ClientHelper.Options
- {
- Settings = effectiveSettings,
- Logger = 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/V16/AccountBudgetProposalServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V16/AccountBudgetProposalServiceGrpc.g.cs
deleted file mode 100755
index 6ce88538c..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccountBudgetProposalServiceGrpc.g.cs
+++ /dev/null
@@ -1,295 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/ads/googleads/v16/services/account_budget_proposal_service.proto
-//
-// Original file comments:
-// 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.
-//
-#pragma warning disable 0414, 1591, 8981, 0612
-#region Designer generated code
-
-using grpc = global::Grpc.Core;
-
-namespace Google.Ads.GoogleAds.V16.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.v16.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_v16_services_MutateAccountBudgetProposalRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V16.Services.MutateAccountBudgetProposalRequest.Parser));
- [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
- static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v16_services_MutateAccountBudgetProposalResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V16.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_v16_services_MutateAccountBudgetProposalRequest,
- __Marshaller_google_ads_googleads_v16_services_MutateAccountBudgetProposalResponse);
-
- /// Service descriptor
- public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
- {
- get { return global::Google.Ads.GoogleAds.V16.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.V16.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.V16.Services.MutateAccountBudgetProposalResponse MutateAccountBudgetProposal(global::Google.Ads.GoogleAds.V16.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.V16.Services.MutateAccountBudgetProposalResponse MutateAccountBudgetProposal(global::Google.Ads.GoogleAds.V16.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.V16.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.V16.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/V16/AccountBudgetProposalServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V16/AccountBudgetProposalServiceResourceNames.g.cs
deleted file mode 100755
index 58f8f108c..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccountBudgetProposalServiceResourceNames.g.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-#pragma warning disable CS8981
-using gagvr = Google.Ads.GoogleAds.V16.Resources;
-
-namespace Google.Ads.GoogleAds.V16.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/V16/AccountBudgetProposalStatus.g.cs b/Google.Ads.GoogleAds/src/V16/AccountBudgetProposalStatus.g.cs
deleted file mode 100755
index c0b8d3d9a..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccountBudgetProposalStatus.g.cs
+++ /dev/null
@@ -1,255 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/ads/googleads/v16/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.V16.Enums {
-
- /// Holder for reflection information generated from google/ads/googleads/v16/enums/account_budget_proposal_status.proto
- public static partial class AccountBudgetProposalStatusReflection {
-
- #region Descriptor
- /// File descriptor for google/ads/googleads/v16/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(
- "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvZW51bXMvYWNjb3VudF9idWRn",
- "ZXRfcHJvcG9zYWxfc3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFk",
- "cy52MTYuZW51bXMiqgEKH0FjY291bnRCdWRnZXRQcm9wb3NhbFN0YXR1c0Vu",
- "dW0ihgEKG0FjY291bnRCdWRnZXRQcm9wb3NhbFN0YXR1cxIPCgtVTlNQRUNJ",
- "RklFRBAAEgsKB1VOS05PV04QARILCgdQRU5ESU5HEAISEQoNQVBQUk9WRURf",
- "SEVMRBADEgwKCEFQUFJPVkVEEAQSDQoJQ0FOQ0VMTEVEEAUSDAoIUkVKRUNU",
- "RUQQBkL6AQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5lbnVtc0Ig",
- "QWNjb3VudEJ1ZGdldFByb3Bvc2FsU3RhdHVzUHJvdG9QAVpDZ29vZ2xlLmdv",
- "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3Yx",
- "Ni9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYx",
- "Ni5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxNlxFbnVtc+oCIkdv",
- "b2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxNjo6RW51bXNiBnByb3RvMw=="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { },
- new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Enums.AccountBudgetProposalStatusEnum), global::Google.Ads.GoogleAds.V16.Enums.AccountBudgetProposalStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V16.Enums.AccountBudgetProposalStatusEnum.Types.AccountBudgetProposalStatus) }, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// Message describing AccountBudgetProposal statuses.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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/V16/AccountBudgetProposalType.g.cs b/Google.Ads.GoogleAds/src/V16/AccountBudgetProposalType.g.cs
deleted file mode 100755
index 63eaf34d3..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccountBudgetProposalType.g.cs
+++ /dev/null
@@ -1,247 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/ads/googleads/v16/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.V16.Enums {
-
- /// Holder for reflection information generated from google/ads/googleads/v16/enums/account_budget_proposal_type.proto
- public static partial class AccountBudgetProposalTypeReflection {
-
- #region Descriptor
- /// File descriptor for google/ads/googleads/v16/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(
- "CkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvZW51bXMvYWNjb3VudF9idWRn",
- "ZXRfcHJvcG9zYWxfdHlwZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMu",
- "djE2LmVudW1zIocBCh1BY2NvdW50QnVkZ2V0UHJvcG9zYWxUeXBlRW51bSJm",
- "ChlBY2NvdW50QnVkZ2V0UHJvcG9zYWxUeXBlEg8KC1VOU1BFQ0lGSUVEEAAS",
- "CwoHVU5LTk9XThABEgoKBkNSRUFURRACEgoKBlVQREFURRADEgcKA0VORBAE",
- "EgoKBlJFTU9WRRAFQvgBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2",
- "LmVudW1zQh5BY2NvdW50QnVkZ2V0UHJvcG9zYWxUeXBlUHJvdG9QAVpDZ29v",
- "Z2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xl",
- "YWRzL3YxNi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xl",
- "QWRzLlYxNi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxNlxFbnVt",
- "c+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxNjo6RW51bXNiBnByb3Rv",
- "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.V16.Enums.AccountBudgetProposalTypeEnum), global::Google.Ads.GoogleAds.V16.Enums.AccountBudgetProposalTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V16.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType) }, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// Message describing AccountBudgetProposal types.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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/V16/AccountBudgetResourceNames.g.cs b/Google.Ads.GoogleAds/src/V16/AccountBudgetResourceNames.g.cs
deleted file mode 100755
index e5aa060a1..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccountBudgetResourceNames.g.cs
+++ /dev/null
@@ -1,290 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-#pragma warning disable CS8981
-using gagvr = Google.Ads.GoogleAds.V16.Resources;
-using gax = Google.Api.Gax;
-using sys = System;
-
-namespace Google.Ads.GoogleAds.V16.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();
-
- /// Determines whether two specified resource names have the same value.
- /// The first resource name to compare, or null.
- /// The second resource name to compare, or null.
- ///
- /// true if the value of is the same as the value of ; otherwise,
- /// false.
- ///
- public static bool operator ==(AccountBudgetName a, AccountBudgetName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false);
-
- /// Determines whether two specified resource names have different values.
- /// The first resource name to compare, or null.
- /// The second resource name to compare, or null.
- ///
- /// true if the value of is different from the value of ; otherwise,
- /// 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/V16/AccountBudgetStatus.g.cs b/Google.Ads.GoogleAds/src/V16/AccountBudgetStatus.g.cs
deleted file mode 100755
index d22cf16d9..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccountBudgetStatus.g.cs
+++ /dev/null
@@ -1,242 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/ads/googleads/v16/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.V16.Enums {
-
- /// Holder for reflection information generated from google/ads/googleads/v16/enums/account_budget_status.proto
- public static partial class AccountBudgetStatusReflection {
-
- #region Descriptor
- /// File descriptor for google/ads/googleads/v16/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(
- "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvZW51bXMvYWNjb3VudF9idWRn",
- "ZXRfc3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTYuZW51",
- "bXMieAoXQWNjb3VudEJ1ZGdldFN0YXR1c0VudW0iXQoTQWNjb3VudEJ1ZGdl",
- "dFN0YXR1cxIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARILCgdQRU5E",
- "SU5HEAISDAoIQVBQUk9WRUQQAxINCglDQU5DRUxMRUQQBELyAQoiY29tLmdv",
- "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5lbnVtc0IYQWNjb3VudEJ1ZGdldFN0",
- "YXR1c1Byb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2ds",
- "ZWFwaXMvYWRzL2dvb2dsZWFkcy92MTYvZW51bXM7ZW51bXOiAgNHQUGqAh5H",
- "b29nbGUuQWRzLkdvb2dsZUFkcy5WMTYuRW51bXPKAh5Hb29nbGVcQWRzXEdv",
- "b2dsZUFkc1xWMTZcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpW",
- "MTY6OkVudW1zYgZwcm90bzM="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { },
- new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Enums.AccountBudgetStatusEnum), global::Google.Ads.GoogleAds.V16.Enums.AccountBudgetStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V16.Enums.AccountBudgetStatusEnum.Types.AccountBudgetStatus) }, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// Message describing AccountBudget statuses.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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/V16/AccountLink.g.cs b/Google.Ads.GoogleAds/src/V16/AccountLink.g.cs
deleted file mode 100755
index 8f643c615..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccountLink.g.cs
+++ /dev/null
@@ -1,816 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/ads/googleads/v16/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.V16.Resources {
-
- /// Holder for reflection information generated from google/ads/googleads/v16/resources/account_link.proto
- public static partial class AccountLinkReflection {
-
- #region Descriptor
- /// File descriptor for google/ads/googleads/v16/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(
- "CjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvcmVzb3VyY2VzL2FjY291bnRf",
- "bGluay5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2LnJlc291cmNl",
- "cxo4Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE2L2VudW1zL2FjY291bnRfbGlu",
- "a19zdGF0dXMucHJvdG8aOGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNi9lbnVt",
- "cy9saW5rZWRfYWNjb3VudF90eXBlLnByb3RvGjZnb29nbGUvYWRzL2dvb2ds",
- "ZWFkcy92MTYvZW51bXMvbW9iaWxlX2FwcF92ZW5kb3IucHJvdG8aH2dvb2ds",
- "ZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3Vy",
- "Y2UucHJvdG8ipwQKC0FjY291bnRMaW5rEkMKDXJlc291cmNlX25hbWUYASAB",
- "KAlCLOBBBfpBJgokZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FjY291bnRM",
- "aW5rEiEKD2FjY291bnRfbGlua19pZBgIIAEoA0ID4EEDSAGIAQESVwoGc3Rh",
- "dHVzGAMgASgOMkcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2LmVudW1zLkFj",
- "Y291bnRMaW5rU3RhdHVzRW51bS5BY2NvdW50TGlua1N0YXR1cxJaCgR0eXBl",
- "GAQgASgOMkcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2LmVudW1zLkxpbmtl",
- "ZEFjY291bnRUeXBlRW51bS5MaW5rZWRBY2NvdW50VHlwZUID4EEDEnIKGXRo",
- "aXJkX3BhcnR5X2FwcF9hbmFseXRpY3MYBSABKAsySC5nb29nbGUuYWRzLmdv",
- "b2dsZWFkcy52MTYucmVzb3VyY2VzLlRoaXJkUGFydHlBcHBBbmFseXRpY3NM",
- "aW5rSWRlbnRpZmllckID4EEFSAA6YepBXgokZ29vZ2xlYWRzLmdvb2dsZWFw",
- "aXMuY29tL0FjY291bnRMaW5rEjZjdXN0b21lcnMve2N1c3RvbWVyX2lkfS9h",
- "Y2NvdW50TGlua3Mve2FjY291bnRfbGlua19pZH1CEAoObGlua2VkX2FjY291",
- "bnRCEgoQX2FjY291bnRfbGlua19pZCL0AQokVGhpcmRQYXJ0eUFwcEFuYWx5",
- "dGljc0xpbmtJZGVudGlmaWVyEisKGWFwcF9hbmFseXRpY3NfcHJvdmlkZXJf",
- "aWQYBCABKANCA+BBBUgAiAEBEhgKBmFwcF9pZBgFIAEoCUID4EEFSAGIAQES",
- "XAoKYXBwX3ZlbmRvchgDIAEoDjJDLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx",
- "Ni5lbnVtcy5Nb2JpbGVBcHBWZW5kb3JFbnVtLk1vYmlsZUFwcFZlbmRvckID",
- "4EEFQhwKGl9hcHBfYW5hbHl0aWNzX3Byb3ZpZGVyX2lkQgkKB19hcHBfaWRC",
- "ggIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTYucmVzb3VyY2VzQhBB",
- "Y2NvdW50TGlua1Byb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3Rv",
- "L2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTYvcmVzb3VyY2VzO3Jlc291",
- "cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxNi5SZXNvdXJj",
- "ZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTZcUmVzb3VyY2Vz6gImR29v",
- "Z2xlOjpBZHM6Okdvb2dsZUFkczo6VjE2OjpSZXNvdXJjZXNiBnByb3RvMw=="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V16.Enums.AccountLinkStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V16.Enums.LinkedAccountTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V16.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.V16.Resources.AccountLink), global::Google.Ads.GoogleAds.V16.Resources.AccountLink.Parser, new[]{ "ResourceName", "AccountLinkId", "Status", "Type", "ThirdPartyAppAnalytics" }, new[]{ "LinkedAccount", "AccountLinkId" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Resources.ThirdPartyAppAnalyticsLinkIdentifier), global::Google.Ads.GoogleAds.V16.Resources.ThirdPartyAppAnalyticsLinkIdentifier.Parser, new[]{ "AppAnalyticsProviderId", "AppId", "AppVendor" }, new[]{ "AppAnalyticsProviderId", "AppId" }, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// Represents the data sharing connection between a Google Ads account and
- /// another account
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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;
- }
-
- _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 readonly static long AccountLinkIdDefaultValue = 0L;
-
- 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 AccountLinkIdDefaultValue; } }
- 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.V16.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus status_ = global::Google.Ads.GoogleAds.V16.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.V16.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.V16.Enums.LinkedAccountTypeEnum.Types.LinkedAccountType type_ = global::Google.Ads.GoogleAds.V16.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.V16.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.V16.Resources.ThirdPartyAppAnalyticsLinkIdentifier ThirdPartyAppAnalytics {
- get { return linkedAccountCase_ == LinkedAccountOneofCase.ThirdPartyAppAnalytics ? (global::Google.Ads.GoogleAds.V16.Resources.ThirdPartyAppAnalyticsLinkIdentifier) linkedAccount_ : null; }
- set {
- linkedAccount_ = value;
- linkedAccountCase_ = value == null ? LinkedAccountOneofCase.None : LinkedAccountOneofCase.ThirdPartyAppAnalytics;
- }
- }
-
- private object linkedAccount_;
- /// Enum of possible cases for the "linked_account" oneof.
- public enum LinkedAccountOneofCase {
- None = 0,
- ThirdPartyAppAnalytics = 5,
- }
- 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 (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.V16.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus.Unspecified) hash ^= Status.GetHashCode();
- if (Type != global::Google.Ads.GoogleAds.V16.Enums.LinkedAccountTypeEnum.Types.LinkedAccountType.Unspecified) hash ^= Type.GetHashCode();
- if (linkedAccountCase_ == LinkedAccountOneofCase.ThirdPartyAppAnalytics) hash ^= ThirdPartyAppAnalytics.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.V16.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus.Unspecified) {
- output.WriteRawTag(24);
- output.WriteEnum((int) Status);
- }
- if (Type != global::Google.Ads.GoogleAds.V16.Enums.LinkedAccountTypeEnum.Types.LinkedAccountType.Unspecified) {
- output.WriteRawTag(32);
- output.WriteEnum((int) Type);
- }
- if (linkedAccountCase_ == LinkedAccountOneofCase.ThirdPartyAppAnalytics) {
- output.WriteRawTag(42);
- output.WriteMessage(ThirdPartyAppAnalytics);
- }
- if (HasAccountLinkId) {
- output.WriteRawTag(64);
- output.WriteInt64(AccountLinkId);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_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.V16.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus.Unspecified) {
- output.WriteRawTag(24);
- output.WriteEnum((int) Status);
- }
- if (Type != global::Google.Ads.GoogleAds.V16.Enums.LinkedAccountTypeEnum.Types.LinkedAccountType.Unspecified) {
- output.WriteRawTag(32);
- output.WriteEnum((int) Type);
- }
- if (linkedAccountCase_ == LinkedAccountOneofCase.ThirdPartyAppAnalytics) {
- output.WriteRawTag(42);
- output.WriteMessage(ThirdPartyAppAnalytics);
- }
- if (HasAccountLinkId) {
- output.WriteRawTag(64);
- output.WriteInt64(AccountLinkId);
- }
- if (_unknownFields != 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.V16.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus.Unspecified) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
- }
- if (Type != global::Google.Ads.GoogleAds.V16.Enums.LinkedAccountTypeEnum.Types.LinkedAccountType.Unspecified) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
- }
- if (linkedAccountCase_ == LinkedAccountOneofCase.ThirdPartyAppAnalytics) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(ThirdPartyAppAnalytics);
- }
- 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.V16.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus.Unspecified) {
- Status = other.Status;
- }
- if (other.Type != global::Google.Ads.GoogleAds.V16.Enums.LinkedAccountTypeEnum.Types.LinkedAccountType.Unspecified) {
- Type = other.Type;
- }
- switch (other.LinkedAccountCase) {
- case LinkedAccountOneofCase.ThirdPartyAppAnalytics:
- if (ThirdPartyAppAnalytics == null) {
- ThirdPartyAppAnalytics = new global::Google.Ads.GoogleAds.V16.Resources.ThirdPartyAppAnalyticsLinkIdentifier();
- }
- ThirdPartyAppAnalytics.MergeFrom(other.ThirdPartyAppAnalytics);
- 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.V16.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus) input.ReadEnum();
- break;
- }
- case 32: {
- Type = (global::Google.Ads.GoogleAds.V16.Enums.LinkedAccountTypeEnum.Types.LinkedAccountType) input.ReadEnum();
- break;
- }
- case 42: {
- global::Google.Ads.GoogleAds.V16.Resources.ThirdPartyAppAnalyticsLinkIdentifier subBuilder = new global::Google.Ads.GoogleAds.V16.Resources.ThirdPartyAppAnalyticsLinkIdentifier();
- if (linkedAccountCase_ == LinkedAccountOneofCase.ThirdPartyAppAnalytics) {
- subBuilder.MergeFrom(ThirdPartyAppAnalytics);
- }
- input.ReadMessage(subBuilder);
- ThirdPartyAppAnalytics = subBuilder;
- break;
- }
- case 64: {
- AccountLinkId = 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: {
- Status = (global::Google.Ads.GoogleAds.V16.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus) input.ReadEnum();
- break;
- }
- case 32: {
- Type = (global::Google.Ads.GoogleAds.V16.Enums.LinkedAccountTypeEnum.Types.LinkedAccountType) input.ReadEnum();
- break;
- }
- case 42: {
- global::Google.Ads.GoogleAds.V16.Resources.ThirdPartyAppAnalyticsLinkIdentifier subBuilder = new global::Google.Ads.GoogleAds.V16.Resources.ThirdPartyAppAnalyticsLinkIdentifier();
- if (linkedAccountCase_ == LinkedAccountOneofCase.ThirdPartyAppAnalytics) {
- subBuilder.MergeFrom(ThirdPartyAppAnalytics);
- }
- input.ReadMessage(subBuilder);
- ThirdPartyAppAnalytics = subBuilder;
- break;
- }
- case 64: {
- AccountLinkId = input.ReadInt64();
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- ///
- /// The identifiers of a Third Party App Analytics Link.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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 readonly static long AppAnalyticsProviderIdDefaultValue = 0L;
-
- 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 AppAnalyticsProviderIdDefaultValue; } }
- 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 readonly static string AppIdDefaultValue = "";
-
- 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_ ?? AppIdDefaultValue; }
- 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.V16.Enums.MobileAppVendorEnum.Types.MobileAppVendor appVendor_ = global::Google.Ads.GoogleAds.V16.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.V16.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.V16.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.V16.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.V16.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.V16.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.V16.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.V16.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.V16.Enums.MobileAppVendorEnum.Types.MobileAppVendor) input.ReadEnum();
- break;
- }
- case 32: {
- AppAnalyticsProviderId = input.ReadInt64();
- break;
- }
- case 42: {
- AppId = input.ReadString();
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code
diff --git a/Google.Ads.GoogleAds/src/V16/AccountLinkError.g.cs b/Google.Ads.GoogleAds/src/V16/AccountLinkError.g.cs
deleted file mode 100755
index 236b41963..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccountLinkError.g.cs
+++ /dev/null
@@ -1,238 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/ads/googleads/v16/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.V16.Errors {
-
- /// Holder for reflection information generated from google/ads/googleads/v16/errors/account_link_error.proto
- public static partial class AccountLinkErrorReflection {
-
- #region Descriptor
- /// File descriptor for google/ads/googleads/v16/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(
- "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvZXJyb3JzL2FjY291bnRfbGlu",
- "a19lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2LmVycm9y",
- "cyJzChRBY2NvdW50TGlua0Vycm9yRW51bSJbChBBY2NvdW50TGlua0Vycm9y",
- "Eg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEhIKDklOVkFMSURfU1RB",
- "VFVTEAISFQoRUEVSTUlTU0lPTl9ERU5JRUQQA0L1AQojY29tLmdvb2dsZS5h",
- "ZHMuZ29vZ2xlYWRzLnYxNi5lcnJvcnNCFUFjY291bnRMaW5rRXJyb3JQcm90",
- "b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fk",
- "cy9nb29nbGVhZHMvdjE2L2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUu",
- "QWRzLkdvb2dsZUFkcy5WMTYuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVB",
- "ZHNcVjE2XEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxNjo6",
- "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.V16.Errors.AccountLinkErrorEnum), global::Google.Ads.GoogleAds.V16.Errors.AccountLinkErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V16.Errors.AccountLinkErrorEnum.Types.AccountLinkError) }, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// Container for enum describing possible account link errors.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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/V16/AccountLinkResourceNames.g.cs b/Google.Ads.GoogleAds/src/V16/AccountLinkResourceNames.g.cs
deleted file mode 100755
index f596e5649..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccountLinkResourceNames.g.cs
+++ /dev/null
@@ -1,267 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-#pragma warning disable CS8981
-using gax = Google.Api.Gax;
-using sys = System;
-
-namespace Google.Ads.GoogleAds.V16.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();
-
- /// Determines whether two specified resource names have the same value.
- /// The first resource name to compare, or null.
- /// The second resource name to compare, or null.
- ///
- /// true if the value of is the same as the value of ; otherwise,
- /// false.
- ///
- public static bool operator ==(AccountLinkName a, AccountLinkName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false);
-
- /// Determines whether two specified resource names have different values.
- /// The first resource name to compare, or null.
- /// The second resource name to compare, or null.
- ///
- /// true if the value of is different from the value of ; otherwise,
- /// 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() ?? "";
- }
- }
-}
diff --git a/Google.Ads.GoogleAds/src/V16/AccountLinkService.g.cs b/Google.Ads.GoogleAds/src/V16/AccountLinkService.g.cs
deleted file mode 100755
index 787bb0f5e..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccountLinkService.g.cs
+++ /dev/null
@@ -1,1667 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/ads/googleads/v16/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.V16.Services {
-
- /// Holder for reflection information generated from google/ads/googleads/v16/services/account_link_service.proto
- public static partial class AccountLinkServiceReflection {
-
- #region Descriptor
- /// File descriptor for google/ads/googleads/v16/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(
- "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvc2VydmljZXMvYWNjb3VudF9s",
- "aW5rX3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5z",
- "ZXJ2aWNlcxo1Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE2L3Jlc291cmNlcy9h",
- "Y2NvdW50X2xpbmsucHJvdG8aHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJv",
- "dG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxk",
- "X2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvGiBn",
- "b29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90bxoXZ29vZ2xlL3JwYy9z",
- "dGF0dXMucHJvdG8igAEKGENyZWF0ZUFjY291bnRMaW5rUmVxdWVzdBIYCgtj",
- "dXN0b21lcl9pZBgBIAEoCUID4EECEkoKDGFjY291bnRfbGluaxgCIAEoCzIv",
- "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5yZXNvdXJjZXMuQWNjb3VudExp",
- "bmtCA+BBAiJdChlDcmVhdGVBY2NvdW50TGlua1Jlc3BvbnNlEkAKDXJlc291",
- "cmNlX25hbWUYASABKAlCKfpBJgokZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t",
- "L0FjY291bnRMaW5rIrUBChhNdXRhdGVBY2NvdW50TGlua1JlcXVlc3QSGAoL",
- "Y3VzdG9tZXJfaWQYASABKAlCA+BBAhJPCglvcGVyYXRpb24YAiABKAsyNy5n",
- "b29nbGUuYWRzLmdvb2dsZWFkcy52MTYuc2VydmljZXMuQWNjb3VudExpbmtP",
- "cGVyYXRpb25CA+BBAhIXCg9wYXJ0aWFsX2ZhaWx1cmUYAyABKAgSFQoNdmFs",
- "aWRhdGVfb25seRgEIAEoCCLUAQoUQWNjb3VudExpbmtPcGVyYXRpb24SLwoL",
- "dXBkYXRlX21hc2sYBCABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNr",
- "EkEKBnVwZGF0ZRgCIAEoCzIvLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5y",
- "ZXNvdXJjZXMuQWNjb3VudExpbmtIABI7CgZyZW1vdmUYAyABKAlCKfpBJgok",
- "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FjY291bnRMaW5rSABCCwoJb3Bl",
- "cmF0aW9uIpoBChlNdXRhdGVBY2NvdW50TGlua1Jlc3BvbnNlEkoKBnJlc3Vs",
- "dBgBIAEoCzI6Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5zZXJ2aWNlcy5N",
- "dXRhdGVBY2NvdW50TGlua1Jlc3VsdBIxChVwYXJ0aWFsX2ZhaWx1cmVfZXJy",
- "b3IYAiABKAsyEi5nb29nbGUucnBjLlN0YXR1cyJbChdNdXRhdGVBY2NvdW50",
- "TGlua1Jlc3VsdBJACg1yZXNvdXJjZV9uYW1lGAEgASgJQin6QSYKJGdvb2ds",
- "ZWFkcy5nb29nbGVhcGlzLmNvbS9BY2NvdW50TGluazKuBAoSQWNjb3VudExp",
- "bmtTZXJ2aWNlEugBChFDcmVhdGVBY2NvdW50TGluaxI7Lmdvb2dsZS5hZHMu",
- "Z29vZ2xlYWRzLnYxNi5zZXJ2aWNlcy5DcmVhdGVBY2NvdW50TGlua1JlcXVl",
- "c3QaPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTYuc2VydmljZXMuQ3JlYXRl",
- "QWNjb3VudExpbmtSZXNwb25zZSJY2kEYY3VzdG9tZXJfaWQsYWNjb3VudF9s",
- "aW5rgtPkkwI3IjIvdjE2L2N1c3RvbWVycy97Y3VzdG9tZXJfaWQ9Kn0vYWNj",
- "b3VudExpbmtzOmNyZWF0ZToBKhLlAQoRTXV0YXRlQWNjb3VudExpbmsSOy5n",
- "b29nbGUuYWRzLmdvb2dsZWFkcy52MTYuc2VydmljZXMuTXV0YXRlQWNjb3Vu",
- "dExpbmtSZXF1ZXN0GjwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2LnNlcnZp",
- "Y2VzLk11dGF0ZUFjY291bnRMaW5rUmVzcG9uc2UiVdpBFWN1c3RvbWVyX2lk",
- "LG9wZXJhdGlvboLT5JMCNyIyL3YxNi9jdXN0b21lcnMve2N1c3RvbWVyX2lk",
- "PSp9L2FjY291bnRMaW5rczptdXRhdGU6ASoaRcpBGGdvb2dsZWFkcy5nb29n",
- "bGVhcGlzLmNvbdJBJ2h0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgv",
- "YWR3b3Jkc0KDAgolY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5zZXJ2",
- "aWNlc0IXQWNjb3VudExpbmtTZXJ2aWNlUHJvdG9QAVpJZ29vZ2xlLmdvbGFu",
- "Zy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxNi9z",
- "ZXJ2aWNlcztzZXJ2aWNlc6ICA0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xlQWRz",
- "LlYxNi5TZXJ2aWNlc8oCIUdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxNlxTZXJ2",
- "aWNlc+oCJUdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxNjo6U2VydmljZXNi",
- "BnByb3RvMw=="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V16.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.V16.Services.CreateAccountLinkRequest), global::Google.Ads.GoogleAds.V16.Services.CreateAccountLinkRequest.Parser, new[]{ "CustomerId", "AccountLink" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Services.CreateAccountLinkResponse), global::Google.Ads.GoogleAds.V16.Services.CreateAccountLinkResponse.Parser, new[]{ "ResourceName" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Services.MutateAccountLinkRequest), global::Google.Ads.GoogleAds.V16.Services.MutateAccountLinkRequest.Parser, new[]{ "CustomerId", "Operation", "PartialFailure", "ValidateOnly" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Services.AccountLinkOperation), global::Google.Ads.GoogleAds.V16.Services.AccountLinkOperation.Parser, new[]{ "UpdateMask", "Update", "Remove" }, new[]{ "Operation" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Services.MutateAccountLinkResponse), global::Google.Ads.GoogleAds.V16.Services.MutateAccountLinkResponse.Parser, new[]{ "Result", "PartialFailureError" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Services.MutateAccountLinkResult), global::Google.Ads.GoogleAds.V16.Services.MutateAccountLinkResult.Parser, new[]{ "ResourceName" }, null, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// Request message for
- /// [AccountLinkService.CreateAccountLink][google.ads.googleads.v16.services.AccountLinkService.CreateAccountLink].
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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.V16.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.V16.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.V16.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.V16.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.V16.Resources.AccountLink();
- }
- input.ReadMessage(AccountLink);
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- ///
- /// Response message for
- /// [AccountLinkService.CreateAccountLink][google.ads.googleads.v16.services.AccountLinkService.CreateAccountLink].
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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.v16.services.AccountLinkService.MutateAccountLink].
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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.V16.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.V16.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.V16.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.V16.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.V16.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.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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.V16.Resources.AccountLink Update {
- get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V16.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 HasRemove ? (string) operation_ : ""; }
- set {
- operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- operationCase_ = OperationOneofCase.Remove;
- }
- }
- /// Gets whether the "remove" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasRemove {
- get { return operationCase_ == OperationOneofCase.Remove; }
- }
- /// Clears the value of the oneof if it's currently set to "remove"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearRemove() {
- if (HasRemove) {
- ClearOperation();
- }
- }
-
- 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 (HasRemove) 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 (HasRemove) {
- 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 (HasRemove) {
- 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 (HasRemove) {
- 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.V16.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.V16.Resources.AccountLink subBuilder = new global::Google.Ads.GoogleAds.V16.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.V16.Resources.AccountLink subBuilder = new global::Google.Ads.GoogleAds.V16.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.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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.V16.Services.MutateAccountLinkResult result_;
- ///
- /// Result for the mutate.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Ads.GoogleAds.V16.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.V16.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.V16.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.V16.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.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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/V16/AccountLinkServiceClient.g.cs b/Google.Ads.GoogleAds/src/V16/AccountLinkServiceClient.g.cs
deleted file mode 100755
index 54b963823..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccountLinkServiceClient.g.cs
+++ /dev/null
@@ -1,703 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-#pragma warning disable CS8981
-using gagvr = Google.Ads.GoogleAds.V16.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.V16.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, GetEffectiveSettings(Settings?.Clone()), Logger);
- }
-
- private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken)
- {
- Validate();
- grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false);
- return AccountLinkServiceClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), 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(new gaxgrpc::ClientHelper.Options
- {
- Settings = effectiveSettings,
- Logger = 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/V16/AccountLinkServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V16/AccountLinkServiceGrpc.g.cs
deleted file mode 100755
index b1d7a3c1a..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccountLinkServiceGrpc.g.cs
+++ /dev/null
@@ -1,412 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/ads/googleads/v16/services/account_link_service.proto
-//
-// Original file comments:
-// 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.
-//
-#pragma warning disable 0414, 1591, 8981, 0612
-#region Designer generated code
-
-using grpc = global::Grpc.Core;
-
-namespace Google.Ads.GoogleAds.V16.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.v16.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_v16_services_CreateAccountLinkRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V16.Services.CreateAccountLinkRequest.Parser));
- [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
- static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v16_services_CreateAccountLinkResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V16.Services.CreateAccountLinkResponse.Parser));
- [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
- static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v16_services_MutateAccountLinkRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V16.Services.MutateAccountLinkRequest.Parser));
- [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
- static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v16_services_MutateAccountLinkResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V16.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_v16_services_CreateAccountLinkRequest,
- __Marshaller_google_ads_googleads_v16_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_v16_services_MutateAccountLinkRequest,
- __Marshaller_google_ads_googleads_v16_services_MutateAccountLinkResponse);
-
- /// Service descriptor
- public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
- {
- get { return global::Google.Ads.GoogleAds.V16.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.V16.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.V16.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.V16.Services.CreateAccountLinkResponse CreateAccountLink(global::Google.Ads.GoogleAds.V16.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.V16.Services.CreateAccountLinkResponse CreateAccountLink(global::Google.Ads.GoogleAds.V16.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.V16.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.V16.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.V16.Services.MutateAccountLinkResponse MutateAccountLink(global::Google.Ads.GoogleAds.V16.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.V16.Services.MutateAccountLinkResponse MutateAccountLink(global::Google.Ads.GoogleAds.V16.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.V16.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.V16.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/V16/AccountLinkServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V16/AccountLinkServiceResourceNames.g.cs
deleted file mode 100755
index f8e064fa7..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccountLinkServiceResourceNames.g.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-#pragma warning disable CS8981
-using gagvr = Google.Ads.GoogleAds.V16.Resources;
-
-namespace Google.Ads.GoogleAds.V16.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/V16/AccountLinkStatus.g.cs b/Google.Ads.GoogleAds/src/V16/AccountLinkStatus.g.cs
deleted file mode 100755
index 2fbec2b23..000000000
--- a/Google.Ads.GoogleAds/src/V16/AccountLinkStatus.g.cs
+++ /dev/null
@@ -1,258 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/ads/googleads/v16/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.V16.Enums {
-
- /// Holder for reflection information generated from google/ads/googleads/v16/enums/account_link_status.proto
- public static partial class AccountLinkStatusReflection {
-
- #region Descriptor
- /// File descriptor for google/ads/googleads/v16/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(
- "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvZW51bXMvYWNjb3VudF9saW5r",
- "X3N0YXR1cy5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2LmVudW1z",
- "IqUBChVBY2NvdW50TGlua1N0YXR1c0VudW0iiwEKEUFjY291bnRMaW5rU3Rh",
- "dHVzEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEgsKB0VOQUJMRUQQ",
- "AhILCgdSRU1PVkVEEAMSDQoJUkVRVUVTVEVEEAQSFAoQUEVORElOR19BUFBS",
- "T1ZBTBAFEgwKCFJFSkVDVEVEEAYSCwoHUkVWT0tFRBAHQvABCiJjb20uZ29v",
- "Z2xlLmFkcy5nb29nbGVhZHMudjE2LmVudW1zQhZBY2NvdW50TGlua1N0YXR1",
- "c1Byb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFw",
- "aXMvYWRzL2dvb2dsZWFkcy92MTYvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29n",
- "bGUuQWRzLkdvb2dsZUFkcy5WMTYuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2ds",
- "ZUFkc1xWMTZcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTY6",
- "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.V16.Enums.AccountLinkStatusEnum), global::Google.Ads.GoogleAds.V16.Enums.AccountLinkStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V16.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus) }, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// Container for enum describing possible statuses of an account link.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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/V16/Ad.g.cs b/Google.Ads.GoogleAds/src/V16/Ad.g.cs
deleted file mode 100755
index ed950cb31..000000000
--- a/Google.Ads.GoogleAds/src/V16/Ad.g.cs
+++ /dev/null
@@ -1,2426 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/ads/googleads/v16/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.V16.Resources {
-
- /// Holder for reflection information generated from google/ads/googleads/v16/resources/ad.proto
- public static partial class AdReflection {
-
- #region Descriptor
- /// File descriptor for google/ads/googleads/v16/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(
- "Citnb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvcmVzb3VyY2VzL2FkLnByb3Rv",
- "EiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTYucmVzb3VyY2VzGjNnb29nbGUv",
- "YWRzL2dvb2dsZWFkcy92MTYvY29tbW9uL2FkX3R5cGVfaW5mb3MucHJvdG8a",
- "Nmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNi9jb21tb24vY3VzdG9tX3BhcmFt",
- "ZXRlci5wcm90bxozZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE2L2NvbW1vbi9m",
- "aW5hbF9hcHBfdXJsLnByb3RvGjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTYv",
- "Y29tbW9uL3VybF9jb2xsZWN0aW9uLnByb3RvGixnb29nbGUvYWRzL2dvb2ds",
- "ZWFkcy92MTYvZW51bXMvYWRfdHlwZS5wcm90bxorZ29vZ2xlL2Fkcy9nb29n",
- "bGVhZHMvdjE2L2VudW1zL2RldmljZS5wcm90bxpBZ29vZ2xlL2Fkcy9nb29n",
- "bGVhZHMvdjE2L2VudW1zL3N5c3RlbV9tYW5hZ2VkX2VudGl0eV9zb3VyY2Uu",
- "cHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2ds",
- "ZS9hcGkvcmVzb3VyY2UucHJvdG8i5RgKAkFkEjoKDXJlc291cmNlX25hbWUY",
- "JSABKAlCI+BBBfpBHQobZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FkEhQK",
- "AmlkGCggASgDQgPgQQNIAYgBARISCgpmaW5hbF91cmxzGCkgAygJEkQKDmZp",
- "bmFsX2FwcF91cmxzGCMgAygLMiwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2",
- "LmNvbW1vbi5GaW5hbEFwcFVybBIZChFmaW5hbF9tb2JpbGVfdXJscxgqIAMo",
- "CRIiChV0cmFja2luZ191cmxfdGVtcGxhdGUYKyABKAlIAogBARIdChBmaW5h",
- "bF91cmxfc3VmZml4GCwgASgJSAOIAQESTwoVdXJsX2N1c3RvbV9wYXJhbWV0",
- "ZXJzGAogAygLMjAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2LmNvbW1vbi5D",
- "dXN0b21QYXJhbWV0ZXISGAoLZGlzcGxheV91cmwYLSABKAlIBIgBARJECgR0",
- "eXBlGAUgASgOMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2LmVudW1zLkFk",
- "VHlwZUVudW0uQWRUeXBlQgPgQQMSJQoTYWRkZWRfYnlfZ29vZ2xlX2Fkcxgu",
- "IAEoCEID4EEDSAWIAQESTAoRZGV2aWNlX3ByZWZlcmVuY2UYFCABKA4yMS5n",
- "b29nbGUuYWRzLmdvb2dsZWFkcy52MTYuZW51bXMuRGV2aWNlRW51bS5EZXZp",
- "Y2USRwoPdXJsX2NvbGxlY3Rpb25zGBogAygLMi4uZ29vZ2xlLmFkcy5nb29n",
- "bGVhZHMudjE2LmNvbW1vbi5VcmxDb2xsZWN0aW9uEhYKBG5hbWUYLyABKAlC",
- "A+BBBUgGiAEBEogBCh5zeXN0ZW1fbWFuYWdlZF9yZXNvdXJjZV9zb3VyY2UY",
- "GyABKA4yWy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTYuZW51bXMuU3lzdGVt",
- "TWFuYWdlZFJlc291cmNlU291cmNlRW51bS5TeXN0ZW1NYW5hZ2VkUmVzb3Vy",
- "Y2VTb3VyY2VCA+BBAxJDCgd0ZXh0X2FkGAYgASgLMisuZ29vZ2xlLmFkcy5n",
- "b29nbGVhZHMudjE2LmNvbW1vbi5UZXh0QWRJbmZvQgPgQQVIABJPChBleHBh",
- "bmRlZF90ZXh0X2FkGAcgASgLMjMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2",
- "LmNvbW1vbi5FeHBhbmRlZFRleHRBZEluZm9IABI+CgdjYWxsX2FkGDEgASgL",
- "MisuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2LmNvbW1vbi5DYWxsQWRJbmZv",
- "SAASZwoaZXhwYW5kZWRfZHluYW1pY19zZWFyY2hfYWQYDiABKAsyPC5nb29n",
- "bGUuYWRzLmdvb2dsZWFkcy52MTYuY29tbW9uLkV4cGFuZGVkRHluYW1pY1Nl",
- "YXJjaEFkSW5mb0ID4EEFSAASQAoIaG90ZWxfYWQYDyABKAsyLC5nb29nbGUu",
- "YWRzLmdvb2dsZWFkcy52MTYuY29tbW9uLkhvdGVsQWRJbmZvSAASUQoRc2hv",
- "cHBpbmdfc21hcnRfYWQYESABKAsyNC5nb29nbGUuYWRzLmdvb2dsZWFkcy52",
- "MTYuY29tbW9uLlNob3BwaW5nU21hcnRBZEluZm9IABJVChNzaG9wcGluZ19w",
- "cm9kdWN0X2FkGBIgASgLMjYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2LmNv",
- "bW1vbi5TaG9wcGluZ1Byb2R1Y3RBZEluZm9IABJFCghpbWFnZV9hZBgWIAEo",
- "CzIsLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5jb21tb24uSW1hZ2VBZElu",
- "Zm9CA+BBBUgAEkAKCHZpZGVvX2FkGBggASgLMiwuZ29vZ2xlLmFkcy5nb29n",
- "bGVhZHMudjE2LmNvbW1vbi5WaWRlb0FkSW5mb0gAElUKE3ZpZGVvX3Jlc3Bv",
- "bnNpdmVfYWQYJyABKAsyNi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTYuY29t",
- "bW9uLlZpZGVvUmVzcG9uc2l2ZUFkSW5mb0gAElcKFHJlc3BvbnNpdmVfc2Vh",
- "cmNoX2FkGBkgASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2LmNvbW1v",
- "bi5SZXNwb25zaXZlU2VhcmNoQWRJbmZvSAASZgocbGVnYWN5X3Jlc3BvbnNp",
- "dmVfZGlzcGxheV9hZBgcIAEoCzI+Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx",
- "Ni5jb21tb24uTGVnYWN5UmVzcG9uc2l2ZURpc3BsYXlBZEluZm9IABI8CgZh",
- "cHBfYWQYHSABKAsyKi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTYuY29tbW9u",
- "LkFwcEFkSW5mb0gAEl0KFWxlZ2FjeV9hcHBfaW5zdGFsbF9hZBgeIAEoCzI3",
- "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5jb21tb24uTGVnYWN5QXBwSW5z",
- "dGFsbEFkSW5mb0ID4EEFSAASWQoVcmVzcG9uc2l2ZV9kaXNwbGF5X2FkGB8g",
- "ASgLMjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE2LmNvbW1vbi5SZXNwb25z",
- "aXZlRGlzcGxheUFkSW5mb0gAEkAKCGxvY2FsX2FkGCAgASgLMiwuZ29vZ2xl",
- "LmFkcy5nb29nbGVhZHMudjE2LmNvbW1vbi5Mb2NhbEFkSW5mb0gAElEKEWRp",
- "c3BsYXlfdXBsb2FkX2FkGCEgASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMu",
- "djE2LmNvbW1vbi5EaXNwbGF5VXBsb2FkQWRJbmZvSAASUQoRYXBwX2VuZ2Fn",
- "ZW1lbnRfYWQYIiABKAsyNC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTYuY29t",
- "bW9uLkFwcEVuZ2FnZW1lbnRBZEluZm9IABJqCh5zaG9wcGluZ19jb21wYXJp",
- "c29uX2xpc3RpbmdfYWQYJCABKAsyQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52",
- "MTYuY29tbW9uLlNob3BwaW5nQ29tcGFyaXNvbkxpc3RpbmdBZEluZm9IABJR",
- "ChFzbWFydF9jYW1wYWlnbl9hZBgwIAEoCzI0Lmdvb2dsZS5hZHMuZ29vZ2xl",
- "YWRzLnYxNi5jb21tb24uU21hcnRDYW1wYWlnbkFkSW5mb0gAElwKF2FwcF9w",
- "cmVfcmVnaXN0cmF0aW9uX2FkGDIgASgLMjkuZ29vZ2xlLmFkcy5nb29nbGVh",
- "ZHMudjE2LmNvbW1vbi5BcHBQcmVSZWdpc3RyYXRpb25BZEluZm9IABJeChhk",
- "aXNjb3ZlcnlfbXVsdGlfYXNzZXRfYWQYMyABKAsyOi5nb29nbGUuYWRzLmdv",
- "b2dsZWFkcy52MTYuY29tbW9uLkRpc2NvdmVyeU11bHRpQXNzZXRBZEluZm9I",
- "ABJZChVkaXNjb3ZlcnlfY2Fyb3VzZWxfYWQYNCABKAsyOC5nb29nbGUuYWRz",
- "Lmdvb2dsZWFkcy52MTYuY29tbW9uLkRpc2NvdmVyeUNhcm91c2VsQWRJbmZv",
- "SAASaAodZGlzY292ZXJ5X3ZpZGVvX3Jlc3BvbnNpdmVfYWQYPCABKAsyPy5n",
- "b29nbGUuYWRzLmdvb2dsZWFkcy52MTYuY29tbW9uLkRpc2NvdmVyeVZpZGVv",
- "UmVzcG9uc2l2ZUFkSW5mb0gAElgKFWRlbWFuZF9nZW5fcHJvZHVjdF9hZBg9",
- "IAEoCzI3Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5jb21tb24uRGVtYW5k",
- "R2VuUHJvZHVjdEFkSW5mb0gAEkIKCXRyYXZlbF9hZBg2IAEoCzItLmdvb2ds",
- "ZS5hZHMuZ29vZ2xlYWRzLnYxNi5jb21tb24uVHJhdmVsQWRJbmZvSAA6RepB",
- "QgobZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FkEiNjdXN0b21lcnMve2N1",
- "c3RvbWVyX2lkfS9hZHMve2FkX2lkfUIJCgdhZF9kYXRhQgUKA19pZEIYChZf",
- "dHJhY2tpbmdfdXJsX3RlbXBsYXRlQhMKEV9maW5hbF91cmxfc3VmZml4Qg4K",
- "DF9kaXNwbGF5X3VybEIWChRfYWRkZWRfYnlfZ29vZ2xlX2Fkc0IHCgVfbmFt",
- "ZUL5AQomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5yZXNvdXJjZXNC",
- "B0FkUHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xl",
- "YXBpcy9hZHMvZ29vZ2xlYWRzL3YxNi9yZXNvdXJjZXM7cmVzb3VyY2VzogID",
- "R0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjE2LlJlc291cmNlc8oCIkdv",
- "b2dsZVxBZHNcR29vZ2xlQWRzXFYxNlxSZXNvdXJjZXPqAiZHb29nbGU6OkFk",
- "czo6R29vZ2xlQWRzOjpWMTY6OlJlc291cmNlc2IGcHJvdG8z"));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V16.Common.AdTypeInfosReflection.Descriptor, global::Google.Ads.GoogleAds.V16.Common.CustomParameterReflection.Descriptor, global::Google.Ads.GoogleAds.V16.Common.FinalAppUrlReflection.Descriptor, global::Google.Ads.GoogleAds.V16.Common.UrlCollectionReflection.Descriptor, global::Google.Ads.GoogleAds.V16.Enums.AdTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V16.Enums.DeviceReflection.Descriptor, global::Google.Ads.GoogleAds.V16.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.V16.Resources.Ad), global::Google.Ads.GoogleAds.V16.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", "DiscoveryVideoResponsiveAd", "DemandGenProductAd", "TravelAd" }, new[]{ "AdData", "Id", "TrackingUrlTemplate", "FinalUrlSuffix", "DisplayUrl", "AddedByGoogleAds", "Name" }, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// An ad.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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;
- case AdDataOneofCase.DiscoveryVideoResponsiveAd:
- DiscoveryVideoResponsiveAd = other.DiscoveryVideoResponsiveAd.Clone();
- break;
- case AdDataOneofCase.DemandGenProductAd:
- DemandGenProductAd = other.DemandGenProductAd.Clone();
- break;
- case AdDataOneofCase.TravelAd:
- TravelAd = other.TravelAd.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 readonly static long IdDefaultValue = 0L;
-
- 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 IdDefaultValue; } }
- 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.V16.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 readonly static string TrackingUrlTemplateDefaultValue = "";
-
- 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_ ?? TrackingUrlTemplateDefaultValue; }
- 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 readonly static string FinalUrlSuffixDefaultValue = "";
-
- 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_ ?? FinalUrlSuffixDefaultValue; }
- 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.V16.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 readonly static string DisplayUrlDefaultValue = "";
-
- 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_ ?? DisplayUrlDefaultValue; }
- 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.V16.Enums.AdTypeEnum.Types.AdType type_ = global::Google.Ads.GoogleAds.V16.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.V16.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 readonly static bool AddedByGoogleAdsDefaultValue = false;
-
- 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 AddedByGoogleAdsDefaultValue; } }
- 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.V16.Enums.DeviceEnum.Types.Device devicePreference_ = global::Google.Ads.GoogleAds.V16.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.V16.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.V16.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 readonly static string NameDefaultValue = "";
-
- 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_ ?? NameDefaultValue; }
- 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.V16.Enums.SystemManagedResourceSourceEnum.Types.SystemManagedResourceSource systemManagedResourceSource_ = global::Google.Ads.GoogleAds.V16.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.V16.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.V16.Common.TextAdInfo TextAd {
- get { return adDataCase_ == AdDataOneofCase.TextAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.ExpandedTextAdInfo ExpandedTextAd {
- get { return adDataCase_ == AdDataOneofCase.ExpandedTextAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.CallAdInfo CallAd {
- get { return adDataCase_ == AdDataOneofCase.CallAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.ExpandedDynamicSearchAdInfo ExpandedDynamicSearchAd {
- get { return adDataCase_ == AdDataOneofCase.ExpandedDynamicSearchAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.HotelAdInfo HotelAd {
- get { return adDataCase_ == AdDataOneofCase.HotelAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.ShoppingSmartAdInfo ShoppingSmartAd {
- get { return adDataCase_ == AdDataOneofCase.ShoppingSmartAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.ShoppingProductAdInfo ShoppingProductAd {
- get { return adDataCase_ == AdDataOneofCase.ShoppingProductAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.ImageAdInfo ImageAd {
- get { return adDataCase_ == AdDataOneofCase.ImageAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.VideoAdInfo VideoAd {
- get { return adDataCase_ == AdDataOneofCase.VideoAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.VideoResponsiveAdInfo VideoResponsiveAd {
- get { return adDataCase_ == AdDataOneofCase.VideoResponsiveAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.ResponsiveSearchAdInfo ResponsiveSearchAd {
- get { return adDataCase_ == AdDataOneofCase.ResponsiveSearchAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.LegacyResponsiveDisplayAdInfo LegacyResponsiveDisplayAd {
- get { return adDataCase_ == AdDataOneofCase.LegacyResponsiveDisplayAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.AppAdInfo AppAd {
- get { return adDataCase_ == AdDataOneofCase.AppAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.LegacyAppInstallAdInfo LegacyAppInstallAd {
- get { return adDataCase_ == AdDataOneofCase.LegacyAppInstallAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.ResponsiveDisplayAdInfo ResponsiveDisplayAd {
- get { return adDataCase_ == AdDataOneofCase.ResponsiveDisplayAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.LocalAdInfo LocalAd {
- get { return adDataCase_ == AdDataOneofCase.LocalAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.DisplayUploadAdInfo DisplayUploadAd {
- get { return adDataCase_ == AdDataOneofCase.DisplayUploadAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.AppEngagementAdInfo AppEngagementAd {
- get { return adDataCase_ == AdDataOneofCase.AppEngagementAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.ShoppingComparisonListingAdInfo ShoppingComparisonListingAd {
- get { return adDataCase_ == AdDataOneofCase.ShoppingComparisonListingAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.SmartCampaignAdInfo SmartCampaignAd {
- get { return adDataCase_ == AdDataOneofCase.SmartCampaignAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.AppPreRegistrationAdInfo AppPreRegistrationAd {
- get { return adDataCase_ == AdDataOneofCase.AppPreRegistrationAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.DiscoveryMultiAssetAdInfo DiscoveryMultiAssetAd {
- get { return adDataCase_ == AdDataOneofCase.DiscoveryMultiAssetAd ? (global::Google.Ads.GoogleAds.V16.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.V16.Common.DiscoveryCarouselAdInfo DiscoveryCarouselAd {
- get { return adDataCase_ == AdDataOneofCase.DiscoveryCarouselAd ? (global::Google.Ads.GoogleAds.V16.Common.DiscoveryCarouselAdInfo) adData_ : null; }
- set {
- adData_ = value;
- adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.DiscoveryCarouselAd;
- }
- }
-
- /// Field number for the "discovery_video_responsive_ad" field.
- public const int DiscoveryVideoResponsiveAdFieldNumber = 60;
- ///
- /// Details pertaining to a discovery video responsive ad.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Ads.GoogleAds.V16.Common.DiscoveryVideoResponsiveAdInfo DiscoveryVideoResponsiveAd {
- get { return adDataCase_ == AdDataOneofCase.DiscoveryVideoResponsiveAd ? (global::Google.Ads.GoogleAds.V16.Common.DiscoveryVideoResponsiveAdInfo) adData_ : null; }
- set {
- adData_ = value;
- adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.DiscoveryVideoResponsiveAd;
- }
- }
-
- /// Field number for the "demand_gen_product_ad" field.
- public const int DemandGenProductAdFieldNumber = 61;
- ///
- /// Details pertaining to a Demand Gen product ad.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Ads.GoogleAds.V16.Common.DemandGenProductAdInfo DemandGenProductAd {
- get { return adDataCase_ == AdDataOneofCase.DemandGenProductAd ? (global::Google.Ads.GoogleAds.V16.Common.DemandGenProductAdInfo) adData_ : null; }
- set {
- adData_ = value;
- adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.DemandGenProductAd;
- }
- }
-
- /// Field number for the "travel_ad" field.
- public const int TravelAdFieldNumber = 54;
- ///
- /// Details pertaining to a travel ad.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::Google.Ads.GoogleAds.V16.Common.TravelAdInfo TravelAd {
- get { return adDataCase_ == AdDataOneofCase.TravelAd ? (global::Google.Ads.GoogleAds.V16.Common.TravelAdInfo) adData_ : null; }
- set {
- adData_ = value;
- adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.TravelAd;
- }
- }
-
- 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,
- DiscoveryVideoResponsiveAd = 60,
- DemandGenProductAd = 61,
- TravelAd = 54,
- }
- 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 (!object.Equals(DiscoveryVideoResponsiveAd, other.DiscoveryVideoResponsiveAd)) return false;
- if (!object.Equals(DemandGenProductAd, other.DemandGenProductAd)) return false;
- if (!object.Equals(TravelAd, other.TravelAd)) 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.V16.Enums.AdTypeEnum.Types.AdType.Unspecified) hash ^= Type.GetHashCode();
- if (HasAddedByGoogleAds) hash ^= AddedByGoogleAds.GetHashCode();
- if (DevicePreference != global::Google.Ads.GoogleAds.V16.Enums.DeviceEnum.Types.Device.Unspecified) hash ^= DevicePreference.GetHashCode();
- hash ^= urlCollections_.GetHashCode();
- if (HasName) hash ^= Name.GetHashCode();
- if (SystemManagedResourceSource != global::Google.Ads.GoogleAds.V16.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();
- if (adDataCase_ == AdDataOneofCase.DiscoveryVideoResponsiveAd) hash ^= DiscoveryVideoResponsiveAd.GetHashCode();
- if (adDataCase_ == AdDataOneofCase.DemandGenProductAd) hash ^= DemandGenProductAd.GetHashCode();
- if (adDataCase_ == AdDataOneofCase.TravelAd) hash ^= TravelAd.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.V16.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.V16.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.V16.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 (adDataCase_ == AdDataOneofCase.TravelAd) {
- output.WriteRawTag(178, 3);
- output.WriteMessage(TravelAd);
- }
- if (adDataCase_ == AdDataOneofCase.DiscoveryVideoResponsiveAd) {
- output.WriteRawTag(226, 3);
- output.WriteMessage(DiscoveryVideoResponsiveAd);
- }
- if (adDataCase_ == AdDataOneofCase.DemandGenProductAd) {
- output.WriteRawTag(234, 3);
- output.WriteMessage(DemandGenProductAd);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
-
- #if !GOOGLE_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.V16.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.V16.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.V16.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 (adDataCase_ == AdDataOneofCase.TravelAd) {
- output.WriteRawTag(178, 3);
- output.WriteMessage(TravelAd);
- }
- if (adDataCase_ == AdDataOneofCase.DiscoveryVideoResponsiveAd) {
- output.WriteRawTag(226, 3);
- output.WriteMessage(DiscoveryVideoResponsiveAd);
- }
- if (adDataCase_ == AdDataOneofCase.DemandGenProductAd) {
- output.WriteRawTag(234, 3);
- output.WriteMessage(DemandGenProductAd);
- }
- if (_unknownFields != 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.V16.Enums.AdTypeEnum.Types.AdType.Unspecified) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
- }
- if (HasAddedByGoogleAds) {
- size += 2 + 1;
- }
- if (DevicePreference != global::Google.Ads.GoogleAds.V16.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.V16.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 (adDataCase_ == AdDataOneofCase.DiscoveryVideoResponsiveAd) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(DiscoveryVideoResponsiveAd);
- }
- if (adDataCase_ == AdDataOneofCase.DemandGenProductAd) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(DemandGenProductAd);
- }
- if (adDataCase_ == AdDataOneofCase.TravelAd) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(TravelAd);
- }
- 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.V16.Enums.AdTypeEnum.Types.AdType.Unspecified) {
- Type = other.Type;
- }
- if (other.HasAddedByGoogleAds) {
- AddedByGoogleAds = other.AddedByGoogleAds;
- }
- if (other.DevicePreference != global::Google.Ads.GoogleAds.V16.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.V16.Enums.SystemManagedResourceSourceEnum.Types.SystemManagedResourceSource.Unspecified) {
- SystemManagedResourceSource = other.SystemManagedResourceSource;
- }
- switch (other.AdDataCase) {
- case AdDataOneofCase.TextAd:
- if (TextAd == null) {
- TextAd = new global::Google.Ads.GoogleAds.V16.Common.TextAdInfo();
- }
- TextAd.MergeFrom(other.TextAd);
- break;
- case AdDataOneofCase.ExpandedTextAd:
- if (ExpandedTextAd == null) {
- ExpandedTextAd = new global::Google.Ads.GoogleAds.V16.Common.ExpandedTextAdInfo();
- }
- ExpandedTextAd.MergeFrom(other.ExpandedTextAd);
- break;
- case AdDataOneofCase.CallAd:
- if (CallAd == null) {
- CallAd = new global::Google.Ads.GoogleAds.V16.Common.CallAdInfo();
- }
- CallAd.MergeFrom(other.CallAd);
- break;
- case AdDataOneofCase.ExpandedDynamicSearchAd:
- if (ExpandedDynamicSearchAd == null) {
- ExpandedDynamicSearchAd = new global::Google.Ads.GoogleAds.V16.Common.ExpandedDynamicSearchAdInfo();
- }
- ExpandedDynamicSearchAd.MergeFrom(other.ExpandedDynamicSearchAd);
- break;
- case AdDataOneofCase.HotelAd:
- if (HotelAd == null) {
- HotelAd = new global::Google.Ads.GoogleAds.V16.Common.HotelAdInfo();
- }
- HotelAd.MergeFrom(other.HotelAd);
- break;
- case AdDataOneofCase.ShoppingSmartAd:
- if (ShoppingSmartAd == null) {
- ShoppingSmartAd = new global::Google.Ads.GoogleAds.V16.Common.ShoppingSmartAdInfo();
- }
- ShoppingSmartAd.MergeFrom(other.ShoppingSmartAd);
- break;
- case AdDataOneofCase.ShoppingProductAd:
- if (ShoppingProductAd == null) {
- ShoppingProductAd = new global::Google.Ads.GoogleAds.V16.Common.ShoppingProductAdInfo();
- }
- ShoppingProductAd.MergeFrom(other.ShoppingProductAd);
- break;
- case AdDataOneofCase.ImageAd:
- if (ImageAd == null) {
- ImageAd = new global::Google.Ads.GoogleAds.V16.Common.ImageAdInfo();
- }
- ImageAd.MergeFrom(other.ImageAd);
- break;
- case AdDataOneofCase.VideoAd:
- if (VideoAd == null) {
- VideoAd = new global::Google.Ads.GoogleAds.V16.Common.VideoAdInfo();
- }
- VideoAd.MergeFrom(other.VideoAd);
- break;
- case AdDataOneofCase.VideoResponsiveAd:
- if (VideoResponsiveAd == null) {
- VideoResponsiveAd = new global::Google.Ads.GoogleAds.V16.Common.VideoResponsiveAdInfo();
- }
- VideoResponsiveAd.MergeFrom(other.VideoResponsiveAd);
- break;
- case AdDataOneofCase.ResponsiveSearchAd:
- if (ResponsiveSearchAd == null) {
- ResponsiveSearchAd = new global::Google.Ads.GoogleAds.V16.Common.ResponsiveSearchAdInfo();
- }
- ResponsiveSearchAd.MergeFrom(other.ResponsiveSearchAd);
- break;
- case AdDataOneofCase.LegacyResponsiveDisplayAd:
- if (LegacyResponsiveDisplayAd == null) {
- LegacyResponsiveDisplayAd = new global::Google.Ads.GoogleAds.V16.Common.LegacyResponsiveDisplayAdInfo();
- }
- LegacyResponsiveDisplayAd.MergeFrom(other.LegacyResponsiveDisplayAd);
- break;
- case AdDataOneofCase.AppAd:
- if (AppAd == null) {
- AppAd = new global::Google.Ads.GoogleAds.V16.Common.AppAdInfo();
- }
- AppAd.MergeFrom(other.AppAd);
- break;
- case AdDataOneofCase.LegacyAppInstallAd:
- if (LegacyAppInstallAd == null) {
- LegacyAppInstallAd = new global::Google.Ads.GoogleAds.V16.Common.LegacyAppInstallAdInfo();
- }
- LegacyAppInstallAd.MergeFrom(other.LegacyAppInstallAd);
- break;
- case AdDataOneofCase.ResponsiveDisplayAd:
- if (ResponsiveDisplayAd == null) {
- ResponsiveDisplayAd = new global::Google.Ads.GoogleAds.V16.Common.ResponsiveDisplayAdInfo();
- }
- ResponsiveDisplayAd.MergeFrom(other.ResponsiveDisplayAd);
- break;
- case AdDataOneofCase.LocalAd:
- if (LocalAd == null) {
- LocalAd = new global::Google.Ads.GoogleAds.V16.Common.LocalAdInfo();
- }
- LocalAd.MergeFrom(other.LocalAd);
- break;
- case AdDataOneofCase.DisplayUploadAd:
- if (DisplayUploadAd == null) {
- DisplayUploadAd = new global::Google.Ads.GoogleAds.V16.Common.DisplayUploadAdInfo();
- }
- DisplayUploadAd.MergeFrom(other.DisplayUploadAd);
- break;
- case AdDataOneofCase.AppEngagementAd:
- if (AppEngagementAd == null) {
- AppEngagementAd = new global::Google.Ads.GoogleAds.V16.Common.AppEngagementAdInfo();
- }
- AppEngagementAd.MergeFrom(other.AppEngagementAd);
- break;
- case AdDataOneofCase.ShoppingComparisonListingAd:
- if (ShoppingComparisonListingAd == null) {
- ShoppingComparisonListingAd = new global::Google.Ads.GoogleAds.V16.Common.ShoppingComparisonListingAdInfo();
- }
- ShoppingComparisonListingAd.MergeFrom(other.ShoppingComparisonListingAd);
- break;
- case AdDataOneofCase.SmartCampaignAd:
- if (SmartCampaignAd == null) {
- SmartCampaignAd = new global::Google.Ads.GoogleAds.V16.Common.SmartCampaignAdInfo();
- }
- SmartCampaignAd.MergeFrom(other.SmartCampaignAd);
- break;
- case AdDataOneofCase.AppPreRegistrationAd:
- if (AppPreRegistrationAd == null) {
- AppPreRegistrationAd = new global::Google.Ads.GoogleAds.V16.Common.AppPreRegistrationAdInfo();
- }
- AppPreRegistrationAd.MergeFrom(other.AppPreRegistrationAd);
- break;
- case AdDataOneofCase.DiscoveryMultiAssetAd:
- if (DiscoveryMultiAssetAd == null) {
- DiscoveryMultiAssetAd = new global::Google.Ads.GoogleAds.V16.Common.DiscoveryMultiAssetAdInfo();
- }
- DiscoveryMultiAssetAd.MergeFrom(other.DiscoveryMultiAssetAd);
- break;
- case AdDataOneofCase.DiscoveryCarouselAd:
- if (DiscoveryCarouselAd == null) {
- DiscoveryCarouselAd = new global::Google.Ads.GoogleAds.V16.Common.DiscoveryCarouselAdInfo();
- }
- DiscoveryCarouselAd.MergeFrom(other.DiscoveryCarouselAd);
- break;
- case AdDataOneofCase.DiscoveryVideoResponsiveAd:
- if (DiscoveryVideoResponsiveAd == null) {
- DiscoveryVideoResponsiveAd = new global::Google.Ads.GoogleAds.V16.Common.DiscoveryVideoResponsiveAdInfo();
- }
- DiscoveryVideoResponsiveAd.MergeFrom(other.DiscoveryVideoResponsiveAd);
- break;
- case AdDataOneofCase.DemandGenProductAd:
- if (DemandGenProductAd == null) {
- DemandGenProductAd = new global::Google.Ads.GoogleAds.V16.Common.DemandGenProductAdInfo();
- }
- DemandGenProductAd.MergeFrom(other.DemandGenProductAd);
- break;
- case AdDataOneofCase.TravelAd:
- if (TravelAd == null) {
- TravelAd = new global::Google.Ads.GoogleAds.V16.Common.TravelAdInfo();
- }
- TravelAd.MergeFrom(other.TravelAd);
- 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.V16.Enums.AdTypeEnum.Types.AdType) input.ReadEnum();
- break;
- }
- case 50: {
- global::Google.Ads.GoogleAds.V16.Common.TextAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.TextAdInfo();
- if (adDataCase_ == AdDataOneofCase.TextAd) {
- subBuilder.MergeFrom(TextAd);
- }
- input.ReadMessage(subBuilder);
- TextAd = subBuilder;
- break;
- }
- case 58: {
- global::Google.Ads.GoogleAds.V16.Common.ExpandedTextAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.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.V16.Common.ExpandedDynamicSearchAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.ExpandedDynamicSearchAdInfo();
- if (adDataCase_ == AdDataOneofCase.ExpandedDynamicSearchAd) {
- subBuilder.MergeFrom(ExpandedDynamicSearchAd);
- }
- input.ReadMessage(subBuilder);
- ExpandedDynamicSearchAd = subBuilder;
- break;
- }
- case 122: {
- global::Google.Ads.GoogleAds.V16.Common.HotelAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.HotelAdInfo();
- if (adDataCase_ == AdDataOneofCase.HotelAd) {
- subBuilder.MergeFrom(HotelAd);
- }
- input.ReadMessage(subBuilder);
- HotelAd = subBuilder;
- break;
- }
- case 138: {
- global::Google.Ads.GoogleAds.V16.Common.ShoppingSmartAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.ShoppingSmartAdInfo();
- if (adDataCase_ == AdDataOneofCase.ShoppingSmartAd) {
- subBuilder.MergeFrom(ShoppingSmartAd);
- }
- input.ReadMessage(subBuilder);
- ShoppingSmartAd = subBuilder;
- break;
- }
- case 146: {
- global::Google.Ads.GoogleAds.V16.Common.ShoppingProductAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.ShoppingProductAdInfo();
- if (adDataCase_ == AdDataOneofCase.ShoppingProductAd) {
- subBuilder.MergeFrom(ShoppingProductAd);
- }
- input.ReadMessage(subBuilder);
- ShoppingProductAd = subBuilder;
- break;
- }
- case 160: {
- DevicePreference = (global::Google.Ads.GoogleAds.V16.Enums.DeviceEnum.Types.Device) input.ReadEnum();
- break;
- }
- case 178: {
- global::Google.Ads.GoogleAds.V16.Common.ImageAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.ImageAdInfo();
- if (adDataCase_ == AdDataOneofCase.ImageAd) {
- subBuilder.MergeFrom(ImageAd);
- }
- input.ReadMessage(subBuilder);
- ImageAd = subBuilder;
- break;
- }
- case 194: {
- global::Google.Ads.GoogleAds.V16.Common.VideoAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.VideoAdInfo();
- if (adDataCase_ == AdDataOneofCase.VideoAd) {
- subBuilder.MergeFrom(VideoAd);
- }
- input.ReadMessage(subBuilder);
- VideoAd = subBuilder;
- break;
- }
- case 202: {
- global::Google.Ads.GoogleAds.V16.Common.ResponsiveSearchAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.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.V16.Enums.SystemManagedResourceSourceEnum.Types.SystemManagedResourceSource) input.ReadEnum();
- break;
- }
- case 226: {
- global::Google.Ads.GoogleAds.V16.Common.LegacyResponsiveDisplayAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.LegacyResponsiveDisplayAdInfo();
- if (adDataCase_ == AdDataOneofCase.LegacyResponsiveDisplayAd) {
- subBuilder.MergeFrom(LegacyResponsiveDisplayAd);
- }
- input.ReadMessage(subBuilder);
- LegacyResponsiveDisplayAd = subBuilder;
- break;
- }
- case 234: {
- global::Google.Ads.GoogleAds.V16.Common.AppAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.AppAdInfo();
- if (adDataCase_ == AdDataOneofCase.AppAd) {
- subBuilder.MergeFrom(AppAd);
- }
- input.ReadMessage(subBuilder);
- AppAd = subBuilder;
- break;
- }
- case 242: {
- global::Google.Ads.GoogleAds.V16.Common.LegacyAppInstallAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.LegacyAppInstallAdInfo();
- if (adDataCase_ == AdDataOneofCase.LegacyAppInstallAd) {
- subBuilder.MergeFrom(LegacyAppInstallAd);
- }
- input.ReadMessage(subBuilder);
- LegacyAppInstallAd = subBuilder;
- break;
- }
- case 250: {
- global::Google.Ads.GoogleAds.V16.Common.ResponsiveDisplayAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.ResponsiveDisplayAdInfo();
- if (adDataCase_ == AdDataOneofCase.ResponsiveDisplayAd) {
- subBuilder.MergeFrom(ResponsiveDisplayAd);
- }
- input.ReadMessage(subBuilder);
- ResponsiveDisplayAd = subBuilder;
- break;
- }
- case 258: {
- global::Google.Ads.GoogleAds.V16.Common.LocalAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.LocalAdInfo();
- if (adDataCase_ == AdDataOneofCase.LocalAd) {
- subBuilder.MergeFrom(LocalAd);
- }
- input.ReadMessage(subBuilder);
- LocalAd = subBuilder;
- break;
- }
- case 266: {
- global::Google.Ads.GoogleAds.V16.Common.DisplayUploadAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.DisplayUploadAdInfo();
- if (adDataCase_ == AdDataOneofCase.DisplayUploadAd) {
- subBuilder.MergeFrom(DisplayUploadAd);
- }
- input.ReadMessage(subBuilder);
- DisplayUploadAd = subBuilder;
- break;
- }
- case 274: {
- global::Google.Ads.GoogleAds.V16.Common.AppEngagementAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.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.V16.Common.ShoppingComparisonListingAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.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.V16.Common.VideoResponsiveAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.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.V16.Common.SmartCampaignAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.SmartCampaignAdInfo();
- if (adDataCase_ == AdDataOneofCase.SmartCampaignAd) {
- subBuilder.MergeFrom(SmartCampaignAd);
- }
- input.ReadMessage(subBuilder);
- SmartCampaignAd = subBuilder;
- break;
- }
- case 394: {
- global::Google.Ads.GoogleAds.V16.Common.CallAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.CallAdInfo();
- if (adDataCase_ == AdDataOneofCase.CallAd) {
- subBuilder.MergeFrom(CallAd);
- }
- input.ReadMessage(subBuilder);
- CallAd = subBuilder;
- break;
- }
- case 402: {
- global::Google.Ads.GoogleAds.V16.Common.AppPreRegistrationAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.AppPreRegistrationAdInfo();
- if (adDataCase_ == AdDataOneofCase.AppPreRegistrationAd) {
- subBuilder.MergeFrom(AppPreRegistrationAd);
- }
- input.ReadMessage(subBuilder);
- AppPreRegistrationAd = subBuilder;
- break;
- }
- case 410: {
- global::Google.Ads.GoogleAds.V16.Common.DiscoveryMultiAssetAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.DiscoveryMultiAssetAdInfo();
- if (adDataCase_ == AdDataOneofCase.DiscoveryMultiAssetAd) {
- subBuilder.MergeFrom(DiscoveryMultiAssetAd);
- }
- input.ReadMessage(subBuilder);
- DiscoveryMultiAssetAd = subBuilder;
- break;
- }
- case 418: {
- global::Google.Ads.GoogleAds.V16.Common.DiscoveryCarouselAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.DiscoveryCarouselAdInfo();
- if (adDataCase_ == AdDataOneofCase.DiscoveryCarouselAd) {
- subBuilder.MergeFrom(DiscoveryCarouselAd);
- }
- input.ReadMessage(subBuilder);
- DiscoveryCarouselAd = subBuilder;
- break;
- }
- case 434: {
- global::Google.Ads.GoogleAds.V16.Common.TravelAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.TravelAdInfo();
- if (adDataCase_ == AdDataOneofCase.TravelAd) {
- subBuilder.MergeFrom(TravelAd);
- }
- input.ReadMessage(subBuilder);
- TravelAd = subBuilder;
- break;
- }
- case 482: {
- global::Google.Ads.GoogleAds.V16.Common.DiscoveryVideoResponsiveAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.DiscoveryVideoResponsiveAdInfo();
- if (adDataCase_ == AdDataOneofCase.DiscoveryVideoResponsiveAd) {
- subBuilder.MergeFrom(DiscoveryVideoResponsiveAd);
- }
- input.ReadMessage(subBuilder);
- DiscoveryVideoResponsiveAd = subBuilder;
- break;
- }
- case 490: {
- global::Google.Ads.GoogleAds.V16.Common.DemandGenProductAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.DemandGenProductAdInfo();
- if (adDataCase_ == AdDataOneofCase.DemandGenProductAd) {
- subBuilder.MergeFrom(DemandGenProductAd);
- }
- input.ReadMessage(subBuilder);
- DemandGenProductAd = 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.V16.Enums.AdTypeEnum.Types.AdType) input.ReadEnum();
- break;
- }
- case 50: {
- global::Google.Ads.GoogleAds.V16.Common.TextAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.TextAdInfo();
- if (adDataCase_ == AdDataOneofCase.TextAd) {
- subBuilder.MergeFrom(TextAd);
- }
- input.ReadMessage(subBuilder);
- TextAd = subBuilder;
- break;
- }
- case 58: {
- global::Google.Ads.GoogleAds.V16.Common.ExpandedTextAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.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.V16.Common.ExpandedDynamicSearchAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.ExpandedDynamicSearchAdInfo();
- if (adDataCase_ == AdDataOneofCase.ExpandedDynamicSearchAd) {
- subBuilder.MergeFrom(ExpandedDynamicSearchAd);
- }
- input.ReadMessage(subBuilder);
- ExpandedDynamicSearchAd = subBuilder;
- break;
- }
- case 122: {
- global::Google.Ads.GoogleAds.V16.Common.HotelAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.HotelAdInfo();
- if (adDataCase_ == AdDataOneofCase.HotelAd) {
- subBuilder.MergeFrom(HotelAd);
- }
- input.ReadMessage(subBuilder);
- HotelAd = subBuilder;
- break;
- }
- case 138: {
- global::Google.Ads.GoogleAds.V16.Common.ShoppingSmartAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.ShoppingSmartAdInfo();
- if (adDataCase_ == AdDataOneofCase.ShoppingSmartAd) {
- subBuilder.MergeFrom(ShoppingSmartAd);
- }
- input.ReadMessage(subBuilder);
- ShoppingSmartAd = subBuilder;
- break;
- }
- case 146: {
- global::Google.Ads.GoogleAds.V16.Common.ShoppingProductAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.ShoppingProductAdInfo();
- if (adDataCase_ == AdDataOneofCase.ShoppingProductAd) {
- subBuilder.MergeFrom(ShoppingProductAd);
- }
- input.ReadMessage(subBuilder);
- ShoppingProductAd = subBuilder;
- break;
- }
- case 160: {
- DevicePreference = (global::Google.Ads.GoogleAds.V16.Enums.DeviceEnum.Types.Device) input.ReadEnum();
- break;
- }
- case 178: {
- global::Google.Ads.GoogleAds.V16.Common.ImageAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.ImageAdInfo();
- if (adDataCase_ == AdDataOneofCase.ImageAd) {
- subBuilder.MergeFrom(ImageAd);
- }
- input.ReadMessage(subBuilder);
- ImageAd = subBuilder;
- break;
- }
- case 194: {
- global::Google.Ads.GoogleAds.V16.Common.VideoAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.VideoAdInfo();
- if (adDataCase_ == AdDataOneofCase.VideoAd) {
- subBuilder.MergeFrom(VideoAd);
- }
- input.ReadMessage(subBuilder);
- VideoAd = subBuilder;
- break;
- }
- case 202: {
- global::Google.Ads.GoogleAds.V16.Common.ResponsiveSearchAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.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.V16.Enums.SystemManagedResourceSourceEnum.Types.SystemManagedResourceSource) input.ReadEnum();
- break;
- }
- case 226: {
- global::Google.Ads.GoogleAds.V16.Common.LegacyResponsiveDisplayAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.LegacyResponsiveDisplayAdInfo();
- if (adDataCase_ == AdDataOneofCase.LegacyResponsiveDisplayAd) {
- subBuilder.MergeFrom(LegacyResponsiveDisplayAd);
- }
- input.ReadMessage(subBuilder);
- LegacyResponsiveDisplayAd = subBuilder;
- break;
- }
- case 234: {
- global::Google.Ads.GoogleAds.V16.Common.AppAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.AppAdInfo();
- if (adDataCase_ == AdDataOneofCase.AppAd) {
- subBuilder.MergeFrom(AppAd);
- }
- input.ReadMessage(subBuilder);
- AppAd = subBuilder;
- break;
- }
- case 242: {
- global::Google.Ads.GoogleAds.V16.Common.LegacyAppInstallAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.LegacyAppInstallAdInfo();
- if (adDataCase_ == AdDataOneofCase.LegacyAppInstallAd) {
- subBuilder.MergeFrom(LegacyAppInstallAd);
- }
- input.ReadMessage(subBuilder);
- LegacyAppInstallAd = subBuilder;
- break;
- }
- case 250: {
- global::Google.Ads.GoogleAds.V16.Common.ResponsiveDisplayAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.ResponsiveDisplayAdInfo();
- if (adDataCase_ == AdDataOneofCase.ResponsiveDisplayAd) {
- subBuilder.MergeFrom(ResponsiveDisplayAd);
- }
- input.ReadMessage(subBuilder);
- ResponsiveDisplayAd = subBuilder;
- break;
- }
- case 258: {
- global::Google.Ads.GoogleAds.V16.Common.LocalAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.LocalAdInfo();
- if (adDataCase_ == AdDataOneofCase.LocalAd) {
- subBuilder.MergeFrom(LocalAd);
- }
- input.ReadMessage(subBuilder);
- LocalAd = subBuilder;
- break;
- }
- case 266: {
- global::Google.Ads.GoogleAds.V16.Common.DisplayUploadAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.DisplayUploadAdInfo();
- if (adDataCase_ == AdDataOneofCase.DisplayUploadAd) {
- subBuilder.MergeFrom(DisplayUploadAd);
- }
- input.ReadMessage(subBuilder);
- DisplayUploadAd = subBuilder;
- break;
- }
- case 274: {
- global::Google.Ads.GoogleAds.V16.Common.AppEngagementAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.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.V16.Common.ShoppingComparisonListingAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.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.V16.Common.VideoResponsiveAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.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.V16.Common.SmartCampaignAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.SmartCampaignAdInfo();
- if (adDataCase_ == AdDataOneofCase.SmartCampaignAd) {
- subBuilder.MergeFrom(SmartCampaignAd);
- }
- input.ReadMessage(subBuilder);
- SmartCampaignAd = subBuilder;
- break;
- }
- case 394: {
- global::Google.Ads.GoogleAds.V16.Common.CallAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.CallAdInfo();
- if (adDataCase_ == AdDataOneofCase.CallAd) {
- subBuilder.MergeFrom(CallAd);
- }
- input.ReadMessage(subBuilder);
- CallAd = subBuilder;
- break;
- }
- case 402: {
- global::Google.Ads.GoogleAds.V16.Common.AppPreRegistrationAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.AppPreRegistrationAdInfo();
- if (adDataCase_ == AdDataOneofCase.AppPreRegistrationAd) {
- subBuilder.MergeFrom(AppPreRegistrationAd);
- }
- input.ReadMessage(subBuilder);
- AppPreRegistrationAd = subBuilder;
- break;
- }
- case 410: {
- global::Google.Ads.GoogleAds.V16.Common.DiscoveryMultiAssetAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.DiscoveryMultiAssetAdInfo();
- if (adDataCase_ == AdDataOneofCase.DiscoveryMultiAssetAd) {
- subBuilder.MergeFrom(DiscoveryMultiAssetAd);
- }
- input.ReadMessage(subBuilder);
- DiscoveryMultiAssetAd = subBuilder;
- break;
- }
- case 418: {
- global::Google.Ads.GoogleAds.V16.Common.DiscoveryCarouselAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.DiscoveryCarouselAdInfo();
- if (adDataCase_ == AdDataOneofCase.DiscoveryCarouselAd) {
- subBuilder.MergeFrom(DiscoveryCarouselAd);
- }
- input.ReadMessage(subBuilder);
- DiscoveryCarouselAd = subBuilder;
- break;
- }
- case 434: {
- global::Google.Ads.GoogleAds.V16.Common.TravelAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.TravelAdInfo();
- if (adDataCase_ == AdDataOneofCase.TravelAd) {
- subBuilder.MergeFrom(TravelAd);
- }
- input.ReadMessage(subBuilder);
- TravelAd = subBuilder;
- break;
- }
- case 482: {
- global::Google.Ads.GoogleAds.V16.Common.DiscoveryVideoResponsiveAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.DiscoveryVideoResponsiveAdInfo();
- if (adDataCase_ == AdDataOneofCase.DiscoveryVideoResponsiveAd) {
- subBuilder.MergeFrom(DiscoveryVideoResponsiveAd);
- }
- input.ReadMessage(subBuilder);
- DiscoveryVideoResponsiveAd = subBuilder;
- break;
- }
- case 490: {
- global::Google.Ads.GoogleAds.V16.Common.DemandGenProductAdInfo subBuilder = new global::Google.Ads.GoogleAds.V16.Common.DemandGenProductAdInfo();
- if (adDataCase_ == AdDataOneofCase.DemandGenProductAd) {
- subBuilder.MergeFrom(DemandGenProductAd);
- }
- input.ReadMessage(subBuilder);
- DemandGenProductAd = subBuilder;
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code
diff --git a/Google.Ads.GoogleAds/src/V16/AdAsset.g.cs b/Google.Ads.GoogleAds/src/V16/AdAsset.g.cs
deleted file mode 100755
index c5682fe16..000000000
--- a/Google.Ads.GoogleAds/src/V16/AdAsset.g.cs
+++ /dev/null
@@ -1,1463 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/ads/googleads/v16/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.V16.Common {
-
- /// Holder for reflection information generated from google/ads/googleads/v16/common/ad_asset.proto
- public static partial class AdAssetReflection {
-
- #region Descriptor
- /// File descriptor for google/ads/googleads/v16/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(
- "Ci5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvY29tbW9uL2FkX2Fzc2V0LnBy",
- "b3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTYuY29tbW9uGjJnb29nbGUv",
- "YWRzL2dvb2dsZWFkcy92MTYvY29tbW9uL2Fzc2V0X3BvbGljeS5wcm90bxo8",
- "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE2L2VudW1zL2Fzc2V0X3BlcmZvcm1h",
- "bmNlX2xhYmVsLnByb3RvGjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTYvZW51",
- "bXMvc2VydmVkX2Fzc2V0X2ZpZWxkX3R5cGUucHJvdG8i1AIKC0FkVGV4dEFz",
- "c2V0EhEKBHRleHQYBCABKAlIAIgBARJjCgxwaW5uZWRfZmllbGQYAiABKA4y",
- "TS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTYuZW51bXMuU2VydmVkQXNzZXRG",
- "aWVsZFR5cGVFbnVtLlNlcnZlZEFzc2V0RmllbGRUeXBlEnAKF2Fzc2V0X3Bl",
- "cmZvcm1hbmNlX2xhYmVsGAUgASgOMk8uZ29vZ2xlLmFkcy5nb29nbGVhZHMu",
- "djE2LmVudW1zLkFzc2V0UGVyZm9ybWFuY2VMYWJlbEVudW0uQXNzZXRQZXJm",
- "b3JtYW5jZUxhYmVsElIKE3BvbGljeV9zdW1tYXJ5X2luZm8YBiABKAsyNS5n",
- "b29nbGUuYWRzLmdvb2dsZWFkcy52MTYuY29tbW9uLkFkQXNzZXRQb2xpY3lT",
- "dW1tYXJ5QgcKBV90ZXh0IiwKDEFkSW1hZ2VBc3NldBISCgVhc3NldBgCIAEo",
- "CUgAiAEBQggKBl9hc3NldCIsCgxBZFZpZGVvQXNzZXQSEgoFYXNzZXQYAiAB",
- "KAlIAIgBAUIICgZfYXNzZXQiMgoSQWRNZWRpYUJ1bmRsZUFzc2V0EhIKBWFz",
- "c2V0GAIgASgJSACIAQFCCAoGX2Fzc2V0IjwKHEFkRGlzY292ZXJ5Q2Fyb3Vz",
- "ZWxDYXJkQXNzZXQSEgoFYXNzZXQYASABKAlIAIgBAUIICgZfYXNzZXQiMwoT",
- "QWRDYWxsVG9BY3Rpb25Bc3NldBISCgVhc3NldBgBIAEoCUgAiAEBQggKBl9h",
- "c3NldELsAQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNi5jb21tb25C",
- "DEFkQXNzZXRQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n",
- "b29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjE2L2NvbW1vbjtjb21tb26iAgNH",
- "QUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTYuQ29tbW9uygIfR29vZ2xl",
- "XEFkc1xHb29nbGVBZHNcVjE2XENvbW1vbuoCI0dvb2dsZTo6QWRzOjpHb29n",
- "bGVBZHM6OlYxNjo6Q29tbW9uYgZwcm90bzM="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V16.Common.AssetPolicyReflection.Descriptor, global::Google.Ads.GoogleAds.V16.Enums.AssetPerformanceLabelReflection.Descriptor, global::Google.Ads.GoogleAds.V16.Enums.ServedAssetFieldTypeReflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Common.AdTextAsset), global::Google.Ads.GoogleAds.V16.Common.AdTextAsset.Parser, new[]{ "Text", "PinnedField", "AssetPerformanceLabel", "PolicySummaryInfo" }, new[]{ "Text" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Common.AdImageAsset), global::Google.Ads.GoogleAds.V16.Common.AdImageAsset.Parser, new[]{ "Asset" }, new[]{ "Asset" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Common.AdVideoAsset), global::Google.Ads.GoogleAds.V16.Common.AdVideoAsset.Parser, new[]{ "Asset" }, new[]{ "Asset" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Common.AdMediaBundleAsset), global::Google.Ads.GoogleAds.V16.Common.AdMediaBundleAsset.Parser, new[]{ "Asset" }, new[]{ "Asset" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Common.AdDiscoveryCarouselCardAsset), global::Google.Ads.GoogleAds.V16.Common.AdDiscoveryCarouselCardAsset.Parser, new[]{ "Asset" }, new[]{ "Asset" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V16.Common.AdCallToActionAsset), global::Google.Ads.GoogleAds.V16.Common.AdCallToActionAsset.Parser, new[]{ "Asset" }, new[]{ "Asset" }, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- ///
- /// A text asset used inside an ad.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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 readonly static string TextDefaultValue = "";
-
- private string text_;
- ///
- /// Asset text.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string Text {
- get { return text_ ?? TextDefaultValue; }
- 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.V16.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType pinnedField_ = global::Google.Ads.GoogleAds.V16.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.V16.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.V16.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel assetPerformanceLabel_ = global::Google.Ads.GoogleAds.V16.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.V16.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.V16.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.V16.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.V16.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified) hash ^= PinnedField.GetHashCode();
- if (AssetPerformanceLabel != global::Google.Ads.GoogleAds.V16.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.V16.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.V16.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.V16.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.V16.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.V16.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PinnedField);
- }
- if (AssetPerformanceLabel != global::Google.Ads.GoogleAds.V16.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.V16.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified) {
- PinnedField = other.PinnedField;
- }
- if (other.AssetPerformanceLabel != global::Google.Ads.GoogleAds.V16.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) {
- AssetPerformanceLabel = other.AssetPerformanceLabel;
- }
- if (other.policySummaryInfo_ != null) {
- if (policySummaryInfo_ == null) {
- PolicySummaryInfo = new global::Google.Ads.GoogleAds.V16.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.V16.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType) input.ReadEnum();
- break;
- }
- case 34: {
- Text = input.ReadString();
- break;
- }
- case 40: {
- AssetPerformanceLabel = (global::Google.Ads.GoogleAds.V16.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel) input.ReadEnum();
- break;
- }
- case 50: {
- if (policySummaryInfo_ == null) {
- PolicySummaryInfo = new global::Google.Ads.GoogleAds.V16.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.V16.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType) input.ReadEnum();
- break;
- }
- case 34: {
- Text = input.ReadString();
- break;
- }
- case 40: {
- AssetPerformanceLabel = (global::Google.Ads.GoogleAds.V16.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel) input.ReadEnum();
- break;
- }
- case 50: {
- if (policySummaryInfo_ == null) {
- PolicySummaryInfo = new global::Google.Ads.GoogleAds.V16.Common.AdAssetPolicySummary();
- }
- input.ReadMessage(PolicySummaryInfo);
- break;
- }
- }
- }
- }
- #endif
-
- }
-
- ///
- /// An image asset used inside an ad.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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.V16.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 readonly static string AssetDefaultValue = "";
-
- 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_ ?? AssetDefaultValue; }
- 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.
- ///
- [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- 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