Speech/src/V1/StreamingRecognizeResponse.php
public function setSpeechEventType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Speech\V1\StreamingRecognizeResponse_SpeechEventType::class);
        $this->speech_event_type = $var;

        return $this;
    }
public function setSpeechEventType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Speech\V1\StreamingRecognizeResponse_SpeechEventType::class);
        $this->speech_event_type = $var;

        return $this;
    }
public function setSpeechEventType ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Speech \ V1 \ StreamingRecognizeResponse_SpeechEventType :: class ) ; $ this -> speech_event_type = $ var ; return $ this ; }
Output only. Indicates the type of speech event.

Generated from protobuf field <code>.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4;</code>
@param int $var
@return $this
Output only . Indicates the type of speech event .