public static final class AudioInput.Builder extends GeneratedMessageV3.Builder<AudioInput.Builder> implements AudioInputOrBuilder
Represents the natural speech audio to be processed.
Protobuf type google.cloud.dialogflow.cx.v3.AudioInput
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
public static final Descriptors.Descriptor getDescriptor()
Methods
public AudioInput.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public AudioInput build()
public AudioInput buildPartial()
public AudioInput.Builder clear()
Overrides
public AudioInput.Builder clearAudio()
The natural language speech audio to be processed.
A single request can contain up to 2 minutes of speech audio data.
The transcribed
text cannot contain
more than 256 bytes.
For non-streaming audio detect intent, both config
and audio
must be
provided.
For streaming audio detect intent, config
must be provided in
the first request and audio
must be provided in all following requests.
bytes audio = 2;
public AudioInput.Builder clearConfig()
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.cx.v3.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
public AudioInput.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public AudioInput.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public AudioInput.Builder clone()
Overrides
public ByteString getAudio()
The natural language speech audio to be processed.
A single request can contain up to 2 minutes of speech audio data.
The transcribed
text cannot contain
more than 256 bytes.
For non-streaming audio detect intent, both config
and audio
must be
provided.
For streaming audio detect intent, config
must be provided in
the first request and audio
must be provided in all following requests.
bytes audio = 2;
public InputAudioConfig getConfig()
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.cx.v3.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
public InputAudioConfig.Builder getConfigBuilder()
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.cx.v3.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
public InputAudioConfigOrBuilder getConfigOrBuilder()
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.cx.v3.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
public AudioInput getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public boolean hasConfig()
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.cx.v3.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the config field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public AudioInput.Builder mergeConfig(InputAudioConfig value)
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.cx.v3.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
public AudioInput.Builder mergeFrom(AudioInput other)
public AudioInput.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public AudioInput.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final AudioInput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public AudioInput.Builder setAudio(ByteString value)
The natural language speech audio to be processed.
A single request can contain up to 2 minutes of speech audio data.
The transcribed
text cannot contain
more than 256 bytes.
For non-streaming audio detect intent, both config
and audio
must be
provided.
For streaming audio detect intent, config
must be provided in
the first request and audio
must be provided in all following requests.
bytes audio = 2;
Parameter |
Name |
Description |
value |
ByteString
The audio to set.
|
public AudioInput.Builder setConfig(InputAudioConfig value)
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.cx.v3.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
public AudioInput.Builder setConfig(InputAudioConfig.Builder builderForValue)
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.cx.v3.InputAudioConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
public AudioInput.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public AudioInput.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final AudioInput.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides