All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.speech.v1.StreamingRecognizeResponseOrBuilder Maven / Gradle / Ivy

There is a newer version: 4.44.0
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/speech/v1/cloud_speech.proto

// Protobuf Java Version: 3.25.2
package com.google.cloud.speech.v1;

public interface StreamingRecognizeResponseOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognizeResponse)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * 
   * If set, returns a [google.rpc.Status][google.rpc.Status] message that
   * specifies the error for the operation.
   * 
* * .google.rpc.Status error = 1; * * @return Whether the error field is set. */ 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; * * @return The error. */ com.google.rpc.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; */ com.google.rpc.StatusOrBuilder getErrorOrBuilder(); /** * * *
   * 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; */ java.util.List 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; */ com.google.cloud.speech.v1.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; */ 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; */ java.util.List 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; */ com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResultsOrBuilder(int index); /** * * *
   * Indicates the type of speech event.
   * 
* * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * * * @return The enum numeric value on the wire for speechEventType. */ int getSpeechEventTypeValue(); /** * * *
   * Indicates the type of speech event.
   * 
* * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * * * @return The speechEventType. */ com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType(); /** * * *
   * Time offset between the beginning of the audio and event emission.
   * 
* * .google.protobuf.Duration speech_event_time = 8; * * @return Whether the speechEventTime field is set. */ boolean hasSpeechEventTime(); /** * * *
   * Time offset between the beginning of the audio and event emission.
   * 
* * .google.protobuf.Duration speech_event_time = 8; * * @return The speechEventTime. */ com.google.protobuf.Duration getSpeechEventTime(); /** * * *
   * Time offset between the beginning of the audio and event emission.
   * 
* * .google.protobuf.Duration speech_event_time = 8; */ com.google.protobuf.DurationOrBuilder getSpeechEventTimeOrBuilder(); /** * * *
   * 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; * * @return Whether the totalBilledTime field is set. */ 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; * * @return The totalBilledTime. */ 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; */ com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder(); /** * * *
   * Provides information on adaptation behavior in response
   * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** * * *
   * Provides information on adaptation behavior in response
   * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** * * *
   * Provides information on adaptation behavior in response
   * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); /** * * *
   * The ID associated with the request. This is a unique ID specific only to
   * the given request.
   * 
* * int64 request_id = 10; * * @return The requestId. */ long getRequestId(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy