Пример #1
0
            public override ReqServListResult.Builder MergeFrom(
                ICodedInputStream input,
                ExtensionRegistry extensionRegistry)
            {
                this.PrepareBuilder();
                UnknownFieldSet.Builder unknownFields = (UnknownFieldSet.Builder)null;
                uint   fieldTag;
                string fieldName;

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

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

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

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

                    default:
                        if (WireFormat.IsEndGroupTag(fieldTag))
                        {
                            if (unknownFields != null)
                            {
                                this.UnknownFields = unknownFields.Build();
                            }
                            return(this);
                        }
                        if (unknownFields == null)
                        {
                            unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                        }
                        this.ParseUnknownField(input, unknownFields, extensionRegistry, fieldTag, fieldName);
                        continue;
                    }
                }
                if (unknownFields != null)
                {
                    this.UnknownFields = unknownFields.Build();
                }
                return(this);
            }
Пример #2
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);
 }
Пример #3
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);
            }
Пример #4
0
 // Token: 0x06000726 RID: 1830 RVA: 0x00011344 File Offset: 0x0000F544
 public override Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
 {
     PrepareBuilder();
     UnknownFieldSet.Builder builder = null;
     while (input.ReadTag(out uint num, out string text))
     {
         if (num == 0U && text != null)
         {
             int num2 = Array.BinarySearch(_reqServListResultFieldNames, text, StringComparer.Ordinal);
             if (num2 < 0)
             {
                 if (builder == null)
                 {
                     builder = UnknownFieldSet.CreateBuilder(UnknownFields);
                 }
                 ParseUnknownField(input, builder, extensionRegistry, num, text);
                 continue;
             }
             num = _reqServListResultFieldTags[num2];
         }
         if (num <= 8U)
         {
             if (num == 0U)
             {
                 throw InvalidProtocolBufferException.InvalidTag();
             }
             if (num == 8U)
             {
                 result.HasCode = input.ReadInt32(ref result.code_);
                 continue;
             }
         }
         else
         {
             if (num == 18U)
             {
                 input.ReadStringArray(num, text, result.host_);
                 continue;
             }
             if (num == 26U)
             {
                 result.HasSeqId = input.ReadString(ref result.seqId_);
                 continue;
             }
         }
         if (WireFormat.IsEndGroupTag(num))
         {
             if (builder != null)
             {
                 UnknownFields = builder.Build();
             }
             return(this);
         }
         if (builder == null)
         {
             builder = UnknownFieldSet.CreateBuilder(UnknownFields);
         }
         ParseUnknownField(input, builder, extensionRegistry, num, text);
     }
     if (builder != null)
     {
         UnknownFields = builder.Build();
     }
     return(this);
 }
Пример #5
0
            public override PushMMPAppMessage.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>(PushMMPAppMessage._pushMMPAppMessageFieldNames, fieldName, (IComparer <string>)StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            fieldTag = PushMMPAppMessage._pushMMPAppMessageFieldTags[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 18:
                        input.ReadStringArray(fieldTag, fieldName, (ICollection <string>) this.result.appIdList_);
                        continue;

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

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

                    case 42:
                        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);
            }
Пример #6
0
            public override PushMMPAppMessage.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>(PushMMPAppMessage._pushMMPAppMessageFieldNames, text, StringComparer.Ordinal);
                        if (num2 < 0)
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                            continue;
                        }
                        num = PushMMPAppMessage._pushMMPAppMessageFieldTags[num2];
                    }
                    if (num <= 18u)
                    {
                        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;
                        }
                        if (num == 18u)
                        {
                            input.ReadStringArray(num, text, this.result.appIdList_);
                            continue;
                        }
                    }
                    else
                    {
                        if (num == 26u)
                        {
                            input.ReadStringArray(num, text, this.result.phoneTypeList_);
                            continue;
                        }
                        if (num == 34u)
                        {
                            input.ReadStringArray(num, text, this.result.provinceList_);
                            continue;
                        }
                        if (num == 42u)
                        {
                            this.result.hasSeqId = input.ReadString(ref this.result.seqId_);
                            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);
            }
            public override GtAuthResult.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>(GtAuthResult._gtAuthResultFieldNames, text, StringComparer.Ordinal);
                        if (num2 < 0)
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                            continue;
                        }
                        num = GtAuthResult._gtAuthResultFieldTags[num2];
                    }
                    if (num <= 18u)
                    {
                        if (num == 0u)
                        {
                            throw InvalidProtocolBufferException.InvalidTag();
                        }
                        if (num == 8u)
                        {
                            this.result.hasCode = input.ReadInt32(ref this.result.code_);
                            continue;
                        }
                        if (num == 18u)
                        {
                            this.result.hasRedirectAddress = input.ReadString(ref this.result.redirectAddress_);
                            continue;
                        }
                    }
                    else
                    {
                        if (num == 26u)
                        {
                            this.result.hasSeqId = input.ReadString(ref this.result.seqId_);
                            continue;
                        }
                        if (num == 34u)
                        {
                            this.result.hasInfo = input.ReadString(ref this.result.info_);
                            continue;
                        }
                        if (num == 42u)
                        {
                            input.ReadStringArray(num, text, this.result.appid_);
                            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);
            }