Class Intent.Message.RbmSuggestedAction.Builder (4.48.0)

public static final class Intent.Message.RbmSuggestedAction.Builder extends GeneratedMessageV3.Builder<Intent.Message.RbmSuggestedAction.Builder> implements Intent.Message.RbmSuggestedActionOrBuilder

Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearAction()

public Intent.Message.RbmSuggestedAction.Builder clearAction()
Returns
Type Description
Intent.Message.RbmSuggestedAction.Builder

clearDial()

public Intent.Message.RbmSuggestedAction.Builder clearDial()

Suggested client side action: Dial a phone number

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;

Returns
Type Description
Intent.Message.RbmSuggestedAction.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOpenUrl()

public Intent.Message.RbmSuggestedAction.Builder clearOpenUrl()

Suggested client side action: Open a URI on device

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;

Returns
Type Description
Intent.Message.RbmSuggestedAction.Builder

clearPostbackData()

public Intent.Message.RbmSuggestedAction.Builder clearPostbackData()

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

string postback_data = 2;

Returns
Type Description
Intent.Message.RbmSuggestedAction.Builder

This builder for chaining.

clearShareLocation()

public Intent.Message.RbmSuggestedAction.Builder clearShareLocation()

Suggested client side action: Share user location

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;

Returns
Type Description
Intent.Message.RbmSuggestedAction.Builder

clearText()

public Intent.Message.RbmSuggestedAction.Builder clearText()

Text to display alongside the action.

string text = 1;

Returns
Type Description
Intent.Message.RbmSuggestedAction.Builder

This builder for chaining.

clone()

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

getActionCase()

public Intent.Message.RbmSuggestedAction.ActionCase getActionCase()
Returns
Type Description
Intent.Message.RbmSuggestedAction.ActionCase

getDefaultInstanceForType()

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

getDescriptorForType()

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

getDial()

public Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial getDial()

Suggested client side action: Dial a phone number

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;

Returns
Type Description
Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial

The dial.

getDialBuilder()

public Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial.Builder getDialBuilder()

Suggested client side action: Dial a phone number

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;

Returns
Type Description
Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial.Builder

getDialOrBuilder()

public Intent.Message.RbmSuggestedAction.RbmSuggestedActionDialOrBuilder getDialOrBuilder()

Suggested client side action: Dial a phone number

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;

Returns
Type Description
Intent.Message.RbmSuggestedAction.RbmSuggestedActionDialOrBuilder

getOpenUrl()

public Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri getOpenUrl()

Suggested client side action: Open a URI on device

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;

Returns
Type Description
Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri

The openUrl.

getOpenUrlBuilder()

public Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri.Builder getOpenUrlBuilder()

Suggested client side action: Open a URI on device

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;

Returns
Type Description
Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri.Builder

getOpenUrlOrBuilder()

public Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUriOrBuilder getOpenUrlOrBuilder()

Suggested client side action: Open a URI on device

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;

Returns
Type Description
Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUriOrBuilder

getPostbackData()

public String getPostbackData()

Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. 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 action. 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.

getShareLocation()

public Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation getShareLocation()

Suggested client side action: Share user location

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;

Returns
Type Description
Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation

The shareLocation.

getShareLocationBuilder()

public Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation.Builder getShareLocationBuilder()

Suggested client side action: Share user location

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;

Returns
Type Description
Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation.Builder

getShareLocationOrBuilder()

public Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocationOrBuilder getShareLocationOrBuilder()

Suggested client side action: Share user location

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;

Returns
Type Description
Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocationOrBuilder

getText()

public String getText()

Text to display alongside the action.

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

Text to display alongside the action.

string text = 1;

Returns
Type Description
ByteString

The bytes for text.

hasDial()

public boolean hasDial()

Suggested client side action: Dial a phone number

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;

Returns
Type Description
boolean

Whether the dial field is set.

hasOpenUrl()

public boolean hasOpenUrl()

Suggested client side action: Open a URI on device

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;

Returns
Type Description
boolean

Whether the openUrl field is set.

hasShareLocation()

public boolean hasShareLocation()

Suggested client side action: Share user location

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;

Returns
Type Description
boolean

Whether the shareLocation field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDial(Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial value)

public Intent.Message.RbmSuggestedAction.Builder mergeDial(Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial value)

Suggested client side action: Dial a phone number

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;

Parameter
Name Description
value Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial
Returns
Type Description
Intent.Message.RbmSuggestedAction.Builder

mergeFrom(Intent.Message.RbmSuggestedAction other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOpenUrl(Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri value)

public Intent.Message.RbmSuggestedAction.Builder mergeOpenUrl(Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri value)

Suggested client side action: Open a URI on device

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;

Parameter
Name Description
value Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri
Returns
Type Description
Intent.Message.RbmSuggestedAction.Builder

mergeShareLocation(Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation value)

public Intent.Message.RbmSuggestedAction.Builder mergeShareLocation(Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation value)

Suggested client side action: Share user location

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;

Parameter
Name Description
value Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation
Returns
Type Description
Intent.Message.RbmSuggestedAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDial(Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial value)

public Intent.Message.RbmSuggestedAction.Builder setDial(Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial value)

Suggested client side action: Dial a phone number

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;

Parameter
Name Description
value Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial
Returns
Type Description
Intent.Message.RbmSuggestedAction.Builder

setDial(Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial.Builder builderForValue)

public Intent.Message.RbmSuggestedAction.Builder setDial(Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial.Builder builderForValue)

Suggested client side action: Dial a phone number

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial dial = 3;

Parameter
Name Description
builderForValue Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial.Builder
Returns
Type Description
Intent.Message.RbmSuggestedAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setOpenUrl(Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri value)

public Intent.Message.RbmSuggestedAction.Builder setOpenUrl(Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri value)

Suggested client side action: Open a URI on device

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;

Parameter
Name Description
value Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri
Returns
Type Description
Intent.Message.RbmSuggestedAction.Builder

setOpenUrl(Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri.Builder builderForValue)

public Intent.Message.RbmSuggestedAction.Builder setOpenUrl(Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri.Builder builderForValue)

Suggested client side action: Open a URI on device

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri open_url = 4;

Parameter
Name Description
builderForValue Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri.Builder
Returns
Type Description
Intent.Message.RbmSuggestedAction.Builder

setPostbackData(String value)

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

Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. 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.RbmSuggestedAction.Builder

This builder for chaining.

setPostbackDataBytes(ByteString value)

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

Opaque payload that the Dialogflow receives in a user event when the user taps the suggested action. 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.RbmSuggestedAction.Builder

This builder for chaining.

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

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

setShareLocation(Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation value)

public Intent.Message.RbmSuggestedAction.Builder setShareLocation(Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation value)

Suggested client side action: Share user location

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;

Parameter
Name Description
value Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation
Returns
Type Description
Intent.Message.RbmSuggestedAction.Builder

setShareLocation(Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation.Builder builderForValue)

public Intent.Message.RbmSuggestedAction.Builder setShareLocation(Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation.Builder builderForValue)

Suggested client side action: Share user location

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation share_location = 5;

Parameter
Name Description
builderForValue Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation.Builder
Returns
Type Description
Intent.Message.RbmSuggestedAction.Builder

setText(String value)

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

Text to display alongside the action.

string text = 1;

Parameter
Name Description
value String

The text to set.

Returns
Type Description
Intent.Message.RbmSuggestedAction.Builder

This builder for chaining.

setTextBytes(ByteString value)

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

Text to display alongside the action.

string text = 1;

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
Intent.Message.RbmSuggestedAction.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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