public static final class Intent.Message.SimpleResponse extends GeneratedMessageV3 implements Intent.Message.SimpleResponseOrBuilder
The simple response message containing speech or text.
Protobuf type google.cloud.dialogflow.v2beta1.Intent.Message.SimpleResponse
Fields
DISPLAY_TEXT_FIELD_NUMBER
public static final int DISPLAY_TEXT_FIELD_NUMBER
Field Value
SSML_FIELD_NUMBER
public static final int SSML_FIELD_NUMBER
Field Value
TEXT_TO_SPEECH_FIELD_NUMBER
public static final int TEXT_TO_SPEECH_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstance()
public static Intent.Message.SimpleResponse getDefaultInstance()
Returns
getDefaultInstanceForType()
public Intent.Message.SimpleResponse getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDisplayText()
public String getDisplayText()
Optional. The text to display.
string display_text = 3;
Returns
Type | Description |
String | The displayText.
|
getDisplayTextBytes()
public ByteString getDisplayTextBytes()
Optional. The text to display.
string display_text = 3;
Returns
Type | Description |
ByteString | The bytes for displayText.
|
getParserForType()
public Parser<Intent.Message.SimpleResponse> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSsml()
One of text_to_speech or ssml must be provided. Structured spoken
response to the user in the SSML format. Mutually exclusive with
text_to_speech.
string ssml = 2;
Returns
Type | Description |
String | The ssml.
|
getSsmlBytes()
public ByteString getSsmlBytes()
One of text_to_speech or ssml must be provided. Structured spoken
response to the user in the SSML format. Mutually exclusive with
text_to_speech.
string ssml = 2;
Returns
getTextToSpeech()
public String getTextToSpeech()
One of text_to_speech or ssml must be provided. The plain text of the
speech output. Mutually exclusive with ssml.
string text_to_speech = 1;
Returns
Type | Description |
String | The textToSpeech.
|
getTextToSpeechBytes()
public ByteString getTextToSpeechBytes()
One of text_to_speech or ssml must be provided. The plain text of the
speech output. Mutually exclusive with ssml.
string text_to_speech = 1;
Returns
Type | Description |
ByteString | The bytes for textToSpeech.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static Intent.Message.SimpleResponse.Builder newBuilder()
Returns
newBuilder(Intent.Message.SimpleResponse prototype)
public static Intent.Message.SimpleResponse.Builder newBuilder(Intent.Message.SimpleResponse prototype)
Parameter
Returns
newBuilderForType()
public Intent.Message.SimpleResponse.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Intent.Message.SimpleResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static Intent.Message.SimpleResponse parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Intent.Message.SimpleResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Intent.Message.SimpleResponse parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Intent.Message.SimpleResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Intent.Message.SimpleResponse parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Intent.Message.SimpleResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Intent.Message.SimpleResponse parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Intent.Message.SimpleResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Intent.Message.SimpleResponse parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Intent.Message.SimpleResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Intent.Message.SimpleResponse parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Intent.Message.SimpleResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Intent.Message.SimpleResponse> parser()
Returns
toBuilder()
public Intent.Message.SimpleResponse.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions