Class StreamingRecognitionFeatures

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.speech.v2.StreamingRecognitionFeatures
All Implemented Interfaces:
StreamingRecognitionFeaturesOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class StreamingRecognitionFeatures extends com.google.protobuf.GeneratedMessage implements StreamingRecognitionFeaturesOrBuilder
 Available recognition features specific to streaming recognition requests.
 
Protobuf type google.cloud.speech.v2.StreamingRecognitionFeatures
See Also:
  • Field Details

    • ENABLE_VOICE_ACTIVITY_EVENTS_FIELD_NUMBER

      public static final int ENABLE_VOICE_ACTIVITY_EVENTS_FIELD_NUMBER
      See Also:
    • INTERIM_RESULTS_FIELD_NUMBER

      public static final int INTERIM_RESULTS_FIELD_NUMBER
      See Also:
    • VOICE_ACTIVITY_TIMEOUT_FIELD_NUMBER

      public static final int VOICE_ACTIVITY_TIMEOUT_FIELD_NUMBER
      See Also:
    • ENDPOINTING_SENSITIVITY_FIELD_NUMBER

      public static final int ENDPOINTING_SENSITIVITY_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getEnableVoiceActivityEvents

      public boolean getEnableVoiceActivityEvents()
       If `true`, responses with voice activity speech events will be returned as
       they are detected.
       
      bool enable_voice_activity_events = 1;
      Specified by:
      getEnableVoiceActivityEvents in interface StreamingRecognitionFeaturesOrBuilder
      Returns:
      The enableVoiceActivityEvents.
    • getInterimResults

      public boolean getInterimResults()
       Whether or not to stream interim results to the client. If set to true,
       interim results will be streamed to the client. Otherwise, only the final
       response will be streamed back.
       
      bool interim_results = 2;
      Specified by:
      getInterimResults in interface StreamingRecognitionFeaturesOrBuilder
      Returns:
      The interimResults.
    • hasVoiceActivityTimeout

      public boolean hasVoiceActivityTimeout()
       If set, the server will automatically close the stream after the specified
       duration has elapsed after the last VOICE_ACTIVITY speech event has been
       sent. The field `voice_activity_events` must also be set to true.
       
      .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3;
      Specified by:
      hasVoiceActivityTimeout in interface StreamingRecognitionFeaturesOrBuilder
      Returns:
      Whether the voiceActivityTimeout field is set.
    • getVoiceActivityTimeout

      public StreamingRecognitionFeatures.VoiceActivityTimeout getVoiceActivityTimeout()
       If set, the server will automatically close the stream after the specified
       duration has elapsed after the last VOICE_ACTIVITY speech event has been
       sent. The field `voice_activity_events` must also be set to true.
       
      .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3;
      Specified by:
      getVoiceActivityTimeout in interface StreamingRecognitionFeaturesOrBuilder
      Returns:
      The voiceActivityTimeout.
    • getVoiceActivityTimeoutOrBuilder

      public StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder getVoiceActivityTimeoutOrBuilder()
       If set, the server will automatically close the stream after the specified
       duration has elapsed after the last VOICE_ACTIVITY speech event has been
       sent. The field `voice_activity_events` must also be set to true.
       
      .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3;
      Specified by:
      getVoiceActivityTimeoutOrBuilder in interface StreamingRecognitionFeaturesOrBuilder
    • getEndpointingSensitivityValue

      public int getEndpointingSensitivityValue()
       Optional. Endpointing sensitivity for this stream.
       
      .google.cloud.speech.v2.StreamingRecognitionFeatures.EndpointingSensitivity endpointing_sensitivity = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEndpointingSensitivityValue in interface StreamingRecognitionFeaturesOrBuilder
      Returns:
      The enum numeric value on the wire for endpointingSensitivity.
    • getEndpointingSensitivity

      public StreamingRecognitionFeatures.EndpointingSensitivity getEndpointingSensitivity()
       Optional. Endpointing sensitivity for this stream.
       
      .google.cloud.speech.v2.StreamingRecognitionFeatures.EndpointingSensitivity endpointing_sensitivity = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEndpointingSensitivity in interface StreamingRecognitionFeaturesOrBuilder
      Returns:
      The endpointingSensitivity.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static StreamingRecognitionFeatures parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamingRecognitionFeatures parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamingRecognitionFeatures parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamingRecognitionFeatures parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamingRecognitionFeatures parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamingRecognitionFeatures parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamingRecognitionFeatures parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StreamingRecognitionFeatures parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static StreamingRecognitionFeatures parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static StreamingRecognitionFeatures parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StreamingRecognitionFeatures parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StreamingRecognitionFeatures parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public StreamingRecognitionFeatures.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static StreamingRecognitionFeatures.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected StreamingRecognitionFeatures.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static StreamingRecognitionFeatures getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<StreamingRecognitionFeatures> parser()
    • getParserForType

      public com.google.protobuf.Parser<StreamingRecognitionFeatures> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public StreamingRecognitionFeatures getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder