Class DialogAction.Builder (0.3.0)

public static final class DialogAction.Builder extends GeneratedMessageV3.Builder<DialogAction.Builder> implements DialogActionOrBuilder

Contains a dialog and request status code.

Protobuf type google.chat.v1.DialogAction

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DialogAction build()
Returns
TypeDescription
DialogAction

buildPartial()

public DialogAction buildPartial()
Returns
TypeDescription
DialogAction

clear()

public DialogAction.Builder clear()
Returns
TypeDescription
DialogAction.Builder
Overrides

clearAction()

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

clearActionStatus()

public DialogAction.Builder clearActionStatus()

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

clearDialog()

public DialogAction.Builder clearDialog()

Input only. Dialog for the request.

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

Returns
TypeDescription
DialogAction.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public DialogAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DialogAction.Builder
Overrides

clone()

public DialogAction.Builder clone()
Returns
TypeDescription
DialogAction.Builder
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.

getActionStatusBuilder()

public ActionStatus.Builder getActionStatusBuilder()

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

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getDialogBuilder()

public Dialog.Builder getDialogBuilder()

Input only. Dialog for the request.

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

Returns
TypeDescription
Dialog.Builder

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeActionStatus(ActionStatus value)

public DialogAction.Builder mergeActionStatus(ActionStatus value)

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

Parameter
NameDescription
valueActionStatus
Returns
TypeDescription
DialogAction.Builder

mergeDialog(Dialog value)

public DialogAction.Builder mergeDialog(Dialog value)

Input only. Dialog for the request.

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

Parameter
NameDescription
valueDialog
Returns
TypeDescription
DialogAction.Builder

mergeFrom(DialogAction other)

public DialogAction.Builder mergeFrom(DialogAction other)
Parameter
NameDescription
otherDialogAction
Returns
TypeDescription
DialogAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DialogAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DialogAction.Builder
Overrides

setActionStatus(ActionStatus value)

public DialogAction.Builder setActionStatus(ActionStatus value)

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

Parameter
NameDescription
valueActionStatus
Returns
TypeDescription
DialogAction.Builder

setActionStatus(ActionStatus.Builder builderForValue)

public DialogAction.Builder setActionStatus(ActionStatus.Builder builderForValue)

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

Parameter
NameDescription
builderForValueActionStatus.Builder
Returns
TypeDescription
DialogAction.Builder

setDialog(Dialog value)

public DialogAction.Builder setDialog(Dialog value)

Input only. Dialog for the request.

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

Parameter
NameDescription
valueDialog
Returns
TypeDescription
DialogAction.Builder

setDialog(Dialog.Builder builderForValue)

public DialogAction.Builder setDialog(Dialog.Builder builderForValue)

Input only. Dialog for the request.

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

Parameter
NameDescription
builderForValueDialog.Builder
Returns
TypeDescription
DialogAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public DialogAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DialogAction.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DialogAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DialogAction.Builder
Overrides