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

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

                case 8: {
                    audioEncoding_ = (global::Google.Cloud.Dialogflow.V2.OutputAudioEncoding)input.ReadEnum();
                    break;
                }

                case 16: {
                    SampleRateHertz = input.ReadInt32();
                    break;
                }

                case 26: {
                    if (synthesizeSpeechConfig_ == null)
                    {
                        synthesizeSpeechConfig_ = new global::Google.Cloud.Dialogflow.V2.SynthesizeSpeechConfig();
                    }
                    input.ReadMessage(synthesizeSpeechConfig_);
                    break;
                }
                }
            }
        }
 public void MergeFrom(OutputAudioConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.AudioEncoding != 0)
     {
         AudioEncoding = other.AudioEncoding;
     }
     if (other.SampleRateHertz != 0)
     {
         SampleRateHertz = other.SampleRateHertz;
     }
     if (other.synthesizeSpeechConfig_ != null)
     {
         if (synthesizeSpeechConfig_ == null)
         {
             synthesizeSpeechConfig_ = new global::Google.Cloud.Dialogflow.V2.SynthesizeSpeechConfig();
         }
         SynthesizeSpeechConfig.MergeFrom(other.SynthesizeSpeechConfig);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }