public void MergeFrom(AthletesResponse other) { if (other == null) { return; } if (other.Type != global::Networking.Protocols.Protobuf.AthletesResponse.Types.ResponseType.Unknown) { Type = other.Type; } if (other.Error.Length != 0) { Error = other.Error; } if (other.child_ != null) { if (child_ == null) { Child = new global::Networking.Protocols.Protobuf.Child(); } Child.MergeFrom(other.Child); } listOfEvents_.Add(other.listOfEvents_); if (other.ChildCount != 0) { ChildCount = other.ChildCount; } listOfChildren_.Add(other.listOfChildren_); _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 8: { Type = (global::Networking.Protocols.Protobuf.AthletesResponse.Types.ResponseType)input.ReadEnum(); break; } case 18: { Error = input.ReadString(); break; } case 26: { if (child_ == null) { Child = new global::Networking.Protocols.Protobuf.Child(); } input.ReadMessage(Child); break; } case 34: { listOfEvents_.AddEntriesFrom(input, _repeated_listOfEvents_codec); break; } case 40: { ChildCount = input.ReadInt32(); break; } case 50: { listOfChildren_.AddEntriesFrom(input, _repeated_listOfChildren_codec); break; } } } }
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); }