UNPKG

google-ads-node

Version:

Google Ads gRPC Client Library for Node

868 lines (724 loc) 31.9 kB
/** * @fileoverview * @enhanceable * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! var jspb = require('google-protobuf'); var goog = jspb; var global = Function('return this')(); var google_ads_googleads_v0_enums_billing_setup_status_pb = require('../../../../../google/ads/googleads/v0/enums/billing_setup_status_pb.js'); var google_ads_googleads_v0_enums_time_type_pb = require('../../../../../google/ads/googleads/v0/enums/time_type_pb.js'); var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js'); goog.exportSymbol('proto.google.ads.googleads.v0.resources.BillingSetup', null, global); goog.exportSymbol('proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.google.ads.googleads.v0.resources.BillingSetup = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.ads.googleads.v0.resources.BillingSetup.oneofGroups_); }; goog.inherits(proto.google.ads.googleads.v0.resources.BillingSetup, jspb.Message); if (goog.DEBUG && !COMPILED) { proto.google.ads.googleads.v0.resources.BillingSetup.displayName = 'proto.google.ads.googleads.v0.resources.BillingSetup'; } /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all * other fields in the group are cleared. During deserialization, if multiple * fields are encountered for a group, only the last value seen will be kept. * @private {!Array<!Array<number>>} * @const */ proto.google.ads.googleads.v0.resources.BillingSetup.oneofGroups_ = [[9,10],[13,14]]; /** * @enum {number} */ proto.google.ads.googleads.v0.resources.BillingSetup.StartTimeCase = { START_TIME_NOT_SET: 0, START_DATE_TIME: 9, START_TIME_TYPE: 10 }; /** * @return {proto.google.ads.googleads.v0.resources.BillingSetup.StartTimeCase} */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.getStartTimeCase = function() { return /** @type {proto.google.ads.googleads.v0.resources.BillingSetup.StartTimeCase} */(jspb.Message.computeOneofCase(this, proto.google.ads.googleads.v0.resources.BillingSetup.oneofGroups_[0])); }; /** * @enum {number} */ proto.google.ads.googleads.v0.resources.BillingSetup.EndTimeCase = { END_TIME_NOT_SET: 0, END_DATE_TIME: 13, END_TIME_TYPE: 14 }; /** * @return {proto.google.ads.googleads.v0.resources.BillingSetup.EndTimeCase} */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.getEndTimeCase = function() { return /** @type {proto.google.ads.googleads.v0.resources.BillingSetup.EndTimeCase} */(jspb.Message.computeOneofCase(this, proto.google.ads.googleads.v0.resources.BillingSetup.oneofGroups_[1])); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. * @param {boolean=} opt_includeInstance Whether to include the JSPB instance * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.toObject = function(opt_includeInstance) { return proto.google.ads.googleads.v0.resources.BillingSetup.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Whether to include the JSPB * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.google.ads.googleads.v0.resources.BillingSetup} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.ads.googleads.v0.resources.BillingSetup.toObject = function(includeInstance, msg) { var f, obj = { resourceName: jspb.Message.getFieldWithDefault(msg, 1, ""), id: (f = msg.getId()) && google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance, f), status: jspb.Message.getFieldWithDefault(msg, 3, 0), paymentsAccount: (f = msg.getPaymentsAccount()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f), paymentsAccountInfo: (f = msg.getPaymentsAccountInfo()) && proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.toObject(includeInstance, f), startDateTime: (f = msg.getStartDateTime()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f), startTimeType: jspb.Message.getFieldWithDefault(msg, 10, 0), endDateTime: (f = msg.getEndDateTime()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f), endTimeType: jspb.Message.getFieldWithDefault(msg, 14, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.google.ads.googleads.v0.resources.BillingSetup} */ proto.google.ads.googleads.v0.resources.BillingSetup.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.ads.googleads.v0.resources.BillingSetup; return proto.google.ads.googleads.v0.resources.BillingSetup.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.ads.googleads.v0.resources.BillingSetup} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.ads.googleads.v0.resources.BillingSetup} */ proto.google.ads.googleads.v0.resources.BillingSetup.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); msg.setResourceName(value); break; case 2: var value = new google_protobuf_wrappers_pb.Int64Value; reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader); msg.setId(value); break; case 3: var value = /** @type {!proto.google.ads.googleads.v0.enums.BillingSetupStatusEnum.BillingSetupStatus} */ (reader.readEnum()); msg.setStatus(value); break; case 11: var value = new google_protobuf_wrappers_pb.StringValue; reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader); msg.setPaymentsAccount(value); break; case 12: var value = new proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo; reader.readMessage(value,proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.deserializeBinaryFromReader); msg.setPaymentsAccountInfo(value); break; case 9: var value = new google_protobuf_wrappers_pb.StringValue; reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader); msg.setStartDateTime(value); break; case 10: var value = /** @type {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} */ (reader.readEnum()); msg.setStartTimeType(value); break; case 13: var value = new google_protobuf_wrappers_pb.StringValue; reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader); msg.setEndDateTime(value); break; case 14: var value = /** @type {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} */ (reader.readEnum()); msg.setEndTimeType(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.ads.googleads.v0.resources.BillingSetup.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.google.ads.googleads.v0.resources.BillingSetup} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.ads.googleads.v0.resources.BillingSetup.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getResourceName(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getId(); if (f != null) { writer.writeMessage( 2, f, google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter ); } f = message.getStatus(); if (f !== 0.0) { writer.writeEnum( 3, f ); } f = message.getPaymentsAccount(); if (f != null) { writer.writeMessage( 11, f, google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter ); } f = message.getPaymentsAccountInfo(); if (f != null) { writer.writeMessage( 12, f, proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.serializeBinaryToWriter ); } f = message.getStartDateTime(); if (f != null) { writer.writeMessage( 9, f, google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter ); } f = /** @type {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} */ (jspb.Message.getField(message, 10)); if (f != null) { writer.writeEnum( 10, f ); } f = message.getEndDateTime(); if (f != null) { writer.writeMessage( 13, f, google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter ); } f = /** @type {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} */ (jspb.Message.getField(message, 14)); if (f != null) { writer.writeEnum( 14, f ); } }; /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.displayName = 'proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo'; } if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. * @param {boolean=} opt_includeInstance Whether to include the JSPB instance * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.toObject = function(opt_includeInstance) { return proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Whether to include the JSPB * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.toObject = function(includeInstance, msg) { var f, obj = { paymentsAccountId: (f = msg.getPaymentsAccountId()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f), paymentsAccountName: (f = msg.getPaymentsAccountName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f), paymentsProfileId: (f = msg.getPaymentsProfileId()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f), paymentsProfileName: (f = msg.getPaymentsProfileName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f), secondaryPaymentsProfileId: (f = msg.getSecondaryPaymentsProfileId()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo} */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo; return proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo} */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new google_protobuf_wrappers_pb.StringValue; reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader); msg.setPaymentsAccountId(value); break; case 2: var value = new google_protobuf_wrappers_pb.StringValue; reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader); msg.setPaymentsAccountName(value); break; case 3: var value = new google_protobuf_wrappers_pb.StringValue; reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader); msg.setPaymentsProfileId(value); break; case 4: var value = new google_protobuf_wrappers_pb.StringValue; reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader); msg.setPaymentsProfileName(value); break; case 5: var value = new google_protobuf_wrappers_pb.StringValue; reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader); msg.setSecondaryPaymentsProfileId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPaymentsAccountId(); if (f != null) { writer.writeMessage( 1, f, google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter ); } f = message.getPaymentsAccountName(); if (f != null) { writer.writeMessage( 2, f, google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter ); } f = message.getPaymentsProfileId(); if (f != null) { writer.writeMessage( 3, f, google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter ); } f = message.getPaymentsProfileName(); if (f != null) { writer.writeMessage( 4, f, google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter ); } f = message.getSecondaryPaymentsProfileId(); if (f != null) { writer.writeMessage( 5, f, google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter ); } }; /** * optional google.protobuf.StringValue payments_account_id = 1; * @return {?proto.google.protobuf.StringValue} */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.getPaymentsAccountId = function() { return /** @type{?proto.google.protobuf.StringValue} */ ( jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1)); }; /** @param {?proto.google.protobuf.StringValue|undefined} value */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.setPaymentsAccountId = function(value) { jspb.Message.setWrapperField(this, 1, value); }; proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.clearPaymentsAccountId = function() { this.setPaymentsAccountId(undefined); }; /** * Returns whether this field is set. * @return {!boolean} */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.hasPaymentsAccountId = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional google.protobuf.StringValue payments_account_name = 2; * @return {?proto.google.protobuf.StringValue} */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.getPaymentsAccountName = function() { return /** @type{?proto.google.protobuf.StringValue} */ ( jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2)); }; /** @param {?proto.google.protobuf.StringValue|undefined} value */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.setPaymentsAccountName = function(value) { jspb.Message.setWrapperField(this, 2, value); }; proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.clearPaymentsAccountName = function() { this.setPaymentsAccountName(undefined); }; /** * Returns whether this field is set. * @return {!boolean} */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.hasPaymentsAccountName = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional google.protobuf.StringValue payments_profile_id = 3; * @return {?proto.google.protobuf.StringValue} */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.getPaymentsProfileId = function() { return /** @type{?proto.google.protobuf.StringValue} */ ( jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 3)); }; /** @param {?proto.google.protobuf.StringValue|undefined} value */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.setPaymentsProfileId = function(value) { jspb.Message.setWrapperField(this, 3, value); }; proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.clearPaymentsProfileId = function() { this.setPaymentsProfileId(undefined); }; /** * Returns whether this field is set. * @return {!boolean} */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.hasPaymentsProfileId = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional google.protobuf.StringValue payments_profile_name = 4; * @return {?proto.google.protobuf.StringValue} */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.getPaymentsProfileName = function() { return /** @type{?proto.google.protobuf.StringValue} */ ( jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 4)); }; /** @param {?proto.google.protobuf.StringValue|undefined} value */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.setPaymentsProfileName = function(value) { jspb.Message.setWrapperField(this, 4, value); }; proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.clearPaymentsProfileName = function() { this.setPaymentsProfileName(undefined); }; /** * Returns whether this field is set. * @return {!boolean} */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.hasPaymentsProfileName = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional google.protobuf.StringValue secondary_payments_profile_id = 5; * @return {?proto.google.protobuf.StringValue} */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.getSecondaryPaymentsProfileId = function() { return /** @type{?proto.google.protobuf.StringValue} */ ( jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 5)); }; /** @param {?proto.google.protobuf.StringValue|undefined} value */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.setSecondaryPaymentsProfileId = function(value) { jspb.Message.setWrapperField(this, 5, value); }; proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.clearSecondaryPaymentsProfileId = function() { this.setSecondaryPaymentsProfileId(undefined); }; /** * Returns whether this field is set. * @return {!boolean} */ proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo.prototype.hasSecondaryPaymentsProfileId = function() { return jspb.Message.getField(this, 5) != null; }; /** * optional string resource_name = 1; * @return {string} */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.getResourceName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** @param {string} value */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.setResourceName = function(value) { jspb.Message.setProto3StringField(this, 1, value); }; /** * optional google.protobuf.Int64Value id = 2; * @return {?proto.google.protobuf.Int64Value} */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.getId = function() { return /** @type{?proto.google.protobuf.Int64Value} */ ( jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int64Value, 2)); }; /** @param {?proto.google.protobuf.Int64Value|undefined} value */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.setId = function(value) { jspb.Message.setWrapperField(this, 2, value); }; proto.google.ads.googleads.v0.resources.BillingSetup.prototype.clearId = function() { this.setId(undefined); }; /** * Returns whether this field is set. * @return {!boolean} */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.hasId = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional google.ads.googleads.v0.enums.BillingSetupStatusEnum.BillingSetupStatus status = 3; * @return {!proto.google.ads.googleads.v0.enums.BillingSetupStatusEnum.BillingSetupStatus} */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.getStatus = function() { return /** @type {!proto.google.ads.googleads.v0.enums.BillingSetupStatusEnum.BillingSetupStatus} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** @param {!proto.google.ads.googleads.v0.enums.BillingSetupStatusEnum.BillingSetupStatus} value */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.setStatus = function(value) { jspb.Message.setProto3EnumField(this, 3, value); }; /** * optional google.protobuf.StringValue payments_account = 11; * @return {?proto.google.protobuf.StringValue} */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.getPaymentsAccount = function() { return /** @type{?proto.google.protobuf.StringValue} */ ( jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 11)); }; /** @param {?proto.google.protobuf.StringValue|undefined} value */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.setPaymentsAccount = function(value) { jspb.Message.setWrapperField(this, 11, value); }; proto.google.ads.googleads.v0.resources.BillingSetup.prototype.clearPaymentsAccount = function() { this.setPaymentsAccount(undefined); }; /** * Returns whether this field is set. * @return {!boolean} */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.hasPaymentsAccount = function() { return jspb.Message.getField(this, 11) != null; }; /** * optional PaymentsAccountInfo payments_account_info = 12; * @return {?proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo} */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.getPaymentsAccountInfo = function() { return /** @type{?proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo} */ ( jspb.Message.getWrapperField(this, proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo, 12)); }; /** @param {?proto.google.ads.googleads.v0.resources.BillingSetup.PaymentsAccountInfo|undefined} value */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.setPaymentsAccountInfo = function(value) { jspb.Message.setWrapperField(this, 12, value); }; proto.google.ads.googleads.v0.resources.BillingSetup.prototype.clearPaymentsAccountInfo = function() { this.setPaymentsAccountInfo(undefined); }; /** * Returns whether this field is set. * @return {!boolean} */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.hasPaymentsAccountInfo = function() { return jspb.Message.getField(this, 12) != null; }; /** * optional google.protobuf.StringValue start_date_time = 9; * @return {?proto.google.protobuf.StringValue} */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.getStartDateTime = function() { return /** @type{?proto.google.protobuf.StringValue} */ ( jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 9)); }; /** @param {?proto.google.protobuf.StringValue|undefined} value */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.setStartDateTime = function(value) { jspb.Message.setOneofWrapperField(this, 9, proto.google.ads.googleads.v0.resources.BillingSetup.oneofGroups_[0], value); }; proto.google.ads.googleads.v0.resources.BillingSetup.prototype.clearStartDateTime = function() { this.setStartDateTime(undefined); }; /** * Returns whether this field is set. * @return {!boolean} */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.hasStartDateTime = function() { return jspb.Message.getField(this, 9) != null; }; /** * optional google.ads.googleads.v0.enums.TimeTypeEnum.TimeType start_time_type = 10; * @return {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.getStartTimeType = function() { return /** @type {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); }; /** @param {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} value */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.setStartTimeType = function(value) { jspb.Message.setOneofField(this, 10, proto.google.ads.googleads.v0.resources.BillingSetup.oneofGroups_[0], value); }; proto.google.ads.googleads.v0.resources.BillingSetup.prototype.clearStartTimeType = function() { jspb.Message.setOneofField(this, 10, proto.google.ads.googleads.v0.resources.BillingSetup.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {!boolean} */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.hasStartTimeType = function() { return jspb.Message.getField(this, 10) != null; }; /** * optional google.protobuf.StringValue end_date_time = 13; * @return {?proto.google.protobuf.StringValue} */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.getEndDateTime = function() { return /** @type{?proto.google.protobuf.StringValue} */ ( jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 13)); }; /** @param {?proto.google.protobuf.StringValue|undefined} value */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.setEndDateTime = function(value) { jspb.Message.setOneofWrapperField(this, 13, proto.google.ads.googleads.v0.resources.BillingSetup.oneofGroups_[1], value); }; proto.google.ads.googleads.v0.resources.BillingSetup.prototype.clearEndDateTime = function() { this.setEndDateTime(undefined); }; /** * Returns whether this field is set. * @return {!boolean} */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.hasEndDateTime = function() { return jspb.Message.getField(this, 13) != null; }; /** * optional google.ads.googleads.v0.enums.TimeTypeEnum.TimeType end_time_type = 14; * @return {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.getEndTimeType = function() { return /** @type {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); }; /** @param {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} value */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.setEndTimeType = function(value) { jspb.Message.setOneofField(this, 14, proto.google.ads.googleads.v0.resources.BillingSetup.oneofGroups_[1], value); }; proto.google.ads.googleads.v0.resources.BillingSetup.prototype.clearEndTimeType = function() { jspb.Message.setOneofField(this, 14, proto.google.ads.googleads.v0.resources.BillingSetup.oneofGroups_[1], undefined); }; /** * Returns whether this field is set. * @return {!boolean} */ proto.google.ads.googleads.v0.resources.BillingSetup.prototype.hasEndTimeType = function() { return jspb.Message.getField(this, 14) != null; }; goog.object.extend(exports, proto.google.ads.googleads.v0.resources);