Class AsyncRecognizeRequest.Builder (2.5.8)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AsyncRecognizeRequest build()
Returns
TypeDescription
AsyncRecognizeRequest

buildPartial()

public AsyncRecognizeRequest buildPartial()
Returns
TypeDescription
AsyncRecognizeRequest

clear()

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

clearAudio()

public AsyncRecognizeRequest.Builder clearAudio()

Required The audio data to be recognized.

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

Returns
TypeDescription
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
TypeDescription
AsyncRecognizeRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAudio()

public RecognitionAudio getAudio()

Required The audio data to be recognized.

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

Returns
TypeDescription
RecognitionAudio

getAudioBuilder()

public RecognitionAudio.Builder getAudioBuilder()

Required The audio data to be recognized.

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

Returns
TypeDescription
RecognitionAudio.Builder

getAudioOrBuilder()

public RecognitionAudioOrBuilder getAudioOrBuilder()

Required The audio data to be recognized.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
RecognitionConfigOrBuilder

getDefaultInstanceForType()

public AsyncRecognizeRequest getDefaultInstanceForType()
Returns
TypeDescription
AsyncRecognizeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

hasAudio()

public boolean hasAudio()

Required The audio data to be recognized.

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

Returns
TypeDescription
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
TypeDescription
boolean

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueRecognitionAudio
Returns
TypeDescription
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
NameDescription
valueRecognitionConfig
Returns
TypeDescription
AsyncRecognizeRequest.Builder

mergeFrom(AsyncRecognizeRequest other)

public AsyncRecognizeRequest.Builder mergeFrom(AsyncRecognizeRequest other)
Parameter
NameDescription
otherAsyncRecognizeRequest
Returns
TypeDescription
AsyncRecognizeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AsyncRecognizeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueRecognitionAudio
Returns
TypeDescription
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
NameDescription
builderForValueRecognitionAudio.Builder
Returns
TypeDescription
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
NameDescription
valueRecognitionConfig
Returns
TypeDescription
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
NameDescription
builderForValueRecognitionConfig.Builder
Returns
TypeDescription
AsyncRecognizeRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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