public void MergeFrom(User other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Password.Length != 0) { Password = other.Password; } roles_.Add(other.roles_); if (other.options_ != null) { if (options_ == null) { Options = new global::Authpb.UserAddOptions(); } Options.MergeFrom(other.Options); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { Name = input.ReadBytes(); break; } case 18: { Password = input.ReadBytes(); break; } case 26: { roles_.AddEntriesFrom(input, _repeated_roles_codec); break; } case 34: { if (options_ == null) { options_ = new global::Authpb.UserAddOptions(); } input.ReadMessage(options_); break; } } } }
public void MergeFrom(User other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Password.Length != 0) { Password = other.Password; } roles_.Add(other.roles_); if (other.options_ != null) { if (options_ == null) { options_ = new global::Authpb.UserAddOptions(); } Options.MergeFrom(other.Options); } }