Class OutputAudio (4.6.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
TypeDescription
int

CONFIG_FIELD_NUMBER

public static final int CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static OutputAudio getDefaultInstance()
Returns
TypeDescription
OutputAudio

getDescriptor()

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

newBuilder()

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

newBuilder(OutputAudio prototype)

public static OutputAudio.Builder newBuilder(OutputAudio prototype)
Parameter
NameDescription
prototypeOutputAudio
Returns
TypeDescription
OutputAudio.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

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.

bytes audio = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
OutputAudioConfigOrBuilder

getDefaultInstanceForType()

public OutputAudio getDefaultInstanceForType()
Returns
TypeDescription
OutputAudio

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasConfig()

public boolean hasConfig()

Instructs the speech synthesizer how to generate the speech audio.

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

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 OutputAudio.Builder newBuilderForType()
Returns
TypeDescription
OutputAudio.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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