text: var jspb=require("google-protobuf"),goog=jspb,global=Function("return this")(),google_ads_googleads_v4_enums_distance_bucket_pb=require("../../../../../google/ads/googleads/v4/enums/distance_bucket_pb.js");goog.object.extend(proto,google_ads_googleads_v4_enums_distance_bucket_pb);var google_api_field_behavior_pb=require("../../../../../google/api/field_behavior_pb.js");goog.object.extend(proto,google_api_field_behavior_pb);var google_api_resource_pb=require("../../../../../google/api/resource_pb.js");goog.object.extend(proto,google_api_resource_pb);var google_protobuf_wrappers_pb=require("google-protobuf/google/protobuf/wrappers_pb.js");goog.object.extend(proto,google_protobuf_wrappers_pb);var google_api_annotations_pb=require("../../../../../google/api/annotations_pb.js");goog.object.extend(proto,google_api_annotations_pb),goog.exportSymbol("proto.google.ads.googleads.v4.resources.DistanceView",null,global),proto.google.ads.googleads.v4.resources.DistanceView=function(e){jspb.Message.initialize(this,e,0,-1,null,null)},goog.inherits(proto.google.ads.googleads.v4.resources.DistanceView,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v4.resources.DistanceView.displayName="proto.google.ads.googleads.v4.resources.DistanceView"),jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v4.resources.DistanceView.prototype.toObject=function(e){return proto.google.ads.googleads.v4.resources.DistanceView.toObject(e,this)},proto.google.ads.googleads.v4.resources.DistanceView.toObject=function(e,o){var s,r={resourceName:jspb.Message.getFieldWithDefault(o,1,""),distanceBucket:jspb.Message.getFieldWithDefault(o,2,0),metricSystem:(s=o.getMetricSystem())&&google_protobuf_wrappers_pb.BoolValue.toObject(e,s)};return e&&(r.$jspbMessageInstance=o),r}),proto.google.ads.googleads.v4.resources.DistanceView.deserializeBinary=function(e){var o=new jspb.BinaryReader(e),s=new proto.google.ads.googleads.v4.resources.DistanceView;return proto.google.ads.googleads.v4.resources.DistanceView.deserializeBinaryFromReader(s,o)},proto.google.ads.googleads.v4.resources.DistanceView.deserializeBinaryFromReader=function(e,o){for(;o.nextField()&&!o.isEndGroup();){switch(o.getFieldNumber()){case 1:var s=o.readString();e.setResourceName(s);break;case 2:s=o.readEnum();e.setDistanceBucket(s);break;case 3:s=new google_protobuf_wrappers_pb.BoolValue;o.readMessage(s,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader),e.setMetricSystem(s);break;default:o.skipField()}}return e},proto.google.ads.googleads.v4.resources.DistanceView.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.google.ads.googleads.v4.resources.DistanceView.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.ads.googleads.v4.resources.DistanceView.serializeBinaryToWriter=function(e,o){var s=void 0;0<(s=e.getResourceName()).length&&o.writeString(1,s),0!==(s=e.getDistanceBucket())&&o.writeEnum(2,s),null!=(s=e.getMetricSystem())&&o.writeMessage(3,s,google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter)},proto.google.ads.googleads.v4.resources.DistanceView.prototype.getResourceName=function(){return jspb.Message.getFieldWithDefault(this,1,"")},proto.google.ads.googleads.v4.resources.DistanceView.prototype.setResourceName=function(e){return jspb.Message.setProto3StringField(this,1,e)},proto.google.ads.googleads.v4.resources.DistanceView.prototype.getDistanceBucket=function(){return jspb.Message.getFieldWithDefault(this,2,0)},proto.google.ads.googleads.v4.resources.DistanceView.prototype.setDistanceBucket=function(e){return jspb.Message.setProto3EnumField(this,2,e)},proto.google.ads.googleads.v4.resources.DistanceView.prototype.getMetricSystem=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.BoolValue,3)},proto.google.ads.googleads.v4.resources.DistanceView.prototype.setMetricSystem=function(e){return jspb.Message.setWrapperField(this,3,e)},proto.google.ads.googleads.v4.resources.DistanceView.prototype.clearMetricSystem=function(){return this.setMetricSystem(void 0)},proto.google.ads.googleads.v4.resources.DistanceView.prototype.hasMetricSystem=function(){return null!=jspb.Message.getField(this,3)},goog.object.extend(exports,proto.google.ads.googleads.v4.resources);