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.v1.LongRunningRecognizeRequest
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 LongRunningRecognizeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public LongRunningRecognizeRequest build()
Returns
buildPartial()
public LongRunningRecognizeRequest buildPartial()
Returns
clear()
public LongRunningRecognizeRequest.Builder clear()
Returns
Overrides
clearAudio()
public LongRunningRecognizeRequest.Builder clearAudio()
Required. The audio data to be recognized.
.google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearConfig()
public LongRunningRecognizeRequest.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 LongRunningRecognizeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public LongRunningRecognizeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearOutputConfig()
public LongRunningRecognizeRequest.Builder clearOutputConfig()
Optional. Specifies an optional destination for the recognition results.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
clone()
public LongRunningRecognizeRequest.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 LongRunningRecognizeRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getOutputConfig()
public TranscriptOutputConfig getOutputConfig()
Optional. Specifies an optional destination for the recognition results.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
getOutputConfigBuilder()
public TranscriptOutputConfig.Builder getOutputConfigBuilder()
Optional. Specifies an optional destination for the recognition results.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
getOutputConfigOrBuilder()
public TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder()
Optional. Specifies an optional destination for the recognition results.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
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.
|
hasOutputConfig()
public boolean hasOutputConfig()
Optional. Specifies an optional destination for the recognition results.
.google.cloud.speech.v1.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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeAudio(RecognitionAudio value)
public LongRunningRecognizeRequest.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 LongRunningRecognizeRequest.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(LongRunningRecognizeRequest other)
public LongRunningRecognizeRequest.Builder mergeFrom(LongRunningRecognizeRequest other)
Parameter
Returns
public LongRunningRecognizeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public LongRunningRecognizeRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeOutputConfig(TranscriptOutputConfig value)
public LongRunningRecognizeRequest.Builder mergeOutputConfig(TranscriptOutputConfig value)
Optional. Specifies an optional destination for the recognition results.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LongRunningRecognizeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setAudio(RecognitionAudio value)
public LongRunningRecognizeRequest.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 LongRunningRecognizeRequest.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 LongRunningRecognizeRequest.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 LongRunningRecognizeRequest.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 LongRunningRecognizeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setOutputConfig(TranscriptOutputConfig value)
public LongRunningRecognizeRequest.Builder setOutputConfig(TranscriptOutputConfig value)
Optional. Specifies an optional destination for the recognition results.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
setOutputConfig(TranscriptOutputConfig.Builder builderForValue)
public LongRunningRecognizeRequest.Builder setOutputConfig(TranscriptOutputConfig.Builder builderForValue)
Optional. Specifies an optional destination for the recognition results.
.google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LongRunningRecognizeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final LongRunningRecognizeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides