Class ResponseMessage.PlayAudio (0.14.2)

public static final class ResponseMessage.PlayAudio extends GeneratedMessageV3 implements ResponseMessage.PlayAudioOrBuilder

Specifies an audio clip to be played by the client as part of the response.

Protobuf type google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio

Static Fields

ALLOW_PLAYBACK_INTERRUPTION_FIELD_NUMBER

public static final int ALLOW_PLAYBACK_INTERRUPTION_FIELD_NUMBER
Field Value
TypeDescription
int

AUDIO_URI_FIELD_NUMBER

public static final int AUDIO_URI_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ResponseMessage.PlayAudio getDefaultInstance()
Returns
TypeDescription
ResponseMessage.PlayAudio

getDescriptor()

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

newBuilder()

public static ResponseMessage.PlayAudio.Builder newBuilder()
Returns
TypeDescription
ResponseMessage.PlayAudio.Builder

newBuilder(ResponseMessage.PlayAudio prototype)

public static ResponseMessage.PlayAudio.Builder newBuilder(ResponseMessage.PlayAudio prototype)
Parameter
NameDescription
prototypeResponseMessage.PlayAudio
Returns
TypeDescription
ResponseMessage.PlayAudio.Builder

parseDelimitedFrom(InputStream input)

public static ResponseMessage.PlayAudio parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ResponseMessage.PlayAudio
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ResponseMessage.PlayAudio parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ResponseMessage.PlayAudio
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ResponseMessage.PlayAudio parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ResponseMessage.PlayAudio
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ResponseMessage.PlayAudio parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ResponseMessage.PlayAudio
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ResponseMessage.PlayAudio parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ResponseMessage.PlayAudio
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ResponseMessage.PlayAudio> parser()
Returns
TypeDescription
Parser<PlayAudio>

Methods

equals(Object obj)

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

getAllowPlaybackInterruption()

public boolean getAllowPlaybackInterruption()

Output only. Whether the playback of this message can be interrupted by the end user's speech and the client can then starts the next Dialogflow request.

bool allow_playback_interruption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The allowPlaybackInterruption.

getAudioUri()

public String getAudioUri()

Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.

string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The audioUri.

getAudioUriBytes()

public ByteString getAudioUriBytes()

Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.

string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for audioUri.

getDefaultInstanceForType()

public ResponseMessage.PlayAudio getDefaultInstanceForType()
Returns
TypeDescription
ResponseMessage.PlayAudio

getParserForType()

public Parser<ResponseMessage.PlayAudio> getParserForType()
Returns
TypeDescription
Parser<PlayAudio>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public ResponseMessage.PlayAudio.Builder toBuilder()
Returns
TypeDescription
ResponseMessage.PlayAudio.Builder

writeTo(CodedOutputStream output)

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