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: {
                    errorCode_ = (global::Com.Nhn.Gameanvil.Sample.Protocol.ErrorCode)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (userdata_ == null)
                    {
                        userdata_ = new global::Com.Nhn.Gameanvil.Sample.Protocol.UserData();
                    }
                    input.ReadMessage(userdata_);
                    break;
                }
                }
            }
        }
Example #2
0
        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: {
                    resultCode_ = (global::Com.Nhn.Gameanvil.Sample.Protocol.ErrorCode)input.ReadEnum();
                    break;
                }

                case 18: {
                    Deck = input.ReadString();
                    break;
                }

                case 24: {
                    BalanceCoin = input.ReadInt64();
                    break;
                }

                case 32: {
                    BalanceRuby = input.ReadInt64();
                    break;
                }
                }
            }
        }
 public void MergeFrom(AuthenticationRes other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ErrorCode != 0)
     {
         ErrorCode = other.ErrorCode;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }