public void MergeFrom(StreamStatus other) { if (other == null) { return; } if (other.header_ != null) { if (header_ == null) { header_ = new global::Apollo.Common.Header(); } Header.MergeFrom(other.Header); } if (other.InsStreamType != 0) { InsStreamType = other.InsStreamType; } if (other.RtkStreamInType != 0) { RtkStreamInType = other.RtkStreamInType; } if (other.RtkStreamOutType != 0) { RtkStreamOutType = other.RtkStreamOutType; } }
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 16: { insStreamType_ = (global::Apollo.Drivers.Gnss.StreamStatus.Types.Type)input.ReadEnum(); break; } case 24: { rtkStreamInType_ = (global::Apollo.Drivers.Gnss.StreamStatus.Types.Type)input.ReadEnum(); break; } case 32: { rtkStreamOutType_ = (global::Apollo.Drivers.Gnss.StreamStatus.Types.Type)input.ReadEnum(); break; } } } }