google-ads-node
Version:
Google Ads gRPC Client Library for Node
1,288 lines (1,111 loc) • 102 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_policy_topic_entry_type_pb = require('../../../../../google/ads/googleads/v0/enums/policy_topic_entry_type_pb.js');
var google_ads_googleads_v0_enums_policy_topic_evidence_destination_mismatch_url_type_pb = require('../../../../../google/ads/googleads/v0/enums/policy_topic_evidence_destination_mismatch_url_type_pb.js');
var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
goog.exportSymbol('proto.google.ads.googleads.v0.common.PolicyTopicConstraint', null, global);
goog.exportSymbol('proto.google.ads.googleads.v0.common.PolicyTopicConstraint.CountryConstraint', null, global);
goog.exportSymbol('proto.google.ads.googleads.v0.common.PolicyTopicConstraint.CountryConstraintList', null, global);
goog.exportSymbol('proto.google.ads.googleads.v0.common.PolicyTopicConstraint.ResellerConstraint', null, global);
goog.exportSymbol('proto.google.ads.googleads.v0.common.PolicyTopicEntry', null, global);
goog.exportSymbol('proto.google.ads.googleads.v0.common.PolicyTopicEvidence', null, global);
goog.exportSymbol('proto.google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationMismatch', null, global);
goog.exportSymbol('proto.google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationTextList', null, global);
goog.exportSymbol('proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList', null, global);
goog.exportSymbol('proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList', null, global);
goog.exportSymbol('proto.google.ads.googleads.v0.common.PolicyValidationParameter', null, global);
goog.exportSymbol('proto.google.ads.googleads.v0.common.PolicyViolationKey', 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.common.PolicyViolationKey = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.google.ads.googleads.v0.common.PolicyViolationKey, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.ads.googleads.v0.common.PolicyViolationKey.displayName = 'proto.google.ads.googleads.v0.common.PolicyViolationKey';
}
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.common.PolicyViolationKey.prototype.toObject = function(opt_includeInstance) {
return proto.google.ads.googleads.v0.common.PolicyViolationKey.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.common.PolicyViolationKey} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.ads.googleads.v0.common.PolicyViolationKey.toObject = function(includeInstance, msg) {
var f, obj = {
policyName: (f = msg.getPolicyName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
violatingText: (f = msg.getViolatingText()) && 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.common.PolicyViolationKey}
*/
proto.google.ads.googleads.v0.common.PolicyViolationKey.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.ads.googleads.v0.common.PolicyViolationKey;
return proto.google.ads.googleads.v0.common.PolicyViolationKey.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.common.PolicyViolationKey} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.ads.googleads.v0.common.PolicyViolationKey}
*/
proto.google.ads.googleads.v0.common.PolicyViolationKey.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.setPolicyName(value);
break;
case 2:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setViolatingText(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.common.PolicyViolationKey.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.ads.googleads.v0.common.PolicyViolationKey.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.common.PolicyViolationKey} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.ads.googleads.v0.common.PolicyViolationKey.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getPolicyName();
if (f != null) {
writer.writeMessage(
1,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = message.getViolatingText();
if (f != null) {
writer.writeMessage(
2,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
};
/**
* optional google.protobuf.StringValue policy_name = 1;
* @return {?proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.common.PolicyViolationKey.prototype.getPolicyName = 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.common.PolicyViolationKey.prototype.setPolicyName = function(value) {
jspb.Message.setWrapperField(this, 1, value);
};
proto.google.ads.googleads.v0.common.PolicyViolationKey.prototype.clearPolicyName = function() {
this.setPolicyName(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.common.PolicyViolationKey.prototype.hasPolicyName = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional google.protobuf.StringValue violating_text = 2;
* @return {?proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.common.PolicyViolationKey.prototype.getViolatingText = 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.common.PolicyViolationKey.prototype.setViolatingText = function(value) {
jspb.Message.setWrapperField(this, 2, value);
};
proto.google.ads.googleads.v0.common.PolicyViolationKey.prototype.clearViolatingText = function() {
this.setViolatingText(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.common.PolicyViolationKey.prototype.hasViolatingText = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* 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.common.PolicyValidationParameter = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.ads.googleads.v0.common.PolicyValidationParameter.repeatedFields_, null);
};
goog.inherits(proto.google.ads.googleads.v0.common.PolicyValidationParameter, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.ads.googleads.v0.common.PolicyValidationParameter.displayName = 'proto.google.ads.googleads.v0.common.PolicyValidationParameter';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.ads.googleads.v0.common.PolicyValidationParameter.repeatedFields_ = [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.common.PolicyValidationParameter.prototype.toObject = function(opt_includeInstance) {
return proto.google.ads.googleads.v0.common.PolicyValidationParameter.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.common.PolicyValidationParameter} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.ads.googleads.v0.common.PolicyValidationParameter.toObject = function(includeInstance, msg) {
var f, obj = {
ignorablePolicyTopicsList: jspb.Message.toObjectList(msg.getIgnorablePolicyTopicsList(),
google_protobuf_wrappers_pb.StringValue.toObject, includeInstance)
};
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.common.PolicyValidationParameter}
*/
proto.google.ads.googleads.v0.common.PolicyValidationParameter.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.ads.googleads.v0.common.PolicyValidationParameter;
return proto.google.ads.googleads.v0.common.PolicyValidationParameter.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.common.PolicyValidationParameter} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.ads.googleads.v0.common.PolicyValidationParameter}
*/
proto.google.ads.googleads.v0.common.PolicyValidationParameter.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.addIgnorablePolicyTopics(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.common.PolicyValidationParameter.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.ads.googleads.v0.common.PolicyValidationParameter.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.common.PolicyValidationParameter} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.ads.googleads.v0.common.PolicyValidationParameter.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getIgnorablePolicyTopicsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
};
/**
* repeated google.protobuf.StringValue ignorable_policy_topics = 1;
* @return {!Array<!proto.google.protobuf.StringValue>}
*/
proto.google.ads.googleads.v0.common.PolicyValidationParameter.prototype.getIgnorablePolicyTopicsList = function() {
return /** @type{!Array<!proto.google.protobuf.StringValue>} */ (
jspb.Message.getRepeatedWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
};
/** @param {!Array<!proto.google.protobuf.StringValue>} value */
proto.google.ads.googleads.v0.common.PolicyValidationParameter.prototype.setIgnorablePolicyTopicsList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.google.protobuf.StringValue=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.common.PolicyValidationParameter.prototype.addIgnorablePolicyTopics = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.StringValue, opt_index);
};
proto.google.ads.googleads.v0.common.PolicyValidationParameter.prototype.clearIgnorablePolicyTopicsList = function() {
this.setIgnorablePolicyTopicsList([]);
};
/**
* 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.common.PolicyTopicEntry = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.ads.googleads.v0.common.PolicyTopicEntry.repeatedFields_, null);
};
goog.inherits(proto.google.ads.googleads.v0.common.PolicyTopicEntry, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.ads.googleads.v0.common.PolicyTopicEntry.displayName = 'proto.google.ads.googleads.v0.common.PolicyTopicEntry';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.ads.googleads.v0.common.PolicyTopicEntry.repeatedFields_ = [3,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.common.PolicyTopicEntry.prototype.toObject = function(opt_includeInstance) {
return proto.google.ads.googleads.v0.common.PolicyTopicEntry.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.common.PolicyTopicEntry} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.ads.googleads.v0.common.PolicyTopicEntry.toObject = function(includeInstance, msg) {
var f, obj = {
topic: (f = msg.getTopic()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
type: jspb.Message.getFieldWithDefault(msg, 2, 0),
evidencesList: jspb.Message.toObjectList(msg.getEvidencesList(),
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.toObject, includeInstance),
constraintsList: jspb.Message.toObjectList(msg.getConstraintsList(),
proto.google.ads.googleads.v0.common.PolicyTopicConstraint.toObject, includeInstance)
};
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.common.PolicyTopicEntry}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEntry.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.ads.googleads.v0.common.PolicyTopicEntry;
return proto.google.ads.googleads.v0.common.PolicyTopicEntry.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.common.PolicyTopicEntry} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.ads.googleads.v0.common.PolicyTopicEntry}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEntry.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.setTopic(value);
break;
case 2:
var value = /** @type {!proto.google.ads.googleads.v0.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType} */ (reader.readEnum());
msg.setType(value);
break;
case 3:
var value = new proto.google.ads.googleads.v0.common.PolicyTopicEvidence;
reader.readMessage(value,proto.google.ads.googleads.v0.common.PolicyTopicEvidence.deserializeBinaryFromReader);
msg.addEvidences(value);
break;
case 4:
var value = new proto.google.ads.googleads.v0.common.PolicyTopicConstraint;
reader.readMessage(value,proto.google.ads.googleads.v0.common.PolicyTopicConstraint.deserializeBinaryFromReader);
msg.addConstraints(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.common.PolicyTopicEntry.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.ads.googleads.v0.common.PolicyTopicEntry.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.common.PolicyTopicEntry} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.ads.googleads.v0.common.PolicyTopicEntry.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTopic();
if (f != null) {
writer.writeMessage(
1,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = message.getType();
if (f !== 0.0) {
writer.writeEnum(
2,
f
);
}
f = message.getEvidencesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.serializeBinaryToWriter
);
}
f = message.getConstraintsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
4,
f,
proto.google.ads.googleads.v0.common.PolicyTopicConstraint.serializeBinaryToWriter
);
}
};
/**
* optional google.protobuf.StringValue topic = 1;
* @return {?proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEntry.prototype.getTopic = 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.common.PolicyTopicEntry.prototype.setTopic = function(value) {
jspb.Message.setWrapperField(this, 1, value);
};
proto.google.ads.googleads.v0.common.PolicyTopicEntry.prototype.clearTopic = function() {
this.setTopic(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEntry.prototype.hasTopic = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional google.ads.googleads.v0.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType type = 2;
* @return {!proto.google.ads.googleads.v0.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEntry.prototype.getType = function() {
return /** @type {!proto.google.ads.googleads.v0.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {!proto.google.ads.googleads.v0.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType} value */
proto.google.ads.googleads.v0.common.PolicyTopicEntry.prototype.setType = function(value) {
jspb.Message.setProto3EnumField(this, 2, value);
};
/**
* repeated PolicyTopicEvidence evidences = 3;
* @return {!Array<!proto.google.ads.googleads.v0.common.PolicyTopicEvidence>}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEntry.prototype.getEvidencesList = function() {
return /** @type{!Array<!proto.google.ads.googleads.v0.common.PolicyTopicEvidence>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.ads.googleads.v0.common.PolicyTopicEvidence, 3));
};
/** @param {!Array<!proto.google.ads.googleads.v0.common.PolicyTopicEvidence>} value */
proto.google.ads.googleads.v0.common.PolicyTopicEntry.prototype.setEvidencesList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 3, value);
};
/**
* @param {!proto.google.ads.googleads.v0.common.PolicyTopicEvidence=} opt_value
* @param {number=} opt_index
* @return {!proto.google.ads.googleads.v0.common.PolicyTopicEvidence}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEntry.prototype.addEvidences = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.ads.googleads.v0.common.PolicyTopicEvidence, opt_index);
};
proto.google.ads.googleads.v0.common.PolicyTopicEntry.prototype.clearEvidencesList = function() {
this.setEvidencesList([]);
};
/**
* repeated PolicyTopicConstraint constraints = 4;
* @return {!Array<!proto.google.ads.googleads.v0.common.PolicyTopicConstraint>}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEntry.prototype.getConstraintsList = function() {
return /** @type{!Array<!proto.google.ads.googleads.v0.common.PolicyTopicConstraint>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.ads.googleads.v0.common.PolicyTopicConstraint, 4));
};
/** @param {!Array<!proto.google.ads.googleads.v0.common.PolicyTopicConstraint>} value */
proto.google.ads.googleads.v0.common.PolicyTopicEntry.prototype.setConstraintsList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 4, value);
};
/**
* @param {!proto.google.ads.googleads.v0.common.PolicyTopicConstraint=} opt_value
* @param {number=} opt_index
* @return {!proto.google.ads.googleads.v0.common.PolicyTopicConstraint}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEntry.prototype.addConstraints = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.ads.googleads.v0.common.PolicyTopicConstraint, opt_index);
};
proto.google.ads.googleads.v0.common.PolicyTopicEntry.prototype.clearConstraintsList = function() {
this.setConstraintsList([]);
};
/**
* 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.common.PolicyTopicEvidence = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.ads.googleads.v0.common.PolicyTopicEvidence.oneofGroups_);
};
goog.inherits(proto.google.ads.googleads.v0.common.PolicyTopicEvidence, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.displayName = 'proto.google.ads.googleads.v0.common.PolicyTopicEvidence';
}
/**
* 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.common.PolicyTopicEvidence.oneofGroups_ = [[2,3,4,5,6,7]];
/**
* @enum {number}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.ValueCase = {
VALUE_NOT_SET: 0,
HTTP_CODE: 2,
WEBSITE_LIST: 3,
TEXT_LIST: 4,
LANGUAGE_CODE: 5,
DESTINATION_TEXT_LIST: 6,
DESTINATION_MISMATCH: 7
};
/**
* @return {proto.google.ads.googleads.v0.common.PolicyTopicEvidence.ValueCase}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.prototype.getValueCase = function() {
return /** @type {proto.google.ads.googleads.v0.common.PolicyTopicEvidence.ValueCase} */(jspb.Message.computeOneofCase(this, proto.google.ads.googleads.v0.common.PolicyTopicEvidence.oneofGroups_[0]));
};
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.common.PolicyTopicEvidence.prototype.toObject = function(opt_includeInstance) {
return proto.google.ads.googleads.v0.common.PolicyTopicEvidence.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.common.PolicyTopicEvidence} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.toObject = function(includeInstance, msg) {
var f, obj = {
httpCode: (f = msg.getHttpCode()) && google_protobuf_wrappers_pb.Int32Value.toObject(includeInstance, f),
websiteList: (f = msg.getWebsiteList()) && proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList.toObject(includeInstance, f),
textList: (f = msg.getTextList()) && proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList.toObject(includeInstance, f),
languageCode: (f = msg.getLanguageCode()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
destinationTextList: (f = msg.getDestinationTextList()) && proto.google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationTextList.toObject(includeInstance, f),
destinationMismatch: (f = msg.getDestinationMismatch()) && proto.google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationMismatch.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.common.PolicyTopicEvidence}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.ads.googleads.v0.common.PolicyTopicEvidence;
return proto.google.ads.googleads.v0.common.PolicyTopicEvidence.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.common.PolicyTopicEvidence} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.ads.googleads.v0.common.PolicyTopicEvidence}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 2:
var value = new google_protobuf_wrappers_pb.Int32Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int32Value.deserializeBinaryFromReader);
msg.setHttpCode(value);
break;
case 3:
var value = new proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList;
reader.readMessage(value,proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList.deserializeBinaryFromReader);
msg.setWebsiteList(value);
break;
case 4:
var value = new proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList;
reader.readMessage(value,proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList.deserializeBinaryFromReader);
msg.setTextList(value);
break;
case 5:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setLanguageCode(value);
break;
case 6:
var value = new proto.google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationTextList;
reader.readMessage(value,proto.google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationTextList.deserializeBinaryFromReader);
msg.setDestinationTextList(value);
break;
case 7:
var value = new proto.google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationMismatch;
reader.readMessage(value,proto.google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationMismatch.deserializeBinaryFromReader);
msg.setDestinationMismatch(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.common.PolicyTopicEvidence.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.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.common.PolicyTopicEvidence} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getHttpCode();
if (f != null) {
writer.writeMessage(
2,
f,
google_protobuf_wrappers_pb.Int32Value.serializeBinaryToWriter
);
}
f = message.getWebsiteList();
if (f != null) {
writer.writeMessage(
3,
f,
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList.serializeBinaryToWriter
);
}
f = message.getTextList();
if (f != null) {
writer.writeMessage(
4,
f,
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList.serializeBinaryToWriter
);
}
f = message.getLanguageCode();
if (f != null) {
writer.writeMessage(
5,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = message.getDestinationTextList();
if (f != null) {
writer.writeMessage(
6,
f,
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationTextList.serializeBinaryToWriter
);
}
f = message.getDestinationMismatch();
if (f != null) {
writer.writeMessage(
7,
f,
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationMismatch.serializeBinaryToWriter
);
}
};
/**
* 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.common.PolicyTopicEvidence.TextList = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList.repeatedFields_, null);
};
goog.inherits(proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList.displayName = 'proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList.repeatedFields_ = [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.common.PolicyTopicEvidence.TextList.prototype.toObject = function(opt_includeInstance) {
return proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList.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.common.PolicyTopicEvidence.TextList} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList.toObject = function(includeInstance, msg) {
var f, obj = {
textsList: jspb.Message.toObjectList(msg.getTextsList(),
google_protobuf_wrappers_pb.StringValue.toObject, includeInstance)
};
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.common.PolicyTopicEvidence.TextList}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList;
return proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList.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.common.PolicyTopicEvidence.TextList} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList.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.addTexts(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.common.PolicyTopicEvidence.TextList.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList.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.common.PolicyTopicEvidence.TextList} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTextsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
};
/**
* repeated google.protobuf.StringValue texts = 1;
* @return {!Array<!proto.google.protobuf.StringValue>}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList.prototype.getTextsList = function() {
return /** @type{!Array<!proto.google.protobuf.StringValue>} */ (
jspb.Message.getRepeatedWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
};
/** @param {!Array<!proto.google.protobuf.StringValue>} value */
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList.prototype.setTextsList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.google.protobuf.StringValue=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList.prototype.addTexts = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.StringValue, opt_index);
};
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.TextList.prototype.clearTextsList = function() {
this.setTextsList([]);
};
/**
* 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.common.PolicyTopicEvidence.WebsiteList = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList.repeatedFields_, null);
};
goog.inherits(proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList.displayName = 'proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList.repeatedFields_ = [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.common.PolicyTopicEvidence.WebsiteList.prototype.toObject = function(opt_includeInstance) {
return proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList.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.common.PolicyTopicEvidence.WebsiteList} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList.toObject = function(includeInstance, msg) {
var f, obj = {
websitesList: jspb.Message.toObjectList(msg.getWebsitesList(),
google_protobuf_wrappers_pb.StringValue.toObject, includeInstance)
};
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.common.PolicyTopicEvidence.WebsiteList}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList;
return proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList.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.common.PolicyTopicEvidence.WebsiteList} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList.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.addWebsites(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.common.PolicyTopicEvidence.WebsiteList.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList.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.common.PolicyTopicEvidence.WebsiteList} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getWebsitesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
};
/**
* repeated google.protobuf.StringValue websites = 1;
* @return {!Array<!proto.google.protobuf.StringValue>}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList.prototype.getWebsitesList = function() {
return /** @type{!Array<!proto.google.protobuf.StringValue>} */ (
jspb.Message.getRepeatedWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
};
/** @param {!Array<!proto.google.protobuf.StringValue>} value */
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList.prototype.setWebsitesList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.google.protobuf.StringValue=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.StringValue}
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList.prototype.addWebsites = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.StringValue, opt_index);
};
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.WebsiteList.prototype.clearWebsitesList = function() {
this.setWebsitesList([]);
};
/**
* 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.common.PolicyTopicEvidence.DestinationTextList = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationTextList.repeatedFields_, null);
};
goog.inherits(proto.google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationTextList, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationTextList.displayName = 'proto.google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationTextList';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.ads.googleads.v0.common.PolicyTopicEvidence.DestinationTextList.repeatedFields_ = [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.common.PolicyTopicEvidence.DestinationTextList.prototype.toObject = function(opt_includeInstanc