public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 13: {
                    Precision = input.ReadFloat();
                    break;
                }

                case 21: {
                    Recall = input.ReadFloat();
                    break;
                }

                case 29: {
                    F1Score = input.ReadFloat();
                    break;
                }

                case 37: {
                    MeanAbsoluteError = input.ReadFloat();
                    break;
                }

                case 45: {
                    MeanSquaredError = input.ReadFloat();
                    break;
                }

                case 53: {
                    LinearKappa = input.ReadFloat();
                    break;
                }

                case 61: {
                    QuadraticKappa = input.ReadFloat();
                    break;
                }

                case 66: {
                    if (confusionMatrix_ == null)
                    {
                        ConfusionMatrix = new global::Google.Cloud.AutoML.V1.ClassificationEvaluationMetrics.Types.ConfusionMatrix();
                    }
                    input.ReadMessage(ConfusionMatrix);
                    break;
                }
                }
            }
        }
 public void MergeFrom(TextSentimentEvaluationMetrics other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Precision != 0F)
     {
         Precision = other.Precision;
     }
     if (other.Recall != 0F)
     {
         Recall = other.Recall;
     }
     if (other.F1Score != 0F)
     {
         F1Score = other.F1Score;
     }
     if (other.MeanAbsoluteError != 0F)
     {
         MeanAbsoluteError = other.MeanAbsoluteError;
     }
     if (other.MeanSquaredError != 0F)
     {
         MeanSquaredError = other.MeanSquaredError;
     }
     if (other.LinearKappa != 0F)
     {
         LinearKappa = other.LinearKappa;
     }
     if (other.QuadraticKappa != 0F)
     {
         QuadraticKappa = other.QuadraticKappa;
     }
     if (other.confusionMatrix_ != null)
     {
         if (confusionMatrix_ == null)
         {
             ConfusionMatrix = new global::Google.Cloud.AutoML.V1.ClassificationEvaluationMetrics.Types.ConfusionMatrix();
         }
         ConfusionMatrix.MergeFrom(other.ConfusionMatrix);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }