Class SyncRecognizeRequest.Builder (4.37.0)

public static final class SyncRecognizeRequest.Builder extends GeneratedMessageV3.Builder<SyncRecognizeRequest.Builder> implements SyncRecognizeRequestOrBuilder

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

Protobuf type google.cloud.speech.v1beta1.SyncRecognizeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SyncRecognizeRequest build()
Returns
Type Description
SyncRecognizeRequest

buildPartial()

public SyncRecognizeRequest buildPartial()
Returns
Type Description
SyncRecognizeRequest

clear()

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

clearAudio()

public SyncRecognizeRequest.Builder clearAudio()

Required The audio data to be recognized.

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

Returns
Type Description
SyncRecognizeRequest.Builder

clearConfig()

public SyncRecognizeRequest.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
SyncRecognizeRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public SyncRecognizeRequest.Builder clone()
Returns
Type Description
SyncRecognizeRequest.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 SyncRecognizeRequest getDefaultInstanceForType()
Returns
Type Description
SyncRecognizeRequest

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 SyncRecognizeRequest.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
SyncRecognizeRequest.Builder

mergeConfig(RecognitionConfig value)

public SyncRecognizeRequest.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
SyncRecognizeRequest.Builder

mergeFrom(SyncRecognizeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAudio(RecognitionAudio value)

public SyncRecognizeRequest.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
SyncRecognizeRequest.Builder

setAudio(RecognitionAudio.Builder builderForValue)

public SyncRecognizeRequest.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
SyncRecognizeRequest.Builder

setConfig(RecognitionConfig value)

public SyncRecognizeRequest.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
SyncRecognizeRequest.Builder

setConfig(RecognitionConfig.Builder builderForValue)

public SyncRecognizeRequest.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
SyncRecognizeRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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