Class AudioInput (0.13.0)

public final class AudioInput extends GeneratedMessageV3 implements AudioInputOrBuilder

Represents the natural speech audio to be processed.

Protobuf type google.cloud.dialogflow.cx.v3.AudioInput

Implements

AudioInputOrBuilder

Static Fields

AUDIO_FIELD_NUMBER

public static final int AUDIO_FIELD_NUMBER
Field Value
TypeDescription
int

CONFIG_FIELD_NUMBER

public static final int CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AudioInput getDefaultInstance()
Returns
TypeDescription
AudioInput

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AudioInput.Builder newBuilder()
Returns
TypeDescription
AudioInput.Builder

newBuilder(AudioInput prototype)

public static AudioInput.Builder newBuilder(AudioInput prototype)
Parameter
NameDescription
prototypeAudioInput
Returns
TypeDescription
AudioInput.Builder

parseDelimitedFrom(InputStream input)

public static AudioInput parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AudioInput
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AudioInput parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AudioInput
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AudioInput parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AudioInput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AudioInput parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AudioInput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AudioInput parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AudioInput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AudioInput parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AudioInput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AudioInput parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AudioInput
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AudioInput parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AudioInput
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AudioInput parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AudioInput
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AudioInput parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AudioInput
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AudioInput parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AudioInput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AudioInput parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AudioInput
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AudioInput> parser()
Returns
TypeDescription
Parser<AudioInput>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAudio()

public ByteString getAudio()

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 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;

Returns
TypeDescription
ByteString

The audio.

getConfig()

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];

Returns
TypeDescription
InputAudioConfig

The config.

getConfigOrBuilder()

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];

Returns
TypeDescription
InputAudioConfigOrBuilder

getDefaultInstanceForType()

public AudioInput getDefaultInstanceForType()
Returns
TypeDescription
AudioInput

getParserForType()

public Parser<AudioInput> getParserForType()
Returns
TypeDescription
Parser<AudioInput>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasConfig()

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

Whether the config field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AudioInput.Builder newBuilderForType()
Returns
TypeDescription
AudioInput.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AudioInput.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AudioInput.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AudioInput.Builder toBuilder()
Returns
TypeDescription
AudioInput.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException