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.v1p1beta1.RecognizeRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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 RecognizeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public RecognizeRequest build()
buildPartial()
public RecognizeRequest buildPartial()
clear()
public RecognizeRequest.Builder clear()
Overrides
clearAudio()
public RecognizeRequest.Builder clearAudio()
Required. The audio data to be recognized.
.google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
clearConfig()
public RecognizeRequest.Builder clearConfig()
Required. Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public RecognizeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public RecognizeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public RecognizeRequest.Builder clone()
Overrides
getAudio()
public RecognitionAudio getAudio()
Required. The audio data to be recognized.
.google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
getAudioBuilder()
public RecognitionAudio.Builder getAudioBuilder()
Required. The audio data to be recognized.
.google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
getAudioOrBuilder()
public RecognitionAudioOrBuilder getAudioOrBuilder()
Required. The audio data to be recognized.
.google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
getConfig()
public RecognitionConfig getConfig()
Required. Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
getConfigBuilder()
public RecognitionConfig.Builder getConfigBuilder()
Required. Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
getConfigOrBuilder()
public RecognitionConfigOrBuilder getConfigOrBuilder()
Required. Provides information to the recognizer that specifies how to
process the request.
.google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public RecognizeRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
hasAudio()
public boolean hasAudio()
Required. The audio data to be recognized.
.google.cloud.speech.v1p1beta1.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.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the config field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeAudio(RecognitionAudio value)
public RecognizeRequest.Builder mergeAudio(RecognitionAudio value)
Required. The audio data to be recognized.
.google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
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.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
mergeFrom(RecognizeRequest other)
public RecognizeRequest.Builder mergeFrom(RecognizeRequest other)
public RecognizeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public RecognizeRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RecognizeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAudio(RecognitionAudio value)
public RecognizeRequest.Builder setAudio(RecognitionAudio value)
Required. The audio data to be recognized.
.google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
setAudio(RecognitionAudio.Builder builderForValue)
public RecognizeRequest.Builder setAudio(RecognitionAudio.Builder builderForValue)
Required. The audio data to be recognized.
.google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
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.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
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.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
setField(Descriptors.FieldDescriptor field, Object value)
public RecognizeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RecognizeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final RecognizeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides