/*
 * Copyright 2020 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/v2/cloud_speech.proto

package com.google.cloud.speech.v2;

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

  /**
   *
   *
   * <pre>
   * 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][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`true`
   * result (the newly settled portion), followed by zero or more
   * [is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`false`
   * results (the interim results).
   * </pre>
   *
   * <code>repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;</code>
   */
  java.util.List<com.google.cloud.speech.v2.StreamingRecognitionResult> getResultsList();
  /**
   *
   *
   * <pre>
   * 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][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`true`
   * result (the newly settled portion), followed by zero or more
   * [is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`false`
   * results (the interim results).
   * </pre>
   *
   * <code>repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;</code>
   */
  com.google.cloud.speech.v2.StreamingRecognitionResult getResults(int index);
  /**
   *
   *
   * <pre>
   * 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][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`true`
   * result (the newly settled portion), followed by zero or more
   * [is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`false`
   * results (the interim results).
   * </pre>
   *
   * <code>repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;</code>
   */
  int getResultsCount();
  /**
   *
   *
   * <pre>
   * 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][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`true`
   * result (the newly settled portion), followed by zero or more
   * [is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`false`
   * results (the interim results).
   * </pre>
   *
   * <code>repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;</code>
   */
  java.util.List<? extends com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder>
      getResultsOrBuilderList();
  /**
   *
   *
   * <pre>
   * 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][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`true`
   * result (the newly settled portion), followed by zero or more
   * [is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`false`
   * results (the interim results).
   * </pre>
   *
   * <code>repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;</code>
   */
  com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResultsOrBuilder(int index);

  /**
   *
   *
   * <pre>
   * Indicates the type of speech event.
   * </pre>
   *
   * <code>.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3;
   * </code>
   *
   * @return The enum numeric value on the wire for speechEventType.
   */
  int getSpeechEventTypeValue();
  /**
   *
   *
   * <pre>
   * Indicates the type of speech event.
   * </pre>
   *
   * <code>.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3;
   * </code>
   *
   * @return The speechEventType.
   */
  com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType getSpeechEventType();

  /**
   *
   *
   * <pre>
   * Time offset between the beginning of the audio and event emission.
   * </pre>
   *
   * <code>.google.protobuf.Duration speech_event_offset = 7;</code>
   *
   * @return Whether the speechEventOffset field is set.
   */
  boolean hasSpeechEventOffset();
  /**
   *
   *
   * <pre>
   * Time offset between the beginning of the audio and event emission.
   * </pre>
   *
   * <code>.google.protobuf.Duration speech_event_offset = 7;</code>
   *
   * @return The speechEventOffset.
   */
  com.google.protobuf.Duration getSpeechEventOffset();
  /**
   *
   *
   * <pre>
   * Time offset between the beginning of the audio and event emission.
   * </pre>
   *
   * <code>.google.protobuf.Duration speech_event_offset = 7;</code>
   */
  com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder();

  /**
   *
   *
   * <pre>
   * Metadata about the recognition.
   * </pre>
   *
   * <code>.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5;</code>
   *
   * @return Whether the metadata field is set.
   */
  boolean hasMetadata();
  /**
   *
   *
   * <pre>
   * Metadata about the recognition.
   * </pre>
   *
   * <code>.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5;</code>
   *
   * @return The metadata.
   */
  com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata();
  /**
   *
   *
   * <pre>
   * Metadata about the recognition.
   * </pre>
   *
   * <code>.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5;</code>
   */
  com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetadataOrBuilder();
}
