Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
proto.google.ads.googleads.v1.services.ExternalAttributionData.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.DoubleValue;
reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader);
msg.setExternalAttributionCredit(value);
break;
case 2:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setExternalAttributionModel(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
var value = new google_protobuf_struct_pb.Struct;
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
msg.setSomeStruct(value);
break;
case 13:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setSomeTimestamp(value);
break;
case 14:
var value = new google_protobuf_type_pb.Type;
reader.readMessage(value,google_protobuf_type_pb.Type.deserializeBinaryFromReader);
msg.setSomeType(value);
break;
case 15:
var value = new google_protobuf_wrappers_pb.DoubleValue;
reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader);
msg.setSomeDoubleValue(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
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.setCreationDateTime(value);
break;
case 2:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setCompletionDateTime(value);
break;
case 3:
var value = new google_protobuf_wrappers_pb.DoubleValue;
reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader);
msg.setEstimatedCompletionRatio(value);
break;
case 4:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setOperationCount(value);
break;
case 5:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setExecutedOperationCount(value);
break;
default:
reader.skipField();
break;
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setTargetCpaMicros(value);
break;
case 17:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setCpvBidMicros(value);
break;
case 26:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setTargetCpmMicros(value);
break;
case 30:
var value = new google_protobuf_wrappers_pb.DoubleValue;
reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader);
msg.setTargetRoas(value);
break;
case 20:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setPercentCpcBidMicros(value);
break;
case 21:
var value = new google_ads_googleads_v1_common_explorer_auto_optimizer_setting_pb.ExplorerAutoOptimizerSetting;
reader.readMessage(value,google_ads_googleads_v1_common_explorer_auto_optimizer_setting_pb.ExplorerAutoOptimizerSetting.deserializeBinaryFromReader);
msg.setExplorerAutoOptimizerSetting(value);
break;
case 23:
var value = /** @type {!proto.google.ads.googleads.v1.enums.TargetingDimensionEnum.TargetingDimension} */ (reader.readEnum());
msg.setDisplayCustomBidDimension(value);
proto.google.ads.googleads.v1.services.RestatementValue.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.DoubleValue;
reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader);
msg.setAdjustedValue(value);
break;
case 2:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setCurrencyCode(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
var value = new google_protobuf_struct_pb.Struct;
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
msg.setMyStruct(value);
break;
case 10:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setMyTimestamp(value);
break;
case 11:
var value = new google_protobuf_type_pb.Type;
reader.readMessage(value,google_protobuf_type_pb.Type.deserializeBinaryFromReader);
msg.setMyType(value);
break;
case 12:
var value = new google_protobuf_wrappers_pb.DoubleValue;
reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader);
msg.setMyDoubleValue(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
proto.google.ads.googleads.v1.common.TargetRoas.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.DoubleValue;
reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader);
msg.setTargetRoas(value);
break;
case 2:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setCpcBidCeilingMicros(value);
break;
case 3:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setCpcBidFloorMicros(value);
break;
default:
reader.skipField();
break;
case 25:
var value = new google_ads_googleads_v1_common_targeting_setting_pb.TargetingSetting;
reader.readMessage(value,google_ads_googleads_v1_common_targeting_setting_pb.TargetingSetting.deserializeBinaryFromReader);
msg.setTargetingSetting(value);
break;
case 28:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setEffectiveTargetCpaMicros(value);
break;
case 29:
var value = /** @type {!proto.google.ads.googleads.v1.enums.BiddingSourceEnum.BiddingSource} */ (reader.readEnum());
msg.setEffectiveTargetCpaSource(value);
break;
case 31:
var value = new google_protobuf_wrappers_pb.DoubleValue;
reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader);
msg.setEffectiveTargetRoas(value);
break;
case 32:
var value = /** @type {!proto.google.ads.googleads.v1.enums.BiddingSourceEnum.BiddingSource} */ (reader.readEnum());
msg.setEffectiveTargetRoasSource(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setCostMicros(value);
break;
case 6:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setImpressions(value);
break;
case 7:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setTopSlotImpressions(value);
break;
case 8:
var value = new google_protobuf_wrappers_pb.DoubleValue;
reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader);
msg.setParentBiddableConversions(value);
break;
case 9:
var value = new google_protobuf_wrappers_pb.DoubleValue;
reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader);
msg.setParentBiddableConversionsValue(value);
break;
case 10:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setParentClicks(value);
break;
case 11:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
break;
case 31:
var value = new google_protobuf_wrappers_pb.BoolValue;
reader.readMessage(value,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader);
msg.setNegative(value);
break;
case 52:
var value = /** @type {!proto.google.ads.googleads.v1.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus} */ (reader.readEnum());
msg.setSystemServingStatus(value);
break;
case 53:
var value = /** @type {!proto.google.ads.googleads.v1.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus} */ (reader.readEnum());
msg.setApprovalStatus(value);
break;
case 44:
var value = new google_protobuf_wrappers_pb.DoubleValue;
reader.readMessage(value,google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader);
msg.setBidModifier(value);
break;
case 16:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setCpcBidMicros(value);
break;
case 17:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);
msg.setCpmBidMicros(value);
break;
case 24:
var value = new google_protobuf_wrappers_pb.Int64Value;
reader.readMessage(value,google_protobuf_wrappers_pb.Int64Value.deserializeBinaryFromReader);