Class Intent.Message.RbmSuggestedAction.Builder (4.6.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.RbmSuggestedAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Intent.Message.RbmSuggestedAction.Builder
Overrides

build()

public Intent.Message.RbmSuggestedAction build()
Returns
TypeDescription
Intent.Message.RbmSuggestedAction

buildPartial()

public Intent.Message.RbmSuggestedAction buildPartial()
Returns
TypeDescription
Intent.Message.RbmSuggestedAction

clear()

public Intent.Message.RbmSuggestedAction.Builder clear()
Returns
TypeDescription
Intent.Message.RbmSuggestedAction.Builder
Overrides

clearAction()

public Intent.Message.RbmSuggestedAction.Builder clearAction()
Returns
TypeDescription
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
TypeDescription
Intent.Message.RbmSuggestedAction.Builder

clearField(Descriptors.FieldDescriptor field)

public Intent.Message.RbmSuggestedAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Intent.Message.RbmSuggestedAction.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Intent.Message.RbmSuggestedAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Intent.Message.RbmSuggestedAction.Builder

clearText()

public Intent.Message.RbmSuggestedAction.Builder clearText()

Text to display alongside the action.

string text = 1;

Returns
TypeDescription
Intent.Message.RbmSuggestedAction.Builder

This builder for chaining.

clone()

public Intent.Message.RbmSuggestedAction.Builder clone()
Returns
TypeDescription
Intent.Message.RbmSuggestedAction.Builder
Overrides

getActionCase()

public Intent.Message.RbmSuggestedAction.ActionCase getActionCase()
Returns
TypeDescription
Intent.Message.RbmSuggestedAction.ActionCase

getDefaultInstanceForType()

public Intent.Message.RbmSuggestedAction getDefaultInstanceForType()
Returns
TypeDescription
Intent.Message.RbmSuggestedAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocationOrBuilder

getText()

public String getText()

Text to display alongside the action.

string text = 1;

Returns
TypeDescription
String

The text.

getTextBytes()

public ByteString getTextBytes()

Text to display alongside the action.

string text = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the shareLocation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueIntent.Message.RbmSuggestedAction.RbmSuggestedActionDial
Returns
TypeDescription
Intent.Message.RbmSuggestedAction.Builder

mergeFrom(Intent.Message.RbmSuggestedAction other)

public Intent.Message.RbmSuggestedAction.Builder mergeFrom(Intent.Message.RbmSuggestedAction other)
Parameter
NameDescription
otherIntent.Message.RbmSuggestedAction
Returns
TypeDescription
Intent.Message.RbmSuggestedAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Intent.Message.RbmSuggestedAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Intent.Message.RbmSuggestedAction.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Intent.Message.RbmSuggestedAction.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueIntent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri
Returns
TypeDescription
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
NameDescription
valueIntent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation
Returns
TypeDescription
Intent.Message.RbmSuggestedAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.RbmSuggestedAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueIntent.Message.RbmSuggestedAction.RbmSuggestedActionDial
Returns
TypeDescription
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
NameDescription
builderForValueIntent.Message.RbmSuggestedAction.RbmSuggestedActionDial.Builder
Returns
TypeDescription
Intent.Message.RbmSuggestedAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.RbmSuggestedAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueIntent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri
Returns
TypeDescription
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
NameDescription
builderForValueIntent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri.Builder
Returns
TypeDescription
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
NameDescription
valueString

The postbackData to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for postbackData to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueIntent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation
Returns
TypeDescription
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
NameDescription
builderForValueIntent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation.Builder
Returns
TypeDescription
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
NameDescription
valueString

The text to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for text to set.

Returns
TypeDescription
Intent.Message.RbmSuggestedAction.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.RbmSuggestedAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Intent.Message.RbmSuggestedAction.Builder
Overrides