UNPKG

google-ads-node

Version:

Google Ads gRPC Client Library for Node

1 lines 29.2 kB
var jspb=require("google-protobuf"),goog=jspb,global=Function("return this")(),google_ads_googleads_v2_enums_matching_function_context_type_pb=require("../../../../../google/ads/googleads/v2/enums/matching_function_context_type_pb.js"),google_ads_googleads_v2_enums_matching_function_operator_pb=require("../../../../../google/ads/googleads/v2/enums/matching_function_operator_pb.js"),google_protobuf_wrappers_pb=require("google-protobuf/google/protobuf/wrappers_pb.js"),google_api_annotations_pb=require("../../../../../google/api/annotations_pb.js");goog.exportSymbol("proto.google.ads.googleads.v2.common.MatchingFunction",null,global),goog.exportSymbol("proto.google.ads.googleads.v2.common.Operand",null,global),goog.exportSymbol("proto.google.ads.googleads.v2.common.Operand.ConstantOperand",null,global),goog.exportSymbol("proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand",null,global),goog.exportSymbol("proto.google.ads.googleads.v2.common.Operand.FunctionOperand",null,global),goog.exportSymbol("proto.google.ads.googleads.v2.common.Operand.RequestContextOperand",null,global),proto.google.ads.googleads.v2.common.MatchingFunction=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,proto.google.ads.googleads.v2.common.MatchingFunction.repeatedFields_,null)},goog.inherits(proto.google.ads.googleads.v2.common.MatchingFunction,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.MatchingFunction.displayName="proto.google.ads.googleads.v2.common.MatchingFunction"),proto.google.ads.googleads.v2.common.MatchingFunction.repeatedFields_=[2,3],jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.MatchingFunction.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.MatchingFunction.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.MatchingFunction.toObject=function(includeInstance,msg){var f,obj={functionString:(f=msg.getFunctionString())&&google_protobuf_wrappers_pb.StringValue.toObject(includeInstance,f),operator:jspb.Message.getFieldWithDefault(msg,4,0),leftOperandsList:jspb.Message.toObjectList(msg.getLeftOperandsList(),proto.google.ads.googleads.v2.common.Operand.toObject,includeInstance),rightOperandsList:jspb.Message.toObjectList(msg.getRightOperandsList(),proto.google.ads.googleads.v2.common.Operand.toObject,includeInstance)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.MatchingFunction.deserializeBinary=function(bytes){var reader=new jspb.BinaryReader(bytes),msg=new proto.google.ads.googleads.v2.common.MatchingFunction;return proto.google.ads.googleads.v2.common.MatchingFunction.deserializeBinaryFromReader(msg,reader)},proto.google.ads.googleads.v2.common.MatchingFunction.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){switch(reader.getFieldNumber()){case 1:var value=new google_protobuf_wrappers_pb.StringValue;reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader),msg.setFunctionString(value);break;case 4:value=reader.readEnum();msg.setOperator(value);break;case 2:value=new proto.google.ads.googleads.v2.common.Operand;reader.readMessage(value,proto.google.ads.googleads.v2.common.Operand.deserializeBinaryFromReader),msg.addLeftOperands(value);break;case 3:value=new proto.google.ads.googleads.v2.common.Operand;reader.readMessage(value,proto.google.ads.googleads.v2.common.Operand.deserializeBinaryFromReader),msg.addRightOperands(value);break;default:reader.skipField()}}return msg},proto.google.ads.googleads.v2.common.MatchingFunction.prototype.serializeBinary=function(){var writer=new jspb.BinaryWriter;return proto.google.ads.googleads.v2.common.MatchingFunction.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.ads.googleads.v2.common.MatchingFunction.serializeBinaryToWriter=function(message,writer){var f=void 0;null!=(f=message.getFunctionString())&&writer.writeMessage(1,f,google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter),0!==(f=message.getOperator())&&writer.writeEnum(4,f),0<(f=message.getLeftOperandsList()).length&&writer.writeRepeatedMessage(2,f,proto.google.ads.googleads.v2.common.Operand.serializeBinaryToWriter),0<(f=message.getRightOperandsList()).length&&writer.writeRepeatedMessage(3,f,proto.google.ads.googleads.v2.common.Operand.serializeBinaryToWriter)},proto.google.ads.googleads.v2.common.MatchingFunction.prototype.getFunctionString=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.StringValue,1)},proto.google.ads.googleads.v2.common.MatchingFunction.prototype.setFunctionString=function(value){jspb.Message.setWrapperField(this,1,value)},proto.google.ads.googleads.v2.common.MatchingFunction.prototype.clearFunctionString=function(){this.setFunctionString(void 0)},proto.google.ads.googleads.v2.common.MatchingFunction.prototype.hasFunctionString=function(){return null!=jspb.Message.getField(this,1)},proto.google.ads.googleads.v2.common.MatchingFunction.prototype.getOperator=function(){return jspb.Message.getFieldWithDefault(this,4,0)},proto.google.ads.googleads.v2.common.MatchingFunction.prototype.setOperator=function(value){jspb.Message.setProto3EnumField(this,4,value)},proto.google.ads.googleads.v2.common.MatchingFunction.prototype.getLeftOperandsList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.google.ads.googleads.v2.common.Operand,2)},proto.google.ads.googleads.v2.common.MatchingFunction.prototype.setLeftOperandsList=function(value){jspb.Message.setRepeatedWrapperField(this,2,value)},proto.google.ads.googleads.v2.common.MatchingFunction.prototype.addLeftOperands=function(opt_value,opt_index){return jspb.Message.addToRepeatedWrapperField(this,2,opt_value,proto.google.ads.googleads.v2.common.Operand,opt_index)},proto.google.ads.googleads.v2.common.MatchingFunction.prototype.clearLeftOperandsList=function(){this.setLeftOperandsList([])},proto.google.ads.googleads.v2.common.MatchingFunction.prototype.getRightOperandsList=function(){return jspb.Message.getRepeatedWrapperField(this,proto.google.ads.googleads.v2.common.Operand,3)},proto.google.ads.googleads.v2.common.MatchingFunction.prototype.setRightOperandsList=function(value){jspb.Message.setRepeatedWrapperField(this,3,value)},proto.google.ads.googleads.v2.common.MatchingFunction.prototype.addRightOperands=function(opt_value,opt_index){return jspb.Message.addToRepeatedWrapperField(this,3,opt_value,proto.google.ads.googleads.v2.common.Operand,opt_index)},proto.google.ads.googleads.v2.common.MatchingFunction.prototype.clearRightOperandsList=function(){this.setRightOperandsList([])},proto.google.ads.googleads.v2.common.Operand=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,null,proto.google.ads.googleads.v2.common.Operand.oneofGroups_)},goog.inherits(proto.google.ads.googleads.v2.common.Operand,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.Operand.displayName="proto.google.ads.googleads.v2.common.Operand"),proto.google.ads.googleads.v2.common.Operand.oneofGroups_=[[1,2,3,4]],proto.google.ads.googleads.v2.common.Operand.FunctionArgumentOperandCase={FUNCTION_ARGUMENT_OPERAND_NOT_SET:0,CONSTANT_OPERAND:1,FEED_ATTRIBUTE_OPERAND:2,FUNCTION_OPERAND:3,REQUEST_CONTEXT_OPERAND:4},proto.google.ads.googleads.v2.common.Operand.prototype.getFunctionArgumentOperandCase=function(){return jspb.Message.computeOneofCase(this,proto.google.ads.googleads.v2.common.Operand.oneofGroups_[0])},jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.Operand.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.Operand.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.Operand.toObject=function(includeInstance,msg){var f,obj={constantOperand:(f=msg.getConstantOperand())&&proto.google.ads.googleads.v2.common.Operand.ConstantOperand.toObject(includeInstance,f),feedAttributeOperand:(f=msg.getFeedAttributeOperand())&&proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.toObject(includeInstance,f),functionOperand:(f=msg.getFunctionOperand())&&proto.google.ads.googleads.v2.common.Operand.FunctionOperand.toObject(includeInstance,f),requestContextOperand:(f=msg.getRequestContextOperand())&&proto.google.ads.googleads.v2.common.Operand.RequestContextOperand.toObject(includeInstance,f)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.Operand.deserializeBinary=function(bytes){var reader=new jspb.BinaryReader(bytes),msg=new proto.google.ads.googleads.v2.common.Operand;return proto.google.ads.googleads.v2.common.Operand.deserializeBinaryFromReader(msg,reader)},proto.google.ads.googleads.v2.common.Operand.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){switch(reader.getFieldNumber()){case 1:var value=new proto.google.ads.googleads.v2.common.Operand.ConstantOperand;reader.readMessage(value,proto.google.ads.googleads.v2.common.Operand.ConstantOperand.deserializeBinaryFromReader),msg.setConstantOperand(value);break;case 2:value=new proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand;reader.readMessage(value,proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.deserializeBinaryFromReader),msg.setFeedAttributeOperand(value);break;case 3:value=new proto.google.ads.googleads.v2.common.Operand.FunctionOperand;reader.readMessage(value,proto.google.ads.googleads.v2.common.Operand.FunctionOperand.deserializeBinaryFromReader),msg.setFunctionOperand(value);break;case 4:value=new proto.google.ads.googleads.v2.common.Operand.RequestContextOperand;reader.readMessage(value,proto.google.ads.googleads.v2.common.Operand.RequestContextOperand.deserializeBinaryFromReader),msg.setRequestContextOperand(value);break;default:reader.skipField()}}return msg},proto.google.ads.googleads.v2.common.Operand.prototype.serializeBinary=function(){var writer=new jspb.BinaryWriter;return proto.google.ads.googleads.v2.common.Operand.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.ads.googleads.v2.common.Operand.serializeBinaryToWriter=function(message,writer){var f=void 0;null!=(f=message.getConstantOperand())&&writer.writeMessage(1,f,proto.google.ads.googleads.v2.common.Operand.ConstantOperand.serializeBinaryToWriter),null!=(f=message.getFeedAttributeOperand())&&writer.writeMessage(2,f,proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.serializeBinaryToWriter),null!=(f=message.getFunctionOperand())&&writer.writeMessage(3,f,proto.google.ads.googleads.v2.common.Operand.FunctionOperand.serializeBinaryToWriter),null!=(f=message.getRequestContextOperand())&&writer.writeMessage(4,f,proto.google.ads.googleads.v2.common.Operand.RequestContextOperand.serializeBinaryToWriter)},proto.google.ads.googleads.v2.common.Operand.ConstantOperand=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,null,proto.google.ads.googleads.v2.common.Operand.ConstantOperand.oneofGroups_)},goog.inherits(proto.google.ads.googleads.v2.common.Operand.ConstantOperand,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.Operand.ConstantOperand.displayName="proto.google.ads.googleads.v2.common.Operand.ConstantOperand"),proto.google.ads.googleads.v2.common.Operand.ConstantOperand.oneofGroups_=[[1,2,3,4]],proto.google.ads.googleads.v2.common.Operand.ConstantOperand.ConstantOperandValueCase={CONSTANT_OPERAND_VALUE_NOT_SET:0,STRING_VALUE:1,LONG_VALUE:2,BOOLEAN_VALUE:3,DOUBLE_VALUE:4},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.prototype.getConstantOperandValueCase=function(){return jspb.Message.computeOneofCase(this,proto.google.ads.googleads.v2.common.Operand.ConstantOperand.oneofGroups_[0])},jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.Operand.ConstantOperand.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.Operand.ConstantOperand.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.toObject=function(includeInstance,msg){var f,obj={stringValue:(f=msg.getStringValue())&&google_protobuf_wrappers_pb.StringValue.toObject(includeInstance,f),longValue:(f=msg.getLongValue())&&google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance,f),booleanValue:(f=msg.getBooleanValue())&&google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance,f),doubleValue:(f=msg.getDoubleValue())&&google_protobuf_wrappers_pb.DoubleValue.toObject(includeInstance,f)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.Operand.ConstantOperand.deserializeBinary=function(bytes){var reader=new jspb.BinaryReader(bytes),msg=new proto.google.ads.googleads.v2.common.Operand.ConstantOperand;return proto.google.ads.googleads.v2.common.Operand.ConstantOperand.deserializeBinaryFromReader(msg,reader)},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){switch(reader.getFieldNumber()){case 1:var value=new google_protobuf_wrappers_pb.StringValue;reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader),msg.setStringValue(value);break;case 2:value=new google_protobuf_wrappers_pb.Int64Value;reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader),msg.setLongValue(value);break;case 3:value=new google_protobuf_wrappers_pb.BoolValue;reader.readMessage(value,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader),msg.setBooleanValue(value);break;case 4:value=new google_protobuf_wrappers_pb.DoubleValue;reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader),msg.setDoubleValue(value);break;default:reader.skipField()}}return msg},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.prototype.serializeBinary=function(){var writer=new jspb.BinaryWriter;return proto.google.ads.googleads.v2.common.Operand.ConstantOperand.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.serializeBinaryToWriter=function(message,writer){var f=void 0;null!=(f=message.getStringValue())&&writer.writeMessage(1,f,google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter),null!=(f=message.getLongValue())&&writer.writeMessage(2,f,google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter),null!=(f=message.getBooleanValue())&&writer.writeMessage(3,f,google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter),null!=(f=message.getDoubleValue())&&writer.writeMessage(4,f,google_protobuf_wrappers_pb.DoubleValue.serializeBinaryToWriter)},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.prototype.getStringValue=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.StringValue,1)},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.prototype.setStringValue=function(value){jspb.Message.setOneofWrapperField(this,1,proto.google.ads.googleads.v2.common.Operand.ConstantOperand.oneofGroups_[0],value)},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.prototype.clearStringValue=function(){this.setStringValue(void 0)},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.prototype.hasStringValue=function(){return null!=jspb.Message.getField(this,1)},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.prototype.getLongValue=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.Int64Value,2)},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.prototype.setLongValue=function(value){jspb.Message.setOneofWrapperField(this,2,proto.google.ads.googleads.v2.common.Operand.ConstantOperand.oneofGroups_[0],value)},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.prototype.clearLongValue=function(){this.setLongValue(void 0)},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.prototype.hasLongValue=function(){return null!=jspb.Message.getField(this,2)},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.prototype.getBooleanValue=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.BoolValue,3)},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.prototype.setBooleanValue=function(value){jspb.Message.setOneofWrapperField(this,3,proto.google.ads.googleads.v2.common.Operand.ConstantOperand.oneofGroups_[0],value)},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.prototype.clearBooleanValue=function(){this.setBooleanValue(void 0)},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.prototype.hasBooleanValue=function(){return null!=jspb.Message.getField(this,3)},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.prototype.getDoubleValue=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.DoubleValue,4)},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.prototype.setDoubleValue=function(value){jspb.Message.setOneofWrapperField(this,4,proto.google.ads.googleads.v2.common.Operand.ConstantOperand.oneofGroups_[0],value)},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.prototype.clearDoubleValue=function(){this.setDoubleValue(void 0)},proto.google.ads.googleads.v2.common.Operand.ConstantOperand.prototype.hasDoubleValue=function(){return null!=jspb.Message.getField(this,4)},proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,null,null)},goog.inherits(proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.displayName="proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand"),jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.toObject=function(includeInstance,msg){var f,obj={feedId:(f=msg.getFeedId())&&google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance,f),feedAttributeId:(f=msg.getFeedAttributeId())&&google_protobuf_wrappers_pb.Int64Value.toObject(includeInstance,f)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.deserializeBinary=function(bytes){var reader=new jspb.BinaryReader(bytes),msg=new proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand;return proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.deserializeBinaryFromReader(msg,reader)},proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){switch(reader.getFieldNumber()){case 1:var value=new google_protobuf_wrappers_pb.Int64Value;reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader),msg.setFeedId(value);break;case 2:value=new google_protobuf_wrappers_pb.Int64Value;reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader),msg.setFeedAttributeId(value);break;default:reader.skipField()}}return msg},proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.prototype.serializeBinary=function(){var writer=new jspb.BinaryWriter;return proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.serializeBinaryToWriter=function(message,writer){var f=void 0;null!=(f=message.getFeedId())&&writer.writeMessage(1,f,google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter),null!=(f=message.getFeedAttributeId())&&writer.writeMessage(2,f,google_protobuf_wrappers_pb.Int64Value.serializeBinaryToWriter)},proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.prototype.getFeedId=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.Int64Value,1)},proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.prototype.setFeedId=function(value){jspb.Message.setWrapperField(this,1,value)},proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.prototype.clearFeedId=function(){this.setFeedId(void 0)},proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.prototype.hasFeedId=function(){return null!=jspb.Message.getField(this,1)},proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.prototype.getFeedAttributeId=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.Int64Value,2)},proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.prototype.setFeedAttributeId=function(value){jspb.Message.setWrapperField(this,2,value)},proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.prototype.clearFeedAttributeId=function(){this.setFeedAttributeId(void 0)},proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand.prototype.hasFeedAttributeId=function(){return null!=jspb.Message.getField(this,2)},proto.google.ads.googleads.v2.common.Operand.FunctionOperand=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,null,null)},goog.inherits(proto.google.ads.googleads.v2.common.Operand.FunctionOperand,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.Operand.FunctionOperand.displayName="proto.google.ads.googleads.v2.common.Operand.FunctionOperand"),jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.Operand.FunctionOperand.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.Operand.FunctionOperand.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.Operand.FunctionOperand.toObject=function(includeInstance,msg){var f,obj={matchingFunction:(f=msg.getMatchingFunction())&&proto.google.ads.googleads.v2.common.MatchingFunction.toObject(includeInstance,f)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.Operand.FunctionOperand.deserializeBinary=function(bytes){var reader=new jspb.BinaryReader(bytes),msg=new proto.google.ads.googleads.v2.common.Operand.FunctionOperand;return proto.google.ads.googleads.v2.common.Operand.FunctionOperand.deserializeBinaryFromReader(msg,reader)},proto.google.ads.googleads.v2.common.Operand.FunctionOperand.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){switch(reader.getFieldNumber()){case 1:var value=new proto.google.ads.googleads.v2.common.MatchingFunction;reader.readMessage(value,proto.google.ads.googleads.v2.common.MatchingFunction.deserializeBinaryFromReader),msg.setMatchingFunction(value);break;default:reader.skipField()}}return msg},proto.google.ads.googleads.v2.common.Operand.FunctionOperand.prototype.serializeBinary=function(){var writer=new jspb.BinaryWriter;return proto.google.ads.googleads.v2.common.Operand.FunctionOperand.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.ads.googleads.v2.common.Operand.FunctionOperand.serializeBinaryToWriter=function(message,writer){var f;null!=(f=message.getMatchingFunction())&&writer.writeMessage(1,f,proto.google.ads.googleads.v2.common.MatchingFunction.serializeBinaryToWriter)},proto.google.ads.googleads.v2.common.Operand.FunctionOperand.prototype.getMatchingFunction=function(){return jspb.Message.getWrapperField(this,proto.google.ads.googleads.v2.common.MatchingFunction,1)},proto.google.ads.googleads.v2.common.Operand.FunctionOperand.prototype.setMatchingFunction=function(value){jspb.Message.setWrapperField(this,1,value)},proto.google.ads.googleads.v2.common.Operand.FunctionOperand.prototype.clearMatchingFunction=function(){this.setMatchingFunction(void 0)},proto.google.ads.googleads.v2.common.Operand.FunctionOperand.prototype.hasMatchingFunction=function(){return null!=jspb.Message.getField(this,1)},proto.google.ads.googleads.v2.common.Operand.RequestContextOperand=function(opt_data){jspb.Message.initialize(this,opt_data,0,-1,null,null)},goog.inherits(proto.google.ads.googleads.v2.common.Operand.RequestContextOperand,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v2.common.Operand.RequestContextOperand.displayName="proto.google.ads.googleads.v2.common.Operand.RequestContextOperand"),jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v2.common.Operand.RequestContextOperand.prototype.toObject=function(opt_includeInstance){return proto.google.ads.googleads.v2.common.Operand.RequestContextOperand.toObject(opt_includeInstance,this)},proto.google.ads.googleads.v2.common.Operand.RequestContextOperand.toObject=function(includeInstance,msg){var obj={contextType:jspb.Message.getFieldWithDefault(msg,1,0)};return includeInstance&&(obj.$jspbMessageInstance=msg),obj}),proto.google.ads.googleads.v2.common.Operand.RequestContextOperand.deserializeBinary=function(bytes){var reader=new jspb.BinaryReader(bytes),msg=new proto.google.ads.googleads.v2.common.Operand.RequestContextOperand;return proto.google.ads.googleads.v2.common.Operand.RequestContextOperand.deserializeBinaryFromReader(msg,reader)},proto.google.ads.googleads.v2.common.Operand.RequestContextOperand.deserializeBinaryFromReader=function(msg,reader){for(;reader.nextField()&&!reader.isEndGroup();){switch(reader.getFieldNumber()){case 1:var value=reader.readEnum();msg.setContextType(value);break;default:reader.skipField()}}return msg},proto.google.ads.googleads.v2.common.Operand.RequestContextOperand.prototype.serializeBinary=function(){var writer=new jspb.BinaryWriter;return proto.google.ads.googleads.v2.common.Operand.RequestContextOperand.serializeBinaryToWriter(this,writer),writer.getResultBuffer()},proto.google.ads.googleads.v2.common.Operand.RequestContextOperand.serializeBinaryToWriter=function(message,writer){var f;0!==(f=message.getContextType())&&writer.writeEnum(1,f)},proto.google.ads.googleads.v2.common.Operand.RequestContextOperand.prototype.getContextType=function(){return jspb.Message.getFieldWithDefault(this,1,0)},proto.google.ads.googleads.v2.common.Operand.RequestContextOperand.prototype.setContextType=function(value){jspb.Message.setProto3EnumField(this,1,value)},proto.google.ads.googleads.v2.common.Operand.prototype.getConstantOperand=function(){return jspb.Message.getWrapperField(this,proto.google.ads.googleads.v2.common.Operand.ConstantOperand,1)},proto.google.ads.googleads.v2.common.Operand.prototype.setConstantOperand=function(value){jspb.Message.setOneofWrapperField(this,1,proto.google.ads.googleads.v2.common.Operand.oneofGroups_[0],value)},proto.google.ads.googleads.v2.common.Operand.prototype.clearConstantOperand=function(){this.setConstantOperand(void 0)},proto.google.ads.googleads.v2.common.Operand.prototype.hasConstantOperand=function(){return null!=jspb.Message.getField(this,1)},proto.google.ads.googleads.v2.common.Operand.prototype.getFeedAttributeOperand=function(){return jspb.Message.getWrapperField(this,proto.google.ads.googleads.v2.common.Operand.FeedAttributeOperand,2)},proto.google.ads.googleads.v2.common.Operand.prototype.setFeedAttributeOperand=function(value){jspb.Message.setOneofWrapperField(this,2,proto.google.ads.googleads.v2.common.Operand.oneofGroups_[0],value)},proto.google.ads.googleads.v2.common.Operand.prototype.clearFeedAttributeOperand=function(){this.setFeedAttributeOperand(void 0)},proto.google.ads.googleads.v2.common.Operand.prototype.hasFeedAttributeOperand=function(){return null!=jspb.Message.getField(this,2)},proto.google.ads.googleads.v2.common.Operand.prototype.getFunctionOperand=function(){return jspb.Message.getWrapperField(this,proto.google.ads.googleads.v2.common.Operand.FunctionOperand,3)},proto.google.ads.googleads.v2.common.Operand.prototype.setFunctionOperand=function(value){jspb.Message.setOneofWrapperField(this,3,proto.google.ads.googleads.v2.common.Operand.oneofGroups_[0],value)},proto.google.ads.googleads.v2.common.Operand.prototype.clearFunctionOperand=function(){this.setFunctionOperand(void 0)},proto.google.ads.googleads.v2.common.Operand.prototype.hasFunctionOperand=function(){return null!=jspb.Message.getField(this,3)},proto.google.ads.googleads.v2.common.Operand.prototype.getRequestContextOperand=function(){return jspb.Message.getWrapperField(this,proto.google.ads.googleads.v2.common.Operand.RequestContextOperand,4)},proto.google.ads.googleads.v2.common.Operand.prototype.setRequestContextOperand=function(value){jspb.Message.setOneofWrapperField(this,4,proto.google.ads.googleads.v2.common.Operand.oneofGroups_[0],value)},proto.google.ads.googleads.v2.common.Operand.prototype.clearRequestContextOperand=function(){this.setRequestContextOperand(void 0)},proto.google.ads.googleads.v2.common.Operand.prototype.hasRequestContextOperand=function(){return null!=jspb.Message.getField(this,4)},goog.object.extend(exports,proto.google.ads.googleads.v2.common);