Class ActionResponse.Builder (0.18.0)

public static final class ActionResponse.Builder extends GeneratedMessageV3.Builder<ActionResponse.Builder> implements ActionResponseOrBuilder

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

Protobuf type google.chat.v1.ActionResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ActionResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ActionResponse.Builder
Overrides

build()

public ActionResponse build()
Returns
Type Description
ActionResponse

buildPartial()

public ActionResponse buildPartial()
Returns
Type Description
ActionResponse

clear()

public ActionResponse.Builder clear()
Returns
Type Description
ActionResponse.Builder
Overrides

clearDialogAction()

public ActionResponse.Builder clearDialogAction()

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
ActionResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ActionResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ActionResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ActionResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ActionResponse.Builder
Overrides

clearType()

public ActionResponse.Builder clearType()

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.Builder

This builder for chaining.

clearUpdatedWidget()

public ActionResponse.Builder clearUpdatedWidget()

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.Builder

clearUrl()

public ActionResponse.Builder clearUrl()

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
ActionResponse.Builder

This builder for chaining.

clone()

public ActionResponse.Builder clone()
Returns
Type Description
ActionResponse.Builder
Overrides

getDefaultInstanceForType()

public ActionResponse getDefaultInstanceForType()
Returns
Type Description
ActionResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getDialogActionBuilder()

public DialogAction.Builder getDialogActionBuilder()

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.Builder

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

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.

getUpdatedWidgetBuilder()

public ActionResponse.UpdatedWidget.Builder getUpdatedWidgetBuilder()

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.Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDialogAction(DialogAction value)

public ActionResponse.Builder mergeDialogAction(DialogAction value)

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];

Parameter
Name Description
value DialogAction
Returns
Type Description
ActionResponse.Builder

mergeFrom(ActionResponse other)

public ActionResponse.Builder mergeFrom(ActionResponse other)
Parameter
Name Description
other ActionResponse
Returns
Type Description
ActionResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ActionResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ActionResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ActionResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ActionResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ActionResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ActionResponse.Builder
Overrides

mergeUpdatedWidget(ActionResponse.UpdatedWidget value)

public ActionResponse.Builder mergeUpdatedWidget(ActionResponse.UpdatedWidget value)

Input only. The response of the updated widget.

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

Parameter
Name Description
value ActionResponse.UpdatedWidget
Returns
Type Description
ActionResponse.Builder

setDialogAction(DialogAction value)

public ActionResponse.Builder setDialogAction(DialogAction value)

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];

Parameter
Name Description
value DialogAction
Returns
Type Description
ActionResponse.Builder

setDialogAction(DialogAction.Builder builderForValue)

public ActionResponse.Builder setDialogAction(DialogAction.Builder builderForValue)

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];

Parameter
Name Description
builderForValue DialogAction.Builder
Returns
Type Description
ActionResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ActionResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ActionResponse.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ActionResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ActionResponse.Builder
Overrides

setType(ActionResponse.ResponseType value)

public ActionResponse.Builder setType(ActionResponse.ResponseType value)

Input only. The type of Chat app response.

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

Parameter
Name Description
value ActionResponse.ResponseType

The type to set.

Returns
Type Description
ActionResponse.Builder

This builder for chaining.

setTypeValue(int value)

public ActionResponse.Builder setTypeValue(int value)

Input only. The type of Chat app response.

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

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
ActionResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ActionResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ActionResponse.Builder
Overrides

setUpdatedWidget(ActionResponse.UpdatedWidget value)

public ActionResponse.Builder setUpdatedWidget(ActionResponse.UpdatedWidget value)

Input only. The response of the updated widget.

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

Parameter
Name Description
value ActionResponse.UpdatedWidget
Returns
Type Description
ActionResponse.Builder

setUpdatedWidget(ActionResponse.UpdatedWidget.Builder builderForValue)

public ActionResponse.Builder setUpdatedWidget(ActionResponse.UpdatedWidget.Builder builderForValue)

Input only. The response of the updated widget.

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

Parameter
Name Description
builderForValue ActionResponse.UpdatedWidget.Builder
Returns
Type Description
ActionResponse.Builder

setUrl(String value)

public ActionResponse.Builder setUrl(String value)

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

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

Parameter
Name Description
value String

The url to set.

Returns
Type Description
ActionResponse.Builder

This builder for chaining.

setUrlBytes(ByteString value)

public ActionResponse.Builder setUrlBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for url to set.

Returns
Type Description
ActionResponse.Builder

This builder for chaining.