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.V1Beta1.ClassificationEvaluationMetrics.Types.ConfusionMatrix();
         }
         ConfusionMatrix.MergeFrom(other.ConfusionMatrix);
     }
     annotationSpecId_.Add(other.annotationSpecId_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref 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.V1Beta1.ClassificationEvaluationMetrics.Types.ConfusionMatrix();
                    }
                    input.ReadMessage(ConfusionMatrix);
                    break;
                }

                case 74: {
                    annotationSpecId_.AddEntriesFrom(ref input, _repeated_annotationSpecId_codec);
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
            input.ReadRawMessage(this);
    #else
            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.V1Beta1.ClassificationEvaluationMetrics.Types.ConfusionMatrix();
                    }
                    input.ReadMessage(ConfusionMatrix);
                    break;
                }

                case 74: {
                    annotationSpecId_.AddEntriesFrom(input, _repeated_annotationSpecId_codec);
                    break;
                }
                }
            }
    #endif
        }