public void MergeFrom(AccountPermissionUpdateContract other) { if (other == null) { return; } if (other.OwnerAddress.Length != 0) { OwnerAddress = other.OwnerAddress; } if (other.owner_ != null) { if (owner_ == null) { Owner = new global::Tron.Net.Protocol.Permission(); } Owner.MergeFrom(other.Owner); } if (other.witness_ != null) { if (witness_ == null) { Witness = new global::Tron.Net.Protocol.Permission(); } Witness.MergeFrom(other.Witness); } actives_.Add(other.actives_); _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: { OwnerAddress = input.ReadBytes(); break; } case 18: { if (owner_ == null) { Owner = new global::Tron.Net.Protocol.Permission(); } input.ReadMessage(Owner); break; } case 26: { if (witness_ == null) { Witness = new global::Tron.Net.Protocol.Permission(); } input.ReadMessage(Witness); break; } case 34: { actives_.AddEntriesFrom(input, _repeated_actives_codec); break; } } } }