public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (shmConf_ == null) { shmConf_ = new global::Apollo.Cyber.Proto.ShmConf(); } input.ReadMessage(shmConf_); break; } case 18: { if (participantAttr_ == null) { participantAttr_ = new global::Apollo.Cyber.Proto.RtpsParticipantAttr(); } input.ReadMessage(participantAttr_); break; } case 26: { if (communicationMode_ == null) { communicationMode_ = new global::Apollo.Cyber.Proto.CommunicationMode(); } input.ReadMessage(communicationMode_); break; } case 34: { if (resourceLimit_ == null) { resourceLimit_ = new global::Apollo.Cyber.Proto.ResourceLimit(); } input.ReadMessage(resourceLimit_); break; } } } }
public void MergeFrom(TransportConf other) { if (other == null) { return; } if (other.shmConf_ != null) { if (shmConf_ == null) { shmConf_ = new global::Apollo.Cyber.Proto.ShmConf(); } ShmConf.MergeFrom(other.ShmConf); } if (other.participantAttr_ != null) { if (participantAttr_ == null) { participantAttr_ = new global::Apollo.Cyber.Proto.RtpsParticipantAttr(); } ParticipantAttr.MergeFrom(other.ParticipantAttr); } if (other.communicationMode_ != null) { if (communicationMode_ == null) { communicationMode_ = new global::Apollo.Cyber.Proto.CommunicationMode(); } CommunicationMode.MergeFrom(other.CommunicationMode); } if (other.resourceLimit_ != null) { if (resourceLimit_ == null) { resourceLimit_ = new global::Apollo.Cyber.Proto.ResourceLimit(); } ResourceLimit.MergeFrom(other.ResourceLimit); } }