예제 #1
0
        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);
        }
예제 #2
0
        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);
        }