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<TextInput.Builder>
com.google.apps.card.v1.TextInput.Builder
- All Implemented Interfaces:
TextInputOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TextInput
public static final class TextInput.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TextInput.Builder>
implements TextInputOrBuilder
A field in which users can enter text. Supports suggestions and on-change actions. Supports form submission validation. When `Action.all_widgets_are_required` is set to `true` or this widget is specified in `Action.required_widgets`, the submission action is blocked unless a value is entered. 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 type
google.apps.card.v1.TextInput-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Text that appears below the text input field meant to assist users by prompting them to enter a certain value.Suggested values that users can enter.The text that appears above the text input field in the user interface.The name by which the text input is identified in a form input event.What to do when a change occurs in the text input field.Text that appears in the text input field when the field is empty.How a text input field appears in the user interface.Specify the input format validation necessary for this text field.The value entered by a user, returned as part of a form input event.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorText that appears below the text input field meant to assist users by prompting them to enter a certain value.com.google.protobuf.ByteStringText that appears below the text input field meant to assist users by prompting them to enter a certain value.Suggested values that users can enter.Suggested values that users can enter.Suggested values that users can enter.getLabel()The text that appears above the text input field in the user interface.com.google.protobuf.ByteStringThe text that appears above the text input field in the user interface.getName()The name by which the text input is identified in a form input event.com.google.protobuf.ByteStringThe name by which the text input is identified in a form input event.What to do when a change occurs in the text input field.What to do when a change occurs in the text input field.What to do when a change occurs in the text input field.Text that appears in the text input field when the field is empty.com.google.protobuf.ByteStringText that appears in the text input field when the field is empty.getType()How a text input field appears in the user interface.intHow a text input field appears in the user interface.Specify the input format validation necessary for this text field.Specify the input format validation necessary for this text field.Specify the input format validation necessary for this text field.getValue()The value entered by a user, returned as part of a form input event.com.google.protobuf.ByteStringThe value entered by a user, returned as part of a form input event.booleanOptional.booleanSuggested values that users can enter.booleanWhat to do when a change occurs in the text input field.booleanSpecify the input format validation necessary for this text field.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAutoCompleteAction(Action value) Optional.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Suggested values that users can enter.mergeOnChangeAction(Action value) What to do when a change occurs in the text input field.mergeValidation(Validation value) Specify the input format validation necessary for this text field.setAutoCompleteAction(Action value) Optional.setAutoCompleteAction(Action.Builder builderForValue) Optional.setHintText(String value) Text that appears below the text input field meant to assist users by prompting them to enter a certain value.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.setInitialSuggestions(Suggestions value) Suggested values that users can enter.setInitialSuggestions(Suggestions.Builder builderForValue) Suggested values that users can enter.The text that appears above the text input field in the user interface.setLabelBytes(com.google.protobuf.ByteString value) The text that appears above the text input field in the user interface.The name by which the text input is identified in a form input event.setNameBytes(com.google.protobuf.ByteString value) The name by which the text input is identified in a form input event.setOnChangeAction(Action value) What to do when a change occurs in the text input field.setOnChangeAction(Action.Builder builderForValue) What to do when a change occurs in the text input field.setPlaceholderText(String value) Text that appears in the text input field when the field is empty.setPlaceholderTextBytes(com.google.protobuf.ByteString value) Text that appears in the text input field when the field is empty.setType(TextInput.Type value) How a text input field appears in the user interface.setTypeValue(int value) How a text input field appears in the user interface.setValidation(Validation value) Specify the input format validation necessary for this text field.setValidation(Validation.Builder builderForValue) Specify the input format validation necessary for this text field.The value entered by a user, returned as part of a form input event.setValueBytes(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.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TextInput.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TextInput.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TextInput.Builder>
-
mergeFrom
public TextInput.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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:
IOException
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-
hasValidation
public boolean hasValidation()Specify the input format validation necessary for this text field. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Validation validation = 11;- Specified by:
hasValidationin interfaceTextInputOrBuilder- Returns:
- Whether the validation field is set.
-
getValidation
Specify the input format validation necessary for this text field. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Validation validation = 11;- Specified by:
getValidationin interfaceTextInputOrBuilder- Returns:
- The validation.
-
setValidation
Specify the input format validation necessary for this text field. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Validation validation = 11; -
setValidation
Specify the input format validation necessary for this text field. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Validation validation = 11; -
mergeValidation
Specify the input format validation necessary for this text field. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Validation validation = 11; -
clearValidation
Specify the input format validation necessary for this text field. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Validation validation = 11; -
getValidationBuilder
Specify the input format validation necessary for this text field. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Validation validation = 11; -
getValidationOrBuilder
Specify the input format validation necessary for this text field. [Google Workspace add-ons and Chat apps](https://developers.google.com/workspace/extend):
.google.apps.card.v1.Validation validation = 11;- Specified by:
getValidationOrBuilderin interfaceTextInputOrBuilder
-
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
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
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
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.
-