Interface StreamingRecognizeResponseOrBuilder

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

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

    • hasError

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

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

      StatusOrBuilder getErrorOrBuilder()
       If set, returns a [google.rpc.Status][google.rpc.Status] message that
       specifies the error for the operation.
       
      .google.rpc.Status error = 1;
    • getResultsList

      List<StreamingRecognitionResult> getResultsList()
       This repeated list contains zero or more results that
       correspond to consecutive portions of the audio currently being processed.
       It contains zero or one `is_final=true` result (the newly settled portion),
       followed by zero or more `is_final=false` results (the interim results).
       
      repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    • getResults

      StreamingRecognitionResult getResults(int index)
       This repeated list contains zero or more results that
       correspond to consecutive portions of the audio currently being processed.
       It contains zero or one `is_final=true` result (the newly settled portion),
       followed by zero or more `is_final=false` results (the interim results).
       
      repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    • getResultsCount

      int getResultsCount()
       This repeated list contains zero or more results that
       correspond to consecutive portions of the audio currently being processed.
       It contains zero or one `is_final=true` result (the newly settled portion),
       followed by zero or more `is_final=false` results (the interim results).
       
      repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    • getResultsOrBuilderList

      List<? extends StreamingRecognitionResultOrBuilder> getResultsOrBuilderList()
       This repeated list contains zero or more results that
       correspond to consecutive portions of the audio currently being processed.
       It contains zero or one `is_final=true` result (the newly settled portion),
       followed by zero or more `is_final=false` results (the interim results).
       
      repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    • getResultsOrBuilder

      StreamingRecognitionResultOrBuilder getResultsOrBuilder(int index)
       This repeated list contains zero or more results that
       correspond to consecutive portions of the audio currently being processed.
       It contains zero or one `is_final=true` result (the newly settled portion),
       followed by zero or more `is_final=false` results (the interim results).
       
      repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    • getSpeechEventTypeValue

      int getSpeechEventTypeValue()
       Indicates the type of speech event.
       
      .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4;
      Returns:
      The enum numeric value on the wire for speechEventType.
    • getSpeechEventType

       Indicates the type of speech event.
       
      .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4;
      Returns:
      The speechEventType.
    • hasSpeechEventTime

      boolean hasSpeechEventTime()
       Time offset between the beginning of the audio and event emission.
       
      .google.protobuf.Duration speech_event_time = 8;
      Returns:
      Whether the speechEventTime field is set.
    • getSpeechEventTime

      com.google.protobuf.Duration getSpeechEventTime()
       Time offset between the beginning of the audio and event emission.
       
      .google.protobuf.Duration speech_event_time = 8;
      Returns:
      The speechEventTime.
    • getSpeechEventTimeOrBuilder

      com.google.protobuf.DurationOrBuilder getSpeechEventTimeOrBuilder()
       Time offset between the beginning of the audio and event emission.
       
      .google.protobuf.Duration speech_event_time = 8;
    • hasTotalBilledTime

      boolean hasTotalBilledTime()
       When available, billed audio seconds for the stream.
       Set only if this is the last response in the stream.
       
      .google.protobuf.Duration total_billed_time = 5;
      Returns:
      Whether the totalBilledTime field is set.
    • getTotalBilledTime

      com.google.protobuf.Duration getTotalBilledTime()
       When available, billed audio seconds for the stream.
       Set only if this is the last response in the stream.
       
      .google.protobuf.Duration total_billed_time = 5;
      Returns:
      The totalBilledTime.
    • getTotalBilledTimeOrBuilder

      com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder()
       When available, billed audio seconds for the stream.
       Set only if this is the last response in the stream.
       
      .google.protobuf.Duration total_billed_time = 5;
    • hasSpeechAdaptationInfo

      boolean hasSpeechAdaptationInfo()
       Provides information on adaptation behavior in response
       
      .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9;
      Returns:
      Whether the speechAdaptationInfo field is set.
    • getSpeechAdaptationInfo

      SpeechAdaptationInfo getSpeechAdaptationInfo()
       Provides information on adaptation behavior in response
       
      .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9;
      Returns:
      The speechAdaptationInfo.
    • getSpeechAdaptationInfoOrBuilder

      SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder()
       Provides information on adaptation behavior in response
       
      .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9;
    • getRequestId

      long getRequestId()
       The ID associated with the request. This is a unique ID specific only to
       the given request.
       
      int64 request_id = 10;
      Returns:
      The requestId.