Class Intent.Message.RbmSuggestedAction (4.4.0)

public static final class Intent.Message.RbmSuggestedAction extends GeneratedMessageV3 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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Intent.Message.RbmSuggestedAction

Fields

DIAL_FIELD_NUMBER

public static final int DIAL_FIELD_NUMBER
Field Value
TypeDescription
int

OPEN_URL_FIELD_NUMBER

public static final int OPEN_URL_FIELD_NUMBER
Field Value
TypeDescription
int

POSTBACK_DATA_FIELD_NUMBER

public static final int POSTBACK_DATA_FIELD_NUMBER
Field Value
TypeDescription
int

SHARE_LOCATION_FIELD_NUMBER

public static final int SHARE_LOCATION_FIELD_NUMBER
Field Value
TypeDescription
int

TEXT_FIELD_NUMBER

public static final int TEXT_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getActionCase()

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

getDefaultInstance()

public static Intent.Message.RbmSuggestedAction getDefaultInstance()
Returns
TypeDescription
Intent.Message.RbmSuggestedAction

getDefaultInstanceForType()

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

getDescriptor()

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

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.

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.

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

getParserForType()

public Parser<Intent.Message.RbmSuggestedAction> getParserForType()
Returns
TypeDescription
Parser<RbmSuggestedAction>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

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.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

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

newBuilder()

public static Intent.Message.RbmSuggestedAction.Builder newBuilder()
Returns
TypeDescription
Intent.Message.RbmSuggestedAction.Builder

newBuilder(Intent.Message.RbmSuggestedAction prototype)

public static Intent.Message.RbmSuggestedAction.Builder newBuilder(Intent.Message.RbmSuggestedAction prototype)
Parameter
NameDescription
prototypeIntent.Message.RbmSuggestedAction
Returns
TypeDescription
Intent.Message.RbmSuggestedAction.Builder

newBuilderForType()

public Intent.Message.RbmSuggestedAction.Builder newBuilderForType()
Returns
TypeDescription
Intent.Message.RbmSuggestedAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Intent.Message.RbmSuggestedAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Intent.Message.RbmSuggestedAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

parseDelimitedFrom(InputStream input)

public static Intent.Message.RbmSuggestedAction parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Intent.Message.RbmSuggestedAction
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Intent.Message.RbmSuggestedAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Intent.Message.RbmSuggestedAction
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Intent.Message.RbmSuggestedAction parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Intent.Message.RbmSuggestedAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Intent.Message.RbmSuggestedAction parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Intent.Message.RbmSuggestedAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Intent.Message.RbmSuggestedAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Intent.Message.RbmSuggestedAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Intent.Message.RbmSuggestedAction parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Intent.Message.RbmSuggestedAction
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Intent.Message.RbmSuggestedAction parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Intent.Message.RbmSuggestedAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Intent.Message.RbmSuggestedAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Intent.Message.RbmSuggestedAction
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Intent.Message.RbmSuggestedAction parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Intent.Message.RbmSuggestedAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Intent.Message.RbmSuggestedAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Intent.Message.RbmSuggestedAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Intent.Message.RbmSuggestedAction> parser()
Returns
TypeDescription
Parser<RbmSuggestedAction>

toBuilder()

public Intent.Message.RbmSuggestedAction.Builder toBuilder()
Returns
TypeDescription
Intent.Message.RbmSuggestedAction.Builder

writeTo(CodedOutputStream output)

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