Class StreamingRecognitionFeatures.VoiceActivityTimeout.Builder (4.49.0)

See more code actions.
public static final class StreamingRecognitionFeatures.VoiceActivityTimeout.Builder extends GeneratedMessageV3.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

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > StreamingRecognitionFeatures.VoiceActivityTimeout.Builder
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Overrides

build()

public StreamingRecognitionFeatures.VoiceActivityTimeout build()

buildPartial()

public StreamingRecognitionFeatures.VoiceActivityTimeout buildPartial()

clear()

public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder clear()
Overrides

clearField(Descriptors.FieldDescriptor field)

public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Overrides

clearSpeechEndTimeout()

public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder 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;

clearSpeechStartTimeout()

public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder 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;

clone()

public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder clone()
Overrides

getDefaultInstanceForType()

public StreamingRecognitionFeatures.VoiceActivityTimeout getDefaultInstanceForType()

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSpeechEndTimeout()

public 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;

Returns
Type Description
Duration

The speechEndTimeout.

getSpeechEndTimeoutBuilder()

public 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;

Returns
Type Description
Builder

getSpeechEndTimeoutOrBuilder()

public 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;

Returns
Type Description
DurationOrBuilder

getSpeechStartTimeout()

public 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;

Returns
Type Description
Duration

The speechStartTimeout.

getSpeechStartTimeoutBuilder()

public 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;

Returns
Type Description
Builder

getSpeechStartTimeoutOrBuilder()

public 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;

Returns
Type Description
DurationOrBuilder

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;

Returns
Type Description
boolean

Whether the speechEndTimeout field is set.

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;

Returns
Type Description
boolean

Whether the speechStartTimeout field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StreamingRecognitionFeatures.VoiceActivityTimeout other)

public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder mergeFrom(StreamingRecognitionFeatures.VoiceActivityTimeout other)
Parameter
Name Description
other StreamingRecognitionFeatures.VoiceActivityTimeout

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Overrides

mergeSpeechEndTimeout(Duration value)

public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder mergeSpeechEndTimeout(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;

Parameter
Name Description
value Duration

mergeSpeechStartTimeout(Duration value)

public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder mergeSpeechStartTimeout(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;

Parameter
Name Description
value Duration

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StreamingRecognitionFeatures.VoiceActivityTimeout.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Overrides

setSpeechEndTimeout(Duration value)

public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder setSpeechEndTimeout(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;

Parameter
Name Description
value Duration

setSpeechEndTimeout(Duration.Builder builderForValue)

public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder setSpeechEndTimeout(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;

Parameter
Name Description
builderForValue Builder

setSpeechStartTimeout(Duration value)

public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder setSpeechStartTimeout(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;

Parameter
Name Description
value Duration

setSpeechStartTimeout(Duration.Builder builderForValue)

public StreamingRecognitionFeatures.VoiceActivityTimeout.Builder setSpeechStartTimeout(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;

Parameter
Name Description
builderForValue Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final StreamingRecognitionFeatures.VoiceActivityTimeout.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Overrides