示例#1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
            input.ReadRawMessage(this);
    #else
            uint tag;
            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (accessPointsConfig_ == null)
                    {
                        AccessPointsConfig = new global::AcFunDanmu.AccessPointsConfig();
                    }
                    input.ReadMessage(AccessPointsConfig);
                    break;
                }

                case 18: {
                    SessKey = input.ReadBytes();
                    break;
                }

                case 24: {
                    InstanceId = input.ReadInt64();
                    break;
                }

                case 34: {
                    if (sdkOption_ == null)
                    {
                        SdkOption = new global::AcFunDanmu.SdkOption();
                    }
                    input.ReadMessage(SdkOption);
                    break;
                }

                case 42: {
                    if (accessPointsCOnfigIpv6_ == null)
                    {
                        AccessPointsCOnfigIpv6 = new global::AcFunDanmu.AccessPointsConfig();
                    }
                    input.ReadMessage(AccessPointsCOnfigIpv6);
                    break;
                }
                }
            }
    #endif
        }
示例#2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (accessPointsConfig_ == null)
                    {
                        AccessPointsConfig = new global::AcFunDanmu.AccessPointsConfig();
                    }
                    input.ReadMessage(AccessPointsConfig);
                    break;
                }

                case 18: {
                    SessKey = input.ReadBytes();
                    break;
                }

                case 24: {
                    InstanceId = input.ReadInt64();
                    break;
                }

                case 34: {
                    if (sdkOption_ == null)
                    {
                        SdkOption = new global::AcFunDanmu.SdkOption();
                    }
                    input.ReadMessage(SdkOption);
                    break;
                }

                case 42: {
                    if (accessPointsCOnfigIpv6_ == null)
                    {
                        AccessPointsCOnfigIpv6 = new global::AcFunDanmu.AccessPointsConfig();
                    }
                    input.ReadMessage(AccessPointsCOnfigIpv6);
                    break;
                }
                }
            }
        }
示例#3
0
 public void MergeFrom(RegisterResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.accessPointsConfig_ != null)
     {
         if (accessPointsConfig_ == null)
         {
             AccessPointsConfig = new global::AcFunDanmu.AccessPointsConfig();
         }
         AccessPointsConfig.MergeFrom(other.AccessPointsConfig);
     }
     if (other.SessKey.Length != 0)
     {
         SessKey = other.SessKey;
     }
     if (other.InstanceId != 0L)
     {
         InstanceId = other.InstanceId;
     }
     if (other.sdkOption_ != null)
     {
         if (sdkOption_ == null)
         {
             SdkOption = new global::AcFunDanmu.SdkOption();
         }
         SdkOption.MergeFrom(other.SdkOption);
     }
     if (other.accessPointsCOnfigIpv6_ != null)
     {
         if (accessPointsCOnfigIpv6_ == null)
         {
             AccessPointsCOnfigIpv6 = new global::AcFunDanmu.AccessPointsConfig();
         }
         AccessPointsCOnfigIpv6.MergeFrom(other.AccessPointsCOnfigIpv6);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }