Ejemplo n.º 1
0
 public CDNDnsInfo.Builder SetAuthKey(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasAuthKey = true;
     this.result.authKey_   = value;
     return(this);
 }
Ejemplo n.º 2
0
 public AddMsg.Builder SetImgBuf(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasImgBuf = true;
     this.result.imgBuf_   = value;
     return(this);
 }
Ejemplo n.º 3
0
 public UploadVoiceRequest.Builder SetVoiceId(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasVoiceId = true;
     this.result.voiceId_   = value;
     return(this);
 }
Ejemplo n.º 4
0
 public DownloadVideoResponse.Builder SetData(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasData = true;
     this.result.data_   = value;
     return(this);
 }
Ejemplo n.º 5
0
 public CreateChatRoomResponse.Builder SetImgBuf(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasImgBuf = true;
     this.result.imgBuf_   = value;
     return(this);
 }
Ejemplo n.º 6
0
 public AppMsg.Builder SetThumb(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasThumb = true;
     this.result.thumb_   = value;
     return(this);
 }
Ejemplo n.º 7
0
 public TenPayResponse.Builder SetRetText(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasRetText = true;
     this.result.retText_   = value;
     return(this);
 }
Ejemplo n.º 8
0
 public NewInitRequest.Builder SetMaxSynckey(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasMaxSynckey = true;
     this.result.maxSynckey_   = value;
     return(this);
 }
Ejemplo n.º 9
0
 public GetA8KeyReq.Builder SetA2Key(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasA2Key = true;
     this.result.a2Key_   = value;
     return(this);
 }
Ejemplo n.º 10
0
 public HongBaoReq.Builder SetReqText(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasReqText = true;
     this.result.reqText_   = value;
     return(this);
 }
Ejemplo n.º 11
0
 public TenPayRequest.Builder SetReqTextWx(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasReqTextWx = true;
     this.result.reqTextWx_   = value;
     return(this);
 }
Ejemplo n.º 12
0
 public SnsObjectOp.Builder SetExt(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasExt = true;
     this.result.ext_   = value;
     return(this);
 }
Ejemplo n.º 13
0
 public NewSyncResponse.Builder SetKeyBuf(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasKeyBuf = true;
     this.result.keyBuf_   = value;
     return(this);
 }
Ejemplo n.º 14
0
 public CmdItem.Builder SetCmdBuf(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasCmdBuf = true;
     this.result.cmdBuf_   = value;
     return(this);
 }
Ejemplo n.º 15
0
 public NewInitResponse.Builder SetCurrentSynckey(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasCurrentSynckey = true;
     this.result.currentSynckey_   = value;
     return(this);
 }
Ejemplo n.º 16
0
            public override SnsObjectOp.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;

                this.PrepareBuilder();
                while (input.ReadTag(out num, out str))
                {
                    if ((num == 0) && (str != null))
                    {
                        int index = Array.BinarySearch <string>(SnsObjectOp._snsObjectOpFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = SnsObjectOp._snsObjectOpFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 8:
                    {
                        this.result.hasId = input.ReadUInt64(ref this.result.id_);
                        continue;
                    }

                    case 0x10:
                    {
                        this.result.hasOpType = input.ReadUInt32(ref this.result.opType_);
                        continue;
                    }

                    case 0x1a:
                    {
                        SKBuiltinBuffer_t.Builder builder = SKBuiltinBuffer_t.CreateBuilder();
                        if (this.result.hasExt)
                        {
                            builder.MergeFrom(this.Ext);
                        }
                        input.ReadMessage(builder, extensionRegistry);
                        this.Ext = builder.BuildPartial();
                        continue;
                    }
                    }
                    if (WireFormat.IsEndGroupTag(num))
                    {
                        return(this);
                    }
                    this.ParseUnknownField(input, extensionRegistry, num, str);
                }
                return(this);
            }
Ejemplo n.º 17
0
 public DownloadVideoResponse.Builder MergeData(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasData && (this.result.data_ != SKBuiltinBuffer_t.DefaultInstance))
     {
         this.result.data_ = SKBuiltinBuffer_t.CreateBuilder(this.result.data_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.data_ = value;
     }
     this.result.hasData = true;
     return(this);
 }
Ejemplo n.º 18
0
 public GetA8KeyReq.Builder MergeA2Key(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasA2Key && (this.result.a2Key_ != SKBuiltinBuffer_t.DefaultInstance))
     {
         this.result.a2Key_ = SKBuiltinBuffer_t.CreateBuilder(this.result.a2Key_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.a2Key_ = value;
     }
     this.result.hasA2Key = true;
     return(this);
 }
Ejemplo n.º 19
0
 public UploadVoiceRequest.Builder MergeVoiceId(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasVoiceId && (this.result.voiceId_ != SKBuiltinBuffer_t.DefaultInstance))
     {
         this.result.voiceId_ = SKBuiltinBuffer_t.CreateBuilder(this.result.voiceId_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.voiceId_ = value;
     }
     this.result.hasVoiceId = true;
     return(this);
 }
Ejemplo n.º 20
0
 public NewSyncRequest.Builder MergeKeyBuf(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasKeyBuf && (this.result.keyBuf_ != SKBuiltinBuffer_t.DefaultInstance))
     {
         this.result.keyBuf_ = SKBuiltinBuffer_t.CreateBuilder(this.result.keyBuf_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.keyBuf_ = value;
     }
     this.result.hasKeyBuf = true;
     return(this);
 }
Ejemplo n.º 21
0
 public NewInitRequest.Builder MergeMaxSynckey(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasMaxSynckey && (this.result.maxSynckey_ != SKBuiltinBuffer_t.DefaultInstance))
     {
         this.result.maxSynckey_ = SKBuiltinBuffer_t.CreateBuilder(this.result.maxSynckey_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.maxSynckey_ = value;
     }
     this.result.hasMaxSynckey = true;
     return(this);
 }
Ejemplo n.º 22
0
 public CreateChatRoomResponse.Builder MergeImgBuf(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasImgBuf && (this.result.imgBuf_ != SKBuiltinBuffer_t.DefaultInstance))
     {
         this.result.imgBuf_ = SKBuiltinBuffer_t.CreateBuilder(this.result.imgBuf_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.imgBuf_ = value;
     }
     this.result.hasImgBuf = true;
     return(this);
 }
Ejemplo n.º 23
0
 public AppMsg.Builder MergeThumb(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasThumb && (this.result.thumb_ != SKBuiltinBuffer_t.DefaultInstance))
     {
         this.result.thumb_ = SKBuiltinBuffer_t.CreateBuilder(this.result.thumb_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.thumb_ = value;
     }
     this.result.hasThumb = true;
     return(this);
 }
Ejemplo n.º 24
0
 public HongBaoReq.Builder MergeReqText(SKBuiltinBuffer_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasReqText && (this.result.reqText_ != SKBuiltinBuffer_t.DefaultInstance))
     {
         this.result.reqText_ = SKBuiltinBuffer_t.CreateBuilder(this.result.reqText_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.reqText_ = value;
     }
     this.result.hasReqText = true;
     return(this);
 }
