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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SyncRecognizeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SyncRecognizeRequest build()
Returns
buildPartial()
public SyncRecognizeRequest buildPartial()
Returns
clear()
public SyncRecognizeRequest.Builder clear()
Returns
Overrides
clearAudio()
public SyncRecognizeRequest.Builder clearAudio()
Required The audio data to be recognized.
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;
Returns
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
clearField(Descriptors.FieldDescriptor field)
public SyncRecognizeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SyncRecognizeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public SyncRecognizeRequest.Builder clone()
Returns
Overrides
getAudio()
public RecognitionAudio getAudio()
Required The audio data to be recognized.
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;
Returns
getAudioBuilder()
public RecognitionAudio.Builder getAudioBuilder()
Required The audio data to be recognized.
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;
Returns
getAudioOrBuilder()
public RecognitionAudioOrBuilder getAudioOrBuilder()
Required The audio data to be recognized.
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;
Returns
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
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
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
getDefaultInstanceForType()
public SyncRecognizeRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
hasAudio()
public boolean hasAudio()
Required The audio data to be recognized.
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;
Returns
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
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
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
Returns
mergeFrom(SyncRecognizeRequest other)
public SyncRecognizeRequest.Builder mergeFrom(SyncRecognizeRequest other)
Parameter
Returns
public SyncRecognizeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SyncRecognizeRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SyncRecognizeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SyncRecognizeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SyncRecognizeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SyncRecognizeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides