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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SyncRecognizeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SyncRecognizeRequest build()
buildPartial()
public SyncRecognizeRequest buildPartial()
clear()
public SyncRecognizeRequest.Builder clear()
Overrides
clearAudio()
public SyncRecognizeRequest.Builder clearAudio()
Required The audio data to be recognized.
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;
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;
clearField(Descriptors.FieldDescriptor field)
public SyncRecognizeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SyncRecognizeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public SyncRecognizeRequest.Builder clone()
Overrides
getAudio()
public RecognitionAudio getAudio()
Required The audio data to be recognized.
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;
getAudioBuilder()
public RecognitionAudio.Builder getAudioBuilder()
Required The audio data to be recognized.
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;
getAudioOrBuilder()
public RecognitionAudioOrBuilder getAudioOrBuilder()
Required The audio data to be recognized.
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;
getConfig()
public RecognitionConfig getConfig()
Required Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;
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;
getConfigOrBuilder()
public RecognitionConfigOrBuilder getConfigOrBuilder()
Required Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;
getDefaultInstanceForType()
public SyncRecognizeRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
hasAudio()
public boolean hasAudio()
Required The audio data to be recognized.
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;
hasConfig()
public boolean hasConfig()
Required Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1beta1.RecognitionConfig config = 1;
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeAudio(RecognitionAudio value)
public SyncRecognizeRequest.Builder mergeAudio(RecognitionAudio value)
Required The audio data to be recognized.
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;
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;
mergeFrom(SyncRecognizeRequest other)
public SyncRecognizeRequest.Builder mergeFrom(SyncRecognizeRequest other)
public SyncRecognizeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SyncRecognizeRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SyncRecognizeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAudio(RecognitionAudio value)
public SyncRecognizeRequest.Builder setAudio(RecognitionAudio value)
Required The audio data to be recognized.
.google.cloud.speech.v1beta1.RecognitionAudio audio = 2;
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;
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public SyncRecognizeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SyncRecognizeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SyncRecognizeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides