Class AsyncRecognizeRequest.Builder (4.41.0)

public static final class AsyncRecognizeRequest.Builder extends GeneratedMessageV3.Builder<AsyncRecognizeRequest.Builder> implements AsyncRecognizeRequestOrBuilder

The top-level message sent by the client for the AsyncRecognize method.

Protobuf type google.cloud.speech.v1beta1.AsyncRecognizeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AsyncRecognizeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AsyncRecognizeRequest.Builder
Overrides

build()

public AsyncRecognizeRequest build()
Returns
Type Description
AsyncRecognizeRequest

buildPartial()

public AsyncRecognizeRequest buildPartial()
Returns
Type Description
AsyncRecognizeRequest

clear()

public AsyncRecognizeRequest.Builder clear()
Returns
Type Description
AsyncRecognizeRequest.Builder
Overrides

clearAudio()

public AsyncRecognizeRequest.Builder clearAudio()

Required The audio data to be recognized.

.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;

Returns
Type Description
AsyncRecognizeRequest.Builder

clearConfig()

public AsyncRecognizeRequest.Builder clearConfig()

Required Provides information to the recognizer that specifies how to process the request.

.google.cloud.speech.v1beta1.RecognitionConfig config = 1;

Returns
Type Description
AsyncRecognizeRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public AsyncRecognizeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AsyncRecognizeRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AsyncRecognizeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AsyncRecognizeRequest.Builder
Overrides

clone()

public AsyncRecognizeRequest.Builder clone()
Returns
Type Description
AsyncRecognizeRequest.Builder
Overrides

getAudio()

public RecognitionAudio getAudio()

Required The audio data to be recognized.

.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;

Returns
Type Description
RecognitionAudio

getAudioBuilder()

public RecognitionAudio.Builder getAudioBuilder()

Required The audio data to be recognized.

.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;

Returns
Type Description
RecognitionAudio.Builder

getAudioOrBuilder()

public RecognitionAudioOrBuilder getAudioOrBuilder()

Required The audio data to be recognized.

.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;

Returns
Type Description
RecognitionAudioOrBuilder

getConfig()

public RecognitionConfig getConfig()

Required Provides information to the recognizer that specifies how to process the request.

.google.cloud.speech.v1beta1.RecognitionConfig config = 1;

Returns
Type Description
RecognitionConfig

getConfigBuilder()

public RecognitionConfig.Builder getConfigBuilder()

Required Provides information to the recognizer that specifies how to process the request.

.google.cloud.speech.v1beta1.RecognitionConfig config = 1;

Returns
Type Description
RecognitionConfig.Builder

getConfigOrBuilder()

public RecognitionConfigOrBuilder getConfigOrBuilder()

Required Provides information to the recognizer that specifies how to process the request.

.google.cloud.speech.v1beta1.RecognitionConfig config = 1;

Returns
Type Description
RecognitionConfigOrBuilder

getDefaultInstanceForType()

public AsyncRecognizeRequest getDefaultInstanceForType()
Returns
Type Description
AsyncRecognizeRequest

getDescriptorForType()

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

hasAudio()

public boolean hasAudio()

Required The audio data to be recognized.

.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;

Returns
Type Description
boolean

hasConfig()

public boolean hasConfig()

Required Provides information to the recognizer that specifies how to process the request.

.google.cloud.speech.v1beta1.RecognitionConfig config = 1;

Returns
Type Description
boolean

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAudio(RecognitionAudio value)

public AsyncRecognizeRequest.Builder mergeAudio(RecognitionAudio value)

Required The audio data to be recognized.

.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;

Parameter
Name Description
value RecognitionAudio
Returns
Type Description
AsyncRecognizeRequest.Builder

mergeConfig(RecognitionConfig value)

public AsyncRecognizeRequest.Builder mergeConfig(RecognitionConfig value)

Required Provides information to the recognizer that specifies how to process the request.

.google.cloud.speech.v1beta1.RecognitionConfig config = 1;

Parameter
Name Description
value RecognitionConfig
Returns
Type Description
AsyncRecognizeRequest.Builder

mergeFrom(AsyncRecognizeRequest other)

public AsyncRecognizeRequest.Builder mergeFrom(AsyncRecognizeRequest other)
Parameter
Name Description
other AsyncRecognizeRequest
Returns
Type Description
AsyncRecognizeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AsyncRecognizeRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AsyncRecognizeRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AsyncRecognizeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AsyncRecognizeRequest.Builder
Overrides

setAudio(RecognitionAudio value)

public AsyncRecognizeRequest.Builder setAudio(RecognitionAudio value)

Required The audio data to be recognized.

.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;

Parameter
Name Description
value RecognitionAudio
Returns
Type Description
AsyncRecognizeRequest.Builder

setAudio(RecognitionAudio.Builder builderForValue)

public AsyncRecognizeRequest.Builder setAudio(RecognitionAudio.Builder builderForValue)

Required The audio data to be recognized.

.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;

Parameter
Name Description
builderForValue RecognitionAudio.Builder
Returns
Type Description
AsyncRecognizeRequest.Builder

setConfig(RecognitionConfig value)

public AsyncRecognizeRequest.Builder setConfig(RecognitionConfig value)

Required Provides information to the recognizer that specifies how to process the request.

.google.cloud.speech.v1beta1.RecognitionConfig config = 1;

Parameter
Name Description
value RecognitionConfig
Returns
Type Description
AsyncRecognizeRequest.Builder

setConfig(RecognitionConfig.Builder builderForValue)

public AsyncRecognizeRequest.Builder setConfig(RecognitionConfig.Builder builderForValue)

Required Provides information to the recognizer that specifies how to process the request.

.google.cloud.speech.v1beta1.RecognitionConfig config = 1;

Parameter
Name Description
builderForValue RecognitionConfig.Builder
Returns
Type Description
AsyncRecognizeRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AsyncRecognizeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AsyncRecognizeRequest.Builder
Overrides

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

public AsyncRecognizeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AsyncRecognizeRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AsyncRecognizeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AsyncRecognizeRequest.Builder
Overrides