Class DialogAction (0.3.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
TypeDescription
int

DIALOG_FIELD_NUMBER

public static final int DIALOG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DialogAction getDefaultInstance()
Returns
TypeDescription
DialogAction

getDescriptor()

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

newBuilder()

public static DialogAction.Builder newBuilder()
Returns
TypeDescription
DialogAction.Builder

newBuilder(DialogAction prototype)

public static DialogAction.Builder newBuilder(DialogAction prototype)
Parameter
NameDescription
prototypeDialogAction
Returns
TypeDescription
DialogAction.Builder

parseDelimitedFrom(InputStream input)

public static DialogAction parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DialogAction
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DialogAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DialogAction
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DialogAction parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DialogAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static DialogAction parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DialogAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DialogAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DialogAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DialogAction parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DialogAction
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DialogAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DialogAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DialogAction parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DialogAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DialogAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DialogAction
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DialogAction parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DialogAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DialogAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DialogAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DialogAction> parser()
Returns
TypeDescription
Parser<DialogAction>

Methods

equals(Object obj)

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

getActionCase()

public DialogAction.ActionCase getActionCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ActionStatusOrBuilder

getDefaultInstanceForType()

public DialogAction getDefaultInstanceForType()
Returns
TypeDescription
DialogAction

getDialog()

public Dialog getDialog()

Input only. Dialog for the request.

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

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

getParserForType()

public Parser<DialogAction> getParserForType()
Returns
TypeDescription
Parser<DialogAction>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the dialog 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

newBuilderForType()

public DialogAction.Builder newBuilderForType()
Returns
TypeDescription
DialogAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DialogAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DialogAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public DialogAction.Builder toBuilder()
Returns
TypeDescription
DialogAction.Builder

writeTo(CodedOutputStream output)

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