public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (header_ == null) { header_ = new global::Apollo.Common.Header(); } input.ReadMessage(header_); break; } case 18: { if (controlCommand_ == null) { controlCommand_ = new global::Apollo.Control.ControlCommand(); } input.ReadMessage(controlCommand_); break; } } } }
public void MergeFrom(GuardianCommand other) { if (other == null) { return; } if (other.header_ != null) { if (header_ == null) { header_ = new global::Apollo.Common.Header(); } Header.MergeFrom(other.Header); } if (other.controlCommand_ != null) { if (controlCommand_ == null) { controlCommand_ = new global::Apollo.Control.ControlCommand(); } ControlCommand.MergeFrom(other.ControlCommand); } }