Interface StreamingTranslateSpeechResponseOrBuilder

    • Method Detail

      • hasError

        boolean hasError()
         Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that
         specifies the error for the operation.
         
        .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        Whether the error field is set.
      • getError

        com.google.rpc.Status getError()
         Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that
         specifies the error for the operation.
         
        .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        The error.
      • getErrorOrBuilder

        com.google.rpc.StatusOrBuilder getErrorOrBuilder()
         Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that
         specifies the error for the operation.
         
        .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • hasResult

        boolean hasResult()
         Output only. The translation result that is currently being processed (is_final could be
         true or false).
         
        .google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult result = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        Whether the result field is set.
      • getResult

        StreamingTranslateSpeechResult getResult()
         Output only. The translation result that is currently being processed (is_final could be
         true or false).
         
        .google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult result = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        The result.
      • getResultOrBuilder

        StreamingTranslateSpeechResultOrBuilder getResultOrBuilder()
         Output only. The translation result that is currently being processed (is_final could be
         true or false).
         
        .google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult result = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getSpeechEventTypeValue

        int getSpeechEventTypeValue()
         Output only. Indicates the type of speech event.
         
        .google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.SpeechEventType speech_event_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        The enum numeric value on the wire for speechEventType.
      • getSpeechEventType

        StreamingTranslateSpeechResponse.SpeechEventType getSpeechEventType()
         Output only. Indicates the type of speech event.
         
        .google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.SpeechEventType speech_event_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        The speechEventType.