Exemple #1
0
 public ResignCmd(ResignCmd other)
     : this()
 {
     _unknownFields = UnknownFieldSet.Clone(other._unknownFields);
 }
Exemple #2
0
            public override objectLockable.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;
                uint   num1;

                this.PrepareBuilder();
                UnknownFieldSet.Builder builder = null;
Label1:
                while (input.ReadTag(out num, out str))
                {
                    if (num == 0 && str != null)
                    {
                        int num2 = Array.BinarySearch <string>(objectLockable._objectLockableFieldNames, str, StringComparer.Ordinal);
                        if (num2 < 0)
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, str);
                            continue;
                        }
                        else
                        {
                            num = objectLockable._objectLockableFieldTags[num2];
                        }
                    }
                    num1 = num;
                    switch (num1)
                    {
                    case 24:
                    case 26:
                    {
                        input.ReadUInt64Array(num, str, this.result.users_);
                        continue;
                    }

                    default:
                    {
                        if (num1 == 0)
                        {
                            break;
                        }
                        else
                        {
                            goto Label0;
                        }
                    }
                    }
                    throw InvalidProtocolBufferException.InvalidTag();
                }
                if (builder != null)
                {
                    this.UnknownFields = builder.Build();
                }
                return(this);

                if (num1 == 10)
                {
                    this.result.hasPassword = input.ReadString(ref this.result.password_);
                    goto Label1;
                }
                else if (num1 == 16)
                {
                    this.result.hasLocked = input.ReadBool(ref this.result.locked_);
                    goto Label1;
                }
                else
                {
                    if (WireFormat.IsEndGroupTag(num))
                    {
                        if (builder != null)
                        {
                            this.UnknownFields = builder.Build();
                        }
                        return(this);
                    }
                    if (builder == null)
                    {
                        builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                    }
                    this.ParseUnknownField(input, builder, extensionRegistry, num, str);
                    goto Label1;
                }
            }
 public GetFightInfoCmd(GetFightInfoCmd other)
     : this()
 {
     _unknownFields = UnknownFieldSet.Clone(other._unknownFields);
 }
 public TEKSignatureList(TEKSignatureList other) : this()
 {
     signatures_    = other.signatures_.Clone();
     _unknownFields = UnknownFieldSet.Clone(other._unknownFields);
 }
Exemple #5
0
 public LeaveCmd(LeaveCmd other)
     : this()
 {
     _unknownFields = UnknownFieldSet.Clone(other._unknownFields);
 }
Exemple #6
0
 // Token: 0x0600075E RID: 1886 RVA: 0x00011B30 File Offset: 0x0000FD30
 public override Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
 {
     PrepareBuilder();
     UnknownFieldSet.Builder builder = null;
     while (input.ReadTag(out uint num, out string text))
     {
         if (num == 0U && text != null)
         {
             int num2 = Array.BinarySearch(_pushResultFieldNames, text, StringComparer.Ordinal);
             if (num2 < 0)
             {
                 if (builder == null)
                 {
                     builder = UnknownFieldSet.CreateBuilder(UnknownFields);
                 }
                 ParseUnknownField(input, builder, extensionRegistry, num, text);
                 continue;
             }
             num = _pushResultFieldTags[num2];
         }
         if (num <= 26U)
         {
             if (num <= 8U)
             {
                 if (num == 0U)
                 {
                     throw InvalidProtocolBufferException.InvalidTag();
                 }
                 if (num == 8U)
                 {
                     if (input.ReadEnum(ref result.result_, out object obj))
                     {
                         result.HasResult = true;
                         continue;
                     }
                     if (obj is int)
                     {
                         if (builder == null)
                         {
                             builder = UnknownFieldSet.CreateBuilder(UnknownFields);
                         }
                         builder.MergeVarintField(1, (ulong)((long)((int)obj)));
                         continue;
                     }
                     continue;
                 }
             }
             else
             {
                 if (num == 18U)
                 {
                     result.HasTaskId = input.ReadString(ref result.taskId_);
                     continue;
                 }
                 if (num == 26U)
                 {
                     result.HasMessageId = input.ReadString(ref result.messageId_);
                     continue;
                 }
             }
         }
         else if (num <= 42U)
         {
             if (num == 34U)
             {
                 result.HasSeqId = input.ReadString(ref result.seqId_);
                 continue;
             }
             if (num == 42U)
             {
                 result.HasTarget = input.ReadString(ref result.target_);
                 continue;
             }
         }
         else
         {
             if (num == 50U)
             {
                 result.HasInfo = input.ReadString(ref result.info_);
                 continue;
             }
             if (num == 58U)
             {
                 result.HasTraceId = input.ReadString(ref result.traceId_);
                 continue;
             }
             if (num == 66U)
             {
                 result.HasBatchId = input.ReadString(ref result.batchId_);
                 continue;
             }
         }
         if (WireFormat.IsEndGroupTag(num))
         {
             if (builder != null)
             {
                 UnknownFields = builder.Build();
             }
             return(this);
         }
         if (builder == null)
         {
             builder = UnknownFieldSet.CreateBuilder(UnknownFields);
         }
         ParseUnknownField(input, builder, extensionRegistry, num, text);
     }
     if (builder != null)
     {
         UnknownFields = builder.Build();
     }
     return(this);
 }
Exemple #7
0
            public override Vector.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;

                this.PrepareBuilder();
                UnknownFieldSet.Builder builder = null;
                while (input.ReadTag(out num, out str))
                {
                    if (num == 0 && str != null)
                    {
                        int num1 = Array.BinarySearch <string>(Vector._vectorFieldNames, str, StringComparer.Ordinal);
                        if (num1 < 0)
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, str);
                            continue;
                        }
                        else
                        {
                            num = Vector._vectorFieldTags[num1];
                        }
                    }
                    uint num2 = num;
                    if (num2 == 0)
                    {
                        throw InvalidProtocolBufferException.InvalidTag();
                    }
                    if (num2 == 13)
                    {
                        this.result.hasX = input.ReadFloat(ref this.result.x_);
                    }
                    else if (num2 == 21)
                    {
                        this.result.hasY = input.ReadFloat(ref this.result.y_);
                    }
                    else if (num2 == 29)
                    {
                        this.result.hasZ = input.ReadFloat(ref this.result.z_);
                    }
                    else
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            if (builder != null)
                            {
                                this.UnknownFields = builder.Build();
                            }
                            return(this);
                        }
                        if (builder == null)
                        {
                            builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                        }
                        this.ParseUnknownField(input, builder, extensionRegistry, num, str);
                    }
                }
                if (builder != null)
                {
                    this.UnknownFields = builder.Build();
                }
                return(this);
            }
            public override Button.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                this.PrepareBuilder();
                UnknownFieldSet.Builder builder = null;
                uint   num;
                string text;

                while (input.ReadTag(out num, out text))
                {
                    if (num == 0u && text != null)
                    {
                        int num2 = Array.BinarySearch <string>(Button._buttonFieldNames, text, StringComparer.Ordinal);
                        if (num2 < 0)
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                            continue;
                        }
                        num = Button._buttonFieldTags[num2];
                    }
                    if (num == 0u)
                    {
                        throw InvalidProtocolBufferException.InvalidTag();
                    }
                    if (num != 10u)
                    {
                        if (num != 16u)
                        {
                            if (WireFormat.IsEndGroupTag(num))
                            {
                                if (builder != null)
                                {
                                    this.UnknownFields = builder.Build();
                                }
                                return(this);
                            }
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                        }
                        else
                        {
                            this.result.hasNext = input.ReadInt32(ref this.result.next_);
                        }
                    }
                    else
                    {
                        this.result.hasText = input.ReadString(ref this.result.text_);
                    }
                }
                if (builder != null)
                {
                    this.UnknownFields = builder.Build();
                }
                return(this);
            }
            public override SingleBatchRequest.Builder MergeFrom(
                ICodedInputStream input,
                ExtensionRegistry extensionRegistry)
            {
                this.PrepareBuilder();
                UnknownFieldSet.Builder unknownFields = (UnknownFieldSet.Builder)null;
                uint   fieldTag;
                string fieldName;

                while (input.ReadTag(out fieldTag, out fieldName))
                {
                    if (fieldTag == 0U && fieldName != null)
                    {
                        int index = Array.BinarySearch <string>(SingleBatchRequest._singleBatchRequestFieldNames, fieldName, (IComparer <string>)StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            fieldTag = SingleBatchRequest._singleBatchRequestFieldTags[index];
                        }
                        else
                        {
                            if (unknownFields == null)
                            {
                                unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, unknownFields, extensionRegistry, fieldTag, fieldName);
                            continue;
                        }
                    }
                    switch (fieldTag)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 10:
                        this.result.hasBatchId = input.ReadString(ref this.result.batchId_);
                        continue;

                    case 18:
                        input.ReadMessageArray <SingleBatchItem>(fieldTag, fieldName, (ICollection <SingleBatchItem>) this.result.batchItem_, SingleBatchItem.DefaultInstance, extensionRegistry);
                        continue;

                    default:
                        if (WireFormat.IsEndGroupTag(fieldTag))
                        {
                            if (unknownFields != null)
                            {
                                this.UnknownFields = unknownFields.Build();
                            }
                            return(this);
                        }
                        if (unknownFields == null)
                        {
                            unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                        }
                        this.ParseUnknownField(input, unknownFields, extensionRegistry, fieldTag, fieldName);
                        continue;
                    }
                }
                if (unknownFields != null)
                {
                    this.UnknownFields = unknownFields.Build();
                }
                return(this);
            }
Exemple #10
0
            public override Transparent.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                this.PrepareBuilder();
                UnknownFieldSet.Builder builder = null;
                uint   num;
                string text;

                while (input.ReadTag(out num, out text))
                {
                    if (num == 0u && text != null)
                    {
                        int num2 = Array.BinarySearch <string>(Transparent._transparentFieldNames, text, StringComparer.Ordinal);
                        if (num2 < 0)
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                            continue;
                        }
                        num = Transparent._transparentFieldTags[num2];
                    }
                    if (num <= 42u)
                    {
                        if (num <= 18u)
                        {
                            if (num == 0u)
                            {
                                throw InvalidProtocolBufferException.InvalidTag();
                            }
                            if (num == 10u)
                            {
                                this.result.hasId = input.ReadString(ref this.result.id_);
                                continue;
                            }
                            if (num == 18u)
                            {
                                this.result.hasAction = input.ReadString(ref this.result.action_);
                                continue;
                            }
                        }
                        else
                        {
                            if (num == 26u)
                            {
                                this.result.hasTaskId = input.ReadString(ref this.result.taskId_);
                                continue;
                            }
                            if (num == 34u)
                            {
                                this.result.hasAppKey = input.ReadString(ref this.result.appKey_);
                                continue;
                            }
                            if (num == 42u)
                            {
                                this.result.hasAppId = input.ReadString(ref this.result.appId_);
                                continue;
                            }
                        }
                    }
                    else if (num <= 66u)
                    {
                        if (num == 50u)
                        {
                            this.result.hasMessageId = input.ReadString(ref this.result.messageId_);
                            continue;
                        }
                        if (num == 58u)
                        {
                            PushInfo.Builder builder2 = PushInfo.CreateBuilder();
                            if (this.result.hasPushInfo)
                            {
                                builder2.MergeFrom(this.PushInfo);
                            }
                            input.ReadMessage(builder2, extensionRegistry);
                            this.PushInfo = builder2.BuildPartial();
                            continue;
                        }
                        if (num == 66u)
                        {
                            input.ReadMessageArray <ActionChain>(num, text, this.result.actionChain_, ActionChain.DefaultInstance, extensionRegistry);
                            continue;
                        }
                    }
                    else if (num <= 80u)
                    {
                        if (num == 74u)
                        {
                            input.ReadStringArray(num, text, this.result.condition_);
                            continue;
                        }
                        if (num == 80u)
                        {
                            this.result.hasTemplateId = input.ReadInt32(ref this.result.templateId_);
                            continue;
                        }
                    }
                    else
                    {
                        if (num == 90u)
                        {
                            this.result.hasTaskGroupId = input.ReadString(ref this.result.taskGroupId_);
                            continue;
                        }
                        if (num == 98u)
                        {
                            SmsInfo.Builder builder3 = SmsInfo.CreateBuilder();
                            if (this.result.hasSmsInfo)
                            {
                                builder3.MergeFrom(this.SmsInfo);
                            }
                            input.ReadMessage(builder3, extensionRegistry);
                            this.SmsInfo = builder3.BuildPartial();
                            continue;
                        }
                    }
                    if (WireFormat.IsEndGroupTag(num))
                    {
                        if (builder != null)
                        {
                            this.UnknownFields = builder.Build();
                        }
                        return(this);
                    }
                    if (builder == null)
                    {
                        builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                    }
                    this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                }
                if (builder != null)
                {
                    this.UnknownFields = builder.Build();
                }
                return(this);
            }
Exemple #11
0
            public override RustProto.User.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;
                object obj;

                this.PrepareBuilder();
                UnknownFieldSet.Builder builder = null;
                while (input.ReadTag(out num, out str))
                {
                    if (num == 0 && str != null)
                    {
                        int num1 = Array.BinarySearch <string>(RustProto.User._userFieldNames, str, StringComparer.Ordinal);
                        if (num1 < 0)
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, str);
                            continue;
                        }
                        else
                        {
                            num = RustProto.User._userFieldTags[num1];
                        }
                    }
                    uint num2 = num;
                    if (num2 == 0)
                    {
                        throw InvalidProtocolBufferException.InvalidTag();
                    }
                    if (num2 == 8)
                    {
                        this.result.hasUserid = input.ReadUInt64(ref this.result.userid_);
                    }
                    else if (num2 == 18)
                    {
                        this.result.hasDisplayname = input.ReadString(ref this.result.displayname_);
                    }
                    else if (num2 != 24)
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            if (builder != null)
                            {
                                this.UnknownFields = builder.Build();
                            }
                            return(this);
                        }
                        if (builder == null)
                        {
                            builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                        }
                        this.ParseUnknownField(input, builder, extensionRegistry, num, str);
                    }
                    else if (input.ReadEnum <RustProto.User.Types.UserGroup>(ref this.result.usergroup_, out obj))
                    {
                        this.result.hasUsergroup = true;
                    }
                    else if (obj is int)
                    {
                        if (builder == null)
                        {
                            builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                        }
                        builder.MergeVarintField(3, (ulong)((int)obj));
                    }
                }
                if (builder != null)
                {
                    this.UnknownFields = builder.Build();
                }
                return(this);
            }
Exemple #12
0
        public void MergeFrom(CodedInputStream input)
        {
            uint num;

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

                case 8u:
                    Id = input.ReadInt32();
                    break;

                case 16u:
                    GiveAllCompanions = input.ReadBool();
                    break;

                case 24u:
                    GiveAllWeapons = input.ReadBool();
                    break;

                case 34u:
                {
                    Types.SetLevel setLevel = new Types.SetLevel();
                    if (cmdCase_ == CmdOneofCase.SetWeaponLevel)
                    {
                        setLevel.MergeFrom(SetWeaponLevel);
                    }
                    input.ReadMessage(setLevel);
                    SetWeaponLevel = setLevel;
                    break;
                }

                case 42u:
                {
                    Types.SetAllLevels setAllLevels = new Types.SetAllLevels();
                    if (cmdCase_ == CmdOneofCase.SetAllWeaponLevels)
                    {
                        setAllLevels.MergeFrom(SetAllWeaponLevels);
                    }
                    input.ReadMessage(setAllLevels);
                    SetAllWeaponLevels = setAllLevels;
                    break;
                }

                case 50u:
                {
                    Types.SetGender setGender = new Types.SetGender();
                    if (cmdCase_ == CmdOneofCase.SetGender)
                    {
                        setGender.MergeFrom(SetGender);
                    }
                    input.ReadMessage(setGender);
                    SetGender = setGender;
                    break;
                }
                }
            }
        }
Exemple #13
0
 public SetGender(SetGender other)
     : this()
 {
     gender_        = other.gender_;
     _unknownFields = UnknownFieldSet.Clone(other._unknownFields);
 }
Exemple #14
0
 public SetAllLevels(SetAllLevels other)
     : this()
 {
     level_         = other.level_;
     _unknownFields = UnknownFieldSet.Clone(other._unknownFields);
 }
            public override PushListMessage.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                this.PrepareBuilder();
                UnknownFieldSet.Builder builder = null;
                uint   num;
                string text;

                while (input.ReadTag(out num, out text))
                {
                    if (num == 0u && text != null)
                    {
                        int num2 = Array.BinarySearch <string>(PushListMessage._pushListMessageFieldNames, text, StringComparer.Ordinal);
                        if (num2 < 0)
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                            continue;
                        }
                        num = PushListMessage._pushListMessageFieldTags[num2];
                    }
                    if (num <= 10u)
                    {
                        if (num == 0u)
                        {
                            throw InvalidProtocolBufferException.InvalidTag();
                        }
                        if (num == 10u)
                        {
                            this.result.hasSeqId = input.ReadString(ref this.result.seqId_);
                            continue;
                        }
                    }
                    else
                    {
                        if (num == 18u)
                        {
                            this.result.hasTaskId = input.ReadString(ref this.result.taskId_);
                            continue;
                        }
                        if (num == 26u)
                        {
                            input.ReadMessageArray <Target>(num, text, this.result.targets_, Target.DefaultInstance, extensionRegistry);
                            continue;
                        }
                    }
                    if (WireFormat.IsEndGroupTag(num))
                    {
                        if (builder != null)
                        {
                            this.UnknownFields = builder.Build();
                        }
                        return(this);
                    }
                    if (builder == null)
                    {
                        builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                    }
                    this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                }
                if (builder != null)
                {
                    this.UnknownFields = builder.Build();
                }
                return(this);
            }
Exemple #16
0
            public override objectStructMaster.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;

                this.PrepareBuilder();
                UnknownFieldSet.Builder builder = null;
                while (input.ReadTag(ref num, ref str))
                {
                    if ((num == 0) && (str != null))
                    {
                        int index = Array.BinarySearch <string>(objectStructMaster._objectStructMasterFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = objectStructMaster._objectStructMasterFieldTags[index];
                        }
                        else
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.get_UnknownFields());
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0x15:
                    {
                        this.result.hasDecayDelay = input.ReadFloat(ref this.result.decayDelay_);
                        continue;
                    }

                    case 0x18:
                    {
                        this.result.hasCreatorID = input.ReadUInt64(ref this.result.creatorID_);
                        continue;
                    }

                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 8:
                        break;

                    case 0x20:
                        goto Label_0148;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            if (builder != null)
                            {
                                this.set_UnknownFields(builder.Build());
                            }
                            return(this);
                        }
                        if (builder == null)
                        {
                            builder = UnknownFieldSet.CreateBuilder(this.get_UnknownFields());
                        }
                        this.ParseUnknownField(input, builder, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    this.result.hasID = input.ReadInt32(ref this.result.iD_);
                    continue;
Label_0148:
                    this.result.hasOwnerID = input.ReadUInt64(ref this.result.ownerID_);
                }
                if (builder != null)
                {
                    this.set_UnknownFields(builder.Build());
                }
                return(this);
            }
Exemple #17
0
 public SaveDeckCmd(SaveDeckCmd other)
     : this()
 {
     info_          = ((other.info_ != null) ? other.info_.Clone() : null);
     _unknownFields = UnknownFieldSet.Clone(other._unknownFields);
 }
Exemple #18
0
            public override RustProto.User.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;

                this.PrepareBuilder();
                UnknownFieldSet.Builder unknownFields = null;
                while (input.ReadTag(out num, out str))
                {
                    object obj2;
                    if ((num == 0) && (str != null))
                    {
                        int index = Array.BinarySearch <string>(RustProto.User._userFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = RustProto.User._userFieldTags[index];
                        }
                        else
                        {
                            if (unknownFields == null)
                            {
                                unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, unknownFields, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

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

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

                    case 0x18:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            if (unknownFields != null)
                            {
                                this.UnknownFields = unknownFields.Build();
                            }
                            return(this);
                        }
                        if (unknownFields == null)
                        {
                            unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                        }
                        this.ParseUnknownField(input, unknownFields, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    if (input.ReadEnum <RustProto.User.Types.UserGroup>(ref this.result.usergroup_, out obj2))
                    {
                        this.result.hasUsergroup = true;
                    }
                    else
                    {
                        if (!(obj2 is int))
                        {
                            continue;
                        }
                        if (unknownFields == null)
                        {
                            unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                        }
                        unknownFields.MergeVarintField(3, (ulong)((int)obj2));
                    }
                }
                if (unknownFields != null)
                {
                    this.UnknownFields = unknownFields.Build();
                }
                return(this);
            }
Exemple #19
0
 // Token: 0x06000726 RID: 1830 RVA: 0x00011344 File Offset: 0x0000F544
 public override Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
 {
     PrepareBuilder();
     UnknownFieldSet.Builder builder = null;
     while (input.ReadTag(out uint num, out string text))
     {
         if (num == 0U && text != null)
         {
             int num2 = Array.BinarySearch(_reqServListResultFieldNames, text, StringComparer.Ordinal);
             if (num2 < 0)
             {
                 if (builder == null)
                 {
                     builder = UnknownFieldSet.CreateBuilder(UnknownFields);
                 }
                 ParseUnknownField(input, builder, extensionRegistry, num, text);
                 continue;
             }
             num = _reqServListResultFieldTags[num2];
         }
         if (num <= 8U)
         {
             if (num == 0U)
             {
                 throw InvalidProtocolBufferException.InvalidTag();
             }
             if (num == 8U)
             {
                 result.HasCode = input.ReadInt32(ref result.code_);
                 continue;
             }
         }
         else
         {
             if (num == 18U)
             {
                 input.ReadStringArray(num, text, result.host_);
                 continue;
             }
             if (num == 26U)
             {
                 result.HasSeqId = input.ReadString(ref result.seqId_);
                 continue;
             }
         }
         if (WireFormat.IsEndGroupTag(num))
         {
             if (builder != null)
             {
                 UnknownFields = builder.Build();
             }
             return(this);
         }
         if (builder == null)
         {
             builder = UnknownFieldSet.CreateBuilder(UnknownFields);
         }
         ParseUnknownField(input, builder, extensionRegistry, num, text);
     }
     if (builder != null)
     {
         UnknownFields = builder.Build();
     }
     return(this);
 }
Exemple #20
0
            public override GameError.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;

                this.PrepareBuilder();
                UnknownFieldSet.Builder unknownFields = null;
                while (input.ReadTag(out num, out str))
                {
                    if ((num == 0) && (str != null))
                    {
                        int index = Array.BinarySearch <string>(GameError._gameErrorFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = GameError._gameErrorFieldTags[index];
                        }
                        else
                        {
                            if (unknownFields == null)
                            {
                                unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, unknownFields, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 10:
                    {
                        this.result.hasError = input.ReadString(ref this.result.error_);
                        continue;
                    }

                    case 0x12:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            if (unknownFields != null)
                            {
                                this.UnknownFields = unknownFields.Build();
                            }
                            return(this);
                        }
                        if (unknownFields == null)
                        {
                            unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                        }
                        this.ParseUnknownField(input, unknownFields, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    this.result.hasTrace = input.ReadString(ref this.result.trace_);
                }
                if (unknownFields != null)
                {
                    this.UnknownFields = unknownFields.Build();
                }
                return(this);
            }
Exemple #21
0
            public override AppStartUp.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                this.PrepareBuilder();
                UnknownFieldSet.Builder builder = null;
                uint   num;
                string text;

                while (input.ReadTag(out num, out text))
                {
                    if (num == 0u && text != null)
                    {
                        int num2 = Array.BinarySearch <string>(AppStartUp._appStartUpFieldNames, text, StringComparer.Ordinal);
                        if (num2 < 0)
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                            continue;
                        }
                        num = AppStartUp._appStartUpFieldTags[num2];
                    }
                    if (num <= 10u)
                    {
                        if (num == 0u)
                        {
                            throw InvalidProtocolBufferException.InvalidTag();
                        }
                        if (num == 10u)
                        {
                            this.result.hasAndroid = input.ReadString(ref this.result.android_);
                            continue;
                        }
                    }
                    else
                    {
                        if (num == 18u)
                        {
                            this.result.hasSymbia = input.ReadString(ref this.result.symbia_);
                            continue;
                        }
                        if (num == 26u)
                        {
                            this.result.hasIos = input.ReadString(ref this.result.ios_);
                            continue;
                        }
                    }
                    if (WireFormat.IsEndGroupTag(num))
                    {
                        if (builder != null)
                        {
                            this.UnknownFields = builder.Build();
                        }
                        return(this);
                    }
                    if (builder == null)
                    {
                        builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                    }
                    this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                }
                if (builder != null)
                {
                    this.UnknownFields = builder.Build();
                }
                return(this);
            }
Exemple #22
0
            public override StartMMPBatchTask.Builder MergeFrom(
                ICodedInputStream input,
                ExtensionRegistry extensionRegistry)
            {
                this.PrepareBuilder();
                UnknownFieldSet.Builder unknownFields = (UnknownFieldSet.Builder)null;
                uint   fieldTag;
                string fieldName;

                while (input.ReadTag(out fieldTag, out fieldName))
                {
                    if (fieldTag == 0U && fieldName != null)
                    {
                        int index = Array.BinarySearch <string>(StartMMPBatchTask._startMMPBatchTaskFieldNames, fieldName, (IComparer <string>)StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            fieldTag = StartMMPBatchTask._startMMPBatchTaskFieldTags[index];
                        }
                        else
                        {
                            if (unknownFields == null)
                            {
                                unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, unknownFields, extensionRegistry, fieldTag, fieldName);
                            continue;
                        }
                    }
                    switch (fieldTag)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 10:
                        MMPMessage.Builder builder = MMPMessage.CreateBuilder();
                        if (this.result.hasMessage)
                        {
                            builder.MergeFrom(this.Message);
                        }
                        input.ReadMessage((IBuilderLite)builder, extensionRegistry);
                        this.Message = builder.BuildPartial();
                        continue;

                    case 16:
                        this.result.hasExpire = input.ReadInt64(ref this.result.expire_);
                        continue;

                    case 26:
                        this.result.hasSeqId = input.ReadString(ref this.result.seqId_);
                        continue;

                    case 34:
                        this.result.hasTaskGroupName = input.ReadString(ref this.result.taskGroupName_);
                        continue;

                    default:
                        if (WireFormat.IsEndGroupTag(fieldTag))
                        {
                            if (unknownFields != null)
                            {
                                this.UnknownFields = unknownFields.Build();
                            }
                            return(this);
                        }
                        if (unknownFields == null)
                        {
                            unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                        }
                        this.ParseUnknownField(input, unknownFields, extensionRegistry, fieldTag, fieldName);
                        continue;
                    }
                }
                if (unknownFields != null)
                {
                    this.UnknownFields = unknownFields.Build();
                }
                return(this);
            }
Exemple #23
0
            public override Transparent.Builder MergeFrom(
                ICodedInputStream input,
                ExtensionRegistry extensionRegistry)
            {
                this.PrepareBuilder();
                UnknownFieldSet.Builder unknownFields = (UnknownFieldSet.Builder)null;
                uint   fieldTag;
                string fieldName;

                while (input.ReadTag(out fieldTag, out fieldName))
                {
                    if (fieldTag == 0U && fieldName != null)
                    {
                        int index = Array.BinarySearch <string>(Transparent._transparentFieldNames, fieldName, (IComparer <string>)StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            fieldTag = Transparent._transparentFieldTags[index];
                        }
                        else
                        {
                            if (unknownFields == null)
                            {
                                unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, unknownFields, extensionRegistry, fieldTag, fieldName);
                            continue;
                        }
                    }
                    switch (fieldTag)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 10:
                        this.result.hasId = input.ReadString(ref this.result.id_);
                        continue;

                    case 18:
                        this.result.hasAction = input.ReadString(ref this.result.action_);
                        continue;

                    case 26:
                        this.result.hasTaskId = input.ReadString(ref this.result.taskId_);
                        continue;

                    case 34:
                        this.result.hasAppKey = input.ReadString(ref this.result.appKey_);
                        continue;

                    case 42:
                        this.result.hasAppId = input.ReadString(ref this.result.appId_);
                        continue;

                    case 50:
                        this.result.hasMessageId = input.ReadString(ref this.result.messageId_);
                        continue;

                    case 58:
                        PushInfo.Builder builder1 = PushInfo.CreateBuilder();
                        if (this.result.hasPushInfo)
                        {
                            builder1.MergeFrom(this.PushInfo);
                        }
                        input.ReadMessage((IBuilderLite)builder1, extensionRegistry);
                        this.PushInfo = builder1.BuildPartial();
                        continue;

                    case 66:
                        input.ReadMessageArray <ActionChain>(fieldTag, fieldName, (ICollection <ActionChain>) this.result.actionChain_, ActionChain.DefaultInstance, extensionRegistry);
                        continue;

                    case 74:
                        input.ReadStringArray(fieldTag, fieldName, (ICollection <string>) this.result.condition_);
                        continue;

                    case 80:
                        this.result.hasTemplateId = input.ReadInt32(ref this.result.templateId_);
                        continue;

                    case 90:
                        this.result.hasTaskGroupId = input.ReadString(ref this.result.taskGroupId_);
                        continue;

                    case 98:
                        SmsInfo.Builder builder2 = SmsInfo.CreateBuilder();
                        if (this.result.hasSmsInfo)
                        {
                            builder2.MergeFrom(this.SmsInfo);
                        }
                        input.ReadMessage((IBuilderLite)builder2, extensionRegistry);
                        this.SmsInfo = builder2.BuildPartial();
                        continue;

                    default:
                        if (WireFormat.IsEndGroupTag(fieldTag))
                        {
                            if (unknownFields != null)
                            {
                                this.UnknownFields = unknownFields.Build();
                            }
                            return(this);
                        }
                        if (unknownFields == null)
                        {
                            unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                        }
                        this.ParseUnknownField(input, unknownFields, extensionRegistry, fieldTag, fieldName);
                        continue;
                    }
                }
                if (unknownFields != null)
                {
                    this.UnknownFields = unknownFields.Build();
                }
                return(this);
            }
            public override objectStructComponent.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;

                this.PrepareBuilder();
                UnknownFieldSet.Builder builder = null;
                while (input.ReadTag(out num, out str))
                {
                    if (num == 0 && str != null)
                    {
                        int num1 = Array.BinarySearch <string>(objectStructComponent._objectStructComponentFieldNames, str, StringComparer.Ordinal);
                        if (num1 < 0)
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, str);
                            continue;
                        }
                        else
                        {
                            num = objectStructComponent._objectStructComponentFieldTags[num1];
                        }
                    }
                    uint num2 = num;
                    if (num2 == 0)
                    {
                        throw InvalidProtocolBufferException.InvalidTag();
                    }
                    if (num2 == 8)
                    {
                        this.result.hasID = input.ReadInt32(ref this.result.iD_);
                    }
                    else if (num2 == 16)
                    {
                        this.result.hasMasterID = input.ReadInt32(ref this.result.masterID_);
                    }
                    else if (num2 == 24)
                    {
                        this.result.hasMasterViewID = input.ReadInt32(ref this.result.masterViewID_);
                    }
                    else
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            if (builder != null)
                            {
                                this.UnknownFields = builder.Build();
                            }
                            return(this);
                        }
                        if (builder == null)
                        {
                            builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                        }
                        this.ParseUnknownField(input, builder, extensionRegistry, num, str);
                    }
                }
                if (builder != null)
                {
                    this.UnknownFields = builder.Build();
                }
                return(this);
            }
Exemple #25
0
            public override ReqServListResult.Builder MergeFrom(
                ICodedInputStream input,
                ExtensionRegistry extensionRegistry)
            {
                this.PrepareBuilder();
                UnknownFieldSet.Builder unknownFields = (UnknownFieldSet.Builder)null;
                uint   fieldTag;
                string fieldName;

                while (input.ReadTag(out fieldTag, out fieldName))
                {
                    if (fieldTag == 0U && fieldName != null)
                    {
                        int index = Array.BinarySearch <string>(ReqServListResult._reqServListResultFieldNames, fieldName, (IComparer <string>)StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            fieldTag = ReqServListResult._reqServListResultFieldTags[index];
                        }
                        else
                        {
                            if (unknownFields == null)
                            {
                                unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, unknownFields, extensionRegistry, fieldTag, fieldName);
                            continue;
                        }
                    }
                    switch (fieldTag)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 8:
                        this.result.hasCode = input.ReadInt32(ref this.result.code_);
                        continue;

                    case 18:
                        input.ReadStringArray(fieldTag, fieldName, (ICollection <string>) this.result.host_);
                        continue;

                    case 26:
                        this.result.hasSeqId = input.ReadString(ref this.result.seqId_);
                        continue;

                    default:
                        if (WireFormat.IsEndGroupTag(fieldTag))
                        {
                            if (unknownFields != null)
                            {
                                this.UnknownFields = unknownFields.Build();
                            }
                            return(this);
                        }
                        if (unknownFields == null)
                        {
                            unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                        }
                        this.ParseUnknownField(input, unknownFields, extensionRegistry, fieldTag, fieldName);
                        continue;
                    }
                }
                if (unknownFields != null)
                {
                    this.UnknownFields = unknownFields.Build();
                }
                return(this);
            }
 // Token: 0x0600095E RID: 2398 RVA: 0x0001654C File Offset: 0x0001474C
 public override Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
 {
     PrepareBuilder();
     UnknownFieldSet.Builder builder = null;
     while (input.ReadTag(out uint num, out string text))
     {
         if (num == 0U && text != null)
         {
             int num2 = Array.BinarySearch(_oSMessageFieldNames, text, StringComparer.Ordinal);
             if (num2 < 0)
             {
                 if (builder == null)
                 {
                     builder = UnknownFieldSet.CreateBuilder(UnknownFields);
                 }
                 ParseUnknownField(input, builder, extensionRegistry, num, text);
                 continue;
             }
             num = _oSMessageFieldTags[num2];
         }
         if (num <= 34U)
         {
             if (num <= 16U)
             {
                 if (num == 0U)
                 {
                     throw InvalidProtocolBufferException.InvalidTag();
                 }
                 if (num == 16U)
                 {
                     result.HasIsOffline = input.ReadBool(ref result.isOffline_);
                     continue;
                 }
             }
             else
             {
                 if (num == 24U)
                 {
                     result.HasOfflineExpireTime = input.ReadInt64(ref result.offlineExpireTime_);
                     continue;
                 }
                 if (num == 34U)
                 {
                     Transparent.Builder builder2 = Transparent.CreateBuilder();
                     if (result.HasTransparent)
                     {
                         builder2.MergeFrom(Transparent);
                     }
                     input.ReadMessage(builder2, extensionRegistry);
                     Transparent = builder2.BuildPartial();
                     continue;
                 }
             }
         }
         else if (num <= 48U)
         {
             if (num == 42U)
             {
                 result.HasExtraData = input.ReadString(ref result.extraData_);
                 continue;
             }
             if (num == 48U)
             {
                 result.HasMsgType = input.ReadInt32(ref result.msgType_);
                 continue;
             }
         }
         else
         {
             if (num == 56U)
             {
                 result.HasMsgTraceFlag = input.ReadInt32(ref result.msgTraceFlag_);
                 continue;
             }
             if (num == 64U)
             {
                 result.HasPriority = input.ReadInt32(ref result.priority_);
                 continue;
             }
         }
         if (WireFormat.IsEndGroupTag(num))
         {
             if (builder != null)
             {
                 UnknownFields = builder.Build();
             }
             return(this);
         }
         if (builder == null)
         {
             builder = UnknownFieldSet.CreateBuilder(UnknownFields);
         }
         ParseUnknownField(input, builder, extensionRegistry, num, text);
     }
     if (builder != null)
     {
         UnknownFields = builder.Build();
     }
     return(this);
 }
Exemple #27
0
            public override Vitals.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;

                this.PrepareBuilder();
                UnknownFieldSet.Builder builder = null;
                while (input.ReadTag(ref num, ref str))
                {
                    if ((num == 0) && (str != null))
                    {
                        int index = Array.BinarySearch <string>(Vitals._vitalsFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = Vitals._vitalsFieldTags[index];
                        }
                        else
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.get_UnknownFields());
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 13:
                    {
                        this.result.hasHealth = input.ReadFloat(ref this.result.health_);
                        continue;
                    }

                    case 0x15:
                    {
                        this.result.hasHydration = input.ReadFloat(ref this.result.hydration_);
                        continue;
                    }

                    case 0x1d:
                    {
                        this.result.hasCalories = input.ReadFloat(ref this.result.calories_);
                        continue;
                    }

                    case 0x25:
                    {
                        this.result.hasRadiation = input.ReadFloat(ref this.result.radiation_);
                        continue;
                    }

                    case 0x2d:
                    {
                        this.result.hasRadiationAnti = input.ReadFloat(ref this.result.radiationAnti_);
                        continue;
                    }

                    case 0x35:
                    {
                        this.result.hasBleedSpeed = input.ReadFloat(ref this.result.bleedSpeed_);
                        continue;
                    }

                    case 0x3d:
                    {
                        this.result.hasBleedMax = input.ReadFloat(ref this.result.bleedMax_);
                        continue;
                    }

                    case 0x45:
                    {
                        this.result.hasHealSpeed = input.ReadFloat(ref this.result.healSpeed_);
                        continue;
                    }

                    case 0x4d:
                    {
                        this.result.hasHealMax = input.ReadFloat(ref this.result.healMax_);
                        continue;
                    }

                    case 0x55:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            if (builder != null)
                            {
                                this.set_UnknownFields(builder.Build());
                            }
                            return(this);
                        }
                        if (builder == null)
                        {
                            builder = UnknownFieldSet.CreateBuilder(this.get_UnknownFields());
                        }
                        this.ParseUnknownField(input, builder, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    this.result.hasTemperature = input.ReadFloat(ref this.result.temperature_);
                }
                if (builder != null)
                {
                    this.set_UnknownFields(builder.Build());
                }
                return(this);
            }
            // Token: 0x0600154D RID: 5453 RVA: 0x0004802C File Offset: 0x0004622C
            public override AwayEvent.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                this.PrepareBuilder();
                UnknownFieldSet.Builder builder = null;
                uint   num;
                string text;

                while (input.ReadTag(ref num, ref text))
                {
                    if (num == 0u && text != null)
                    {
                        int num2 = Array.BinarySearch <string>(AwayEvent._awayEventFieldNames, text, StringComparer.Ordinal);
                        if (num2 < 0)
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                            continue;
                        }
                        num = AwayEvent._awayEventFieldTags[num2];
                    }
                    uint num3 = num;
                    if (num3 == 0u)
                    {
                        throw InvalidProtocolBufferException.InvalidTag();
                    }
                    object obj;
                    if (num3 != 8u)
                    {
                        if (num3 != 16u)
                        {
                            if (num3 != 24u)
                            {
                                if (WireFormat.IsEndGroupTag(num))
                                {
                                    if (builder != null)
                                    {
                                        this.UnknownFields = builder.Build();
                                    }
                                    return(this);
                                }
                                if (builder == null)
                                {
                                    builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                                }
                                this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                            }
                            else
                            {
                                this.result.hasInstigator = input.ReadUInt64(ref this.result.instigator_);
                            }
                        }
                        else
                        {
                            this.result.hasTimestamp = input.ReadInt32(ref this.result.timestamp_);
                        }
                    }
                    else if (input.ReadEnum <AwayEvent.Types.AwayEventType>(ref this.result.type_, ref obj))
                    {
                        this.result.hasType = true;
                    }
                    else if (obj is int)
                    {
                        if (builder == null)
                        {
                            builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                        }
                        builder.MergeVarintField(1, (ulong)((long)((int)obj)));
                    }
                }
                if (builder != null)
                {
                    this.UnknownFields = builder.Build();
                }
                return(this);
            }
Exemple #29
0
            public override StartOSBatchTask.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                this.PrepareBuilder();
                UnknownFieldSet.Builder builder = null;
                uint   num;
                string text;

                while (input.ReadTag(out num, out text))
                {
                    if (num == 0u && text != null)
                    {
                        int num2 = Array.BinarySearch <string>(StartOSBatchTask._startOSBatchTaskFieldNames, text, StringComparer.Ordinal);
                        if (num2 < 0)
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                            continue;
                        }
                        num = StartOSBatchTask._startOSBatchTaskFieldTags[num2];
                    }
                    if (num == 0u)
                    {
                        throw InvalidProtocolBufferException.InvalidTag();
                    }
                    if (num != 10u)
                    {
                        if (num != 16u)
                        {
                            if (WireFormat.IsEndGroupTag(num))
                            {
                                if (builder != null)
                                {
                                    this.UnknownFields = builder.Build();
                                }
                                return(this);
                            }
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                        }
                        else
                        {
                            this.result.hasExpire = input.ReadInt64(ref this.result.expire_);
                        }
                    }
                    else
                    {
                        OSMessage.Builder builder2 = OSMessage.CreateBuilder();
                        if (this.result.hasMessage)
                        {
                            builder2.MergeFrom(this.Message);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.Message = builder2.BuildPartial();
                    }
                }
                if (builder != null)
                {
                    this.UnknownFields = builder.Build();
                }
                return(this);
            }
Exemple #30
0
            public override PushOSSingleMessage.Builder MergeFrom(
                ICodedInputStream input,
                ExtensionRegistry extensionRegistry)
            {
                this.PrepareBuilder();
                UnknownFieldSet.Builder unknownFields = (UnknownFieldSet.Builder)null;
                uint   fieldTag;
                string fieldName;

                while (input.ReadTag(out fieldTag, out fieldName))
                {
                    if (fieldTag == 0U && fieldName != null)
                    {
                        int index = Array.BinarySearch <string>(PushOSSingleMessage._pushOSSingleMessageFieldNames, fieldName, (IComparer <string>)StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            fieldTag = PushOSSingleMessage._pushOSSingleMessageFieldTags[index];
                        }
                        else
                        {
                            if (unknownFields == null)
                            {
                                unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, unknownFields, extensionRegistry, fieldTag, fieldName);
                            continue;
                        }
                    }
                    switch (fieldTag)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 10:
                        this.result.hasSeqId = input.ReadString(ref this.result.seqId_);
                        continue;

                    case 18:
                        OSMessage.Builder builder1 = OSMessage.CreateBuilder();
                        if (this.result.hasMessage)
                        {
                            builder1.MergeFrom(this.Message);
                        }
                        input.ReadMessage((IBuilderLite)builder1, extensionRegistry);
                        this.Message = builder1.BuildPartial();
                        continue;

                    case 26:
                        Target.Builder builder2 = Target.CreateBuilder();
                        if (this.result.hasTarget)
                        {
                            builder2.MergeFrom(this.Target);
                        }
                        input.ReadMessage((IBuilderLite)builder2, extensionRegistry);
                        this.Target = builder2.BuildPartial();
                        continue;

                    default:
                        if (WireFormat.IsEndGroupTag(fieldTag))
                        {
                            if (unknownFields != null)
                            {
                                this.UnknownFields = unknownFields.Build();
                            }
                            return(this);
                        }
                        if (unknownFields == null)
                        {
                            unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                        }
                        this.ParseUnknownField(input, unknownFields, extensionRegistry, fieldTag, fieldName);
                        continue;
                    }
                }
                if (unknownFields != null)
                {
                    this.UnknownFields = unknownFields.Build();
                }
                return(this);
            }