public void MergeFrom(TestTableArraysTemplate other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } weapons_.Add(other.weapons_); if (other.bornPosition_ != null) { if (bornPosition_ == null) { BornPosition = new global::Position3d(); } BornPosition.MergeFrom(other.BornPosition); } testTypes_.Add(other.testTypes_); if (other.LinkId != 0) { LinkId = other.LinkId; } if (other.Model.Length != 0) { Model = other.Model; } if (other.Icon.Length != 0) { Icon = other.Icon; } machineTypes_.Add(other.machineTypes_); if (other.MapType.Length != 0) { MapType = other.MapType; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Id = input.ReadInt32(); break; } case 18: case 16: { weapons_.AddEntriesFrom(ref input, _repeated_weapons_codec); break; } case 26: { if (bornPosition_ == null) { BornPosition = new global::Position3d(); } input.ReadMessage(BornPosition); break; } case 34: { testTypes_.AddEntriesFrom(ref input, _repeated_testTypes_codec); break; } case 40: { LinkId = input.ReadInt32(); break; } case 50: { Model = input.ReadString(); break; } case 58: { Icon = input.ReadString(); break; } case 66: { machineTypes_.AddEntriesFrom(ref input, _repeated_machineTypes_codec); break; } case 74: { MapType = input.ReadString(); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Id = input.ReadInt32(); break; } case 18: case 16: { weapons_.AddEntriesFrom(input, _repeated_weapons_codec); break; } case 26: { if (bornPosition_ == null) { BornPosition = new global::Position3d(); } input.ReadMessage(BornPosition); break; } case 34: { testTypes_.AddEntriesFrom(input, _repeated_testTypes_codec); break; } case 40: { LinkId = input.ReadInt32(); break; } case 50: { Model = input.ReadString(); break; } case 58: { Icon = input.ReadString(); break; } case 66: { machineTypes_.AddEntriesFrom(input, _repeated_machineTypes_codec); break; } case 74: { MapType = input.ReadString(); break; } } } #endif }