Package com.google.apps.card.v1
Class Action.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
-
- com.google.apps.card.v1.Action.Builder
-
- All Implemented Interfaces:
ActionOrBuilder,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- Action
public static final class Action.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Action.Builder> implements ActionOrBuilder
An action that describes the behavior when the form is submitted. For example, you can invoke an Apps Script script to handle the form. If the action is triggered, the form values are sent to the server. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
Protobuf typegoogle.apps.card.v1.Action
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Action.BuilderaddAllParameters(java.lang.Iterable<? extends Action.ActionParameter> values)List of action parameters.Action.BuilderaddParameters(int index, Action.ActionParameter value)List of action parameters.Action.BuilderaddParameters(int index, Action.ActionParameter.Builder builderForValue)List of action parameters.Action.BuilderaddParameters(Action.ActionParameter value)List of action parameters.Action.BuilderaddParameters(Action.ActionParameter.Builder builderForValue)List of action parameters.Action.ActionParameter.BuilderaddParametersBuilder()List of action parameters.Action.ActionParameter.BuilderaddParametersBuilder(int index)List of action parameters.Action.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Actionbuild()ActionbuildPartial()Action.Builderclear()Action.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Action.BuilderclearFunction()A custom function to invoke when the containing element is clicked or othrwise activated.Action.BuilderclearInteraction()Optional.Action.BuilderclearLoadIndicator()Specifies the loading indicator that the action displays while making the call to the action.Action.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Action.BuilderclearParameters()List of action parameters.Action.BuilderclearPersistValues()Indicates whether form values persist after the action.Action.Builderclone()ActiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetFunction()A custom function to invoke when the containing element is clicked or othrwise activated.com.google.protobuf.ByteStringgetFunctionBytes()A custom function to invoke when the containing element is clicked or othrwise activated.Action.InteractiongetInteraction()Optional.intgetInteractionValue()Optional.Action.LoadIndicatorgetLoadIndicator()Specifies the loading indicator that the action displays while making the call to the action.intgetLoadIndicatorValue()Specifies the loading indicator that the action displays while making the call to the action.Action.ActionParametergetParameters(int index)List of action parameters.Action.ActionParameter.BuildergetParametersBuilder(int index)List of action parameters.java.util.List<Action.ActionParameter.Builder>getParametersBuilderList()List of action parameters.intgetParametersCount()List of action parameters.java.util.List<Action.ActionParameter>getParametersList()List of action parameters.Action.ActionParameterOrBuildergetParametersOrBuilder(int index)List of action parameters.java.util.List<? extends Action.ActionParameterOrBuilder>getParametersOrBuilderList()List of action parameters.booleangetPersistValues()Indicates whether form values persist after the action.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Action.BuildermergeFrom(Action other)Action.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Action.BuildermergeFrom(com.google.protobuf.Message other)Action.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Action.BuilderremoveParameters(int index)List of action parameters.Action.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Action.BuildersetFunction(java.lang.String value)A custom function to invoke when the containing element is clicked or othrwise activated.Action.BuildersetFunctionBytes(com.google.protobuf.ByteString value)A custom function to invoke when the containing element is clicked or othrwise activated.Action.BuildersetInteraction(Action.Interaction value)Optional.Action.BuildersetInteractionValue(int value)Optional.Action.BuildersetLoadIndicator(Action.LoadIndicator value)Specifies the loading indicator that the action displays while making the call to the action.Action.BuildersetLoadIndicatorValue(int value)Specifies the loading indicator that the action displays while making the call to the action.Action.BuildersetParameters(int index, Action.ActionParameter value)List of action parameters.Action.BuildersetParameters(int index, Action.ActionParameter.Builder builderForValue)List of action parameters.Action.BuildersetPersistValues(boolean value)Indicates whether form values persist after the action.Action.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Action.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Overrides:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
-
clear
public Action.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Action.Builder>
-
getDefaultInstanceForType
public Action getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Action build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Action buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Action.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
-
setField
public Action.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
-
clearField
public Action.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
-
clearOneof
public Action.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
-
setRepeatedField
public Action.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
-
addRepeatedField
public Action.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
-
mergeFrom
public Action.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Action.Builder>
-
mergeFrom
public Action.Builder mergeFrom(Action other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,Action.Builder>
-
mergeFrom
public Action.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Action.Builder>- Throws:
java.io.IOException
-
getFunction
public java.lang.String getFunction()
A custom function to invoke when the containing element is clicked or othrwise activated. For example usage, see [Read form data](https://developers.google.com/workspace/chat/read-form-data).
string function = 1;- Specified by:
getFunctionin interfaceActionOrBuilder- Returns:
- The function.
-
getFunctionBytes
public com.google.protobuf.ByteString getFunctionBytes()
A custom function to invoke when the containing element is clicked or othrwise activated. For example usage, see [Read form data](https://developers.google.com/workspace/chat/read-form-data).
string function = 1;- Specified by:
getFunctionBytesin interfaceActionOrBuilder- Returns:
- The bytes for function.
-
setFunction
public Action.Builder setFunction(java.lang.String value)
A custom function to invoke when the containing element is clicked or othrwise activated. For example usage, see [Read form data](https://developers.google.com/workspace/chat/read-form-data).
string function = 1;- Parameters:
value- The function to set.- Returns:
- This builder for chaining.
-
clearFunction
public Action.Builder clearFunction()
A custom function to invoke when the containing element is clicked or othrwise activated. For example usage, see [Read form data](https://developers.google.com/workspace/chat/read-form-data).
string function = 1;- Returns:
- This builder for chaining.
-
setFunctionBytes
public Action.Builder setFunctionBytes(com.google.protobuf.ByteString value)
A custom function to invoke when the containing element is clicked or othrwise activated. For example usage, see [Read form data](https://developers.google.com/workspace/chat/read-form-data).
string function = 1;- Parameters:
value- The bytes for function to set.- Returns:
- This builder for chaining.
-
getParametersList
public java.util.List<Action.ActionParameter> getParametersList()
List of action parameters.
repeated .google.apps.card.v1.Action.ActionParameter parameters = 2;- Specified by:
getParametersListin interfaceActionOrBuilder
-
getParametersCount
public int getParametersCount()
List of action parameters.
repeated .google.apps.card.v1.Action.ActionParameter parameters = 2;- Specified by:
getParametersCountin interfaceActionOrBuilder
-
getParameters
public Action.ActionParameter getParameters(int index)
List of action parameters.
repeated .google.apps.card.v1.Action.ActionParameter parameters = 2;- Specified by:
getParametersin interfaceActionOrBuilder
-
setParameters
public Action.Builder setParameters(int index, Action.ActionParameter value)
List of action parameters.
repeated .google.apps.card.v1.Action.ActionParameter parameters = 2;
-
setParameters
public Action.Builder setParameters(int index, Action.ActionParameter.Builder builderForValue)
List of action parameters.
repeated .google.apps.card.v1.Action.ActionParameter parameters = 2;
-
addParameters
public Action.Builder addParameters(Action.ActionParameter value)
List of action parameters.
repeated .google.apps.card.v1.Action.ActionParameter parameters = 2;
-
addParameters
public Action.Builder addParameters(int index, Action.ActionParameter value)
List of action parameters.
repeated .google.apps.card.v1.Action.ActionParameter parameters = 2;
-
addParameters
public Action.Builder addParameters(Action.ActionParameter.Builder builderForValue)
List of action parameters.
repeated .google.apps.card.v1.Action.ActionParameter parameters = 2;
-
addParameters
public Action.Builder addParameters(int index, Action.ActionParameter.Builder builderForValue)
List of action parameters.
repeated .google.apps.card.v1.Action.ActionParameter parameters = 2;
-
addAllParameters
public Action.Builder addAllParameters(java.lang.Iterable<? extends Action.ActionParameter> values)
List of action parameters.
repeated .google.apps.card.v1.Action.ActionParameter parameters = 2;
-
clearParameters
public Action.Builder clearParameters()
List of action parameters.
repeated .google.apps.card.v1.Action.ActionParameter parameters = 2;
-
removeParameters
public Action.Builder removeParameters(int index)
List of action parameters.
repeated .google.apps.card.v1.Action.ActionParameter parameters = 2;
-
getParametersBuilder
public Action.ActionParameter.Builder getParametersBuilder(int index)
List of action parameters.
repeated .google.apps.card.v1.Action.ActionParameter parameters = 2;
-
getParametersOrBuilder
public Action.ActionParameterOrBuilder getParametersOrBuilder(int index)
List of action parameters.
repeated .google.apps.card.v1.Action.ActionParameter parameters = 2;- Specified by:
getParametersOrBuilderin interfaceActionOrBuilder
-
getParametersOrBuilderList
public java.util.List<? extends Action.ActionParameterOrBuilder> getParametersOrBuilderList()
List of action parameters.
repeated .google.apps.card.v1.Action.ActionParameter parameters = 2;- Specified by:
getParametersOrBuilderListin interfaceActionOrBuilder
-
addParametersBuilder
public Action.ActionParameter.Builder addParametersBuilder()
List of action parameters.
repeated .google.apps.card.v1.Action.ActionParameter parameters = 2;
-
addParametersBuilder
public Action.ActionParameter.Builder addParametersBuilder(int index)
List of action parameters.
repeated .google.apps.card.v1.Action.ActionParameter parameters = 2;
-
getParametersBuilderList
public java.util.List<Action.ActionParameter.Builder> getParametersBuilderList()
List of action parameters.
repeated .google.apps.card.v1.Action.ActionParameter parameters = 2;
-
getLoadIndicatorValue
public int getLoadIndicatorValue()
Specifies the loading indicator that the action displays while making the call to the action.
.google.apps.card.v1.Action.LoadIndicator load_indicator = 3;- Specified by:
getLoadIndicatorValuein interfaceActionOrBuilder- Returns:
- The enum numeric value on the wire for loadIndicator.
-
setLoadIndicatorValue
public Action.Builder setLoadIndicatorValue(int value)
Specifies the loading indicator that the action displays while making the call to the action.
.google.apps.card.v1.Action.LoadIndicator load_indicator = 3;- Parameters:
value- The enum numeric value on the wire for loadIndicator to set.- Returns:
- This builder for chaining.
-
getLoadIndicator
public Action.LoadIndicator getLoadIndicator()
Specifies the loading indicator that the action displays while making the call to the action.
.google.apps.card.v1.Action.LoadIndicator load_indicator = 3;- Specified by:
getLoadIndicatorin interfaceActionOrBuilder- Returns:
- The loadIndicator.
-
setLoadIndicator
public Action.Builder setLoadIndicator(Action.LoadIndicator value)
Specifies the loading indicator that the action displays while making the call to the action.
.google.apps.card.v1.Action.LoadIndicator load_indicator = 3;- Parameters:
value- The loadIndicator to set.- Returns:
- This builder for chaining.
-
clearLoadIndicator
public Action.Builder clearLoadIndicator()
Specifies the loading indicator that the action displays while making the call to the action.
.google.apps.card.v1.Action.LoadIndicator load_indicator = 3;- Returns:
- This builder for chaining.
-
getPersistValues
public boolean getPersistValues()
Indicates whether form values persist after the action. The default value is `false`. If `true`, form values remain after the action is triggered. To let the user make changes while the action is being processed, set [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) to `NONE`. For [card messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/create#create) in Chat apps, you must also set the action's [`ResponseType`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#responsetype) to `UPDATE_MESSAGE` and use the same [`card_id`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#CardWithId) from the card that contained the action. If `false`, the form values are cleared when the action is triggered. To prevent the user from making changes while the action is being processed, set [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) to `SPINNER`.
bool persist_values = 4;- Specified by:
getPersistValuesin interfaceActionOrBuilder- Returns:
- The persistValues.
-
setPersistValues
public Action.Builder setPersistValues(boolean value)
Indicates whether form values persist after the action. The default value is `false`. If `true`, form values remain after the action is triggered. To let the user make changes while the action is being processed, set [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) to `NONE`. For [card messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/create#create) in Chat apps, you must also set the action's [`ResponseType`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#responsetype) to `UPDATE_MESSAGE` and use the same [`card_id`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#CardWithId) from the card that contained the action. If `false`, the form values are cleared when the action is triggered. To prevent the user from making changes while the action is being processed, set [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) to `SPINNER`.
bool persist_values = 4;- Parameters:
value- The persistValues to set.- Returns:
- This builder for chaining.
-
clearPersistValues
public Action.Builder clearPersistValues()
Indicates whether form values persist after the action. The default value is `false`. If `true`, form values remain after the action is triggered. To let the user make changes while the action is being processed, set [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) to `NONE`. For [card messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/create#create) in Chat apps, you must also set the action's [`ResponseType`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#responsetype) to `UPDATE_MESSAGE` and use the same [`card_id`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#CardWithId) from the card that contained the action. If `false`, the form values are cleared when the action is triggered. To prevent the user from making changes while the action is being processed, set [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) to `SPINNER`.
bool persist_values = 4;- Returns:
- This builder for chaining.
-
getInteractionValue
public int getInteractionValue()
Optional. Required when opening a [dialog](https://developers.google.com/workspace/chat/dialogs). What to do in response to an interaction with a user, such as a user clicking a button in a card message. If unspecified, the app responds by executing an `action`—like opening a link or running a function—as normal. By specifying an `interaction`, the app can respond in special interactive ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can open a [dialog](https://developers.google.com/workspace/chat/dialogs). When specified, a loading indicator isn't shown. If specified for an add-on, the entire card is stripped and nothing is shown in the client. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.Action.Interaction interaction = 5;- Specified by:
getInteractionValuein interfaceActionOrBuilder- Returns:
- The enum numeric value on the wire for interaction.
-
setInteractionValue
public Action.Builder setInteractionValue(int value)
Optional. Required when opening a [dialog](https://developers.google.com/workspace/chat/dialogs). What to do in response to an interaction with a user, such as a user clicking a button in a card message. If unspecified, the app responds by executing an `action`—like opening a link or running a function—as normal. By specifying an `interaction`, the app can respond in special interactive ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can open a [dialog](https://developers.google.com/workspace/chat/dialogs). When specified, a loading indicator isn't shown. If specified for an add-on, the entire card is stripped and nothing is shown in the client. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.Action.Interaction interaction = 5;- Parameters:
value- The enum numeric value on the wire for interaction to set.- Returns:
- This builder for chaining.
-
getInteraction
public Action.Interaction getInteraction()
Optional. Required when opening a [dialog](https://developers.google.com/workspace/chat/dialogs). What to do in response to an interaction with a user, such as a user clicking a button in a card message. If unspecified, the app responds by executing an `action`—like opening a link or running a function—as normal. By specifying an `interaction`, the app can respond in special interactive ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can open a [dialog](https://developers.google.com/workspace/chat/dialogs). When specified, a loading indicator isn't shown. If specified for an add-on, the entire card is stripped and nothing is shown in the client. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.Action.Interaction interaction = 5;- Specified by:
getInteractionin interfaceActionOrBuilder- Returns:
- The interaction.
-
setInteraction
public Action.Builder setInteraction(Action.Interaction value)
Optional. Required when opening a [dialog](https://developers.google.com/workspace/chat/dialogs). What to do in response to an interaction with a user, such as a user clicking a button in a card message. If unspecified, the app responds by executing an `action`—like opening a link or running a function—as normal. By specifying an `interaction`, the app can respond in special interactive ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can open a [dialog](https://developers.google.com/workspace/chat/dialogs). When specified, a loading indicator isn't shown. If specified for an add-on, the entire card is stripped and nothing is shown in the client. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.Action.Interaction interaction = 5;- Parameters:
value- The interaction to set.- Returns:
- This builder for chaining.
-
clearInteraction
public Action.Builder clearInteraction()
Optional. Required when opening a [dialog](https://developers.google.com/workspace/chat/dialogs). What to do in response to an interaction with a user, such as a user clicking a button in a card message. If unspecified, the app responds by executing an `action`—like opening a link or running a function—as normal. By specifying an `interaction`, the app can respond in special interactive ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can open a [dialog](https://developers.google.com/workspace/chat/dialogs). When specified, a loading indicator isn't shown. If specified for an add-on, the entire card is stripped and nothing is shown in the client. [Google Chat apps](https://developers.google.com/workspace/chat):
.google.apps.card.v1.Action.Interaction interaction = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Action.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
-
mergeUnknownFields
public final Action.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Action.Builder>
-
-