Class ActionResponse (0.11.0)

public final class ActionResponse extends GeneratedMessageV3 implements ActionResponseOrBuilder

Parameters that a Chat app can use to configure how its response is posted.

Protobuf type google.chat.v1.ActionResponse

Static Fields

DIALOG_ACTION_FIELD_NUMBER

public static final int DIALOG_ACTION_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

UPDATED_WIDGET_FIELD_NUMBER

public static final int UPDATED_WIDGET_FIELD_NUMBER
Field Value
Type Description
int

URL_FIELD_NUMBER

public static final int URL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ActionResponse getDefaultInstance()
Returns
Type Description
ActionResponse

getDescriptor()

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

newBuilder()

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

newBuilder(ActionResponse prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ActionResponse getDefaultInstanceForType()
Returns
Type Description
ActionResponse

getDialogAction()

public DialogAction getDialogAction()

Input only. A response to an interaction event related to a dialog. Must be accompanied by ResponseType.Dialog.

.google.chat.v1.DialogAction dialog_action = 3 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
DialogAction

The dialogAction.

getDialogActionOrBuilder()

public DialogActionOrBuilder getDialogActionOrBuilder()

Input only. A response to an interaction event related to a dialog. Must be accompanied by ResponseType.Dialog.

.google.chat.v1.DialogAction dialog_action = 3 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
DialogActionOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getType()

public ActionResponse.ResponseType getType()

Input only. The type of Chat app response.

.google.chat.v1.ActionResponse.ResponseType type = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ActionResponse.ResponseType

The type.

getTypeValue()

public int getTypeValue()

Input only. The type of Chat app response.

.google.chat.v1.ActionResponse.ResponseType type = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for type.

getUpdatedWidget()

public ActionResponse.UpdatedWidget getUpdatedWidget()

Input only. The response of the updated widget.

.google.chat.v1.ActionResponse.UpdatedWidget updated_widget = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ActionResponse.UpdatedWidget

The updatedWidget.

getUpdatedWidgetOrBuilder()

public ActionResponse.UpdatedWidgetOrBuilder getUpdatedWidgetOrBuilder()

Input only. The response of the updated widget.

.google.chat.v1.ActionResponse.UpdatedWidget updated_widget = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ActionResponse.UpdatedWidgetOrBuilder

getUrl()

public String getUrl()

Input only. URL for users to authenticate or configure. (Only for REQUEST_CONFIG response types.)

string url = 2 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

Input only. URL for users to authenticate or configure. (Only for REQUEST_CONFIG response types.)

string url = 2 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ByteString

The bytes for url.

hasDialogAction()

public boolean hasDialogAction()

Input only. A response to an interaction event related to a dialog. Must be accompanied by ResponseType.Dialog.

.google.chat.v1.DialogAction dialog_action = 3 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
boolean

Whether the dialogAction field is set.

hasUpdatedWidget()

public boolean hasUpdatedWidget()

Input only. The response of the updated widget.

.google.chat.v1.ActionResponse.UpdatedWidget updated_widget = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
boolean

Whether the updatedWidget 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 ActionResponse.Builder newBuilderForType()
Returns
Type Description
ActionResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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