예제 #1
0
            public override SnsUserPageResponse.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>(SnsUserPageResponse._snsUserPageResponseFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = SnsUserPageResponse._snsUserPageResponseFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0x12:
                    {
                        this.result.hasFirstPageMd5 = input.ReadString(ref this.result.firstPageMd5_);
                        continue;
                    }

                    case 0x18:
                    {
                        this.result.hasObjectCount = input.ReadUInt32(ref this.result.objectCount_);
                        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 0x22:
                    {
                        input.ReadMessageArray <SnsObject>(num, str, this.result.objectList_, SnsObject.DefaultInstance, extensionRegistry);
                        continue;
                    }

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

                    case 50:
                    {
                        micromsg.SnsUserInfo.Builder builder2 = micromsg.SnsUserInfo.CreateBuilder();
                        if (this.result.hasSnsUserInfo)
                        {
                            builder2.MergeFrom(this.SnsUserInfo);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.SnsUserInfo = builder2.BuildPartial();
                        continue;
                    }

                    case 0x38:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            return(this);
                        }
                        this.ParseUnknownField(input, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    this.result.hasNewRequestTime = input.ReadUInt32(ref this.result.newRequestTime_);
                }
                return(this);
            }
예제 #2
0
            public override UserInfoExt.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>(UserInfoExt._userInfoExtFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = UserInfoExt._userInfoExtFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0x12:
                    {
                        this.result.hasMyBrandList = input.ReadString(ref this.result.myBrandList_);
                        continue;
                    }

                    case 0x1a:
                    {
                        this.result.hasMsgPushSound = input.ReadString(ref this.result.msgPushSound_);
                        continue;
                    }

                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

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

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

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

                    case 0x30:
                    {
                        this.result.hasBigChatRoomQuota = input.ReadUInt32(ref this.result.bigChatRoomQuota_);
                        continue;
                    }

                    case 0x38:
                    {
                        this.result.hasBigChatRoomInvite = input.ReadUInt32(ref this.result.bigChatRoomInvite_);
                        continue;
                    }

                    case 0x52:
                    {
                        this.result.hasSmallHeadImgUrl = input.ReadString(ref this.result.smallHeadImgUrl_);
                        continue;
                    }

                    case 0x58:
                    {
                        this.result.hasMainAcctType = input.ReadUInt32(ref this.result.mainAcctType_);
                        continue;
                    }

                    case 0x42:
                    {
                        this.result.hasSafeMobile = input.ReadString(ref this.result.safeMobile_);
                        continue;
                    }

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

                    case 0x62:
                    {
                        SKBuiltinString_t.Builder builder2 = SKBuiltinString_t.CreateBuilder();
                        if (this.result.hasExtXml)
                        {
                            builder2.MergeFrom(this.ExtXml);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.ExtXml = builder2.BuildPartial();
                        continue;
                    }

                    case 0x6a:
                    {
                        micromsg.SafeDeviceList.Builder builder3 = micromsg.SafeDeviceList.CreateBuilder();
                        if (this.result.hasSafeDeviceList)
                        {
                            builder3.MergeFrom(this.SafeDeviceList);
                        }
                        input.ReadMessage(builder3, extensionRegistry);
                        this.SafeDeviceList = builder3.BuildPartial();
                        continue;
                    }

                    case 0x70:
                    {
                        this.result.hasSafeDevice = input.ReadUInt32(ref this.result.safeDevice_);
                        continue;
                    }

                    case 120:
                        break;

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