void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)
        {
            uint tag;

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

                case 8: {
                    ClientType = (global::AcFunDanmu.DeviceInfo.Types.PlatformType)input.ReadEnum();
                    break;
                }

                case 18: {
                    DeviceId = input.ReadString();
                    break;
                }

                case 26: {
                    ClientIp = input.ReadString();
                    break;
                }

                case 34: {
                    AppVersion = input.ReadString();
                    break;
                }

                case 42: {
                    Channel = input.ReadString();
                    break;
                }

                case 50: {
                    if (appInfo_ == null)
                    {
                        AppInfo = new global::AcFunDanmu.AppInfo();
                    }
                    input.ReadMessage(AppInfo);
                    break;
                }

                case 58: {
                    if (deviceInfo_ == null)
                    {
                        DeviceInfo = new global::AcFunDanmu.DeviceInfo();
                    }
                    input.ReadMessage(DeviceInfo);
                    break;
                }

                case 66: {
                    if (envInfo_ == null)
                    {
                        EnvInfo = new global::AcFunDanmu.EnvInfo();
                    }
                    input.ReadMessage(EnvInfo);
                    break;
                }

                case 72: {
                    ClientPort = input.ReadInt32();
                    break;
                }

                case 82: {
                    Location = input.ReadString();
                    break;
                }

                case 90: {
                    Kpf = input.ReadString();
                    break;
                }
                }
            }
        }
        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 8: {
                    ClientType = (global::AcFunDanmu.DeviceInfo.Types.PlatformType)input.ReadEnum();
                    break;
                }

                case 18: {
                    DeviceId = input.ReadString();
                    break;
                }

                case 26: {
                    ClientIp = input.ReadString();
                    break;
                }

                case 34: {
                    AppVersion = input.ReadString();
                    break;
                }

                case 42: {
                    Channel = input.ReadString();
                    break;
                }

                case 50: {
                    if (appInfo_ == null)
                    {
                        AppInfo = new global::AcFunDanmu.AppInfo();
                    }
                    input.ReadMessage(AppInfo);
                    break;
                }

                case 58: {
                    if (deviceInfo_ == null)
                    {
                        DeviceInfo = new global::AcFunDanmu.DeviceInfo();
                    }
                    input.ReadMessage(DeviceInfo);
                    break;
                }

                case 66: {
                    if (envInfo_ == null)
                    {
                        EnvInfo = new global::AcFunDanmu.EnvInfo();
                    }
                    input.ReadMessage(EnvInfo);
                    break;
                }

                case 72: {
                    ClientPort = input.ReadInt32();
                    break;
                }

                case 82: {
                    Location = input.ReadString();
                    break;
                }

                case 90: {
                    Kpf = input.ReadString();
                    break;
                }
                }
            }
    #endif
        }
Example #3
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 (appInfo_ == null)
                    {
                        AppInfo = new global::AcFunDanmu.AppInfo();
                    }
                    input.ReadMessage(AppInfo);
                    break;
                }

                case 18: {
                    if (deviceInfo_ == null)
                    {
                        DeviceInfo = new global::AcFunDanmu.DeviceInfo();
                    }
                    input.ReadMessage(DeviceInfo);
                    break;
                }

                case 26: {
                    if (envInfo_ == null)
                    {
                        EnvInfo = new global::AcFunDanmu.EnvInfo();
                    }
                    input.ReadMessage(EnvInfo);
                    break;
                }

                case 32: {
                    PresenceStatus = (global::AcFunDanmu.RegisterRequest.Types.PresenceStatus)input.ReadEnum();
                    break;
                }

                case 40: {
                    AppActiveStatus = (global::AcFunDanmu.RegisterRequest.Types.ActiveStatus)input.ReadEnum();
                    break;
                }

                case 50: {
                    AppCustomStatus = input.ReadBytes();
                    break;
                }

                case 58: {
                    if (pushServiceToken_ == null)
                    {
                        PushServiceToken = new global::AcFunDanmu.PushServiceToken();
                    }
                    input.ReadMessage(PushServiceToken);
                    break;
                }

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

                case 74: {
                    pushServiceTokenList_.AddEntriesFrom(input, _repeated_pushServiceTokenList_codec);
                    break;
                }

                case 80: {
                    KeepaliveIntervalSec = input.ReadInt32();
                    break;
                }

                case 90: {
                    if (ztCommonInfo_ == null)
                    {
                        ZtCommonInfo = new global::AcFunDanmu.ZtCommonInfo();
                    }
                    input.ReadMessage(ZtCommonInfo);
                    break;
                }
                }
            }
        }
 public void MergeFrom(RequestBasicInfo other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ClientType != global::AcFunDanmu.DeviceInfo.Types.PlatformType.KInvalid)
     {
         ClientType = other.ClientType;
     }
     if (other.DeviceId.Length != 0)
     {
         DeviceId = other.DeviceId;
     }
     if (other.ClientIp.Length != 0)
     {
         ClientIp = other.ClientIp;
     }
     if (other.AppVersion.Length != 0)
     {
         AppVersion = other.AppVersion;
     }
     if (other.Channel.Length != 0)
     {
         Channel = other.Channel;
     }
     if (other.appInfo_ != null)
     {
         if (appInfo_ == null)
         {
             AppInfo = new global::AcFunDanmu.AppInfo();
         }
         AppInfo.MergeFrom(other.AppInfo);
     }
     if (other.deviceInfo_ != null)
     {
         if (deviceInfo_ == null)
         {
             DeviceInfo = new global::AcFunDanmu.DeviceInfo();
         }
         DeviceInfo.MergeFrom(other.DeviceInfo);
     }
     if (other.envInfo_ != null)
     {
         if (envInfo_ == null)
         {
             EnvInfo = new global::AcFunDanmu.EnvInfo();
         }
         EnvInfo.MergeFrom(other.EnvInfo);
     }
     if (other.ClientPort != 0)
     {
         ClientPort = other.ClientPort;
     }
     if (other.Location.Length != 0)
     {
         Location = other.Location;
     }
     if (other.Kpf.Length != 0)
     {
         Kpf = other.Kpf;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #5
0
 public void MergeFrom(RegisterRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.appInfo_ != null)
     {
         if (appInfo_ == null)
         {
             AppInfo = new global::AcFunDanmu.AppInfo();
         }
         AppInfo.MergeFrom(other.AppInfo);
     }
     if (other.deviceInfo_ != null)
     {
         if (deviceInfo_ == null)
         {
             DeviceInfo = new global::AcFunDanmu.DeviceInfo();
         }
         DeviceInfo.MergeFrom(other.DeviceInfo);
     }
     if (other.envInfo_ != null)
     {
         if (envInfo_ == null)
         {
             EnvInfo = new global::AcFunDanmu.EnvInfo();
         }
         EnvInfo.MergeFrom(other.EnvInfo);
     }
     if (other.PresenceStatus != global::AcFunDanmu.RegisterRequest.Types.PresenceStatus.KPresenceOffline)
     {
         PresenceStatus = other.PresenceStatus;
     }
     if (other.AppActiveStatus != global::AcFunDanmu.RegisterRequest.Types.ActiveStatus.KInvalid)
     {
         AppActiveStatus = other.AppActiveStatus;
     }
     if (other.AppCustomStatus.Length != 0)
     {
         AppCustomStatus = other.AppCustomStatus;
     }
     if (other.pushServiceToken_ != null)
     {
         if (pushServiceToken_ == null)
         {
             PushServiceToken = new global::AcFunDanmu.PushServiceToken();
         }
         PushServiceToken.MergeFrom(other.PushServiceToken);
     }
     if (other.InstanceId != 0L)
     {
         InstanceId = other.InstanceId;
     }
     pushServiceTokenList_.Add(other.pushServiceTokenList_);
     if (other.KeepaliveIntervalSec != 0)
     {
         KeepaliveIntervalSec = other.KeepaliveIntervalSec;
     }
     if (other.ztCommonInfo_ != null)
     {
         if (ztCommonInfo_ == null)
         {
             ZtCommonInfo = new global::AcFunDanmu.ZtCommonInfo();
         }
         ZtCommonInfo.MergeFrom(other.ZtCommonInfo);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }