Class Intent.Message.RbmSuggestedReply.Builder (4.22.0)

public static final class Intent.Message.RbmSuggestedReply.Builder extends GeneratedMessageV3.Builder<Intent.Message.RbmSuggestedReply.Builder> implements Intent.Message.RbmSuggestedReplyOrBuilder

Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response.

Protobuf type google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedReply

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.RbmSuggestedReply.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Intent.Message.RbmSuggestedReply.Builder
Overrides

build()

public Intent.Message.RbmSuggestedReply build()
Returns
Type Description
Intent.Message.RbmSuggestedReply

buildPartial()

public Intent.Message.RbmSuggestedReply buildPartial()
Returns
Type Description
Intent.Message.RbmSuggestedReply

clear()

public Intent.Message.RbmSuggestedReply.Builder clear()
Returns
Type Description
Intent.Message.RbmSuggestedReply.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Intent.Message.RbmSuggestedReply.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Intent.Message.RbmSuggestedReply.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Intent.Message.RbmSuggestedReply.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Intent.Message.RbmSuggestedReply.Builder
Overrides

clearPostbackData()

public Intent.Message.RbmSuggestedReply.Builder clearPostbackData()

Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.

string postback_data = 2;

Returns
Type Description
Intent.Message.RbmSuggestedReply.Builder

This builder for chaining.

clearText()

public Intent.Message.RbmSuggestedReply.Builder clearText()

Suggested reply text.

string text = 1;

Returns
Type Description
Intent.Message.RbmSuggestedReply.Builder

This builder for chaining.

clone()

public Intent.Message.RbmSuggestedReply.Builder clone()
Returns
Type Description
Intent.Message.RbmSuggestedReply.Builder
Overrides

getDefaultInstanceForType()

public Intent.Message.RbmSuggestedReply getDefaultInstanceForType()
Returns
Type Description
Intent.Message.RbmSuggestedReply

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPostbackData()

public String getPostbackData()

Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.

string postback_data = 2;

Returns
Type Description
String

The postbackData.

getPostbackDataBytes()

public ByteString getPostbackDataBytes()

Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.

string postback_data = 2;

Returns
Type Description
ByteString

The bytes for postbackData.

getText()

public String getText()

Suggested reply text.

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

Suggested reply text.

string text = 1;

Returns
Type Description
ByteString

The bytes for text.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Intent.Message.RbmSuggestedReply other)

public Intent.Message.RbmSuggestedReply.Builder mergeFrom(Intent.Message.RbmSuggestedReply other)
Parameter
Name Description
other Intent.Message.RbmSuggestedReply
Returns
Type Description
Intent.Message.RbmSuggestedReply.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Intent.Message.RbmSuggestedReply.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Intent.Message.RbmSuggestedReply.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Intent.Message.RbmSuggestedReply.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Intent.Message.RbmSuggestedReply.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.RbmSuggestedReply.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Intent.Message.RbmSuggestedReply.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.RbmSuggestedReply.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Intent.Message.RbmSuggestedReply.Builder
Overrides

setPostbackData(String value)

public Intent.Message.RbmSuggestedReply.Builder setPostbackData(String value)

Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.

string postback_data = 2;

Parameter
Name Description
value String

The postbackData to set.

Returns
Type Description
Intent.Message.RbmSuggestedReply.Builder

This builder for chaining.

setPostbackDataBytes(ByteString value)

public Intent.Message.RbmSuggestedReply.Builder setPostbackDataBytes(ByteString value)

Opaque payload that the Dialogflow receives in a user event when the user taps the suggested reply. This data will be also forwarded to webhook to allow performing custom business logic.

string postback_data = 2;

Parameter
Name Description
value ByteString

The bytes for postbackData to set.

Returns
Type Description
Intent.Message.RbmSuggestedReply.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Intent.Message.RbmSuggestedReply.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Intent.Message.RbmSuggestedReply.Builder
Overrides

setText(String value)

public Intent.Message.RbmSuggestedReply.Builder setText(String value)

Suggested reply text.

string text = 1;

Parameter
Name Description
value String

The text to set.

Returns
Type Description
Intent.Message.RbmSuggestedReply.Builder

This builder for chaining.

setTextBytes(ByteString value)

public Intent.Message.RbmSuggestedReply.Builder setTextBytes(ByteString value)

Suggested reply text.

string text = 1;

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
Intent.Message.RbmSuggestedReply.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.RbmSuggestedReply.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Intent.Message.RbmSuggestedReply.Builder
Overrides