public static final class AudioInput.Builder extends GeneratedMessageV3.Builder<AudioInput.Builder> implements AudioInputOrBuilder
Represents the natural language speech audio to be processed.
Protobuf type google.cloud.dialogflow.v2beta1.AudioInput
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
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()
Required. The natural language speech audio to be processed.
A single request can contain up to 1 minute of speech audio data.
The transcribed text cannot contain more than 256 bytes for virtual agent
interactions.
bytes audio = 2;
public AudioInput.Builder clearConfig()
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2beta1.InputAudioConfig config = 1;
public AudioInput.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public AudioInput.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public AudioInput.Builder clone()
Overrides
public ByteString getAudio()
Required. The natural language speech audio to be processed.
A single request can contain up to 1 minute of speech audio data.
The transcribed text cannot contain more than 256 bytes for virtual agent
interactions.
bytes audio = 2;
public InputAudioConfig getConfig()
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2beta1.InputAudioConfig config = 1;
public InputAudioConfig.Builder getConfigBuilder()
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2beta1.InputAudioConfig config = 1;
public InputAudioConfigOrBuilder getConfigOrBuilder()
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2beta1.InputAudioConfig config = 1;
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.v2beta1.InputAudioConfig config = 1;
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.v2beta1.InputAudioConfig config = 1;
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)
Required. The natural language speech audio to be processed.
A single request can contain up to 1 minute of speech audio data.
The transcribed text cannot contain more than 256 bytes for virtual agent
interactions.
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.v2beta1.InputAudioConfig config = 1;
public AudioInput.Builder setConfig(InputAudioConfig.Builder builderForValue)
Required. Instructs the speech recognizer how to process the speech audio.
.google.cloud.dialogflow.v2beta1.InputAudioConfig config = 1;
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