public void MergeFrom(Matcher other) { if (other == null) { return; } switch (other.MatcherOneofCase) { case MatcherOneofOneofCase.ArgmaxMatcher: if (ArgmaxMatcher == null) { ArgmaxMatcher = new global::Tensorflow.Models.ObjectDetection.Protos.ArgMaxMatcher(); } ArgmaxMatcher.MergeFrom(other.ArgmaxMatcher); break; case MatcherOneofOneofCase.BipartiteMatcher: if (BipartiteMatcher == null) { BipartiteMatcher = new global::Tensorflow.Models.ObjectDetection.Protos.BipartiteMatcher(); } BipartiteMatcher.MergeFrom(other.BipartiteMatcher); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (matcherOneofCase_ == MatcherOneofOneofCase.ArgmaxMatcher) { hash ^= ArgmaxMatcher.GetHashCode(); } if (matcherOneofCase_ == MatcherOneofOneofCase.BipartiteMatcher) { hash ^= BipartiteMatcher.GetHashCode(); } hash ^= (int)matcherOneofCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }