Class StreamingRecognitionFeatures.VoiceActivityTimeout.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StreamingRecognitionFeatures.VoiceActivityTimeout.Builder>
com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder
All Implemented Interfaces:
StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
StreamingRecognitionFeatures.VoiceActivityTimeout

public static final class StreamingRecognitionFeatures.VoiceActivityTimeout.Builder extends com.google.protobuf.GeneratedMessage.Builder<StreamingRecognitionFeatures.VoiceActivityTimeout.Builder> implements StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder
 Events that a timeout can be set on for voice activity.
 
Protobuf type google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
  • 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.Builder<StreamingRecognitionFeatures.VoiceActivityTimeout.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<StreamingRecognitionFeatures.VoiceActivityTimeout.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<StreamingRecognitionFeatures.VoiceActivityTimeout.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingRecognitionFeatures.VoiceActivityTimeout.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<StreamingRecognitionFeatures.VoiceActivityTimeout.Builder>
    • mergeFrom

      public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingRecognitionFeatures.VoiceActivityTimeout.Builder>
      Throws:
      IOException
    • hasSpeechStartTimeout

      public boolean hasSpeechStartTimeout()
       Duration to timeout the stream if no speech begins. If this is set and
       no speech is detected in this duration at the start of the stream, the
       server will close the stream.
       
      .google.protobuf.Duration speech_start_timeout = 1;
      Specified by:
      hasSpeechStartTimeout in interface StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder
      Returns:
      Whether the speechStartTimeout field is set.
    • getSpeechStartTimeout

      public com.google.protobuf.Duration getSpeechStartTimeout()
       Duration to timeout the stream if no speech begins. If this is set and
       no speech is detected in this duration at the start of the stream, the
       server will close the stream.
       
      .google.protobuf.Duration speech_start_timeout = 1;
      Specified by:
      getSpeechStartTimeout in interface StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder
      Returns:
      The speechStartTimeout.
    • setSpeechStartTimeout

      public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder setSpeechStartTimeout(com.google.protobuf.Duration value)
       Duration to timeout the stream if no speech begins. If this is set and
       no speech is detected in this duration at the start of the stream, the
       server will close the stream.
       
      .google.protobuf.Duration speech_start_timeout = 1;
    • setSpeechStartTimeout

      public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder setSpeechStartTimeout(com.google.protobuf.Duration.Builder builderForValue)
       Duration to timeout the stream if no speech begins. If this is set and
       no speech is detected in this duration at the start of the stream, the
       server will close the stream.
       
      .google.protobuf.Duration speech_start_timeout = 1;
    • mergeSpeechStartTimeout

      public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder mergeSpeechStartTimeout(com.google.protobuf.Duration value)
       Duration to timeout the stream if no speech begins. If this is set and
       no speech is detected in this duration at the start of the stream, the
       server will close the stream.
       
      .google.protobuf.Duration speech_start_timeout = 1;
    • clearSpeechStartTimeout

       Duration to timeout the stream if no speech begins. If this is set and
       no speech is detected in this duration at the start of the stream, the
       server will close the stream.
       
      .google.protobuf.Duration speech_start_timeout = 1;
    • getSpeechStartTimeoutBuilder

      public com.google.protobuf.Duration.Builder getSpeechStartTimeoutBuilder()
       Duration to timeout the stream if no speech begins. If this is set and
       no speech is detected in this duration at the start of the stream, the
       server will close the stream.
       
      .google.protobuf.Duration speech_start_timeout = 1;
    • getSpeechStartTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder()
       Duration to timeout the stream if no speech begins. If this is set and
       no speech is detected in this duration at the start of the stream, the
       server will close the stream.
       
      .google.protobuf.Duration speech_start_timeout = 1;
      Specified by:
      getSpeechStartTimeoutOrBuilder in interface StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder
    • hasSpeechEndTimeout

      public boolean hasSpeechEndTimeout()
       Duration to timeout the stream after speech ends. If this is set and no
       speech is detected in this duration after speech was detected, the server
       will close the stream.
       
      .google.protobuf.Duration speech_end_timeout = 2;
      Specified by:
      hasSpeechEndTimeout in interface StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder
      Returns:
      Whether the speechEndTimeout field is set.
    • getSpeechEndTimeout

      public com.google.protobuf.Duration getSpeechEndTimeout()
       Duration to timeout the stream after speech ends. If this is set and no
       speech is detected in this duration after speech was detected, the server
       will close the stream.
       
      .google.protobuf.Duration speech_end_timeout = 2;
      Specified by:
      getSpeechEndTimeout in interface StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder
      Returns:
      The speechEndTimeout.
    • setSpeechEndTimeout

      public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder setSpeechEndTimeout(com.google.protobuf.Duration value)
       Duration to timeout the stream after speech ends. If this is set and no
       speech is detected in this duration after speech was detected, the server
       will close the stream.
       
      .google.protobuf.Duration speech_end_timeout = 2;
    • setSpeechEndTimeout

      public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder setSpeechEndTimeout(com.google.protobuf.Duration.Builder builderForValue)
       Duration to timeout the stream after speech ends. If this is set and no
       speech is detected in this duration after speech was detected, the server
       will close the stream.
       
      .google.protobuf.Duration speech_end_timeout = 2;
    • mergeSpeechEndTimeout

      public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder mergeSpeechEndTimeout(com.google.protobuf.Duration value)
       Duration to timeout the stream after speech ends. If this is set and no
       speech is detected in this duration after speech was detected, the server
       will close the stream.
       
      .google.protobuf.Duration speech_end_timeout = 2;
    • clearSpeechEndTimeout

       Duration to timeout the stream after speech ends. If this is set and no
       speech is detected in this duration after speech was detected, the server
       will close the stream.
       
      .google.protobuf.Duration speech_end_timeout = 2;
    • getSpeechEndTimeoutBuilder

      public com.google.protobuf.Duration.Builder getSpeechEndTimeoutBuilder()
       Duration to timeout the stream after speech ends. If this is set and no
       speech is detected in this duration after speech was detected, the server
       will close the stream.
       
      .google.protobuf.Duration speech_end_timeout = 2;
    • getSpeechEndTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getSpeechEndTimeoutOrBuilder()
       Duration to timeout the stream after speech ends. If this is set and no
       speech is detected in this duration after speech was detected, the server
       will close the stream.
       
      .google.protobuf.Duration speech_end_timeout = 2;
      Specified by:
      getSpeechEndTimeoutOrBuilder in interface StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder