Class RecognizeRequest.Builder (2.5.8)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RecognizeRequest build()
Returns
TypeDescription
RecognizeRequest

buildPartial()

public RecognizeRequest buildPartial()
Returns
TypeDescription
RecognizeRequest

clear()

public RecognizeRequest.Builder clear()
Returns
TypeDescription
RecognizeRequest.Builder
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];

Returns
TypeDescription
RecognizeRequest.Builder

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];

Returns
TypeDescription
RecognizeRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public RecognizeRequest.Builder clone()
Returns
TypeDescription
RecognizeRequest.Builder
Overrides

getAudio()

public RecognitionAudio getAudio()

Required. The audio data to be recognized.

.google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RecognitionAudio

The audio.

getAudioBuilder()

public RecognitionAudio.Builder getAudioBuilder()

Required. The audio data to be recognized.

.google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RecognitionAudio.Builder

getAudioOrBuilder()

public RecognitionAudioOrBuilder getAudioOrBuilder()

Required. The audio data to be recognized.

.google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RecognitionAudioOrBuilder

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];

Returns
TypeDescription
RecognitionConfig

The config.

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];

Returns
TypeDescription
RecognitionConfig.Builder

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];

Returns
TypeDescription
RecognitionConfigOrBuilder

getDefaultInstanceForType()

public RecognizeRequest getDefaultInstanceForType()
Returns
TypeDescription
RecognizeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
TypeDescription
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
TypeDescription
boolean

Whether the config field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
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];

Parameter
NameDescription
valueRecognitionAudio
Returns
TypeDescription
RecognizeRequest.Builder

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];

Parameter
NameDescription
valueRecognitionConfig
Returns
TypeDescription
RecognizeRequest.Builder

mergeFrom(RecognizeRequest other)

public RecognizeRequest.Builder mergeFrom(RecognizeRequest other)
Parameter
NameDescription
otherRecognizeRequest
Returns
TypeDescription
RecognizeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RecognizeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RecognizeRequest.Builder
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];

Parameter
NameDescription
valueRecognitionAudio
Returns
TypeDescription
RecognizeRequest.Builder

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];

Parameter
NameDescription
builderForValueRecognitionAudio.Builder
Returns
TypeDescription
RecognizeRequest.Builder

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];

Parameter
NameDescription
valueRecognitionConfig
Returns
TypeDescription
RecognizeRequest.Builder

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];

Parameter
NameDescription
builderForValueRecognitionConfig.Builder
Returns
TypeDescription
RecognizeRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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