Interface StreamingTranslateSpeechResponseOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
StreamingTranslateSpeechResponse, StreamingTranslateSpeechResponse.Builder

@Generated public interface StreamingTranslateSpeechResponseOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • 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

      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

      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

       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

       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

       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.