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 (name_ == null) { name_ = new global::Confluent.Kafka.Examples.Protobuf.PersonName(); } input.ReadMessage(name_); break; } case 16: { Age = input.ReadInt32(); break; } } } }
public void MergeFrom(Person other) { if (other == null) { return; } if (other.name_ != null) { if (name_ == null) { name_ = new global::Confluent.Kafka.Examples.Protobuf.PersonName(); } Name.MergeFrom(other.Name); } if (other.Age != 0) { Age = other.Age; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }