Class DialogAction (0.15.0)

public final class DialogAction extends GeneratedMessageV3 implements DialogActionOrBuilder

Contains a dialog and request status code.

Protobuf type google.chat.v1.DialogAction

Static Fields

ACTION_STATUS_FIELD_NUMBER

public static final int ACTION_STATUS_FIELD_NUMBER
Field Value
Type Description
int

DIALOG_FIELD_NUMBER

public static final int DIALOG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DialogAction getDefaultInstance()
Returns
Type Description
DialogAction

getDescriptor()

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

newBuilder()

public static DialogAction.Builder newBuilder()
Returns
Type Description
DialogAction.Builder

newBuilder(DialogAction prototype)

public static DialogAction.Builder newBuilder(DialogAction prototype)
Parameter
Name Description
prototype DialogAction
Returns
Type Description
DialogAction.Builder

parseDelimitedFrom(InputStream input)

public static DialogAction parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DialogAction
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DialogAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DialogAction
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DialogAction parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DialogAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DialogAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DialogAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DialogAction parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DialogAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DialogAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DialogAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DialogAction parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DialogAction
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DialogAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DialogAction
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DialogAction parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DialogAction
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DialogAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DialogAction
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DialogAction parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DialogAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DialogAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DialogAction
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DialogAction> parser()
Returns
Type Description
Parser<DialogAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getActionCase()

public DialogAction.ActionCase getActionCase()
Returns
Type Description
DialogAction.ActionCase

getActionStatus()

public ActionStatus getActionStatus()

Input only. Status for a request to either invoke or submit a dialog. Displays a status and message to users, if necessary. For example, in case of an error or success.

.google.chat.v1.ActionStatus action_status = 2 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ActionStatus

The actionStatus.

getActionStatusOrBuilder()

public ActionStatusOrBuilder getActionStatusOrBuilder()

Input only. Status for a request to either invoke or submit a dialog. Displays a status and message to users, if necessary. For example, in case of an error or success.

.google.chat.v1.ActionStatus action_status = 2 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ActionStatusOrBuilder

getDefaultInstanceForType()

public DialogAction getDefaultInstanceForType()
Returns
Type Description
DialogAction

getDialog()

public Dialog getDialog()

Input only. Dialog for the request.

.google.chat.v1.Dialog dialog = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Dialog

The dialog.

getDialogOrBuilder()

public DialogOrBuilder getDialogOrBuilder()

Input only. Dialog for the request.

.google.chat.v1.Dialog dialog = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
DialogOrBuilder

getParserForType()

public Parser<DialogAction> getParserForType()
Returns
Type Description
Parser<DialogAction>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasActionStatus()

public boolean hasActionStatus()

Input only. Status for a request to either invoke or submit a dialog. Displays a status and message to users, if necessary. For example, in case of an error or success.

.google.chat.v1.ActionStatus action_status = 2 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
boolean

Whether the actionStatus field is set.

hasDialog()

public boolean hasDialog()

Input only. Dialog for the request.

.google.chat.v1.Dialog dialog = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
boolean

Whether the dialog field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DialogAction.Builder newBuilderForType()
Returns
Type Description
DialogAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DialogAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DialogAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public DialogAction.Builder toBuilder()
Returns
Type Description
DialogAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException