Class LongRunningRecognizeRequest.Builder (4.26.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LongRunningRecognizeRequest build()
Returns
TypeDescription
LongRunningRecognizeRequest

buildPartial()

public LongRunningRecognizeRequest buildPartial()
Returns
TypeDescription
LongRunningRecognizeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public LongRunningRecognizeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
LongRunningRecognizeRequest.Builder

clone()

public LongRunningRecognizeRequest.Builder clone()
Returns
TypeDescription
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
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 LongRunningRecognizeRequest getDefaultInstanceForType()
Returns
TypeDescription
LongRunningRecognizeRequest

getDescriptorForType()

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

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
TypeDescription
boolean

Whether the outputConfig 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 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
NameDescription
valueRecognitionAudio
Returns
TypeDescription
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
NameDescription
valueRecognitionConfig
Returns
TypeDescription
LongRunningRecognizeRequest.Builder

mergeFrom(LongRunningRecognizeRequest other)

public LongRunningRecognizeRequest.Builder mergeFrom(LongRunningRecognizeRequest other)
Parameter
NameDescription
otherLongRunningRecognizeRequest
Returns
TypeDescription
LongRunningRecognizeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public LongRunningRecognizeRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTranscriptOutputConfig
Returns
TypeDescription
LongRunningRecognizeRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LongRunningRecognizeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueRecognitionAudio
Returns
TypeDescription
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
NameDescription
builderForValueRecognitionAudio.Builder
Returns
TypeDescription
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
NameDescription
valueRecognitionConfig
Returns
TypeDescription
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
NameDescription
builderForValueRecognitionConfig.Builder
Returns
TypeDescription
LongRunningRecognizeRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LongRunningRecognizeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueTranscriptOutputConfig
Returns
TypeDescription
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
NameDescription
builderForValueTranscriptOutputConfig.Builder
Returns
TypeDescription
LongRunningRecognizeRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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