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); }
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); }