Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (metricsCase_ == MetricsOneofCase.ClassificationEvaluationMetrics)
            {
                hash ^= ClassificationEvaluationMetrics.GetHashCode();
            }
            if (metricsCase_ == MetricsOneofCase.RegressionEvaluationMetrics)
            {
                hash ^= RegressionEvaluationMetrics.GetHashCode();
            }
            if (metricsCase_ == MetricsOneofCase.TranslationEvaluationMetrics)
            {
                hash ^= TranslationEvaluationMetrics.GetHashCode();
            }
            if (metricsCase_ == MetricsOneofCase.ImageObjectDetectionEvaluationMetrics)
            {
                hash ^= ImageObjectDetectionEvaluationMetrics.GetHashCode();
            }
            if (metricsCase_ == MetricsOneofCase.VideoObjectTrackingEvaluationMetrics)
            {
                hash ^= VideoObjectTrackingEvaluationMetrics.GetHashCode();
            }
            if (metricsCase_ == MetricsOneofCase.TextSentimentEvaluationMetrics)
            {
                hash ^= TextSentimentEvaluationMetrics.GetHashCode();
            }
            if (metricsCase_ == MetricsOneofCase.TextExtractionEvaluationMetrics)
            {
                hash ^= TextExtractionEvaluationMetrics.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (AnnotationSpecId.Length != 0)
            {
                hash ^= AnnotationSpecId.GetHashCode();
            }
            if (DisplayName.Length != 0)
            {
                hash ^= DisplayName.GetHashCode();
            }
            if (createTime_ != null)
            {
                hash ^= CreateTime.GetHashCode();
            }
            if (EvaluatedExampleCount != 0)
            {
                hash ^= EvaluatedExampleCount.GetHashCode();
            }
            hash ^= (int)metricsCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }