public override int GetHashCode() { int hash = 1; if (engineTypeCase_ == EngineTypeOneofCase.GoogleRe2) { hash ^= GoogleRe2.GetHashCode(); } if (Regex.Length != 0) { hash ^= Regex.GetHashCode(); } hash ^= (int)engineTypeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(RegexMatcher other) { if (other == null) { return; } if (other.Regex.Length != 0) { Regex = other.Regex; } switch (other.EngineTypeCase) { case EngineTypeOneofCase.GoogleRe2: if (GoogleRe2 == null) { GoogleRe2 = new global::Envoy.Type.Matcher.RegexMatcher.Types.GoogleRE2(); } GoogleRe2.MergeFrom(other.GoogleRe2); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }