Ejemplo n.º 1
0
 // Token: 0x0600096C RID: 2412 RVA: 0x00016840 File Offset: 0x00014A40
 public Builder SetTransparent(Transparent value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     PrepareBuilder();
     result.HasTransparent = true;
     result.transparent_   = value;
     return(this);
 }
Ejemplo n.º 2
0
 public OSMessage.Builder MergeTransparent(Transparent value)
 {
     Google.ProtocolBuffers.ThrowHelper.ThrowIfNull((object)value, nameof(value));
     this.PrepareBuilder();
     this.result.transparent_   = !this.result.hasTransparent || this.result.transparent_ == Transparent.DefaultInstance ? value : Transparent.CreateBuilder(this.result.transparent_).MergeFrom(value).BuildPartial();
     this.result.hasTransparent = true;
     return(this);
 }
Ejemplo n.º 3
0
 public OSMessage.Builder SetTransparent(Transparent value)
 {
     Google.ProtocolBuffers.ThrowHelper.ThrowIfNull((object)value, nameof(value));
     this.PrepareBuilder();
     this.result.hasTransparent = true;
     this.result.transparent_   = value;
     return(this);
 }
Ejemplo n.º 4
0
 public OSMessage.Builder SetTransparent(Transparent value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasTransparent = true;
     this.result.transparent_   = value;
     return(this);
 }
Ejemplo n.º 5
0
 // Token: 0x0600096E RID: 2414 RVA: 0x000168A0 File Offset: 0x00014AA0
 public Builder MergeTransparent(Transparent value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     PrepareBuilder();
     if (result.HasTransparent && result.transparent_ != Transparent.DefaultInstance)
     {
         result.transparent_ = Transparent.CreateBuilder(result.transparent_).MergeFrom(value).BuildPartial();
     }
     else
     {
         result.transparent_ = value;
     }
     result.HasTransparent = true;
     return(this);
 }
Ejemplo n.º 6
0
 public OSMessage.Builder MergeTransparent(Transparent value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasTransparent && this.result.transparent_ != Transparent.DefaultInstance)
     {
         this.result.transparent_ = Transparent.CreateBuilder(this.result.transparent_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.transparent_ = value;
     }
     this.result.hasTransparent = true;
     return(this);
 }
Ejemplo n.º 7
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);
 }
Ejemplo n.º 8
0
            public override OSMessage.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>(OSMessage._oSMessageFieldNames, fieldName, (IComparer <string>)StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            fieldTag = OSMessage._oSMessageFieldTags[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 16:
                        this.result.hasIsOffline = input.ReadBool(ref this.result.isOffline_);
                        continue;

                    case 24:
                        this.result.hasOfflineExpireTime = input.ReadInt64(ref this.result.offlineExpireTime_);
                        continue;

                    case 34:
                        Transparent.Builder builder = Transparent.CreateBuilder();
                        if (this.result.hasTransparent)
                        {
                            builder.MergeFrom(this.Transparent);
                        }
                        input.ReadMessage((IBuilderLite)builder, extensionRegistry);
                        this.Transparent = builder.BuildPartial();
                        continue;

                    case 42:
                        this.result.hasExtraData = input.ReadString(ref this.result.extraData_);
                        continue;

                    case 48:
                        this.result.hasMsgType = input.ReadInt32(ref this.result.msgType_);
                        continue;

                    case 56:
                        this.result.hasMsgTraceFlag = input.ReadInt32(ref this.result.msgTraceFlag_);
                        continue;

                    case 64:
                        this.result.hasPriority = input.ReadInt32(ref this.result.priority_);
                        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);
            }
Ejemplo n.º 9
0
            public override MMPMessage.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>(MMPMessage._mMPMessageFieldNames, text, StringComparer.Ordinal);
                        if (num2 < 0)
                        {
                            if (builder == null)
                            {
                                builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
                            }
                            this.ParseUnknownField(input, builder, extensionRegistry, num, text);
                            continue;
                        }
                        num = MMPMessage._mMPMessageFieldTags[num2];
                    }
                    if (num <= 40u)
                    {
                        if (num <= 18u)
                        {
                            if (num == 0u)
                            {
                                throw InvalidProtocolBufferException.InvalidTag();
                            }
                            if (num == 18u)
                            {
                                Transparent.Builder builder2 = Transparent.CreateBuilder();
                                if (this.result.hasTransparent)
                                {
                                    builder2.MergeFrom(this.Transparent);
                                }
                                input.ReadMessage(builder2, extensionRegistry);
                                this.Transparent = builder2.BuildPartial();
                                continue;
                            }
                        }
                        else
                        {
                            if (num == 26u)
                            {
                                this.result.hasExtraData = input.ReadString(ref this.result.extraData_);
                                continue;
                            }
                            if (num == 32u)
                            {
                                this.result.hasMsgType = input.ReadInt32(ref this.result.msgType_);
                                continue;
                            }
                            if (num == 40u)
                            {
                                this.result.hasMsgTraceFlag = input.ReadInt32(ref this.result.msgTraceFlag_);
                                continue;
                            }
                        }
                    }
                    else if (num <= 56u)
                    {
                        if (num == 48u)
                        {
                            this.result.hasMsgOfflineExpire = input.ReadInt64(ref this.result.msgOfflineExpire_);
                            continue;
                        }
                        if (num == 56u)
                        {
                            this.result.hasIsOffline = input.ReadBool(ref this.result.isOffline_);
                            continue;
                        }
                    }
                    else
                    {
                        if (num == 64u)
                        {
                            this.result.hasPriority = input.ReadInt32(ref this.result.priority_);
                            continue;
                        }
                        if (num == 74u)
                        {
                            this.result.hasCdnUrl = input.ReadString(ref this.result.cdnUrl_);
                            continue;
                        }
                        if (num == 80u)
                        {
                            this.result.hasIsSync = input.ReadBool(ref this.result.isSync_);
                            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);
            }