Package com.google.cloud.speech.v2
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Duration to timeout the stream after speech ends.Duration to timeout the stream if no speech begins.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationDuration to timeout the stream after speech ends.com.google.protobuf.Duration.BuilderDuration to timeout the stream after speech ends.com.google.protobuf.DurationOrBuilderDuration to timeout the stream after speech ends.com.google.protobuf.DurationDuration to timeout the stream if no speech begins.com.google.protobuf.Duration.BuilderDuration to timeout the stream if no speech begins.com.google.protobuf.DurationOrBuilderDuration to timeout the stream if no speech begins.booleanDuration to timeout the stream after speech ends.booleanDuration to timeout the stream if no speech begins.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSpeechEndTimeout(com.google.protobuf.Duration value) Duration to timeout the stream after speech ends.mergeSpeechStartTimeout(com.google.protobuf.Duration value) Duration to timeout the stream if no speech begins.setSpeechEndTimeout(com.google.protobuf.Duration value) Duration to timeout the stream after speech ends.setSpeechEndTimeout(com.google.protobuf.Duration.Builder builderForValue) Duration to timeout the stream after speech ends.setSpeechStartTimeout(com.google.protobuf.Duration value) Duration to timeout the stream if no speech begins.setSpeechStartTimeout(com.google.protobuf.Duration.Builder builderForValue) Duration to timeout the stream if no speech begins.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<StreamingRecognitionFeatures.VoiceActivityTimeout.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<StreamingRecognitionFeatures.VoiceActivityTimeout.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<StreamingRecognitionFeatures.VoiceActivityTimeout.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StreamingRecognitionFeatures.VoiceActivityTimeout.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasSpeechStartTimeoutin interfaceStreamingRecognitionFeatures.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:
getSpeechStartTimeoutin interfaceStreamingRecognitionFeatures.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:
getSpeechStartTimeoutOrBuilderin interfaceStreamingRecognitionFeatures.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:
hasSpeechEndTimeoutin interfaceStreamingRecognitionFeatures.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:
getSpeechEndTimeoutin interfaceStreamingRecognitionFeatures.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:
getSpeechEndTimeoutOrBuilderin interfaceStreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder
-