Class ResponseMessage.OutputAudioText (0.14.2)

public static final class ResponseMessage.OutputAudioText extends GeneratedMessageV3 implements ResponseMessage.OutputAudioTextOrBuilder

A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ResponseMessage.OutputAudioText

Static Fields

ALLOW_PLAYBACK_INTERRUPTION_FIELD_NUMBER

public static final int ALLOW_PLAYBACK_INTERRUPTION_FIELD_NUMBER
Field Value
TypeDescription
int

SSML_FIELD_NUMBER

public static final int SSML_FIELD_NUMBER
Field Value
TypeDescription
int

TEXT_FIELD_NUMBER

public static final int TEXT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(ResponseMessage.OutputAudioText prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

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 = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The allowPlaybackInterruption.

getDefaultInstanceForType()

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSourceCase()

public ResponseMessage.OutputAudioText.SourceCase getSourceCase()
Returns
TypeDescription
ResponseMessage.OutputAudioText.SourceCase

getSsml()

public String getSsml()

The SSML text to be synthesized. For more information, see SSML.

string ssml = 2;

Returns
TypeDescription
String

The ssml.

getSsmlBytes()

public ByteString getSsmlBytes()

The SSML text to be synthesized. For more information, see SSML.

string ssml = 2;

Returns
TypeDescription
ByteString

The bytes for ssml.

getText()

public String getText()

The raw text to be synthesized.

string text = 1;

Returns
TypeDescription
String

The text.

getTextBytes()

public ByteString getTextBytes()

The raw text to be synthesized.

string text = 1;

Returns
TypeDescription
ByteString

The bytes for text.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasSsml()

public boolean hasSsml()

The SSML text to be synthesized. For more information, see SSML.

string ssml = 2;

Returns
TypeDescription
boolean

Whether the ssml field is set.

hasText()

public boolean hasText()

The raw text to be synthesized.

string text = 1;

Returns
TypeDescription
boolean

Whether the text 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 ResponseMessage.OutputAudioText.Builder newBuilderForType()
Returns
TypeDescription
ResponseMessage.OutputAudioText.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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