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