public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { ResourceName = input.ReadString(); break; } case 18: { string value = _single_countryGeoTargetConstant_codec.Read(input); if (countryGeoTargetConstant_ == null || value != "") { CountryGeoTargetConstant = value; } break; } case 24: { locationType_ = (global::Google.Ads.GoogleAds.V1.Enums.GeoTargetingTypeEnum.Types.GeoTargetingType)input.ReadEnum(); break; } } } }
public void MergeFrom(GeographicView other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } if (other.countryGeoTargetConstant_ != null) { if (countryGeoTargetConstant_ == null || other.CountryGeoTargetConstant != "") { CountryGeoTargetConstant = other.CountryGeoTargetConstant; } } if (other.LocationType != 0) { LocationType = other.LocationType; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }