public void MergeFrom(MessageBodyProto other) { if (other == null) { return; } if (other.machine_ != null) { if (machine_ == null) { machine_ = new global::SimulatedTemperatureSensor.MessageBodyProto.Types.Machine(); } Machine.MergeFrom(other.Machine); } if (other.ambient_ != null) { if (ambient_ == null) { ambient_ = new global::SimulatedTemperatureSensor.MessageBodyProto.Types.Ambient(); } Ambient.MergeFrom(other.Ambient); } if (other.TimeCreated.Length != 0) { TimeCreated = other.TimeCreated; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
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 (machine_ == null) { machine_ = new global::SimulatedTemperatureSensor.MessageBodyProto.Types.Machine(); } input.ReadMessage(machine_); break; } case 18: { if (ambient_ == null) { ambient_ = new global::SimulatedTemperatureSensor.MessageBodyProto.Types.Ambient(); } input.ReadMessage(ambient_); break; } case 26: { TimeCreated = input.ReadString(); break; } } } }