Class SyncRecognizeRequest.Builder (4.11.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SyncRecognizeRequest build()
Returns
TypeDescription
SyncRecognizeRequest

buildPartial()

public SyncRecognizeRequest buildPartial()
Returns
TypeDescription
SyncRecognizeRequest

clear()

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

clearAudio()

public SyncRecognizeRequest.Builder clearAudio()

Required The audio data to be recognized.

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 SyncRecognizeRequest.Builder mergeAudio(RecognitionAudio value)

Required The audio data to be recognized.

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

Parameter
NameDescription
valueRecognitionAudio
Returns
TypeDescription
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
NameDescription
valueRecognitionConfig
Returns
TypeDescription
SyncRecognizeRequest.Builder

mergeFrom(SyncRecognizeRequest other)

public SyncRecognizeRequest.Builder mergeFrom(SyncRecognizeRequest other)
Parameter
NameDescription
otherSyncRecognizeRequest
Returns
TypeDescription
SyncRecognizeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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