public void MergeFrom(ServiceReply other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Success: if (Success == null) { Success = new global::Ubii.General.Success(); } Success.MergeFrom(other.Success); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Ubii.General.Error(); } Error.MergeFrom(other.Error); break; case TypeOneofCase.Client: if (Client == null) { Client = new global::Ubii.Clients.Client(); } Client.MergeFrom(other.Client); break; case TypeOneofCase.Device: if (Device == null) { Device = new global::Ubii.Devices.Device(); } Device.MergeFrom(other.Device); break; case TypeOneofCase.Server: if (Server == null) { Server = new global::Ubii.Servers.Server(); } Server.MergeFrom(other.Server); break; case TypeOneofCase.Session: if (Session == null) { Session = new global::Ubii.Sessions.Session(); } Session.MergeFrom(other.Session); break; case TypeOneofCase.SessionList: if (SessionList == null) { SessionList = new global::Ubii.Sessions.SessionList(); } SessionList.MergeFrom(other.SessionList); break; case TypeOneofCase.ProcessingModule: if (ProcessingModule == null) { ProcessingModule = new global::Ubii.Processing.ProcessingModule(); } ProcessingModule.MergeFrom(other.ProcessingModule); break; case TypeOneofCase.ProcessingModuleList: if (ProcessingModuleList == null) { ProcessingModuleList = new global::Ubii.Processing.ProcessingModuleList(); } ProcessingModuleList.MergeFrom(other.ProcessingModuleList); break; case TypeOneofCase.StringList: if (StringList == null) { StringList = new global::Ubii.DataStructure.StringList(); } StringList.MergeFrom(other.StringList); break; case TypeOneofCase.TopicMux: if (TopicMux == null) { TopicMux = new global::Ubii.Devices.TopicMux(); } TopicMux.MergeFrom(other.TopicMux); break; case TypeOneofCase.TopicMuxList: if (TopicMuxList == null) { TopicMuxList = new global::Ubii.Devices.TopicMuxList(); } TopicMuxList.MergeFrom(other.TopicMuxList); break; case TypeOneofCase.TopicDemux: if (TopicDemux == null) { TopicDemux = new global::Ubii.Devices.TopicDemux(); } TopicDemux.MergeFrom(other.TopicDemux); break; case TypeOneofCase.TopicDemuxList: if (TopicDemuxList == null) { TopicDemuxList = new global::Ubii.Devices.TopicDemuxList(); } TopicDemuxList.MergeFrom(other.TopicDemuxList); break; case TypeOneofCase.ClientList: if (ClientList == null) { ClientList = new global::Ubii.Clients.ClientList(); } ClientList.MergeFrom(other.ClientList); break; case TypeOneofCase.DeviceList: if (DeviceList == null) { DeviceList = new global::Ubii.Devices.DeviceList(); } DeviceList.MergeFrom(other.DeviceList); break; case TypeOneofCase.Service: if (Service == null) { Service = new global::Ubii.Services.Service(); } Service.MergeFrom(other.Service); break; case TypeOneofCase.ServiceList: if (ServiceList == null) { ServiceList = new global::Ubii.Services.ServiceList(); } ServiceList.MergeFrom(other.ServiceList); break; case TypeOneofCase.LockstepProcessingReply: if (LockstepProcessingReply == null) { LockstepProcessingReply = new global::Ubii.Processing.LockstepProcessingReply(); } LockstepProcessingReply.MergeFrom(other.LockstepProcessingReply); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Success) { hash ^= Success.GetHashCode(); } if (typeCase_ == TypeOneofCase.Error) { hash ^= Error.GetHashCode(); } if (typeCase_ == TypeOneofCase.Client) { hash ^= Client.GetHashCode(); } if (typeCase_ == TypeOneofCase.Device) { hash ^= Device.GetHashCode(); } if (typeCase_ == TypeOneofCase.Server) { hash ^= Server.GetHashCode(); } if (typeCase_ == TypeOneofCase.Session) { hash ^= Session.GetHashCode(); } if (typeCase_ == TypeOneofCase.SessionList) { hash ^= SessionList.GetHashCode(); } if (typeCase_ == TypeOneofCase.ProcessingModule) { hash ^= ProcessingModule.GetHashCode(); } if (typeCase_ == TypeOneofCase.ProcessingModuleList) { hash ^= ProcessingModuleList.GetHashCode(); } if (typeCase_ == TypeOneofCase.StringList) { hash ^= StringList.GetHashCode(); } if (typeCase_ == TypeOneofCase.TopicMux) { hash ^= TopicMux.GetHashCode(); } if (typeCase_ == TypeOneofCase.TopicMuxList) { hash ^= TopicMuxList.GetHashCode(); } if (typeCase_ == TypeOneofCase.TopicDemux) { hash ^= TopicDemux.GetHashCode(); } if (typeCase_ == TypeOneofCase.TopicDemuxList) { hash ^= TopicDemuxList.GetHashCode(); } if (typeCase_ == TypeOneofCase.ClientList) { hash ^= ClientList.GetHashCode(); } if (typeCase_ == TypeOneofCase.DeviceList) { hash ^= DeviceList.GetHashCode(); } if (typeCase_ == TypeOneofCase.Service) { hash ^= Service.GetHashCode(); } if (typeCase_ == TypeOneofCase.ServiceList) { hash ^= ServiceList.GetHashCode(); } if (typeCase_ == TypeOneofCase.LockstepProcessingReply) { hash ^= LockstepProcessingReply.GetHashCode(); } hash ^= (int)typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }