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.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 LongRunningRecognizeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public LongRunningRecognizeRequest build()
buildPartial()
public LongRunningRecognizeRequest buildPartial()
clear()
public LongRunningRecognizeRequest.Builder clear()
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];
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];
clearField(Descriptors.FieldDescriptor field)
public LongRunningRecognizeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public LongRunningRecognizeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clone()
public LongRunningRecognizeRequest.Builder clone()
Overrides
getAudio()
public RecognitionAudio getAudio()
Required. The audio data to be recognized.
.google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
getAudioBuilder()
public RecognitionAudio.Builder getAudioBuilder()
Required. The audio data to be recognized.
.google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
getAudioOrBuilder()
public RecognitionAudioOrBuilder getAudioOrBuilder()
Required. The audio data to be recognized.
.google.cloud.speech.v1.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.v1.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.v1.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.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public LongRunningRecognizeRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
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];
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];
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()
Overrides
isInitialized()
public final boolean isInitialized()
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];
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];
mergeFrom(LongRunningRecognizeRequest other)
public LongRunningRecognizeRequest.Builder mergeFrom(LongRunningRecognizeRequest other)
public LongRunningRecognizeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public LongRunningRecognizeRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LongRunningRecognizeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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];
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];
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];
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];
setField(Descriptors.FieldDescriptor field, Object value)
public LongRunningRecognizeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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];
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];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LongRunningRecognizeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final LongRunningRecognizeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides