Class OutputAudio (4.24.0)

public final class OutputAudio extends GeneratedMessageV3 implements OutputAudioOrBuilder

Represents the natural language speech audio to be played to the end user.

Protobuf type google.cloud.dialogflow.v2.OutputAudio

Static Fields

AUDIO_FIELD_NUMBER

public static final int AUDIO_FIELD_NUMBER
Field Value
Type Description
int

CONFIG_FIELD_NUMBER

public static final int CONFIG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static OutputAudio getDefaultInstance()
Returns
Type Description
OutputAudio

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static OutputAudio.Builder newBuilder()
Returns
Type Description
OutputAudio.Builder

newBuilder(OutputAudio prototype)

public static OutputAudio.Builder newBuilder(OutputAudio prototype)
Parameter
Name Description
prototype OutputAudio
Returns
Type Description
OutputAudio.Builder

parseDelimitedFrom(InputStream input)

public static OutputAudio parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OutputAudio
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OutputAudio parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OutputAudio
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static OutputAudio parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
OutputAudio
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OutputAudio parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OutputAudio
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OutputAudio parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
OutputAudio
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OutputAudio parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OutputAudio
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OutputAudio parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
OutputAudio
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OutputAudio parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OutputAudio
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static OutputAudio parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OutputAudio
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OutputAudio parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OutputAudio
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static OutputAudio parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
OutputAudio
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OutputAudio parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OutputAudio
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<OutputAudio> parser()
Returns
Type Description
Parser<OutputAudio>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAudio()

public ByteString getAudio()

The natural language speech audio.

bytes audio = 2;

Returns
Type Description
ByteString

The audio.

getConfig()

public OutputAudioConfig getConfig()

Instructs the speech synthesizer how to generate the speech audio.

.google.cloud.dialogflow.v2.OutputAudioConfig config = 1;

Returns
Type Description
OutputAudioConfig

The config.

getConfigOrBuilder()

public OutputAudioConfigOrBuilder getConfigOrBuilder()

Instructs the speech synthesizer how to generate the speech audio.

.google.cloud.dialogflow.v2.OutputAudioConfig config = 1;

Returns
Type Description
OutputAudioConfigOrBuilder

getDefaultInstanceForType()

public OutputAudio getDefaultInstanceForType()
Returns
Type Description
OutputAudio

getParserForType()

public Parser<OutputAudio> getParserForType()
Returns
Type Description
Parser<OutputAudio>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hasConfig()

public boolean hasConfig()

Instructs the speech synthesizer how to generate the speech audio.

.google.cloud.dialogflow.v2.OutputAudioConfig config = 1;

Returns
Type Description
boolean

Whether the config field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public OutputAudio.Builder newBuilderForType()
Returns
Type Description
OutputAudio.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OutputAudio.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
OutputAudio.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public OutputAudio.Builder toBuilder()
Returns
Type Description
OutputAudio.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException