Class StreamingRecognitionConfig.Builder (4.35.0)

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

Provides configuration information for the StreamingRecognize request.

Protobuf type google.cloud.speech.v2.StreamingRecognitionConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StreamingRecognitionConfig build()
Returns
TypeDescription
StreamingRecognitionConfig

buildPartial()

public StreamingRecognitionConfig buildPartial()
Returns
TypeDescription
StreamingRecognitionConfig

clear()

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

clearConfig()

public StreamingRecognitionConfig.Builder clearConfig()

Required. Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the config_mask field can be used to override parts of the default_recognition_config of the Recognizer resource.

.google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
StreamingRecognitionConfig.Builder

clearConfigMask()

public StreamingRecognitionConfig.Builder clearConfigMask()

The list of fields in config that override the values in the default_recognition_config of the recognizer during this recognition request. If no mask is provided, all non-default valued fields in config override the values in the Recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the Recognizer for this recognition request. If a wildcard (*) is provided, config completely overrides and replaces the config in the recognizer for this recognition request.

.google.protobuf.FieldMask config_mask = 3;

Returns
TypeDescription
StreamingRecognitionConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStreamingFeatures()

public StreamingRecognitionConfig.Builder clearStreamingFeatures()

Speech recognition features to enable specific to streaming audio recognition requests.

.google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;

Returns
TypeDescription
StreamingRecognitionConfig.Builder

clone()

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

getConfig()

public RecognitionConfig getConfig()

Required. Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the config_mask field can be used to override parts of the default_recognition_config of the Recognizer resource.

.google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RecognitionConfig

The config.

getConfigBuilder()

public RecognitionConfig.Builder getConfigBuilder()

Required. Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the config_mask field can be used to override parts of the default_recognition_config of the Recognizer resource.

.google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RecognitionConfig.Builder

getConfigMask()

public FieldMask getConfigMask()

The list of fields in config that override the values in the default_recognition_config of the recognizer during this recognition request. If no mask is provided, all non-default valued fields in config override the values in the Recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the Recognizer for this recognition request. If a wildcard (*) is provided, config completely overrides and replaces the config in the recognizer for this recognition request.

.google.protobuf.FieldMask config_mask = 3;

Returns
TypeDescription
FieldMask

The configMask.

getConfigMaskBuilder()

public FieldMask.Builder getConfigMaskBuilder()

The list of fields in config that override the values in the default_recognition_config of the recognizer during this recognition request. If no mask is provided, all non-default valued fields in config override the values in the Recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the Recognizer for this recognition request. If a wildcard (*) is provided, config completely overrides and replaces the config in the recognizer for this recognition request.

.google.protobuf.FieldMask config_mask = 3;

Returns
TypeDescription
Builder

getConfigMaskOrBuilder()

public FieldMaskOrBuilder getConfigMaskOrBuilder()

The list of fields in config that override the values in the default_recognition_config of the recognizer during this recognition request. If no mask is provided, all non-default valued fields in config override the values in the Recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the Recognizer for this recognition request. If a wildcard (*) is provided, config completely overrides and replaces the config in the recognizer for this recognition request.

.google.protobuf.FieldMask config_mask = 3;

Returns
TypeDescription
FieldMaskOrBuilder

getConfigOrBuilder()

public RecognitionConfigOrBuilder getConfigOrBuilder()

Required. Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the config_mask field can be used to override parts of the default_recognition_config of the Recognizer resource.

.google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RecognitionConfigOrBuilder

getDefaultInstanceForType()

public StreamingRecognitionConfig getDefaultInstanceForType()
Returns
TypeDescription
StreamingRecognitionConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getStreamingFeatures()

public StreamingRecognitionFeatures getStreamingFeatures()

Speech recognition features to enable specific to streaming audio recognition requests.

.google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;

Returns
TypeDescription
StreamingRecognitionFeatures

The streamingFeatures.

getStreamingFeaturesBuilder()

public StreamingRecognitionFeatures.Builder getStreamingFeaturesBuilder()

Speech recognition features to enable specific to streaming audio recognition requests.

.google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;

Returns
TypeDescription
StreamingRecognitionFeatures.Builder

getStreamingFeaturesOrBuilder()

public StreamingRecognitionFeaturesOrBuilder getStreamingFeaturesOrBuilder()

Speech recognition features to enable specific to streaming audio recognition requests.

.google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;

Returns
TypeDescription
StreamingRecognitionFeaturesOrBuilder

hasConfig()

public boolean hasConfig()

Required. Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the config_mask field can be used to override parts of the default_recognition_config of the Recognizer resource.

.google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the config field is set.

hasConfigMask()

public boolean hasConfigMask()

The list of fields in config that override the values in the default_recognition_config of the recognizer during this recognition request. If no mask is provided, all non-default valued fields in config override the values in the Recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the Recognizer for this recognition request. If a wildcard (*) is provided, config completely overrides and replaces the config in the recognizer for this recognition request.

.google.protobuf.FieldMask config_mask = 3;

Returns
TypeDescription
boolean

Whether the configMask field is set.

hasStreamingFeatures()

public boolean hasStreamingFeatures()

Speech recognition features to enable specific to streaming audio recognition requests.

.google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;

Returns
TypeDescription
boolean

Whether the streamingFeatures field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeConfig(RecognitionConfig value)

public StreamingRecognitionConfig.Builder mergeConfig(RecognitionConfig value)

Required. Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the config_mask field can be used to override parts of the default_recognition_config of the Recognizer resource.

.google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueRecognitionConfig
Returns
TypeDescription
StreamingRecognitionConfig.Builder

mergeConfigMask(FieldMask value)

public StreamingRecognitionConfig.Builder mergeConfigMask(FieldMask value)

The list of fields in config that override the values in the default_recognition_config of the recognizer during this recognition request. If no mask is provided, all non-default valued fields in config override the values in the Recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the Recognizer for this recognition request. If a wildcard (*) is provided, config completely overrides and replaces the config in the recognizer for this recognition request.

.google.protobuf.FieldMask config_mask = 3;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
StreamingRecognitionConfig.Builder

mergeFrom(StreamingRecognitionConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStreamingFeatures(StreamingRecognitionFeatures value)

public StreamingRecognitionConfig.Builder mergeStreamingFeatures(StreamingRecognitionFeatures value)

Speech recognition features to enable specific to streaming audio recognition requests.

.google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;

Parameter
NameDescription
valueStreamingRecognitionFeatures
Returns
TypeDescription
StreamingRecognitionConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConfig(RecognitionConfig value)

public StreamingRecognitionConfig.Builder setConfig(RecognitionConfig value)

Required. Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the config_mask field can be used to override parts of the default_recognition_config of the Recognizer resource.

.google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueRecognitionConfig
Returns
TypeDescription
StreamingRecognitionConfig.Builder

setConfig(RecognitionConfig.Builder builderForValue)

public StreamingRecognitionConfig.Builder setConfig(RecognitionConfig.Builder builderForValue)

Required. Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the config_mask field can be used to override parts of the default_recognition_config of the Recognizer resource.

.google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueRecognitionConfig.Builder
Returns
TypeDescription
StreamingRecognitionConfig.Builder

setConfigMask(FieldMask value)

public StreamingRecognitionConfig.Builder setConfigMask(FieldMask value)

The list of fields in config that override the values in the default_recognition_config of the recognizer during this recognition request. If no mask is provided, all non-default valued fields in config override the values in the Recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the Recognizer for this recognition request. If a wildcard (*) is provided, config completely overrides and replaces the config in the recognizer for this recognition request.

.google.protobuf.FieldMask config_mask = 3;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
StreamingRecognitionConfig.Builder

setConfigMask(FieldMask.Builder builderForValue)

public StreamingRecognitionConfig.Builder setConfigMask(FieldMask.Builder builderForValue)

The list of fields in config that override the values in the default_recognition_config of the recognizer during this recognition request. If no mask is provided, all non-default valued fields in config override the values in the Recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the Recognizer for this recognition request. If a wildcard (*) is provided, config completely overrides and replaces the config in the recognizer for this recognition request.

.google.protobuf.FieldMask config_mask = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
StreamingRecognitionConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStreamingFeatures(StreamingRecognitionFeatures value)

public StreamingRecognitionConfig.Builder setStreamingFeatures(StreamingRecognitionFeatures value)

Speech recognition features to enable specific to streaming audio recognition requests.

.google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;

Parameter
NameDescription
valueStreamingRecognitionFeatures
Returns
TypeDescription
StreamingRecognitionConfig.Builder

setStreamingFeatures(StreamingRecognitionFeatures.Builder builderForValue)

public StreamingRecognitionConfig.Builder setStreamingFeatures(StreamingRecognitionFeatures.Builder builderForValue)

Speech recognition features to enable specific to streaming audio recognition requests.

.google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;

Parameter
NameDescription
builderForValueStreamingRecognitionFeatures.Builder
Returns
TypeDescription
StreamingRecognitionConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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