Class StreamingRecognitionConfig.VoiceActivityTimeout.Builder (4.15.0)

public static final class StreamingRecognitionConfig.VoiceActivityTimeout.Builder extends GeneratedMessageV3.Builder<StreamingRecognitionConfig.VoiceActivityTimeout.Builder> implements StreamingRecognitionConfig.VoiceActivityTimeoutOrBuilder

Events that a timeout can be set on for voice activity.

Protobuf type google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.VoiceActivityTimeout

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > StreamingRecognitionConfig.VoiceActivityTimeout.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StreamingRecognitionConfig.VoiceActivityTimeout.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout.Builder
Overrides

build()

public StreamingRecognitionConfig.VoiceActivityTimeout build()
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout

buildPartial()

public StreamingRecognitionConfig.VoiceActivityTimeout buildPartial()
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout

clear()

public StreamingRecognitionConfig.VoiceActivityTimeout.Builder clear()
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public StreamingRecognitionConfig.VoiceActivityTimeout.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StreamingRecognitionConfig.VoiceActivityTimeout.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout.Builder
Overrides

clearSpeechEndTimeout()

public StreamingRecognitionConfig.VoiceActivityTimeout.Builder clearSpeechEndTimeout()

Duration to timeout the stream after speech ends.

.google.protobuf.Duration speech_end_timeout = 2;

Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout.Builder

clearSpeechStartTimeout()

public StreamingRecognitionConfig.VoiceActivityTimeout.Builder clearSpeechStartTimeout()

Duration to timeout the stream if no speech begins.

.google.protobuf.Duration speech_start_timeout = 1;

Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout.Builder

clone()

public StreamingRecognitionConfig.VoiceActivityTimeout.Builder clone()
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout.Builder
Overrides

getDefaultInstanceForType()

public StreamingRecognitionConfig.VoiceActivityTimeout getDefaultInstanceForType()
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSpeechEndTimeout()

public Duration getSpeechEndTimeout()

Duration to timeout the stream after speech ends.

.google.protobuf.Duration speech_end_timeout = 2;

Returns
TypeDescription
Duration

The speechEndTimeout.

getSpeechEndTimeoutBuilder()

public Duration.Builder getSpeechEndTimeoutBuilder()

Duration to timeout the stream after speech ends.

.google.protobuf.Duration speech_end_timeout = 2;

Returns
TypeDescription
Builder

getSpeechEndTimeoutOrBuilder()

public DurationOrBuilder getSpeechEndTimeoutOrBuilder()

Duration to timeout the stream after speech ends.

.google.protobuf.Duration speech_end_timeout = 2;

Returns
TypeDescription
DurationOrBuilder

getSpeechStartTimeout()

public Duration getSpeechStartTimeout()

Duration to timeout the stream if no speech begins.

.google.protobuf.Duration speech_start_timeout = 1;

Returns
TypeDescription
Duration

The speechStartTimeout.

getSpeechStartTimeoutBuilder()

public Duration.Builder getSpeechStartTimeoutBuilder()

Duration to timeout the stream if no speech begins.

.google.protobuf.Duration speech_start_timeout = 1;

Returns
TypeDescription
Builder

getSpeechStartTimeoutOrBuilder()

public DurationOrBuilder getSpeechStartTimeoutOrBuilder()

Duration to timeout the stream if no speech begins.

.google.protobuf.Duration speech_start_timeout = 1;

Returns
TypeDescription
DurationOrBuilder

hasSpeechEndTimeout()

public boolean hasSpeechEndTimeout()

Duration to timeout the stream after speech ends.

.google.protobuf.Duration speech_end_timeout = 2;

Returns
TypeDescription
boolean

Whether the speechEndTimeout field is set.

hasSpeechStartTimeout()

public boolean hasSpeechStartTimeout()

Duration to timeout the stream if no speech begins.

.google.protobuf.Duration speech_start_timeout = 1;

Returns
TypeDescription
boolean

Whether the speechStartTimeout field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StreamingRecognitionConfig.VoiceActivityTimeout other)

public StreamingRecognitionConfig.VoiceActivityTimeout.Builder mergeFrom(StreamingRecognitionConfig.VoiceActivityTimeout other)
Parameter
NameDescription
otherStreamingRecognitionConfig.VoiceActivityTimeout
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StreamingRecognitionConfig.VoiceActivityTimeout.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StreamingRecognitionConfig.VoiceActivityTimeout.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout.Builder
Overrides

mergeSpeechEndTimeout(Duration value)

public StreamingRecognitionConfig.VoiceActivityTimeout.Builder mergeSpeechEndTimeout(Duration value)

Duration to timeout the stream after speech ends.

.google.protobuf.Duration speech_end_timeout = 2;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout.Builder

mergeSpeechStartTimeout(Duration value)

public StreamingRecognitionConfig.VoiceActivityTimeout.Builder mergeSpeechStartTimeout(Duration value)

Duration to timeout the stream if no speech begins.

.google.protobuf.Duration speech_start_timeout = 1;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StreamingRecognitionConfig.VoiceActivityTimeout.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public StreamingRecognitionConfig.VoiceActivityTimeout.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout.Builder
Overrides

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

public StreamingRecognitionConfig.VoiceActivityTimeout.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout.Builder
Overrides

setSpeechEndTimeout(Duration value)

public StreamingRecognitionConfig.VoiceActivityTimeout.Builder setSpeechEndTimeout(Duration value)

Duration to timeout the stream after speech ends.

.google.protobuf.Duration speech_end_timeout = 2;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout.Builder

setSpeechEndTimeout(Duration.Builder builderForValue)

public StreamingRecognitionConfig.VoiceActivityTimeout.Builder setSpeechEndTimeout(Duration.Builder builderForValue)

Duration to timeout the stream after speech ends.

.google.protobuf.Duration speech_end_timeout = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout.Builder

setSpeechStartTimeout(Duration value)

public StreamingRecognitionConfig.VoiceActivityTimeout.Builder setSpeechStartTimeout(Duration value)

Duration to timeout the stream if no speech begins.

.google.protobuf.Duration speech_start_timeout = 1;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout.Builder

setSpeechStartTimeout(Duration.Builder builderForValue)

public StreamingRecognitionConfig.VoiceActivityTimeout.Builder setSpeechStartTimeout(Duration.Builder builderForValue)

Duration to timeout the stream if no speech begins.

.google.protobuf.Duration speech_start_timeout = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final StreamingRecognitionConfig.VoiceActivityTimeout.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StreamingRecognitionConfig.VoiceActivityTimeout.Builder
Overrides