google-ads-node
Version:
Google Ads gRPC Client Library for Node
1,764 lines • 67.2 kB
JavaScript
/**
* @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_account_budget_proposal_type_pb = require('../../../../../google/ads/googleads/v0/enums/account_budget_proposal_type_pb.js');
var google_ads_googleads_v0_enums_account_budget_status_pb = require('../../../../../google/ads/googleads/v0/enums/account_budget_status_pb.js');
var google_ads_googleads_v0_enums_spending_limit_type_pb = require('../../../../../google/ads/googleads/v0/enums/spending_limit_type_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.AccountBudget', null, global);
goog.exportSymbol('proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal', 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.AccountBudget = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_);
};
goog.inherits(proto.google.ads.googleads.v0.resources.AccountBudget, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.ads.googleads.v0.resources.AccountBudget.displayName = 'proto.google.ads.googleads.v0.resources.AccountBudget';
}
/**
* 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.AccountBudget.oneofGroups_ = [[8,9],[10,11],[12,13],[14,15],[16,17]];
/**
* @enum {number}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.ProposedEndTimeCase = {
PROPOSED_END_TIME_NOT_SET: 0,
PROPOSED_END_DATE_TIME: 8,
PROPOSED_END_TIME_TYPE: 9
};
/**
* @return {proto.google.ads.googleads.v0.resources.AccountBudget.ProposedEndTimeCase}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getProposedEndTimeCase = function() {
return /** @type {proto.google.ads.googleads.v0.resources.AccountBudget.ProposedEndTimeCase} */(jspb.Message.computeOneofCase(this, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_[0]));
};
/**
* @enum {number}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.ApprovedEndTimeCase = {
APPROVED_END_TIME_NOT_SET: 0,
APPROVED_END_DATE_TIME: 10,
APPROVED_END_TIME_TYPE: 11
};
/**
* @return {proto.google.ads.googleads.v0.resources.AccountBudget.ApprovedEndTimeCase}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getApprovedEndTimeCase = function() {
return /** @type {proto.google.ads.googleads.v0.resources.AccountBudget.ApprovedEndTimeCase} */(jspb.Message.computeOneofCase(this, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_[1]));
};
/**
* @enum {number}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.ProposedSpendingLimitCase = {
PROPOSED_SPENDING_LIMIT_NOT_SET: 0,
PROPOSED_SPENDING_LIMIT_MICROS: 12,
PROPOSED_SPENDING_LIMIT_TYPE: 13
};
/**
* @return {proto.google.ads.googleads.v0.resources.AccountBudget.ProposedSpendingLimitCase}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getProposedSpendingLimitCase = function() {
return /** @type {proto.google.ads.googleads.v0.resources.AccountBudget.ProposedSpendingLimitCase} */(jspb.Message.computeOneofCase(this, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_[2]));
};
/**
* @enum {number}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.ApprovedSpendingLimitCase = {
APPROVED_SPENDING_LIMIT_NOT_SET: 0,
APPROVED_SPENDING_LIMIT_MICROS: 14,
APPROVED_SPENDING_LIMIT_TYPE: 15
};
/**
* @return {proto.google.ads.googleads.v0.resources.AccountBudget.ApprovedSpendingLimitCase}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getApprovedSpendingLimitCase = function() {
return /** @type {proto.google.ads.googleads.v0.resources.AccountBudget.ApprovedSpendingLimitCase} */(jspb.Message.computeOneofCase(this, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_[3]));
};
/**
* @enum {number}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.AdjustedSpendingLimitCase = {
ADJUSTED_SPENDING_LIMIT_NOT_SET: 0,
ADJUSTED_SPENDING_LIMIT_MICROS: 16,
ADJUSTED_SPENDING_LIMIT_TYPE: 17
};
/**
* @return {proto.google.ads.googleads.v0.resources.AccountBudget.AdjustedSpendingLimitCase}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getAdjustedSpendingLimitCase = function() {
return /** @type {proto.google.ads.googleads.v0.resources.AccountBudget.AdjustedSpendingLimitCase} */(jspb.Message.computeOneofCase(this, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_[4]));
};
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.AccountBudget.prototype.toObject = function(opt_includeInstance) {
return proto.google.ads.googleads.v0.resources.AccountBudget.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.AccountBudget} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.ads.googleads.v0.resources.AccountBudget.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),
billingSetup: (f = msg.getBillingSetup()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
status: jspb.Message.getFieldWithDefault(msg, 4, 0),
name: (f = msg.getName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
proposedStartDateTime: (f = msg.getProposedStartDateTime()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
approvedStartDateTime: (f = msg.getApprovedStartDateTime()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
totalAdjustmentsMicros: (f = msg.getTotalAdjustmentsMicros()) && google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance, f),
amountServedMicros: (f = msg.getAmountServedMicros()) && google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance, f),
purchaseOrderNumber: (f = msg.getPurchaseOrderNumber()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
notes: (f = msg.getNotes()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
pendingProposal: (f = msg.getPendingProposal()) && proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.toObject(includeInstance, f),
proposedEndDateTime: (f = msg.getProposedEndDateTime()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
proposedEndTimeType: jspb.Message.getFieldWithDefault(msg, 9, 0),
approvedEndDateTime: (f = msg.getApprovedEndDateTime()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
approvedEndTimeType: jspb.Message.getFieldWithDefault(msg, 11, 0),
proposedSpendingLimitMicros: (f = msg.getProposedSpendingLimitMicros()) && google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance, f),
proposedSpendingLimitType: jspb.Message.getFieldWithDefault(msg, 13, 0),
approvedSpendingLimitMicros: (f = msg.getApprovedSpendingLimitMicros()) && google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance, f),
approvedSpendingLimitType: jspb.Message.getFieldWithDefault(msg, 15, 0),
adjustedSpendingLimitMicros: (f = msg.getAdjustedSpendingLimitMicros()) && google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance, f),
adjustedSpendingLimitType: jspb.Message.getFieldWithDefault(msg, 17, 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.AccountBudget}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.ads.googleads.v0.resources.AccountBudget;
return proto.google.ads.googleads.v0.resources.AccountBudget.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.AccountBudget} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.ads.googleads.v0.resources.AccountBudget}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.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 = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setBillingSetup(value);
break;
case 4:
var value = /** @type {!proto.google.ads.googleads.v0.enums.AccountBudgetStatusEnum.AccountBudgetStatus} */ (reader.readEnum());
msg.setStatus(value);
break;
case 5:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setName(value);
break;
case 6:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setProposedStartDateTime(value);
break;
case 7:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setApprovedStartDateTime(value);
break;
case 18:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setTotalAdjustmentsMicros(value);
break;
case 19:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setAmountServedMicros(value);
break;
case 20:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setPurchaseOrderNumber(value);
break;
case 21:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setNotes(value);
break;
case 22:
var value = new proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal;
reader.readMessage(value,proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.deserializeBinaryFromReader);
msg.setPendingProposal(value);
break;
case 8:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setProposedEndDateTime(value);
break;
case 9:
var value = /** @type {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} */ (reader.readEnum());
msg.setProposedEndTimeType(value);
break;
case 10:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setApprovedEndDateTime(value);
break;
case 11:
var value = /** @type {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} */ (reader.readEnum());
msg.setApprovedEndTimeType(value);
break;
case 12:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setProposedSpendingLimitMicros(value);
break;
case 13:
var value = /** @type {!proto.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType} */ (reader.readEnum());
msg.setProposedSpendingLimitType(value);
break;
case 14:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setApprovedSpendingLimitMicros(value);
break;
case 15:
var value = /** @type {!proto.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType} */ (reader.readEnum());
msg.setApprovedSpendingLimitType(value);
break;
case 16:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setAdjustedSpendingLimitMicros(value);
break;
case 17:
var value = /** @type {!proto.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType} */ (reader.readEnum());
msg.setAdjustedSpendingLimitType(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.AccountBudget.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.ads.googleads.v0.resources.AccountBudget.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.AccountBudget} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.ads.googleads.v0.resources.AccountBudget.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.getBillingSetup();
if (f != null) {
writer.writeMessage(
3,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = message.getStatus();
if (f !== 0.0) {
writer.writeEnum(
4,
f
);
}
f = message.getName();
if (f != null) {
writer.writeMessage(
5,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = message.getProposedStartDateTime();
if (f != null) {
writer.writeMessage(
6,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = message.getApprovedStartDateTime();
if (f != null) {
writer.writeMessage(
7,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = message.getTotalAdjustmentsMicros();
if (f != null) {
writer.writeMessage(
18,
f,
google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter
);
}
f = message.getAmountServedMicros();
if (f != null) {
writer.writeMessage(
19,
f,
google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter
);
}
f = message.getPurchaseOrderNumber();
if (f != null) {
writer.writeMessage(
20,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = message.getNotes();
if (f != null) {
writer.writeMessage(
21,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = message.getPendingProposal();
if (f != null) {
writer.writeMessage(
22,
f,
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.serializeBinaryToWriter
);
}
f = message.getProposedEndDateTime();
if (f != null) {
writer.writeMessage(
8,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = /** @type {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} */ (jspb.Message.getField(message, 9));
if (f != null) {
writer.writeEnum(
9,
f
);
}
f = message.getApprovedEndDateTime();
if (f != null) {
writer.writeMessage(
10,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = /** @type {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} */ (jspb.Message.getField(message, 11));
if (f != null) {
writer.writeEnum(
11,
f
);
}
f = message.getProposedSpendingLimitMicros();
if (f != null) {
writer.writeMessage(
12,
f,
google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter
);
}
f = /** @type {!proto.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType} */ (jspb.Message.getField(message, 13));
if (f != null) {
writer.writeEnum(
13,
f
);
}
f = message.getApprovedSpendingLimitMicros();
if (f != null) {
writer.writeMessage(
14,
f,
google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter
);
}
f = /** @type {!proto.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType} */ (jspb.Message.getField(message, 15));
if (f != null) {
writer.writeEnum(
15,
f
);
}
f = message.getAdjustedSpendingLimitMicros();
if (f != null) {
writer.writeMessage(
16,
f,
google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter
);
}
f = /** @type {!proto.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType} */ (jspb.Message.getField(message, 17));
if (f != null) {
writer.writeEnum(
17,
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.AccountBudget.PendingAccountBudgetProposal = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.oneofGroups_);
};
goog.inherits(proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.displayName = 'proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal';
}
/**
* 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.AccountBudget.PendingAccountBudgetProposal.oneofGroups_ = [[5,6],[7,8]];
/**
* @enum {number}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.EndTimeCase = {
END_TIME_NOT_SET: 0,
END_DATE_TIME: 5,
END_TIME_TYPE: 6
};
/**
* @return {proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.EndTimeCase}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.getEndTimeCase = function() {
return /** @type {proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.EndTimeCase} */(jspb.Message.computeOneofCase(this, proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.oneofGroups_[0]));
};
/**
* @enum {number}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.SpendingLimitCase = {
SPENDING_LIMIT_NOT_SET: 0,
SPENDING_LIMIT_MICROS: 7,
SPENDING_LIMIT_TYPE: 8
};
/**
* @return {proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.SpendingLimitCase}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.getSpendingLimitCase = function() {
return /** @type {proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.SpendingLimitCase} */(jspb.Message.computeOneofCase(this, proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.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.AccountBudget.PendingAccountBudgetProposal.prototype.toObject = function(opt_includeInstance) {
return proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.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.AccountBudget.PendingAccountBudgetProposal} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.toObject = function(includeInstance, msg) {
var f, obj = {
accountBudgetProposal: (f = msg.getAccountBudgetProposal()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
proposalType: jspb.Message.getFieldWithDefault(msg, 2, 0),
name: (f = msg.getName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
startDateTime: (f = msg.getStartDateTime()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
purchaseOrderNumber: (f = msg.getPurchaseOrderNumber()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
notes: (f = msg.getNotes()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
creationDateTime: (f = msg.getCreationDateTime()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
endDateTime: (f = msg.getEndDateTime()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
endTimeType: jspb.Message.getFieldWithDefault(msg, 6, 0),
spendingLimitMicros: (f = msg.getSpendingLimitMicros()) && google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance, f),
spendingLimitType: jspb.Message.getFieldWithDefault(msg, 8, 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.AccountBudget.PendingAccountBudgetProposal}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal;
return proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.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.AccountBudget.PendingAccountBudgetProposal} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.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.setAccountBudgetProposal(value);
break;
case 2:
var value = /** @type {!proto.google.ads.googleads.v0.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType} */ (reader.readEnum());
msg.setProposalType(value);
break;
case 3:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setName(value);
break;
case 4:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setStartDateTime(value);
break;
case 9:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setPurchaseOrderNumber(value);
break;
case 10:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setNotes(value);
break;
case 11:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setCreationDateTime(value);
break;
case 5:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setEndDateTime(value);
break;
case 6:
var value = /** @type {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} */ (reader.readEnum());
msg.setEndTimeType(value);
break;
case 7:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setSpendingLimitMicros(value);
break;
case 8:
var value = /** @type {!proto.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType} */ (reader.readEnum());
msg.setSpendingLimitType(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.AccountBudget.PendingAccountBudgetProposal.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.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.AccountBudget.PendingAccountBudgetProposal} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAccountBudgetProposal();
if (f != null) {
writer.writeMessage(
1,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = message.getProposalType();
if (f !== 0.0) {
writer.writeEnum(
2,
f
);
}
f = message.getName();
if (f != null) {
writer.writeMessage(
3,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = message.getStartDateTime();
if (f != null) {
writer.writeMessage(
4,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = message.getPurchaseOrderNumber();
if (f != null) {
writer.writeMessage(
9,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = message.getNotes();
if (f != null) {
writer.writeMessage(
10,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = message.getCreationDateTime();
if (f != null) {
writer.writeMessage(
11,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = message.getEndDateTime();
if (f != null) {
writer.writeMessage(
5,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = /** @type {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} */ (jspb.Message.getField(message, 6));
if (f != null) {
writer.writeEnum(
6,
f
);
}
f = message.getSpendingLimitMicros();
if (f != null) {
writer.writeMessage(
7,
f,
google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter
);
}
f = /** @type {!proto.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType} */ (jspb.Message.getField(message, 8));
if (f != null) {
writer.writeEnum(
8,
f
);
}
};
/**
* optional google.protobuf.StringValue account_budget_proposal = 1;
* @return {?proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.getAccountBudgetProposal = 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.AccountBudget.PendingAccountBudgetProposal.prototype.setAccountBudgetProposal = function(value) {
jspb.Message.setWrapperField(this, 1, value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.clearAccountBudgetProposal = function() {
this.setAccountBudgetProposal(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.hasAccountBudgetProposal = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional google.ads.googleads.v0.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType proposal_type = 2;
* @return {!proto.google.ads.googleads.v0.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.getProposalType = function() {
return /** @type {!proto.google.ads.googleads.v0.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {!proto.google.ads.googleads.v0.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType} value */
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.setProposalType = function(value) {
jspb.Message.setProto3EnumField(this, 2, value);
};
/**
* optional google.protobuf.StringValue name = 3;
* @return {?proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.getName = 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.AccountBudget.PendingAccountBudgetProposal.prototype.setName = function(value) {
jspb.Message.setWrapperField(this, 3, value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.clearName = function() {
this.setName(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.hasName = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional google.protobuf.StringValue start_date_time = 4;
* @return {?proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.getStartDateTime = 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.AccountBudget.PendingAccountBudgetProposal.prototype.setStartDateTime = function(value) {
jspb.Message.setWrapperField(this, 4, value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.clearStartDateTime = function() {
this.setStartDateTime(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.hasStartDateTime = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional google.protobuf.StringValue purchase_order_number = 9;
* @return {?proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.getPurchaseOrderNumber = 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.AccountBudget.PendingAccountBudgetProposal.prototype.setPurchaseOrderNumber = function(value) {
jspb.Message.setWrapperField(this, 9, value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.clearPurchaseOrderNumber = function() {
this.setPurchaseOrderNumber(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.hasPurchaseOrderNumber = function() {
return jspb.Message.getField(this, 9) != null;
};
/**
* optional google.protobuf.StringValue notes = 10;
* @return {?proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.getNotes = function() {
return /** @type{?proto.google.protobuf.StringValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 10));
};
/** @param {?proto.google.protobuf.StringValue|undefined} value */
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.setNotes = function(value) {
jspb.Message.setWrapperField(this, 10, value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.clearNotes = function() {
this.setNotes(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.hasNotes = function() {
return jspb.Message.getField(this, 10) != null;
};
/**
* optional google.protobuf.StringValue creation_date_time = 11;
* @return {?proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.getCreationDateTime = 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.AccountBudget.PendingAccountBudgetProposal.prototype.setCreationDateTime = function(value) {
jspb.Message.setWrapperField(this, 11, value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.clearCreationDateTime = function() {
this.setCreationDateTime(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.hasCreationDateTime = function() {
return jspb.Message.getField(this, 11) != null;
};
/**
* optional google.protobuf.StringValue end_date_time = 5;
* @return {?proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.getEndDateTime = 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.AccountBudget.PendingAccountBudgetProposal.prototype.setEndDateTime = function(value) {
jspb.Message.setOneofWrapperField(this, 5, proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.oneofGroups_[0], value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.clearEndDateTime = function() {
this.setEndDateTime(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.hasEndDateTime = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional google.ads.googleads.v0.enums.TimeTypeEnum.TimeType end_time_type = 6;
* @return {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.getEndTimeType = function() {
return /** @type {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
};
/** @param {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} value */
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.setEndTimeType = function(value) {
jspb.Message.setOneofField(this, 6, proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.oneofGroups_[0], value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.clearEndTimeType = function() {
jspb.Message.setOneofField(this, 6, proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.hasEndTimeType = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional google.protobuf.Int64Value spending_limit_micros = 7;
* @return {?proto.google.protobuf.Int64Value}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.getSpendingLimitMicros = function() {
return /** @type{?proto.google.protobuf.Int64Value} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int64Value, 7));
};
/** @param {?proto.google.protobuf.Int64Value|undefined} value */
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.setSpendingLimitMicros = function(value) {
jspb.Message.setOneofWrapperField(this, 7, proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.oneofGroups_[1], value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.clearSpendingLimitMicros = function() {
this.setSpendingLimitMicros(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.hasSpendingLimitMicros = function() {
return jspb.Message.getField(this, 7) != null;
};
/**
* optional google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType spending_limit_type = 8;
* @return {!proto.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.getSpendingLimitType = function() {
return /** @type {!proto.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
};
/** @param {!proto.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType} value */
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.setSpendingLimitType = function(value) {
jspb.Message.setOneofField(this, 8, proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.oneofGroups_[1], value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.clearSpendingLimitType = function() {
jspb.Message.setOneofField(this, 8, proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.oneofGroups_[1], undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal.prototype.hasSpendingLimitType = function() {
return jspb.Message.getField(this, 8) != null;
};
/**
* optional string resource_name = 1;
* @return {string}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getResourceName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.google.ads.googleads.v0.resources.AccountBudget.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.AccountBudget.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.AccountBudget.prototype.setId = function(value) {
jspb.Message.setWrapperField(this, 2, value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.clearId = function() {
this.setId(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.hasId = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional google.protobuf.StringValue billing_setup = 3;
* @return {?proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getBillingSetup = 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.AccountBudget.prototype.setBillingSetup = function(value) {
jspb.Message.setWrapperField(this, 3, value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.clearBillingSetup = function() {
this.setBillingSetup(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.hasBillingSetup = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional google.ads.googleads.v0.enums.AccountBudgetStatusEnum.AccountBudgetStatus status = 4;
* @return {!proto.google.ads.googleads.v0.enums.AccountBudgetStatusEnum.AccountBudgetStatus}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getStatus = function() {
return /** @type {!proto.google.ads.googleads.v0.enums.AccountBudgetStatusEnum.AccountBudgetStatus} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/** @param {!proto.google.ads.googleads.v0.enums.AccountBudgetStatusEnum.AccountBudgetStatus} value */
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.setStatus = function(value) {
jspb.Message.setProto3EnumField(this, 4, value);
};
/**
* optional google.protobuf.StringValue name = 5;
* @return {?proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getName = 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.AccountBudget.prototype.setName = function(value) {
jspb.Message.setWrapperField(this, 5, value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.clearName = function() {
this.setName(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.hasName = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional google.protobuf.StringValue proposed_start_date_time = 6;
* @return {?proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getProposedStartDateTime = function() {
return /** @type{?proto.google.protobuf.StringValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 6));
};
/** @param {?proto.google.protobuf.StringValue|undefined} value */
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.setProposedStartDateTime = function(value) {
jspb.Message.setWrapperField(this, 6, value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.clearProposedStartDateTime = function() {
this.setProposedStartDateTime(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.hasProposedStartDateTime = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional google.protobuf.StringValue approved_start_date_time = 7;
* @return {?proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getApprovedStartDateTime = function() {
return /** @type{?proto.google.protobuf.StringValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 7));
};
/** @param {?proto.google.protobuf.StringValue|undefined} value */
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.setApprovedStartDateTime = function(value) {
jspb.Message.setWrapperField(this, 7, value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.clearApprovedStartDateTime = function() {
this.setApprovedStartDateTime(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.hasApprovedStartDateTime = function() {
return jspb.Message.getField(this, 7) != null;
};
/**
* optional google.protobuf.Int64Value total_adjustments_micros = 18;
* @return {?proto.google.protobuf.Int64Value}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getTotalAdjustmentsMicros = function() {
return /** @type{?proto.google.protobuf.Int64Value} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int64Value, 18));
};
/** @param {?proto.google.protobuf.Int64Value|undefined} value */
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.setTotalAdjustmentsMicros = function(value) {
jspb.Message.setWrapperField(this, 18, value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.clearTotalAdjustmentsMicros = function() {
this.setTotalAdjustmentsMicros(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.hasTotalAdjustmentsMicros = function() {
return jspb.Message.getField(this, 18) != null;
};
/**
* optional google.protobuf.Int64Value amount_served_micros = 19;
* @return {?proto.google.protobuf.Int64Value}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getAmountServedMicros = function() {
return /** @type{?proto.google.protobuf.Int64Value} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int64Value, 19));
};
/** @param {?proto.google.protobuf.Int64Value|undefined} value */
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.setAmountServedMicros = function(value) {
jspb.Message.setWrapperField(this, 19, value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.clearAmountServedMicros = function() {
this.setAmountServedMicros(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.hasAmountServedMicros = function() {
return jspb.Message.getField(this, 19) != null;
};
/**
* optional google.protobuf.StringValue purchase_order_number = 20;
* @return {?proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getPurchaseOrderNumber = function() {
return /** @type{?proto.google.protobuf.StringValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 20));
};
/** @param {?proto.google.protobuf.StringValue|undefined} value */
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.setPurchaseOrderNumber = function(value) {
jspb.Message.setWrapperField(this, 20, value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.clearPurchaseOrderNumber = function() {
this.setPurchaseOrderNumber(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.hasPurchaseOrderNumber = function() {
return jspb.Message.getField(this, 20) != null;
};
/**
* optional google.protobuf.StringValue notes = 21;
* @return {?proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getNotes = function() {
return /** @type{?proto.google.protobuf.StringValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 21));
};
/** @param {?proto.google.protobuf.StringValue|undefined} value */
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.setNotes = function(value) {
jspb.Message.setWrapperField(this, 21, value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.clearNotes = function() {
this.setNotes(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.hasNotes = function() {
return jspb.Message.getField(this, 21) != null;
};
/**
* optional PendingAccountBudgetProposal pending_proposal = 22;
* @return {?proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getPendingProposal = function() {
return /** @type{?proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal} */ (
jspb.Message.getWrapperField(this, proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal, 22));
};
/** @param {?proto.google.ads.googleads.v0.resources.AccountBudget.PendingAccountBudgetProposal|undefined} value */
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.setPendingProposal = function(value) {
jspb.Message.setWrapperField(this, 22, value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.clearPendingProposal = function() {
this.setPendingProposal(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.hasPendingProposal = function() {
return jspb.Message.getField(this, 22) != null;
};
/**
* optional google.protobuf.StringValue proposed_end_date_time = 8;
* @return {?proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getProposedEndDateTime = function() {
return /** @type{?proto.google.protobuf.StringValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 8));
};
/** @param {?proto.google.protobuf.StringValue|undefined} value */
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.setProposedEndDateTime = function(value) {
jspb.Message.setOneofWrapperField(this, 8, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_[0], value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.clearProposedEndDateTime = function() {
this.setProposedEndDateTime(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.hasProposedEndDateTime = function() {
return jspb.Message.getField(this, 8) != null;
};
/**
* optional google.ads.googleads.v0.enums.TimeTypeEnum.TimeType proposed_end_time_type = 9;
* @return {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getProposedEndTimeType = function() {
return /** @type {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
};
/** @param {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} value */
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.setProposedEndTimeType = function(value) {
jspb.Message.setOneofField(this, 9, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_[0], value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.clearProposedEndTimeType = function() {
jspb.Message.setOneofField(this, 9, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.hasProposedEndTimeType = function() {
return jspb.Message.getField(this, 9) != null;
};
/**
* optional google.protobuf.StringValue approved_end_date_time = 10;
* @return {?proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getApprovedEndDateTime = function() {
return /** @type{?proto.google.protobuf.StringValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 10));
};
/** @param {?proto.google.protobuf.StringValue|undefined} value */
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.setApprovedEndDateTime = function(value) {
jspb.Message.setOneofWrapperField(this, 10, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_[1], value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.clearApprovedEndDateTime = function() {
this.setApprovedEndDateTime(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.hasApprovedEndDateTime = function() {
return jspb.Message.getField(this, 10) != null;
};
/**
* optional google.ads.googleads.v0.enums.TimeTypeEnum.TimeType approved_end_time_type = 11;
* @return {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getApprovedEndTimeType = function() {
return /** @type {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
};
/** @param {!proto.google.ads.googleads.v0.enums.TimeTypeEnum.TimeType} value */
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.setApprovedEndTimeType = function(value) {
jspb.Message.setOneofField(this, 11, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_[1], value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.clearApprovedEndTimeType = function() {
jspb.Message.setOneofField(this, 11, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_[1], undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.hasApprovedEndTimeType = function() {
return jspb.Message.getField(this, 11) != null;
};
/**
* optional google.protobuf.Int64Value proposed_spending_limit_micros = 12;
* @return {?proto.google.protobuf.Int64Value}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getProposedSpendingLimitMicros = function() {
return /** @type{?proto.google.protobuf.Int64Value} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int64Value, 12));
};
/** @param {?proto.google.protobuf.Int64Value|undefined} value */
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.setProposedSpendingLimitMicros = function(value) {
jspb.Message.setOneofWrapperField(this, 12, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_[2], value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.clearProposedSpendingLimitMicros = function() {
this.setProposedSpendingLimitMicros(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.hasProposedSpendingLimitMicros = function() {
return jspb.Message.getField(this, 12) != null;
};
/**
* optional google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType proposed_spending_limit_type = 13;
* @return {!proto.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getProposedSpendingLimitType = function() {
return /** @type {!proto.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
};
/** @param {!proto.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType} value */
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.setProposedSpendingLimitType = function(value) {
jspb.Message.setOneofField(this, 13, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_[2], value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.clearProposedSpendingLimitType = function() {
jspb.Message.setOneofField(this, 13, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_[2], undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.hasProposedSpendingLimitType = function() {
return jspb.Message.getField(this, 13) != null;
};
/**
* optional google.protobuf.Int64Value approved_spending_limit_micros = 14;
* @return {?proto.google.protobuf.Int64Value}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getApprovedSpendingLimitMicros = function() {
return /** @type{?proto.google.protobuf.Int64Value} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int64Value, 14));
};
/** @param {?proto.google.protobuf.Int64Value|undefined} value */
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.setApprovedSpendingLimitMicros = function(value) {
jspb.Message.setOneofWrapperField(this, 14, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_[3], value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.clearApprovedSpendingLimitMicros = function() {
this.setApprovedSpendingLimitMicros(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.hasApprovedSpendingLimitMicros = function() {
return jspb.Message.getField(this, 14) != null;
};
/**
* optional google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType approved_spending_limit_type = 15;
* @return {!proto.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getApprovedSpendingLimitType = function() {
return /** @type {!proto.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
};
/** @param {!proto.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType} value */
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.setApprovedSpendingLimitType = function(value) {
jspb.Message.setOneofField(this, 15, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_[3], value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.clearApprovedSpendingLimitType = function() {
jspb.Message.setOneofField(this, 15, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_[3], undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.hasApprovedSpendingLimitType = function() {
return jspb.Message.getField(this, 15) != null;
};
/**
* optional google.protobuf.Int64Value adjusted_spending_limit_micros = 16;
* @return {?proto.google.protobuf.Int64Value}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getAdjustedSpendingLimitMicros = function() {
return /** @type{?proto.google.protobuf.Int64Value} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.Int64Value, 16));
};
/** @param {?proto.google.protobuf.Int64Value|undefined} value */
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.setAdjustedSpendingLimitMicros = function(value) {
jspb.Message.setOneofWrapperField(this, 16, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_[4], value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.clearAdjustedSpendingLimitMicros = function() {
this.setAdjustedSpendingLimitMicros(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.hasAdjustedSpendingLimitMicros = function() {
return jspb.Message.getField(this, 16) != null;
};
/**
* optional google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType adjusted_spending_limit_type = 17;
* @return {!proto.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.getAdjustedSpendingLimitType = function() {
return /** @type {!proto.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
};
/** @param {!proto.google.ads.googleads.v0.enums.SpendingLimitTypeEnum.SpendingLimitType} value */
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.setAdjustedSpendingLimitType = function(value) {
jspb.Message.setOneofField(this, 17, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_[4], value);
};
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.clearAdjustedSpendingLimitType = function() {
jspb.Message.setOneofField(this, 17, proto.google.ads.googleads.v0.resources.AccountBudget.oneofGroups_[4], undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.resources.AccountBudget.prototype.hasAdjustedSpendingLimitType = function() {
return jspb.Message.getField(this, 17) != null;
};
goog.object.extend(exports, proto.google.ads.googleads.v0.resources);