Dialogflow/src/V2/VoiceSelectionParams.php
public function setSsmlGender($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\SsmlVoiceGender::class);
        $this->ssml_gender = $var;

        return $this;
    }
public function setSsmlGender($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\SsmlVoiceGender::class);
        $this->ssml_gender = $var;

        return $this;
    }
public function setSsmlGender ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Dialogflow \ V2 \ SsmlVoiceGender :: class ) ; $ this -> ssml_gender = $ var ; return $ this ; }
Optional. The preferred gender of the voice. If not set, the service will
choose a voice based on the other parameters such as language_code and
name. Note that this is only a preference, not requirement. If a
voice of the appropriate gender is not available, the synthesizer should
substitute a voice with a different gender rather than failing the request.

Generated from protobuf field <code>.google.cloud.dialogflow.v2.SsmlVoiceGender ssml_gender = 2;</code>
@param int $var
@return $this
Optional . The preferred gender of the voice . If not set the service will choose a voice based on the other parameters such as language_code and name . Note that this is only a preference not requirement . If a voice of the appropriate gender is not available the synthesizer should substitute a voice with a different gender rather than failing the request .