public void MergeFrom(BinderFile other) { if (other == null) { return; } if (other.flags_ != null) { if (flags_ == null) { Flags = new global::SOULS.Binder.FileFlags(); } Flags.MergeFrom(other.Flags); } if (other.ID != 0) { ID = other.ID; } if (other.Name.Length != 0) { Name = other.Name; } bytes_.Add(other.bytes_); if (other.compressionType_ != null) { if (compressionType_ == null) { CompressionType = new global::SOULS.DCX.Type(); } CompressionType.MergeFrom(other.CompressionType); } _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 (flags_ == null) { Flags = new global::SOULS.Binder.FileFlags(); } input.ReadMessage(Flags); break; } case 16: { ID = input.ReadInt32(); break; } case 26: { Name = input.ReadString(); break; } case 34: case 32: { bytes_.AddEntriesFrom(input, _repeated_bytes_codec); break; } case 42: { if (compressionType_ == null) { CompressionType = new global::SOULS.DCX.Type(); } input.ReadMessage(CompressionType); break; } } } }