Class ActionResponse.Builder (0.4.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ActionResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ActionResponse.Builder
Overrides

build()

public ActionResponse build()
Returns
TypeDescription
ActionResponse

buildPartial()

public ActionResponse buildPartial()
Returns
TypeDescription
ActionResponse

clear()

public ActionResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
ActionResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ActionResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ActionResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ActionResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ActionResponse.Builder

This builder for chaining.

clone()

public ActionResponse.Builder clone()
Returns
TypeDescription
ActionResponse.Builder
Overrides

getDefaultInstanceForType()

public ActionResponse getDefaultInstanceForType()
Returns
TypeDescription
ActionResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updatedWidget field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDialogAction
Returns
TypeDescription
ActionResponse.Builder

mergeFrom(ActionResponse other)

public ActionResponse.Builder mergeFrom(ActionResponse other)
Parameter
NameDescription
otherActionResponse
Returns
TypeDescription
ActionResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ActionResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ActionResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ActionResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ActionResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ActionResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueActionResponse.UpdatedWidget
Returns
TypeDescription
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
NameDescription
valueDialogAction
Returns
TypeDescription
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
NameDescription
builderForValueDialogAction.Builder
Returns
TypeDescription
ActionResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ActionResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ActionResponse.Builder
Overrides

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

public ActionResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueActionResponse.ResponseType

The type to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
ActionResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ActionResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueActionResponse.UpdatedWidget
Returns
TypeDescription
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
NameDescription
builderForValueActionResponse.UpdatedWidget.Builder
Returns
TypeDescription
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
NameDescription
valueString

The url to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for url to set.

Returns
TypeDescription
ActionResponse.Builder

This builder for chaining.