public static final class RecognizeRequest.Builder extends GeneratedMessageV3.Builder<RecognizeRequest.Builder> implements RecognizeRequestOrBuilder
The top-level message sent by the client for the Recognize
method.
Protobuf type google.cloud.speech.v1.RecognizeRequest
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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RecognizeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public RecognizeRequest build()
Returns
buildPartial()
public RecognizeRequest buildPartial()
Returns
clear()
public RecognizeRequest.Builder clear()
Returns
Overrides
clearAudio()
public RecognizeRequest.Builder clearAudio()
Required. The audio data to be recognized.
.google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearConfig()
public RecognizeRequest.Builder clearConfig()
Required. Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
clearField(Descriptors.FieldDescriptor field)
public RecognizeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public RecognizeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public RecognizeRequest.Builder clone()
Returns
Overrides
getAudio()
public RecognitionAudio getAudio()
Required. The audio data to be recognized.
.google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getAudioBuilder()
public RecognitionAudio.Builder getAudioBuilder()
Required. The audio data to be recognized.
.google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getAudioOrBuilder()
public RecognitionAudioOrBuilder getAudioOrBuilder()
Required. The audio data to be recognized.
.google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getConfig()
public RecognitionConfig getConfig()
Required. Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getConfigBuilder()
public RecognitionConfig.Builder getConfigBuilder()
Required. Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getConfigOrBuilder()
public RecognitionConfigOrBuilder getConfigOrBuilder()
Required. Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getDefaultInstanceForType()
public RecognizeRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
hasAudio()
public boolean hasAudio()
Required. The audio data to be recognized.
.google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the audio field is set.
|
hasConfig()
public boolean hasConfig()
Required. Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the config field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeAudio(RecognitionAudio value)
public RecognizeRequest.Builder mergeAudio(RecognitionAudio value)
Required. The audio data to be recognized.
.google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeConfig(RecognitionConfig value)
public RecognizeRequest.Builder mergeConfig(RecognitionConfig value)
Required. Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeFrom(RecognizeRequest other)
public RecognizeRequest.Builder mergeFrom(RecognizeRequest other)
Parameter
Returns
public RecognizeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public RecognizeRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RecognizeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setAudio(RecognitionAudio value)
public RecognizeRequest.Builder setAudio(RecognitionAudio value)
Required. The audio data to be recognized.
.google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setAudio(RecognitionAudio.Builder builderForValue)
public RecognizeRequest.Builder setAudio(RecognitionAudio.Builder builderForValue)
Required. The audio data to be recognized.
.google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setConfig(RecognitionConfig value)
public RecognizeRequest.Builder setConfig(RecognitionConfig value)
Required. Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setConfig(RecognitionConfig.Builder builderForValue)
public RecognizeRequest.Builder setConfig(RecognitionConfig.Builder builderForValue)
Required. Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public RecognizeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RecognizeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final RecognizeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides