public void MergeFrom(GetPlayerProfileResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.StartTime != 0L)
     {
         StartTime = other.StartTime;
     }
     badges_.Add(other.badges_);
     if (other.gymBadges_ != null)
     {
         if (gymBadges_ == null)
         {
             gymBadges_ = new global::POGOProtos.Networking.Responses.GetPlayerProfileResponse.Types.GymBadges();
         }
         GymBadges.MergeFrom(other.GymBadges);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 8: {
                    result_ = (global::POGOProtos.Networking.Responses.GetPlayerProfileResponse.Types.Result)input.ReadEnum();
                    break;
                }

                case 16: {
                    StartTime = input.ReadInt64();
                    break;
                }

                case 26: {
                    badges_.AddEntriesFrom(input, _repeated_badges_codec);
                    break;
                }

                case 34: {
                    if (gymBadges_ == null)
                    {
                        gymBadges_ = new global::POGOProtos.Networking.Responses.GetPlayerProfileResponse.Types.GymBadges();
                    }
                    input.ReadMessage(gymBadges_);
                    break;
                }
                }
            }
        }