public void MergeFrom(SynthesizeSpeechConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.SpeakingRate != 0D)
     {
         SpeakingRate = other.SpeakingRate;
     }
     if (other.Pitch != 0D)
     {
         Pitch = other.Pitch;
     }
     if (other.VolumeGainDb != 0D)
     {
         VolumeGainDb = other.VolumeGainDb;
     }
     effectsProfileId_.Add(other.effectsProfileId_);
     if (other.voice_ != null)
     {
         if (voice_ == null)
         {
             voice_ = new global::Google.Cloud.Dialogflow.V2.VoiceSelectionParams();
         }
         Voice.MergeFrom(other.Voice);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 9: {
                    SpeakingRate = input.ReadDouble();
                    break;
                }

                case 17: {
                    Pitch = input.ReadDouble();
                    break;
                }

                case 25: {
                    VolumeGainDb = input.ReadDouble();
                    break;
                }

                case 34: {
                    if (voice_ == null)
                    {
                        voice_ = new global::Google.Cloud.Dialogflow.V2.VoiceSelectionParams();
                    }
                    input.ReadMessage(voice_);
                    break;
                }

                case 42: {
                    effectsProfileId_.AddEntriesFrom(input, _repeated_effectsProfileId_codec);
                    break;
                }
                }
            }
        }