コード例 #1
0
            public override objectICarriableTrans.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>(objectICarriableTrans._objectICarriableTransFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = objectICarriableTrans._objectICarriableTransFieldTags[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:
                        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.hasTransCarrierID = input.ReadInt32(ref this.result.transCarrierID_);
                }
                if (unknownFields != null)
                {
                    this.UnknownFields = unknownFields.Build();
                }
                return(this);
            }
コード例 #2
0
            public override Blueprint.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>(Blueprint._blueprintFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = Blueprint._blueprintFieldTags[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 8:
                        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.hasId = input.ReadInt32(ref this.result.id_);
                }
                if (builder != null)
                {
                    this.set_UnknownFields(builder.Build());
                }
                return(this);
            }
コード例 #3
0
            public override PushListResult.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>(PushListResult._pushListResultFieldNames, fieldName, (IComparer <string>)StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            fieldTag = PushListResult._pushListResultFieldTags[index];
                        }
                        else
                        {
                            if (unknownFields == null)
                            {
                                unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, unknownFields, extensionRegistry, fieldTag, fieldName);
                            continue;
                        }
                    }
                    if (fieldTag == 0U)
                    {
                        throw InvalidProtocolBufferException.InvalidTag();
                    }
                    if (fieldTag != 10U)
                    {
                        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);
                    }
                    else
                    {
                        input.ReadMessageArray <PushResult>(fieldTag, fieldName, (ICollection <PushResult>) this.result.results_, PushResult.DefaultInstance, extensionRegistry);
                    }
                }
                if (unknownFields != null)
                {
                    this.UnknownFields = unknownFields.Build();
                }
                return(this);
            }
コード例 #4
0
            public override objectICarriableTrans.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>(objectICarriableTrans._objectICarriableTransFieldNames, str, StringComparer.Ordinal);
                        if (num1 < 0)
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, str);
                            continue;
                        }
                        else
                        {
                            num = objectICarriableTrans._objectICarriableTransFieldTags[num1];
                        }
                    }
                    uint num2 = num;
                    if (num2 == 0)
                    {
                        throw InvalidProtocolBufferException.InvalidTag();
                    }
                    if (num2 == 8)
                    {
                        this.result.hasTransCarrierID = input.ReadInt32(ref this.result.transCarrierID_);
                    }
                    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);
            }
コード例 #5
0
 // Token: 0x06000898 RID: 2200 RVA: 0x00014930 File Offset: 0x00012B30
 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(_endBatchTaskFieldNames, text, StringComparer.Ordinal);
             if (num2 < 0)
             {
                 if (builder == null)
                 {
                     builder = UnknownFieldSet.CreateBuilder(UnknownFields);
                 }
                 ParseUnknownField(input, builder, extensionRegistry, num, text);
                 continue;
             }
             num = _endBatchTaskFieldTags[num2];
         }
         if (num == 0U)
         {
             throw InvalidProtocolBufferException.InvalidTag();
         }
         if (num != 10U)
         {
             if (num != 18U)
             {
                 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);
             }
             else
             {
                 result.HasSeqId = input.ReadString(ref result.seqId_);
             }
         }
         else
         {
             result.HasTaskId = input.ReadString(ref result.taskId_);
         }
     }
     if (builder != null)
     {
         UnknownFields = builder.Build();
     }
     return(this);
 }
コード例 #6
0
            // Token: 0x06001103 RID: 4355 RVA: 0x0003E9B4 File Offset: 0x0003CBB4
            public override RustProto.Blueprint.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>(RustProto.Blueprint._blueprintFieldNames, text, StringComparer.Ordinal);
                        if (num2 < 0)
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                            continue;
                        }
                        num = RustProto.Blueprint._blueprintFieldTags[num2];
                    }
                    uint num3 = num;
                    if (num3 == 0u)
                    {
                        throw InvalidProtocolBufferException.InvalidTag();
                    }
                    if (num3 != 8u)
                    {
                        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.hasId = input.ReadInt32(ref this.result.id_);
                    }
                }
                if (builder != null)
                {
                    this.UnknownFields = builder.Build();
                }
                return(this);
            }
コード例 #7
0
            public override PushListResult.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>(PushListResult._pushListResultFieldNames, text, StringComparer.Ordinal);
                        if (num2 < 0)
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                            continue;
                        }
                        num = PushListResult._pushListResultFieldTags[num2];
                    }
                    if (num == 0u)
                    {
                        throw InvalidProtocolBufferException.InvalidTag();
                    }
                    if (num != 10u)
                    {
                        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
                    {
                        input.ReadMessageArray <PushResult>(num, text, this.result.results_, PushResult.DefaultInstance, extensionRegistry);
                    }
                }
                if (builder != null)
                {
                    this.UnknownFields = builder.Build();
                }
                return(this);
            }
コード例 #8
0
            public override RustProto.Quaternion.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>(RustProto.Quaternion._quaternionFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = RustProto.Quaternion._quaternionFieldTags[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 13:
                    {
                        this.result.hasX = input.ReadFloat(ref this.result.x_);
                        continue;
                    }

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

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

                    case 0x25:
                        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.hasW = input.ReadFloat(ref this.result.w_);
                }
                if (unknownFields != null)
                {
                    this.UnknownFields = unknownFields.Build();
                }
                return(this);
            }
コード例 #9
0
            public override objectLockable.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>(objectLockable._objectLockableFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = objectLockable._objectLockableFieldTags[index];
                        }
                        else
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.get_UnknownFields());
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0x18:
                    case 0x1a:
                        goto Label_0124;

                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 10:
                        break;

                    case 0x10:
                        goto Label_0103;

                    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.hasPassword = input.ReadString(ref this.result.password_);
                    continue;
Label_0103:
                    this.result.hasLocked = input.ReadBool(ref this.result.locked_);
                    continue;
Label_0124:
                    input.ReadUInt64Array(num, str, this.result.users_);
                }
                if (builder != null)
                {
                    this.set_UnknownFields(builder.Build());
                }
                return(this);
            }
コード例 #10
0
            // Token: 0x06000F3D RID: 3901 RVA: 0x0003A68C File Offset: 0x0003888C
            public override WorldSave.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>(WorldSave._worldSaveFieldNames, text, StringComparer.Ordinal);
                        if (num2 < 0)
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                            continue;
                        }
                        num = WorldSave._worldSaveFieldTags[num2];
                    }
                    uint num3 = num;
                    if (num3 == 0u)
                    {
                        throw InvalidProtocolBufferException.InvalidTag();
                    }
                    if (num3 != 10u)
                    {
                        if (num3 != 18u)
                        {
                            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
                        {
                            input.ReadMessageArray <SavedObject>(num, text, this.result.instanceObject_, SavedObject.DefaultInstance, extensionRegistry);
                        }
                    }
                    else
                    {
                        input.ReadMessageArray <SavedObject>(num, text, this.result.sceneObject_, SavedObject.DefaultInstance, extensionRegistry);
                    }
                }
                if (builder != null)
                {
                    this.UnknownFields = builder.Build();
                }
                return(this);
            }
コード例 #11
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);
            }
コード例 #12
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);
            }
コード例 #13
0
ファイル: User.cs プロジェクト: sknchan/LegacyRust
            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);
            }
コード例 #14
0
ファイル: Item.cs プロジェクト: salvadj1/RustSource
            public override Item.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>(Item._itemFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = Item._itemFieldTags[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 8:
                    {
                        this.result.hasId = input.ReadInt32(ref this.result.id_);
                        continue;
                    }

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

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

                    case 0x20:
                    {
                        this.result.hasCount = input.ReadInt32(ref this.result.count_);
                        continue;
                    }

                    case 0x2a:
                    {
                        input.ReadMessageArray <Item>(num, str, this.result.subitem_, Item.DefaultInstance, extensionRegistry);
                        continue;
                    }

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

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

                    case 0x45:
                        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.hasMaxcondition = input.ReadFloat(ref this.result.maxcondition_);
                }
                if (builder != null)
                {
                    this.set_UnknownFields(builder.Build());
                }
                return(this);
            }
コード例 #15
0
ファイル: User.cs プロジェクト: Virobeast2/RCLIENT
            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);
            }
コード例 #16
0
ファイル: Error.cs プロジェクト: sknchan/LegacyRust
            public override RustProto.Error.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>(RustProto.Error._errorFieldNames, 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.Error._errorFieldTags[num1];
                        }
                    }
                    uint num2 = num;
                    if (num2 == 0)
                    {
                        throw InvalidProtocolBufferException.InvalidTag();
                    }
                    if (num2 == 10)
                    {
                        this.result.hasStatus = input.ReadString(ref this.result.status_);
                    }
                    else if (num2 == 18)
                    {
                        this.result.hasMessage = input.ReadString(ref this.result.message_);
                    }
                    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);
            }
コード例 #17
0
            public override ServerNotify.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>(ServerNotify._serverNotifyFieldNames, fieldName, (IComparer <string>)StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            fieldTag = ServerNotify._serverNotifyFieldTags[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:
                        object unknown;
                        if (input.ReadEnum <ServerNotify.Types.NotifyType>(ref this.result.type_, out unknown))
                        {
                            this.result.hasType = true;
                            continue;
                        }
                        if (unknown is int)
                        {
                            if (unknownFields == null)
                            {
                                unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            unknownFields.MergeVarintField(1, (ulong)(int)unknown);
                            continue;
                        }
                        continue;

                    case 18:
                        this.result.hasInfo = input.ReadString(ref this.result.info_);
                        continue;

                    case 26:
                        this.result.hasExtradata = input.ReadBytes(ref this.result.extradata_);
                        continue;

                    case 34:
                        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);
            }
コード例 #18
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);
 }
コード例 #19
0
            // 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);
            }
コード例 #20
0
 // 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);
 }
コード例 #21
0
            public override StartMMPBatchTask.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>(StartMMPBatchTask._startMMPBatchTaskFieldNames, text, StringComparer.Ordinal);
                        if (num2 < 0)
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                            continue;
                        }
                        num = StartMMPBatchTask._startMMPBatchTaskFieldTags[num2];
                    }
                    if (num <= 10u)
                    {
                        if (num == 0u)
                        {
                            throw InvalidProtocolBufferException.InvalidTag();
                        }
                        if (num == 10u)
                        {
                            MMPMessage.Builder builder2 = MMPMessage.CreateBuilder();
                            if (this.result.hasMessage)
                            {
                                builder2.MergeFrom(this.Message);
                            }
                            input.ReadMessage(builder2, extensionRegistry);
                            this.Message = builder2.BuildPartial();
                            continue;
                        }
                    }
                    else
                    {
                        if (num == 16u)
                        {
                            this.result.hasExpire = input.ReadInt64(ref this.result.expire_);
                            continue;
                        }
                        if (num == 26u)
                        {
                            this.result.hasSeqId = input.ReadString(ref this.result.seqId_);
                            continue;
                        }
                        if (num == 34u)
                        {
                            this.result.hasTaskGroupName = input.ReadString(ref this.result.taskGroupName_);
                            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);
            }
コード例 #22
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);
            }
コード例 #23
0
            // Token: 0x06001453 RID: 5203 RVA: 0x000460B0 File Offset: 0x000442B0
            public override objectStructMaster.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>(objectStructMaster._objectStructMasterFieldNames, text, StringComparer.Ordinal);
                        if (num2 < 0)
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                            continue;
                        }
                        num = objectStructMaster._objectStructMasterFieldTags[num2];
                    }
                    uint num3 = num;
                    switch (num3)
                    {
                    case 21u:
                        this.result.hasDecayDelay = input.ReadFloat(ref this.result.decayDelay_);
                        break;

                    default:
                        if (num3 == 0u)
                        {
                            throw InvalidProtocolBufferException.InvalidTag();
                        }
                        if (num3 != 8u)
                        {
                            if (num3 != 32u)
                            {
                                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.hasOwnerID = input.ReadUInt64(ref this.result.ownerID_);
                            }
                        }
                        else
                        {
                            this.result.hasID = input.ReadInt32(ref this.result.iD_);
                        }
                        break;

                    case 24u:
                        this.result.hasCreatorID = input.ReadUInt64(ref this.result.creatorID_);
                        break;
                    }
                }
                if (builder != null)
                {
                    this.UnknownFields = builder.Build();
                }
                return(this);
            }
コード例 #24
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);
            }
コード例 #25
0
            // Token: 0x060012EC RID: 4844 RVA: 0x000434D4 File Offset: 0x000416D4
            public override objectSleepingAvatar.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>(objectSleepingAvatar._objectSleepingAvatarFieldNames, text, StringComparer.Ordinal);
                        if (num2 < 0)
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                            continue;
                        }
                        num = objectSleepingAvatar._objectSleepingAvatarFieldTags[num2];
                    }
                    uint num3 = num;
                    if (num3 == 0u)
                    {
                        throw InvalidProtocolBufferException.InvalidTag();
                    }
                    if (num3 != 8u)
                    {
                        if (num3 != 16u)
                        {
                            if (num3 != 24u)
                            {
                                if (num3 != 32u)
                                {
                                    if (num3 != 40u)
                                    {
                                        if (num3 != 50u)
                                        {
                                            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
                                        {
                                            Vitals.Builder builder2 = Vitals.CreateBuilder();
                                            if (this.result.hasVitals)
                                            {
                                                builder2.MergeFrom(this.Vitals);
                                            }
                                            input.ReadMessage(builder2, extensionRegistry);
                                            this.Vitals = builder2.BuildPartial();
                                        }
                                    }
                                    else
                                    {
                                        this.result.hasTimestamp = input.ReadInt32(ref this.result.timestamp_);
                                    }
                                }
                                else
                                {
                                    this.result.hasHeadArmor = input.ReadInt32(ref this.result.headArmor_);
                                }
                            }
                            else
                            {
                                this.result.hasTorsoArmor = input.ReadInt32(ref this.result.torsoArmor_);
                            }
                        }
                        else
                        {
                            this.result.hasLegArmor = input.ReadInt32(ref this.result.legArmor_);
                        }
                    }
                    else
                    {
                        this.result.hasFootArmor = input.ReadInt32(ref this.result.footArmor_);
                    }
                }
                if (builder != null)
                {
                    this.UnknownFields = builder.Build();
                }
                return(this);
            }
コード例 #26
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);
            }
コード例 #27
0
 // Token: 0x060009D0 RID: 2512 RVA: 0x0001762C File Offset: 0x0001582C
 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(_transparentFieldNames, text, StringComparer.Ordinal);
             if (num2 < 0)
             {
                 if (builder == null)
                 {
                     builder = UnknownFieldSet.CreateBuilder(UnknownFields);
                 }
                 ParseUnknownField(input, builder, extensionRegistry, num, text);
                 continue;
             }
             num = _transparentFieldTags[num2];
         }
         if (num <= 42U)
         {
             if (num <= 18U)
             {
                 if (num == 0U)
                 {
                     throw InvalidProtocolBufferException.InvalidTag();
                 }
                 if (num == 10U)
                 {
                     result.HasId = input.ReadString(ref result.id_);
                     continue;
                 }
                 if (num == 18U)
                 {
                     result.HasAction = input.ReadString(ref result.action_);
                     continue;
                 }
             }
             else
             {
                 if (num == 26U)
                 {
                     result.HasTaskId = input.ReadString(ref result.taskId_);
                     continue;
                 }
                 if (num == 34U)
                 {
                     result.HasAppKey = input.ReadString(ref result.appKey_);
                     continue;
                 }
                 if (num == 42U)
                 {
                     result.HasAppId = input.ReadString(ref result.appId_);
                     continue;
                 }
             }
         }
         else if (num <= 66U)
         {
             if (num == 50U)
             {
                 result.HasMessageId = input.ReadString(ref result.messageId_);
                 continue;
             }
             if (num == 58U)
             {
                 PushInfo.Builder builder2 = PushInfo.CreateBuilder();
                 if (result.HasPushInfo)
                 {
                     builder2.MergeFrom(PushInfo);
                 }
                 input.ReadMessage(builder2, extensionRegistry);
                 PushInfo = builder2.BuildPartial();
                 continue;
             }
             if (num == 66U)
             {
                 input.ReadMessageArray(num, text, result.actionChain_, ActionChain.DefaultInstance, extensionRegistry);
                 continue;
             }
         }
         else if (num <= 80U)
         {
             if (num == 74U)
             {
                 input.ReadStringArray(num, text, result.condition_);
                 continue;
             }
             if (num == 80U)
             {
                 result.HasTemplateId = input.ReadInt32(ref result.templateId_);
                 continue;
             }
         }
         else
         {
             if (num == 90U)
             {
                 result.HasTaskGroupId = input.ReadString(ref result.taskGroupId_);
                 continue;
             }
             if (num == 98U)
             {
                 SmsInfo.Builder builder3 = SmsInfo.CreateBuilder();
                 if (result.HasSmsInfo)
                 {
                     builder3.MergeFrom(SmsInfo);
                 }
                 input.ReadMessage(builder3, extensionRegistry);
                 SmsInfo = builder3.BuildPartial();
                 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);
 }
コード例 #28
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);
            }
コード例 #29
0
            public override SingleBatchItem.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>(SingleBatchItem._singleBatchItemFieldNames, fieldName, (IComparer <string>)StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            fieldTag = SingleBatchItem._singleBatchItemFieldTags[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.hasSeqId = input.ReadInt32(ref this.result.seqId_);
                        continue;

                    case 18:
                        this.result.hasData = input.ReadString(ref this.result.data_);
                        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);
            }
コード例 #30
0
ファイル: objectLockable.cs プロジェクト: sknchan/LegacyRust
            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;
                }
            }