Ejemplo n.º 25
0
            public override CreateChatRoomResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;

                this.PrepareBuilder();
                while (input.ReadTag(out num, out str))
                {
                    if ((num == 0) && (str != null))
                    {
                        int index = Array.BinarySearch <string>(CreateChatRoomResponse._createChatRoomResponseFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = CreateChatRoomResponse._createChatRoomResponseFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0x12:
                    {
                        SKBuiltinString_t.Builder builder2 = SKBuiltinString_t.CreateBuilder();
                        if (this.result.hasTopic)
                        {
                            builder2.MergeFrom(this.Topic);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.Topic = builder2.BuildPartial();
                        continue;
                    }

                    case 0x1a:
                    {
                        SKBuiltinString_t.Builder builder3 = SKBuiltinString_t.CreateBuilder();
                        if (this.result.hasPYInitial)
                        {
                            builder3.MergeFrom(this.PYInitial);
                        }
                        input.ReadMessage(builder3, extensionRegistry);
                        this.PYInitial = builder3.BuildPartial();
                        continue;
                    }

                    case 0x22:
                    {
                        SKBuiltinString_t.Builder builder4 = SKBuiltinString_t.CreateBuilder();
                        if (this.result.hasQuanPin)
                        {
                            builder4.MergeFrom(this.QuanPin);
                        }
                        input.ReadMessage(builder4, extensionRegistry);
                        this.QuanPin = builder4.BuildPartial();
                        continue;
                    }

                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 10:
                    {
                        micromsg.BaseResponse.Builder builder = micromsg.BaseResponse.CreateBuilder();
                        if (this.result.hasBaseResponse)
                        {
                            builder.MergeFrom(this.BaseResponse);
                        }
                        input.ReadMessage(builder, extensionRegistry);
                        this.BaseResponse = builder.BuildPartial();
                        continue;
                    }

                    case 40:
                    {
                        this.result.hasMemberCount = input.ReadUInt32(ref this.result.memberCount_);
                        continue;
                    }

                    case 50:
                    {
                        input.ReadMessageArray <MemberResp>(num, str, this.result.memberList_, MemberResp.DefaultInstance, extensionRegistry);
                        continue;
                    }

                    case 0x3a:
                    {
                        SKBuiltinString_t.Builder builder5 = SKBuiltinString_t.CreateBuilder();
                        if (this.result.hasChatRoomName)
                        {
                            builder5.MergeFrom(this.ChatRoomName);
                        }
                        input.ReadMessage(builder5, extensionRegistry);
                        this.ChatRoomName = builder5.BuildPartial();
                        continue;
                    }

                    case 0x42:
                    {
                        SKBuiltinBuffer_t.Builder builder6 = SKBuiltinBuffer_t.CreateBuilder();
                        if (this.result.hasImgBuf)
                        {
                            builder6.MergeFrom(this.ImgBuf);
                        }
                        input.ReadMessage(builder6, extensionRegistry);
                        this.ImgBuf = builder6.BuildPartial();
                        continue;
                    }

                    case 0x4a:
                    {
                        this.result.hasBigHeadImgUrl = input.ReadString(ref this.result.bigHeadImgUrl_);
                        continue;
                    }

                    case 0x52:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            return(this);
                        }
                        this.ParseUnknownField(input, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    this.result.hasSmallHeadImgUrl = input.ReadString(ref this.result.smallHeadImgUrl_);
                }
                return(this);
            }
Ejemplo n.º 26
0
            public override NewInitRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;

                this.PrepareBuilder();
                while (input.ReadTag(out num, out str))
                {
                    if ((num == 0) && (str != null))
                    {
                        int index = Array.BinarySearch <string>(NewInitRequest._newInitRequestFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = NewInitRequest._newInitRequestFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 10:
                    {
                        micromsg.BaseRequest.Builder builder = micromsg.BaseRequest.CreateBuilder();
                        if (this.result.hasBaseRequest)
                        {
                            builder.MergeFrom(this.BaseRequest);
                        }
                        input.ReadMessage(builder, extensionRegistry);
                        this.BaseRequest = builder.BuildPartial();
                        continue;
                    }

                    case 0x12:
                    {
                        this.result.hasUserName = input.ReadString(ref this.result.userName_);
                        continue;
                    }

                    case 0x1a:
                    {
                        SKBuiltinBuffer_t.Builder builder2 = SKBuiltinBuffer_t.CreateBuilder();
                        if (this.result.hasCurrentSynckey)
                        {
                            builder2.MergeFrom(this.CurrentSynckey);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.CurrentSynckey = builder2.BuildPartial();
                        continue;
                    }

                    case 0x22:
                    {
                        SKBuiltinBuffer_t.Builder builder3 = SKBuiltinBuffer_t.CreateBuilder();
                        if (this.result.hasMaxSynckey)
                        {
                            builder3.MergeFrom(this.MaxSynckey);
                        }
                        input.ReadMessage(builder3, extensionRegistry);
                        this.MaxSynckey = builder3.BuildPartial();
                        continue;
                    }

                    case 0x2a:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            return(this);
                        }
                        this.ParseUnknownField(input, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    this.result.hasLanguage = input.ReadString(ref this.result.language_);
                }
                return(this);
            }
Ejemplo n.º 27
0
            public override HongBaoReq.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;

                this.PrepareBuilder();
                while (input.ReadTag(out num, out str))
                {
                    if ((num == 0) && (str != null))
                    {
                        int index = Array.BinarySearch <string>(HongBaoReq._hongBaoReqFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = HongBaoReq._hongBaoReqFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 10:
                    {
                        BaseRequest.Builder builder = BaseRequest.CreateBuilder();
                        if (this.result.hasBaseRequest)
                        {
                            builder.MergeFrom(this.BaseRequest);
                        }
                        input.ReadMessage(builder, extensionRegistry);
                        this.BaseRequest = builder.BuildPartial();
                        continue;
                    }

                    case 0x10:
                    {
                        this.result.hasCgiCmd = input.ReadUInt32(ref this.result.cgiCmd_);
                        continue;
                    }

                    case 0x18:
                    {
                        this.result.hasOutPutType = input.ReadUInt32(ref this.result.outPutType_);
                        continue;
                    }

                    case 0x22:
                    {
                        SKBuiltinBuffer_t.Builder builder2 = SKBuiltinBuffer_t.CreateBuilder();
                        if (this.result.hasReqText)
                        {
                            builder2.MergeFrom(this.ReqText);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.ReqText = builder2.BuildPartial();
                        continue;
                    }
                    }
                    if (WireFormat.IsEndGroupTag(num))
                    {
                        return(this);
                    }
                    this.ParseUnknownField(input, extensionRegistry, num, str);
                }
                return(this);
            }
Ejemplo n.º 28
0
            public override DownloadVideoResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;

                this.PrepareBuilder();
                while (input.ReadTag(out num, out str))
                {
                    if ((num == 0) && (str != null))
                    {
                        int index = Array.BinarySearch <string>(DownloadVideoResponse._downloadVideoResponseFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = DownloadVideoResponse._downloadVideoResponseFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 10:
                    {
                        BaseResponse.Builder builder = BaseResponse.CreateBuilder();
                        if (this.result.hasBaseResponse)
                        {
                            builder.MergeFrom(this.BaseResponse);
                        }
                        input.ReadMessage(builder, extensionRegistry);
                        this.BaseResponse = builder.BuildPartial();
                        continue;
                    }

                    case 0x10:
                    {
                        this.result.hasMsgId = input.ReadUInt32(ref this.result.msgId_);
                        continue;
                    }

                    case 0x18:
                    {
                        this.result.hasTotalLen = input.ReadUInt32(ref this.result.totalLen_);
                        continue;
                    }

                    case 0x20:
                    {
                        this.result.hasStartPos = input.ReadUInt32(ref this.result.startPos_);
                        continue;
                    }

                    case 0x2a:
                    {
                        SKBuiltinBuffer_t.Builder builder2 = SKBuiltinBuffer_t.CreateBuilder();
                        if (this.result.hasData)
                        {
                            builder2.MergeFrom(this.Data);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.Data = builder2.BuildPartial();
                        continue;
                    }
                    }
                    if (WireFormat.IsEndGroupTag(num))
                    {
                        return(this);
                    }
                    this.ParseUnknownField(input, extensionRegistry, num, str);
                }
                return(this);
            }
Ejemplo n.º 29
0
            public override TenPayResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;

                this.PrepareBuilder();
                while (input.ReadTag(out num, out str))
                {
                    if ((num == 0) && (str != null))
                    {
                        int index = Array.BinarySearch <string>(TenPayResponse._tenPayResponseFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = TenPayResponse._tenPayResponseFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0x12:
                    {
                        SKBuiltinBuffer_t.Builder builder2 = SKBuiltinBuffer_t.CreateBuilder();
                        if (this.result.hasRetText)
                        {
                            builder2.MergeFrom(this.RetText);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.RetText = builder2.BuildPartial();
                        continue;
                    }

                    case 0x18:
                    {
                        this.result.hasPlatRet = input.ReadInt32(ref this.result.platRet_);
                        continue;
                    }

                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 10:
                    {
                        BaseResponse.Builder builder = BaseResponse.CreateBuilder();
                        if (this.result.hasBaseResponse)
                        {
                            builder.MergeFrom(this.BaseResponse);
                        }
                        input.ReadMessage(builder, extensionRegistry);
                        this.BaseResponse = builder.BuildPartial();
                        continue;
                    }

                    case 0x22:
                    {
                        this.result.hasPlatMsg = input.ReadString(ref this.result.platMsg_);
                        continue;
                    }

                    case 40:
                    {
                        this.result.hasCgiCmdid = input.ReadInt32(ref this.result.cgiCmdid_);
                        continue;
                    }

                    case 0x30:
                    {
                        this.result.hasTenpayErrType = input.ReadInt32(ref this.result.tenpayErrType_);
                        continue;
                    }

                    case 0x3a:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            return(this);
                        }
                        this.ParseUnknownField(input, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    this.result.hasTenpayErrMsg = input.ReadString(ref this.result.tenpayErrMsg_);
                }
                return(this);
            }
Ejemplo n.º 30
0
            public override NewSyncResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;

                this.PrepareBuilder();
                while (input.ReadTag(out num, out str))
                {
                    if ((num == 0) && (str != null))
                    {
                        int index = Array.BinarySearch <string>(NewSyncResponse._newSyncResponseFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = NewSyncResponse._newSyncResponseFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 8:
                    {
                        this.result.hasRet = input.ReadInt32(ref this.result.ret_);
                        continue;
                    }

                    case 0x12:
                    {
                        CmdList.Builder builder = CmdList.CreateBuilder();
                        if (this.result.hasCmdList)
                        {
                            builder.MergeFrom(this.CmdList);
                        }
                        input.ReadMessage(builder, extensionRegistry);
                        this.CmdList = builder.BuildPartial();
                        continue;
                    }

                    case 0x18:
                    {
                        this.result.hasContinueFlag = input.ReadUInt32(ref this.result.continueFlag_);
                        continue;
                    }

                    case 0x22:
                    {
                        SKBuiltinBuffer_t.Builder builder2 = SKBuiltinBuffer_t.CreateBuilder();
                        if (this.result.hasKeyBuf)
                        {
                            builder2.MergeFrom(this.KeyBuf);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.KeyBuf = builder2.BuildPartial();
                        continue;
                    }

                    case 40:
                    {
                        this.result.hasStatus = input.ReadUInt32(ref this.result.status_);
                        continue;
                    }

                    case 0x30:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            return(this);
                        }
                        this.ParseUnknownField(input, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    this.result.hasOnlineVersion = input.ReadUInt32(ref this.result.onlineVersion_);
                }
                return(this);
            }