public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Type = (global::Networking.Protocols.Protobuf.AthletesRequest.Types.RequestType)input.ReadEnum(); break; } case 18: { if (user_ == null) { User = new global::Networking.Protocols.Protobuf.Admin(); } input.ReadMessage(User); break; } case 26: { if (child_ == null) { Child = new global::Networking.Protocols.Protobuf.Child(); } input.ReadMessage(Child); break; } case 32: { EventID = input.ReadInt32(); break; } case 42: { Data = input.ReadString(); break; } } } }
public void MergeFrom(AthletesRequest other) { if (other == null) { return; } if (other.Type != global::Networking.Protocols.Protobuf.AthletesRequest.Types.RequestType.Unknown) { Type = other.Type; } if (other.user_ != null) { if (user_ == null) { User = new global::Networking.Protocols.Protobuf.Admin(); } User.MergeFrom(other.User); } if (other.child_ != null) { if (child_ == null) { Child = new global::Networking.Protocols.Protobuf.Child(); } Child.MergeFrom(other.Child); } if (other.EventID != 0) { EventID = other.EventID; } if (other.Data.Length != 0) { Data = other.Data; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }