text: var jspb=require("google-protobuf"),goog=jspb,global=Function("return this")(),google_ads_googleads_v4_enums_google_ads_field_category_pb=require("../../../../../google/ads/googleads/v4/enums/google_ads_field_category_pb.js");goog.object.extend(proto,google_ads_googleads_v4_enums_google_ads_field_category_pb);var google_ads_googleads_v4_enums_google_ads_field_data_type_pb=require("../../../../../google/ads/googleads/v4/enums/google_ads_field_data_type_pb.js");goog.object.extend(proto,google_ads_googleads_v4_enums_google_ads_field_data_type_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.GoogleAdsField",null,global),proto.google.ads.googleads.v4.resources.GoogleAdsField=function(e){jspb.Message.initialize(this,e,0,-1,proto.google.ads.googleads.v4.resources.GoogleAdsField.repeatedFields_,null)},goog.inherits(proto.google.ads.googleads.v4.resources.GoogleAdsField,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v4.resources.GoogleAdsField.displayName="proto.google.ads.googleads.v4.resources.GoogleAdsField"),proto.google.ads.googleads.v4.resources.GoogleAdsField.repeatedFields_=[7,8,9,10,11],jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.toObject=function(e){return proto.google.ads.googleads.v4.resources.GoogleAdsField.toObject(e,this)},proto.google.ads.googleads.v4.resources.GoogleAdsField.toObject=function(e,o){var r,s={resourceName:jspb.Message.getFieldWithDefault(o,1,""),name:(r=o.getName())&&google_protobuf_wrappers_pb.StringValue.toObject(e,r),category:jspb.Message.getFieldWithDefault(o,3,0),selectable:(r=o.getSelectable())&&google_protobuf_wrappers_pb.BoolValue.toObject(e,r),filterable:(r=o.getFilterable())&&google_protobuf_wrappers_pb.BoolValue.toObject(e,r),sortable:(r=o.getSortable())&&google_protobuf_wrappers_pb.BoolValue.toObject(e,r),selectableWithList:jspb.Message.toObjectList(o.getSelectableWithList(),google_protobuf_wrappers_pb.StringValue.toObject,e),attributeResourcesList:jspb.Message.toObjectList(o.getAttributeResourcesList(),google_protobuf_wrappers_pb.StringValue.toObject,e),metricsList:jspb.Message.toObjectList(o.getMetricsList(),google_protobuf_wrappers_pb.StringValue.toObject,e),segmentsList:jspb.Message.toObjectList(o.getSegmentsList(),google_protobuf_wrappers_pb.StringValue.toObject,e),enumValuesList:jspb.Message.toObjectList(o.getEnumValuesList(),google_protobuf_wrappers_pb.StringValue.toObject,e),dataType:jspb.Message.getFieldWithDefault(o,12,0),typeUrl:(r=o.getTypeUrl())&&google_protobuf_wrappers_pb.StringValue.toObject(e,r),isRepeated:(r=o.getIsRepeated())&&google_protobuf_wrappers_pb.BoolValue.toObject(e,r)};return e&&(s.$jspbMessageInstance=o),s}),proto.google.ads.googleads.v4.resources.GoogleAdsField.deserializeBinary=function(e){var o=new jspb.BinaryReader(e),r=new proto.google.ads.googleads.v4.resources.GoogleAdsField;return proto.google.ads.googleads.v4.resources.GoogleAdsField.deserializeBinaryFromReader(r,o)},proto.google.ads.googleads.v4.resources.GoogleAdsField.deserializeBinaryFromReader=function(e,o){for(;o.nextField()&&!o.isEndGroup();){switch(o.getFieldNumber()){case 1:var r=o.readString();e.setResourceName(r);break;case 2:r=new google_protobuf_wrappers_pb.StringValue;o.readMessage(r,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader),e.setName(r);break;case 3:r=o.readEnum();e.setCategory(r);break;case 4:r=new google_protobuf_wrappers_pb.BoolValue;o.readMessage(r,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader),e.setSelectable(r);break;case 5:r=new google_protobuf_wrappers_pb.BoolValue;o.readMessage(r,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader),e.setFilterable(r);break;case 6:r=new google_protobuf_wrappers_pb.BoolValue;o.readMessage(r,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader),e.setSortable(r);break;case 7:r=new google_protobuf_wrappers_pb.StringValue;o.readMessage(r,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader),e.addSelectableWith(r);break;case 8:r=new google_protobuf_wrappers_pb.StringValue;o.readMessage(r,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader),e.addAttributeResources(r);break;case 9:r=new google_protobuf_wrappers_pb.StringValue;o.readMessage(r,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader),e.addMetrics(r);break;case 10:r=new google_protobuf_wrappers_pb.StringValue;o.readMessage(r,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader),e.addSegments(r);break;case 11:r=new google_protobuf_wrappers_pb.StringValue;o.readMessage(r,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader),e.addEnumValues(r);break;case 12:r=o.readEnum();e.setDataType(r);break;case 13:r=new google_protobuf_wrappers_pb.StringValue;o.readMessage(r,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader),e.setTypeUrl(r);break;case 14:r=new google_protobuf_wrappers_pb.BoolValue;o.readMessage(r,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader),e.setIsRepeated(r);break;default:o.skipField()}}return e},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.google.ads.googleads.v4.resources.GoogleAdsField.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.ads.googleads.v4.resources.GoogleAdsField.serializeBinaryToWriter=function(e,o){var r=void 0;0<(r=e.getResourceName()).length&&o.writeString(1,r),null!=(r=e.getName())&&o.writeMessage(2,r,google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter),0!==(r=e.getCategory())&&o.writeEnum(3,r),null!=(r=e.getSelectable())&&o.writeMessage(4,r,google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter),null!=(r=e.getFilterable())&&o.writeMessage(5,r,google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter),null!=(r=e.getSortable())&&o.writeMessage(6,r,google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter),0<(r=e.getSelectableWithList()).length&&o.writeRepeatedMessage(7,r,google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter),0<(r=e.getAttributeResourcesList()).length&&o.writeRepeatedMessage(8,r,google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter),0<(r=e.getMetricsList()).length&&o.writeRepeatedMessage(9,r,google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter),0<(r=e.getSegmentsList()).length&&o.writeRepeatedMessage(10,r,google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter),0<(r=e.getEnumValuesList()).length&&o.writeRepeatedMessage(11,r,google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter),0!==(r=e.getDataType())&&o.writeEnum(12,r),null!=(r=e.getTypeUrl())&&o.writeMessage(13,r,google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter),null!=(r=e.getIsRepeated())&&o.writeMessage(14,r,google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.getResourceName=function(){return jspb.Message.getFieldWithDefault(this,1,"")},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.setResourceName=function(e){return jspb.Message.setProto3StringField(this,1,e)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.getName=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.StringValue,2)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.setName=function(e){return jspb.Message.setWrapperField(this,2,e)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.clearName=function(){return this.setName(void 0)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.hasName=function(){return null!=jspb.Message.getField(this,2)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.getCategory=function(){return jspb.Message.getFieldWithDefault(this,3,0)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.setCategory=function(e){return jspb.Message.setProto3EnumField(this,3,e)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.getSelectable=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.BoolValue,4)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.setSelectable=function(e){return jspb.Message.setWrapperField(this,4,e)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.clearSelectable=function(){return this.setSelectable(void 0)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.hasSelectable=function(){return null!=jspb.Message.getField(this,4)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.getFilterable=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.BoolValue,5)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.setFilterable=function(e){return jspb.Message.setWrapperField(this,5,e)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.clearFilterable=function(){return this.setFilterable(void 0)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.hasFilterable=function(){return null!=jspb.Message.getField(this,5)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.getSortable=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.BoolValue,6)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.setSortable=function(e){return jspb.Message.setWrapperField(this,6,e)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.clearSortable=function(){return this.setSortable(void 0)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.hasSortable=function(){return null!=jspb.Message.getField(this,6)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.getSelectableWithList=function(){return jspb.Message.getRepeatedWrapperField(this,google_protobuf_wrappers_pb.StringValue,7)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.setSelectableWithList=function(e){return jspb.Message.setRepeatedWrapperField(this,7,e)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.addSelectableWith=function(e,o){return jspb.Message.addToRepeatedWrapperField(this,7,e,proto.google.protobuf.StringValue,o)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.clearSelectableWithList=function(){return this.setSelectableWithList([])},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.getAttributeResourcesList=function(){return jspb.Message.getRepeatedWrapperField(this,google_protobuf_wrappers_pb.StringValue,8)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.setAttributeResourcesList=function(e){return jspb.Message.setRepeatedWrapperField(this,8,e)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.addAttributeResources=function(e,o){return jspb.Message.addToRepeatedWrapperField(this,8,e,proto.google.protobuf.StringValue,o)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.clearAttributeResourcesList=function(){return this.setAttributeResourcesList([])},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.getMetricsList=function(){return jspb.Message.getRepeatedWrapperField(this,google_protobuf_wrappers_pb.StringValue,9)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.setMetricsList=function(e){return jspb.Message.setRepeatedWrapperField(this,9,e)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.addMetrics=function(e,o){return jspb.Message.addToRepeatedWrapperField(this,9,e,proto.google.protobuf.StringValue,o)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.clearMetricsList=function(){return this.setMetricsList([])},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.getSegmentsList=function(){return jspb.Message.getRepeatedWrapperField(this,google_protobuf_wrappers_pb.StringValue,10)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.setSegmentsList=function(e){return jspb.Message.setRepeatedWrapperField(this,10,e)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.addSegments=function(e,o){return jspb.Message.addToRepeatedWrapperField(this,10,e,proto.google.protobuf.StringValue,o)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.clearSegmentsList=function(){return this.setSegmentsList([])},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.getEnumValuesList=function(){return jspb.Message.getRepeatedWrapperField(this,google_protobuf_wrappers_pb.StringValue,11)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.setEnumValuesList=function(e){return jspb.Message.setRepeatedWrapperField(this,11,e)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.addEnumValues=function(e,o){return jspb.Message.addToRepeatedWrapperField(this,11,e,proto.google.protobuf.StringValue,o)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.clearEnumValuesList=function(){return this.setEnumValuesList([])},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.getDataType=function(){return jspb.Message.getFieldWithDefault(this,12,0)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.setDataType=function(e){return jspb.Message.setProto3EnumField(this,12,e)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.getTypeUrl=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.StringValue,13)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.setTypeUrl=function(e){return jspb.Message.setWrapperField(this,13,e)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.clearTypeUrl=function(){return this.setTypeUrl(void 0)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.hasTypeUrl=function(){return null!=jspb.Message.getField(this,13)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.getIsRepeated=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.BoolValue,14)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.setIsRepeated=function(e){return jspb.Message.setWrapperField(this,14,e)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.clearIsRepeated=function(){return this.setIsRepeated(void 0)},proto.google.ads.googleads.v4.resources.GoogleAdsField.prototype.hasIsRepeated=function(){return null!=jspb.Message.getField(this,14)},goog.object.extend(exports,proto.google.ads.googleads.v4.resources);