public void MergeFrom(SimpleFilter other) { if (other == null) { return; } if (other.Op != global::Netmap.Operation.Np) { Op = other.Op; } switch (other.ArgsCase) { case ArgsOneofCase.Value: Value = other.Value; break; case ArgsOneofCase.FArgs: if (FArgs == null) { FArgs = new global::Netmap.SimpleFilters(); } FArgs.MergeFrom(other.FArgs); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (Op != global::Netmap.Operation.Np) { hash ^= Op.GetHashCode(); } if (argsCase_ == ArgsOneofCase.Value) { hash ^= Value.GetHashCode(); } if (argsCase_ == ArgsOneofCase.FArgs) { hash ^= FArgs.GetHashCode(); } hash ^= (int)argsCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }