Package com.google.apps.card.v1
Class TextInput.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<TextInput.Builder>
-
- com.google.apps.card.v1.TextInput.Builder
-
- All Implemented Interfaces:
TextInputOrBuilder,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:
- TextInput
public static final class TextInput.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TextInput.Builder> implements TextInputOrBuilder
A field in which users can enter text. Supports suggestions and on-change actions. For an example in Google Chat apps, see [Add a field in which a user can enter text](https://developers.google.com/workspace/chat/design-interactive-card-dialog#add_a_field_in_which_a_user_can_enter_text). Chat apps receive and can process the value of entered text during form input events. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data). When you need to collect undefined or abstract data from users, use a text input. To collect defined or enumerated data from users, use the [SelectionInput][google.apps.card.v1.SelectionInput] widget. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
Protobuf typegoogle.apps.card.v1.TextInput
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TextInput.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)TextInputbuild()TextInputbuildPartial()TextInput.Builderclear()TextInput.BuilderclearAutoCompleteAction()Optional.TextInput.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TextInput.BuilderclearHintText()Text that appears below the text input field meant to assist users by prompting them to enter a certain value.TextInput.BuilderclearInitialSuggestions()Suggested values that users can enter.TextInput.BuilderclearLabel()The text that appears above the text input field in the user interface.TextInput.BuilderclearName()The name by which the text input is identified in a form input event.TextInput.BuilderclearOnChangeAction()What to do when a change occurs in the text input field.TextInput.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TextInput.BuilderclearPlaceholderText()Text that appears in the text input field when the field is empty.TextInput.BuilderclearType()How a text input field appears in the user interface.TextInput.BuilderclearValue()The value entered by a user, returned as part of a form input event.TextInput.Builderclone()ActiongetAutoCompleteAction()Optional.Action.BuildergetAutoCompleteActionBuilder()Optional.ActionOrBuildergetAutoCompleteActionOrBuilder()Optional.TextInputgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetHintText()Text that appears below the text input field meant to assist users by prompting them to enter a certain value.com.google.protobuf.ByteStringgetHintTextBytes()Text that appears below the text input field meant to assist users by prompting them to enter a certain value.SuggestionsgetInitialSuggestions()Suggested values that users can enter.Suggestions.BuildergetInitialSuggestionsBuilder()Suggested values that users can enter.SuggestionsOrBuildergetInitialSuggestionsOrBuilder()Suggested values that users can enter.java.lang.StringgetLabel()The text that appears above the text input field in the user interface.com.google.protobuf.ByteStringgetLabelBytes()The text that appears above the text input field in the user interface.java.lang.StringgetName()The name by which the text input is identified in a form input event.com.google.protobuf.ByteStringgetNameBytes()The name by which the text input is identified in a form input event.ActiongetOnChangeAction()What to do when a change occurs in the text input field.Action.BuildergetOnChangeActionBuilder()What to do when a change occurs in the text input field.ActionOrBuildergetOnChangeActionOrBuilder()What to do when a change occurs in the text input field.java.lang.StringgetPlaceholderText()Text that appears in the text input field when the field is empty.com.google.protobuf.ByteStringgetPlaceholderTextBytes()Text that appears in the text input field when the field is empty.TextInput.TypegetType()How a text input field appears in the user interface.intgetTypeValue()How a text input field appears in the user interface.java.lang.StringgetValue()The value entered by a user, returned as part of a form input event.com.google.protobuf.ByteStringgetValueBytes()The value entered by a user, returned as part of a form input event.booleanhasAutoCompleteAction()Optional.booleanhasInitialSuggestions()Suggested values that users can enter.booleanhasOnChangeAction()What to do when a change occurs in the text input field.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TextInput.BuildermergeAutoCompleteAction(Action value)Optional.TextInput.BuildermergeFrom(TextInput other)TextInput.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TextInput.BuildermergeFrom(com.google.protobuf.Message other)TextInput.BuildermergeInitialSuggestions(Suggestions value)Suggested values that users can enter.TextInput.BuildermergeOnChangeAction(Action value)What to do when a change occurs in the text input field.TextInput.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TextInput.BuildersetAutoCompleteAction(Action value)Optional.TextInput.BuildersetAutoCompleteAction(Action.Builder builderForValue)Optional.TextInput.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)TextInput.BuildersetHintText(java.lang.String value)Text that appears below the text input field meant to assist users by prompting them to enter a certain value.TextInput.BuildersetHintTextBytes(com.google.protobuf.ByteString value)Text that appears below the text input field meant to assist users by prompting them to enter a certain value.TextInput.BuildersetInitialSuggestions(Suggestions value)Suggested values that users can enter.TextInput.BuildersetInitialSuggestions(Suggestions.Builder builderForValue)Suggested values that users can enter.TextInput.BuildersetLabel(java.lang.String value)The text that appears above the text input field in the user interface.TextInput.BuildersetLabelBytes(com.google.protobuf.ByteString value)The text that appears above the text input field in the user interface.TextInput.BuildersetName(java.lang.String value)The name by which the text input is identified in a form input event.TextInput.BuildersetNameBytes(com.google.protobuf.ByteString value)The name by which the text input is identified in a form input event.TextInput.BuildersetOnChangeAction(Action value)What to do when a change occurs in the text input field.TextInput.BuildersetOnChangeAction(Action.Builder builderForValue)What to do when a change occurs in the text input field.TextInput.BuildersetPlaceholderText(java.lang.String value)Text that appears in the text input field when the field is empty.TextInput.BuildersetPlaceholderTextBytes(com.google.protobuf.ByteString value)Text that appears in the text input field when the field is empty.TextInput.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)TextInput.BuildersetType(TextInput.Type value)How a text input field appears in the user interface.TextInput.BuildersetTypeValue(int value)How a text input field appears in the user interface.TextInput.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TextInput.BuildersetValue(java.lang.String value)The value entered by a user, returned as part of a form input event.TextInput.BuildersetValueBytes(com.google.protobuf.ByteString value)The value entered by a user, returned as part of a form input event.-
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<TextInput.Builder>
-
clear
public TextInput.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<TextInput.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<TextInput.Builder>
-
getDefaultInstanceForType
public TextInput 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 TextInput build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TextInput buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TextInput.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<TextInput.Builder>
-
setField
public TextInput.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<TextInput.Builder>
-
clearField
public TextInput.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TextInput.Builder>
-
clearOneof
public TextInput.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TextInput.Builder>
-
setRepeatedField
public TextInput.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<TextInput.Builder>
-
addRepeatedField
public TextInput.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<TextInput.Builder>
-
mergeFrom
public TextInput.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TextInput.Builder>
-
mergeFrom
public TextInput.Builder mergeFrom(TextInput other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,TextInput.Builder>
-
mergeFrom
public TextInput.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<TextInput.Builder>- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
The name by which the text input is identified in a form input event. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
string name = 1;- Specified by:
getNamein interfaceTextInputOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name by which the text input is identified in a form input event. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
string name = 1;- Specified by:
getNameBytesin interfaceTextInputOrBuilder- Returns:
- The bytes for name.
-
setName
public TextInput.Builder setName(java.lang.String value)
The name by which the text input is identified in a form input event. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public TextInput.Builder clearName()
The name by which the text input is identified in a form input event. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public TextInput.Builder setNameBytes(com.google.protobuf.ByteString value)
The name by which the text input is identified in a form input event. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getLabel
public java.lang.String getLabel()
The text that appears above the text input field in the user interface. Specify text that helps the user enter the information your app needs. For example, if you are asking someone's name, but specifically need their surname, write `surname` instead of `name`. Required if `hintText` is unspecified. Otherwise, optional.
string label = 2;- Specified by:
getLabelin interfaceTextInputOrBuilder- Returns:
- The label.
-
getLabelBytes
public com.google.protobuf.ByteString getLabelBytes()
The text that appears above the text input field in the user interface. Specify text that helps the user enter the information your app needs. For example, if you are asking someone's name, but specifically need their surname, write `surname` instead of `name`. Required if `hintText` is unspecified. Otherwise, optional.
string label = 2;- Specified by:
getLabelBytesin interfaceTextInputOrBuilder- Returns:
- The bytes for label.
-
setLabel
public TextInput.Builder setLabel(java.lang.String value)
The text that appears above the text input field in the user interface. Specify text that helps the user enter the information your app needs. For example, if you are asking someone's name, but specifically need their surname, write `surname` instead of `name`. Required if `hintText` is unspecified. Otherwise, optional.
string label = 2;- Parameters:
value- The label to set.- Returns:
- This builder for chaining.
-
clearLabel
public TextInput.Builder clearLabel()
The text that appears above the text input field in the user interface. Specify text that helps the user enter the information your app needs. For example, if you are asking someone's name, but specifically need their surname, write `surname` instead of `name`. Required if `hintText` is unspecified. Otherwise, optional.
string label = 2;- Returns:
- This builder for chaining.
-
setLabelBytes
public TextInput.Builder setLabelBytes(com.google.protobuf.ByteString value)
The text that appears above the text input field in the user interface. Specify text that helps the user enter the information your app needs. For example, if you are asking someone's name, but specifically need their surname, write `surname` instead of `name`. Required if `hintText` is unspecified. Otherwise, optional.
string label = 2;- Parameters:
value- The bytes for label to set.- Returns:
- This builder for chaining.
-
getHintText
public java.lang.String getHintText()
Text that appears below the text input field meant to assist users by prompting them to enter a certain value. This text is always visible. Required if `label` is unspecified. Otherwise, optional.
string hint_text = 3;- Specified by:
getHintTextin interfaceTextInputOrBuilder- Returns:
- The hintText.
-
getHintTextBytes
public com.google.protobuf.ByteString getHintTextBytes()
Text that appears below the text input field meant to assist users by prompting them to enter a certain value. This text is always visible. Required if `label` is unspecified. Otherwise, optional.
string hint_text = 3;- Specified by:
getHintTextBytesin interfaceTextInputOrBuilder- Returns:
- The bytes for hintText.
-
setHintText
public TextInput.Builder setHintText(java.lang.String value)
Text that appears below the text input field meant to assist users by prompting them to enter a certain value. This text is always visible. Required if `label` is unspecified. Otherwise, optional.
string hint_text = 3;- Parameters:
value- The hintText to set.- Returns:
- This builder for chaining.
-
clearHintText
public TextInput.Builder clearHintText()
Text that appears below the text input field meant to assist users by prompting them to enter a certain value. This text is always visible. Required if `label` is unspecified. Otherwise, optional.
string hint_text = 3;- Returns:
- This builder for chaining.
-
setHintTextBytes
public TextInput.Builder setHintTextBytes(com.google.protobuf.ByteString value)
Text that appears below the text input field meant to assist users by prompting them to enter a certain value. This text is always visible. Required if `label` is unspecified. Otherwise, optional.
string hint_text = 3;- Parameters:
value- The bytes for hintText to set.- Returns:
- This builder for chaining.
-
getValue
public java.lang.String getValue()
The value entered by a user, returned as part of a form input event. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
string value = 4;- Specified by:
getValuein interfaceTextInputOrBuilder- Returns:
- The value.
-
getValueBytes
public com.google.protobuf.ByteString getValueBytes()
The value entered by a user, returned as part of a form input event. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
string value = 4;- Specified by:
getValueBytesin interfaceTextInputOrBuilder- Returns:
- The bytes for value.
-
setValue
public TextInput.Builder setValue(java.lang.String value)
The value entered by a user, returned as part of a form input event. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
string value = 4;- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
public TextInput.Builder clearValue()
The value entered by a user, returned as part of a form input event. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
string value = 4;- Returns:
- This builder for chaining.
-
setValueBytes
public TextInput.Builder setValueBytes(com.google.protobuf.ByteString value)
The value entered by a user, returned as part of a form input event. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
string value = 4;- Parameters:
value- The bytes for value to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()
How a text input field appears in the user interface. For example, whether the field is single or multi-line.
.google.apps.card.v1.TextInput.Type type = 5;- Specified by:
getTypeValuein interfaceTextInputOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public TextInput.Builder setTypeValue(int value)
How a text input field appears in the user interface. For example, whether the field is single or multi-line.
.google.apps.card.v1.TextInput.Type type = 5;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public TextInput.Type getType()
How a text input field appears in the user interface. For example, whether the field is single or multi-line.
.google.apps.card.v1.TextInput.Type type = 5;- Specified by:
getTypein interfaceTextInputOrBuilder- Returns:
- The type.
-
setType
public TextInput.Builder setType(TextInput.Type value)
How a text input field appears in the user interface. For example, whether the field is single or multi-line.
.google.apps.card.v1.TextInput.Type type = 5;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public TextInput.Builder clearType()
How a text input field appears in the user interface. For example, whether the field is single or multi-line.
.google.apps.card.v1.TextInput.Type type = 5;- Returns:
- This builder for chaining.
-
hasOnChangeAction
public boolean hasOnChangeAction()
What to do when a change occurs in the text input field. For example, a user adding to the field or deleting text. Examples of actions to take include running a custom function or opening a [dialog](https://developers.google.com/workspace/chat/dialogs) in Google Chat.
.google.apps.card.v1.Action on_change_action = 6;- Specified by:
hasOnChangeActionin interfaceTextInputOrBuilder- Returns:
- Whether the onChangeAction field is set.
-
getOnChangeAction
public Action getOnChangeAction()
What to do when a change occurs in the text input field. For example, a user adding to the field or deleting text. Examples of actions to take include running a custom function or opening a [dialog](https://developers.google.com/workspace/chat/dialogs) in Google Chat.
.google.apps.card.v1.Action on_change_action = 6;- Specified by:
getOnChangeActionin interfaceTextInputOrBuilder- Returns:
- The onChangeAction.
-
setOnChangeAction
public TextInput.Builder setOnChangeAction(Action value)
What to do when a change occurs in the text input field. For example, a user adding to the field or deleting text. Examples of actions to take include running a custom function or opening a [dialog](https://developers.google.com/workspace/chat/dialogs) in Google Chat.
.google.apps.card.v1.Action on_change_action = 6;
-
setOnChangeAction
public TextInput.Builder setOnChangeAction(Action.Builder builderForValue)
What to do when a change occurs in the text input field. For example, a user adding to the field or deleting text. Examples of actions to take include running a custom function or opening a [dialog](https://developers.google.com/workspace/chat/dialogs) in Google Chat.
.google.apps.card.v1.Action on_change_action = 6;
-
mergeOnChangeAction
public TextInput.Builder mergeOnChangeAction(Action value)
What to do when a change occurs in the text input field. For example, a user adding to the field or deleting text. Examples of actions to take include running a custom function or opening a [dialog](https://developers.google.com/workspace/chat/dialogs) in Google Chat.
.google.apps.card.v1.Action on_change_action = 6;
-
clearOnChangeAction
public TextInput.Builder clearOnChangeAction()
What to do when a change occurs in the text input field. For example, a user adding to the field or deleting text. Examples of actions to take include running a custom function or opening a [dialog](https://developers.google.com/workspace/chat/dialogs) in Google Chat.
.google.apps.card.v1.Action on_change_action = 6;
-
getOnChangeActionBuilder
public Action.Builder getOnChangeActionBuilder()
What to do when a change occurs in the text input field. For example, a user adding to the field or deleting text. Examples of actions to take include running a custom function or opening a [dialog](https://developers.google.com/workspace/chat/dialogs) in Google Chat.
.google.apps.card.v1.Action on_change_action = 6;
-
getOnChangeActionOrBuilder
public ActionOrBuilder getOnChangeActionOrBuilder()
What to do when a change occurs in the text input field. For example, a user adding to the field or deleting text. Examples of actions to take include running a custom function or opening a [dialog](https://developers.google.com/workspace/chat/dialogs) in Google Chat.
.google.apps.card.v1.Action on_change_action = 6;- Specified by:
getOnChangeActionOrBuilderin interfaceTextInputOrBuilder
-
hasInitialSuggestions
public boolean hasInitialSuggestions()
Suggested values that users can enter. These values appear when users click inside the text input field. As users type, the suggested values dynamically filter to match what the users have typed. For example, a text input field for programming language might suggest Java, JavaScript, Python, and C++. When users start typing `Jav`, the list of suggestions filters to show just `Java` and `JavaScript`. Suggested values help guide users to enter values that your app can make sense of. When referring to JavaScript, some users might enter `javascript` and others `java script`. Suggesting `JavaScript` can standardize how users interact with your app. When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set to `MULTIPLE_LINE`. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Suggestions initial_suggestions = 7;- Specified by:
hasInitialSuggestionsin interfaceTextInputOrBuilder- Returns:
- Whether the initialSuggestions field is set.
-
getInitialSuggestions
public Suggestions getInitialSuggestions()
Suggested values that users can enter. These values appear when users click inside the text input field. As users type, the suggested values dynamically filter to match what the users have typed. For example, a text input field for programming language might suggest Java, JavaScript, Python, and C++. When users start typing `Jav`, the list of suggestions filters to show just `Java` and `JavaScript`. Suggested values help guide users to enter values that your app can make sense of. When referring to JavaScript, some users might enter `javascript` and others `java script`. Suggesting `JavaScript` can standardize how users interact with your app. When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set to `MULTIPLE_LINE`. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Suggestions initial_suggestions = 7;- Specified by:
getInitialSuggestionsin interfaceTextInputOrBuilder- Returns:
- The initialSuggestions.
-
setInitialSuggestions
public TextInput.Builder setInitialSuggestions(Suggestions value)
Suggested values that users can enter. These values appear when users click inside the text input field. As users type, the suggested values dynamically filter to match what the users have typed. For example, a text input field for programming language might suggest Java, JavaScript, Python, and C++. When users start typing `Jav`, the list of suggestions filters to show just `Java` and `JavaScript`. Suggested values help guide users to enter values that your app can make sense of. When referring to JavaScript, some users might enter `javascript` and others `java script`. Suggesting `JavaScript` can standardize how users interact with your app. When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set to `MULTIPLE_LINE`. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Suggestions initial_suggestions = 7;
-
setInitialSuggestions
public TextInput.Builder setInitialSuggestions(Suggestions.Builder builderForValue)
Suggested values that users can enter. These values appear when users click inside the text input field. As users type, the suggested values dynamically filter to match what the users have typed. For example, a text input field for programming language might suggest Java, JavaScript, Python, and C++. When users start typing `Jav`, the list of suggestions filters to show just `Java` and `JavaScript`. Suggested values help guide users to enter values that your app can make sense of. When referring to JavaScript, some users might enter `javascript` and others `java script`. Suggesting `JavaScript` can standardize how users interact with your app. When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set to `MULTIPLE_LINE`. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Suggestions initial_suggestions = 7;
-
mergeInitialSuggestions
public TextInput.Builder mergeInitialSuggestions(Suggestions value)
Suggested values that users can enter. These values appear when users click inside the text input field. As users type, the suggested values dynamically filter to match what the users have typed. For example, a text input field for programming language might suggest Java, JavaScript, Python, and C++. When users start typing `Jav`, the list of suggestions filters to show just `Java` and `JavaScript`. Suggested values help guide users to enter values that your app can make sense of. When referring to JavaScript, some users might enter `javascript` and others `java script`. Suggesting `JavaScript` can standardize how users interact with your app. When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set to `MULTIPLE_LINE`. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Suggestions initial_suggestions = 7;
-
clearInitialSuggestions
public TextInput.Builder clearInitialSuggestions()
Suggested values that users can enter. These values appear when users click inside the text input field. As users type, the suggested values dynamically filter to match what the users have typed. For example, a text input field for programming language might suggest Java, JavaScript, Python, and C++. When users start typing `Jav`, the list of suggestions filters to show just `Java` and `JavaScript`. Suggested values help guide users to enter values that your app can make sense of. When referring to JavaScript, some users might enter `javascript` and others `java script`. Suggesting `JavaScript` can standardize how users interact with your app. When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set to `MULTIPLE_LINE`. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Suggestions initial_suggestions = 7;
-
getInitialSuggestionsBuilder
public Suggestions.Builder getInitialSuggestionsBuilder()
Suggested values that users can enter. These values appear when users click inside the text input field. As users type, the suggested values dynamically filter to match what the users have typed. For example, a text input field for programming language might suggest Java, JavaScript, Python, and C++. When users start typing `Jav`, the list of suggestions filters to show just `Java` and `JavaScript`. Suggested values help guide users to enter values that your app can make sense of. When referring to JavaScript, some users might enter `javascript` and others `java script`. Suggesting `JavaScript` can standardize how users interact with your app. When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set to `MULTIPLE_LINE`. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Suggestions initial_suggestions = 7;
-
getInitialSuggestionsOrBuilder
public SuggestionsOrBuilder getInitialSuggestionsOrBuilder()
Suggested values that users can enter. These values appear when users click inside the text input field. As users type, the suggested values dynamically filter to match what the users have typed. For example, a text input field for programming language might suggest Java, JavaScript, Python, and C++. When users start typing `Jav`, the list of suggestions filters to show just `Java` and `JavaScript`. Suggested values help guide users to enter values that your app can make sense of. When referring to JavaScript, some users might enter `javascript` and others `java script`. Suggesting `JavaScript` can standardize how users interact with your app. When specified, `TextInput.type` is always `SINGLE_LINE`, even if it's set to `MULTIPLE_LINE`. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Suggestions initial_suggestions = 7;- Specified by:
getInitialSuggestionsOrBuilderin interfaceTextInputOrBuilder
-
hasAutoCompleteAction
public boolean hasAutoCompleteAction()
Optional. Specify what action to take when the text input field provides suggestions to users who interact with it. If unspecified, the suggestions are set by `initialSuggestions` and are processed by the client. If specified, the app takes the action specified here, such as running a custom function. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Action auto_complete_action = 8;- Specified by:
hasAutoCompleteActionin interfaceTextInputOrBuilder- Returns:
- Whether the autoCompleteAction field is set.
-
getAutoCompleteAction
public Action getAutoCompleteAction()
Optional. Specify what action to take when the text input field provides suggestions to users who interact with it. If unspecified, the suggestions are set by `initialSuggestions` and are processed by the client. If specified, the app takes the action specified here, such as running a custom function. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Action auto_complete_action = 8;- Specified by:
getAutoCompleteActionin interfaceTextInputOrBuilder- Returns:
- The autoCompleteAction.
-
setAutoCompleteAction
public TextInput.Builder setAutoCompleteAction(Action value)
Optional. Specify what action to take when the text input field provides suggestions to users who interact with it. If unspecified, the suggestions are set by `initialSuggestions` and are processed by the client. If specified, the app takes the action specified here, such as running a custom function. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Action auto_complete_action = 8;
-
setAutoCompleteAction
public TextInput.Builder setAutoCompleteAction(Action.Builder builderForValue)
Optional. Specify what action to take when the text input field provides suggestions to users who interact with it. If unspecified, the suggestions are set by `initialSuggestions` and are processed by the client. If specified, the app takes the action specified here, such as running a custom function. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Action auto_complete_action = 8;
-
mergeAutoCompleteAction
public TextInput.Builder mergeAutoCompleteAction(Action value)
Optional. Specify what action to take when the text input field provides suggestions to users who interact with it. If unspecified, the suggestions are set by `initialSuggestions` and are processed by the client. If specified, the app takes the action specified here, such as running a custom function. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Action auto_complete_action = 8;
-
clearAutoCompleteAction
public TextInput.Builder clearAutoCompleteAction()
Optional. Specify what action to take when the text input field provides suggestions to users who interact with it. If unspecified, the suggestions are set by `initialSuggestions` and are processed by the client. If specified, the app takes the action specified here, such as running a custom function. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Action auto_complete_action = 8;
-
getAutoCompleteActionBuilder
public Action.Builder getAutoCompleteActionBuilder()
Optional. Specify what action to take when the text input field provides suggestions to users who interact with it. If unspecified, the suggestions are set by `initialSuggestions` and are processed by the client. If specified, the app takes the action specified here, such as running a custom function. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Action auto_complete_action = 8;
-
getAutoCompleteActionOrBuilder
public ActionOrBuilder getAutoCompleteActionOrBuilder()
Optional. Specify what action to take when the text input field provides suggestions to users who interact with it. If unspecified, the suggestions are set by `initialSuggestions` and are processed by the client. If specified, the app takes the action specified here, such as running a custom function. [Google Workspace Add-ons](https://developers.google.com/workspace/add-ons):
.google.apps.card.v1.Action auto_complete_action = 8;- Specified by:
getAutoCompleteActionOrBuilderin interfaceTextInputOrBuilder
-
getPlaceholderText
public java.lang.String getPlaceholderText()
Text that appears in the text input field when the field is empty. Use this text to prompt users to enter a value. For example, `Enter a number from 0 to 100`. [Google Chat apps](https://developers.google.com/workspace/chat):
string placeholder_text = 12;- Specified by:
getPlaceholderTextin interfaceTextInputOrBuilder- Returns:
- The placeholderText.
-
getPlaceholderTextBytes
public com.google.protobuf.ByteString getPlaceholderTextBytes()
Text that appears in the text input field when the field is empty. Use this text to prompt users to enter a value. For example, `Enter a number from 0 to 100`. [Google Chat apps](https://developers.google.com/workspace/chat):
string placeholder_text = 12;- Specified by:
getPlaceholderTextBytesin interfaceTextInputOrBuilder- Returns:
- The bytes for placeholderText.
-
setPlaceholderText
public TextInput.Builder setPlaceholderText(java.lang.String value)
Text that appears in the text input field when the field is empty. Use this text to prompt users to enter a value. For example, `Enter a number from 0 to 100`. [Google Chat apps](https://developers.google.com/workspace/chat):
string placeholder_text = 12;- Parameters:
value- The placeholderText to set.- Returns:
- This builder for chaining.
-
clearPlaceholderText
public TextInput.Builder clearPlaceholderText()
Text that appears in the text input field when the field is empty. Use this text to prompt users to enter a value. For example, `Enter a number from 0 to 100`. [Google Chat apps](https://developers.google.com/workspace/chat):
string placeholder_text = 12;- Returns:
- This builder for chaining.
-
setPlaceholderTextBytes
public TextInput.Builder setPlaceholderTextBytes(com.google.protobuf.ByteString value)
Text that appears in the text input field when the field is empty. Use this text to prompt users to enter a value. For example, `Enter a number from 0 to 100`. [Google Chat apps](https://developers.google.com/workspace/chat):
string placeholder_text = 12;- Parameters:
value- The bytes for placeholderText to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final TextInput.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TextInput.Builder>
-
mergeUnknownFields
public final TextInput.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TextInput.Builder>
-
-