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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StreamingRecognitionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public StreamingRecognitionConfig build()
Returns
buildPartial()
public StreamingRecognitionConfig buildPartial()
Returns
clear()
public StreamingRecognitionConfig.Builder clear()
Returns
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
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
clearField(Descriptors.FieldDescriptor field)
public StreamingRecognitionConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public StreamingRecognitionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public StreamingRecognitionConfig.Builder clone()
Returns
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
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
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
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
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
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
getDefaultInstanceForType()
public StreamingRecognitionConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
getStreamingFeaturesOrBuilder()
public StreamingRecognitionFeaturesOrBuilder getStreamingFeaturesOrBuilder()
Speech recognition features to enable specific to streaming audio
recognition requests.
.google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
Returns
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
Type | Description |
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
Type | Description |
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
Type | Description |
boolean | Whether the streamingFeatures field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
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
Returns
mergeFrom(StreamingRecognitionConfig other)
public StreamingRecognitionConfig.Builder mergeFrom(StreamingRecognitionConfig other)
Parameter
Returns
public StreamingRecognitionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public StreamingRecognitionConfig.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StreamingRecognitionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
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
Returns
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
Name | Description |
builderForValue | Builder
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public StreamingRecognitionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StreamingRecognitionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final StreamingRecognitionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides