erisks, e.g. "f***". If set to `false` or omitted, profanities * won't be filtered out. * * Generated from protobuf field bool profanity_filter = 5; * @param bool $var * @return $this */ public function setProfanityFilter($var) { GPBUtil::checkBool($var); $this->profanity_filter = $var; return $this; } /** * *Optional* A means to provide context to assist the speech recognition. * * Generated from protobuf field .google.cloud.speech.v1beta1.SpeechContext speech_context = 6; * @return \Google\Cloud\Speech\V1beta1\SpeechContext */ public function getSpeechContext() { return $this->speech_context; } /** * *Optional* A means to provide context to assist the speech recognition. * * Generated from protobuf field .google.cloud.speech.v1beta1.SpeechContext speech_context = 6; * @param \Google\Cloud\Speech\V1beta1\SpeechContext $var * @return $this */ public function setSpeechContext($var) { GPBUtil::checkMessage($var, \Google\Cloud\Speech\V1beta1\SpeechContext::class); $this->speech_context = $var; return $this; } }