Class LongRunningRecognizeRequest.Builder (4.37.0)

public static final class LongRunningRecognizeRequest.Builder extends GeneratedMessageV3.Builder<LongRunningRecognizeRequest.Builder> implements LongRunningRecognizeRequestOrBuilder

The top-level message sent by the client for the LongRunningRecognize method.

Protobuf type google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LongRunningRecognizeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LongRunningRecognizeRequest.Builder
Overrides

build()

public LongRunningRecognizeRequest build()
Returns
Type Description
LongRunningRecognizeRequest

buildPartial()

public LongRunningRecognizeRequest buildPartial()
Returns
Type Description
LongRunningRecognizeRequest

clear()

public LongRunningRecognizeRequest.Builder clear()
Returns
Type Description
LongRunningRecognizeRequest.Builder
Overrides

clearAudio()

public LongRunningRecognizeRequest.Builder clearAudio()

Required. The audio data to be recognized.

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

Returns
Type Description
LongRunningRecognizeRequest.Builder

clearConfig()

public LongRunningRecognizeRequest.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
Type Description
LongRunningRecognizeRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public LongRunningRecognizeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LongRunningRecognizeRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public LongRunningRecognizeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LongRunningRecognizeRequest.Builder
Overrides

clearOutputConfig()

public LongRunningRecognizeRequest.Builder clearOutputConfig()

Optional. Specifies an optional destination for the recognition results.

.google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LongRunningRecognizeRequest.Builder

clone()

public LongRunningRecognizeRequest.Builder clone()
Returns
Type Description
LongRunningRecognizeRequest.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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
RecognitionConfigOrBuilder

getDefaultInstanceForType()

public LongRunningRecognizeRequest getDefaultInstanceForType()
Returns
Type Description
LongRunningRecognizeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getOutputConfig()

public TranscriptOutputConfig getOutputConfig()

Optional. Specifies an optional destination for the recognition results.

.google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TranscriptOutputConfig

The outputConfig.

getOutputConfigBuilder()

public TranscriptOutputConfig.Builder getOutputConfigBuilder()

Optional. Specifies an optional destination for the recognition results.

.google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TranscriptOutputConfig.Builder

getOutputConfigOrBuilder()

public TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder()

Optional. Specifies an optional destination for the recognition results.

.google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TranscriptOutputConfigOrBuilder

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.

hasOutputConfig()

public boolean hasOutputConfig()

Optional. Specifies an optional destination for the recognition results.

.google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the outputConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAudio(RecognitionAudio value)

public LongRunningRecognizeRequest.Builder mergeAudio(RecognitionAudio value)

Required. The audio data to be recognized.

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

Parameter
Name Description
value RecognitionAudio
Returns
Type Description
LongRunningRecognizeRequest.Builder

mergeConfig(RecognitionConfig value)

public LongRunningRecognizeRequest.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
Name Description
value RecognitionConfig
Returns
Type Description
LongRunningRecognizeRequest.Builder

mergeFrom(LongRunningRecognizeRequest other)

public LongRunningRecognizeRequest.Builder mergeFrom(LongRunningRecognizeRequest other)
Parameter
Name Description
other LongRunningRecognizeRequest
Returns
Type Description
LongRunningRecognizeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LongRunningRecognizeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LongRunningRecognizeRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LongRunningRecognizeRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LongRunningRecognizeRequest.Builder
Overrides

mergeOutputConfig(TranscriptOutputConfig value)

public LongRunningRecognizeRequest.Builder mergeOutputConfig(TranscriptOutputConfig value)

Optional. Specifies an optional destination for the recognition results.

.google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TranscriptOutputConfig
Returns
Type Description
LongRunningRecognizeRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LongRunningRecognizeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LongRunningRecognizeRequest.Builder
Overrides

setAudio(RecognitionAudio value)

public LongRunningRecognizeRequest.Builder setAudio(RecognitionAudio value)

Required. The audio data to be recognized.

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

Parameter
Name Description
value RecognitionAudio
Returns
Type Description
LongRunningRecognizeRequest.Builder

setAudio(RecognitionAudio.Builder builderForValue)

public LongRunningRecognizeRequest.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
Name Description
builderForValue RecognitionAudio.Builder
Returns
Type Description
LongRunningRecognizeRequest.Builder

setConfig(RecognitionConfig value)

public LongRunningRecognizeRequest.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
Name Description
value RecognitionConfig
Returns
Type Description
LongRunningRecognizeRequest.Builder

setConfig(RecognitionConfig.Builder builderForValue)

public LongRunningRecognizeRequest.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
Name Description
builderForValue RecognitionConfig.Builder
Returns
Type Description
LongRunningRecognizeRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LongRunningRecognizeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LongRunningRecognizeRequest.Builder
Overrides

setOutputConfig(TranscriptOutputConfig value)

public LongRunningRecognizeRequest.Builder setOutputConfig(TranscriptOutputConfig value)

Optional. Specifies an optional destination for the recognition results.

.google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TranscriptOutputConfig
Returns
Type Description
LongRunningRecognizeRequest.Builder

setOutputConfig(TranscriptOutputConfig.Builder builderForValue)

public LongRunningRecognizeRequest.Builder setOutputConfig(TranscriptOutputConfig.Builder builderForValue)

Optional. Specifies an optional destination for the recognition results.

.google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue TranscriptOutputConfig.Builder
Returns
Type Description
LongRunningRecognizeRequest.Builder

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

public LongRunningRecognizeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LongRunningRecognizeRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LongRunningRecognizeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LongRunningRecognizeRequest.Builder
Overrides