Class: Google::Apps::Card::V1::TextInput

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/apps/card/v1/card.rb

Overview

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.

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.

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

Google Workspace add-ons and Chat apps:

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Attribute Details

#auto_complete_action::Google::Apps::Card::V1::Action



1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
# File 'proto_docs/google/apps/card/v1/card.rb', line 1154

class TextInput
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # How a text input field appears in the user interface. For example,
  # whether it's a single line input field, or a multi-line input. If
  # `initialSuggestions` is specified, `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):
  module Type
    # The text input field has a fixed height of one line.
    SINGLE_LINE = 0

    # The text input field has a fixed height of multiple lines.
    MULTIPLE_LINE = 1
  end
end

#hint_text::String



1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
# File 'proto_docs/google/apps/card/v1/card.rb', line 1154

class TextInput
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # How a text input field appears in the user interface. For example,
  # whether it's a single line input field, or a multi-line input. If
  # `initialSuggestions` is specified, `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):
  module Type
    # The text input field has a fixed height of one line.
    SINGLE_LINE = 0

    # The text input field has a fixed height of multiple lines.
    MULTIPLE_LINE = 1
  end
end

#initial_suggestions::Google::Apps::Card::V1::Suggestions



1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
# File 'proto_docs/google/apps/card/v1/card.rb', line 1154

class TextInput
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # How a text input field appears in the user interface. For example,
  # whether it's a single line input field, or a multi-line input. If
  # `initialSuggestions` is specified, `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):
  module Type
    # The text input field has a fixed height of one line.
    SINGLE_LINE = 0

    # The text input field has a fixed height of multiple lines.
    MULTIPLE_LINE = 1
  end
end

#label::String



1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
# File 'proto_docs/google/apps/card/v1/card.rb', line 1154

class TextInput
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # How a text input field appears in the user interface. For example,
  # whether it's a single line input field, or a multi-line input. If
  # `initialSuggestions` is specified, `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):
  module Type
    # The text input field has a fixed height of one line.
    SINGLE_LINE = 0

    # The text input field has a fixed height of multiple lines.
    MULTIPLE_LINE = 1
  end
end

#name::String



1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
# File 'proto_docs/google/apps/card/v1/card.rb', line 1154

class TextInput
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # How a text input field appears in the user interface. For example,
  # whether it's a single line input field, or a multi-line input. If
  # `initialSuggestions` is specified, `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):
  module Type
    # The text input field has a fixed height of one line.
    SINGLE_LINE = 0

    # The text input field has a fixed height of multiple lines.
    MULTIPLE_LINE = 1
  end
end

#on_change_action::Google::Apps::Card::V1::Action



1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
# File 'proto_docs/google/apps/card/v1/card.rb', line 1154

class TextInput
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # How a text input field appears in the user interface. For example,
  # whether it's a single line input field, or a multi-line input. If
  # `initialSuggestions` is specified, `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):
  module Type
    # The text input field has a fixed height of one line.
    SINGLE_LINE = 0

    # The text input field has a fixed height of multiple lines.
    MULTIPLE_LINE = 1
  end
end

#placeholder_text::String



1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
# File 'proto_docs/google/apps/card/v1/card.rb', line 1154

class TextInput
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # How a text input field appears in the user interface. For example,
  # whether it's a single line input field, or a multi-line input. If
  # `initialSuggestions` is specified, `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):
  module Type
    # The text input field has a fixed height of one line.
    SINGLE_LINE = 0

    # The text input field has a fixed height of multiple lines.
    MULTIPLE_LINE = 1
  end
end

#type::Google::Apps::Card::V1::TextInput::Type



1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
# File 'proto_docs/google/apps/card/v1/card.rb', line 1154

class TextInput
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # How a text input field appears in the user interface. For example,
  # whether it's a single line input field, or a multi-line input. If
  # `initialSuggestions` is specified, `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):
  module Type
    # The text input field has a fixed height of one line.
    SINGLE_LINE = 0

    # The text input field has a fixed height of multiple lines.
    MULTIPLE_LINE = 1
  end
end

#validation::Google::Apps::Card::V1::Validation



1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
# File 'proto_docs/google/apps/card/v1/card.rb', line 1154

class TextInput
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # How a text input field appears in the user interface. For example,
  # whether it's a single line input field, or a multi-line input. If
  # `initialSuggestions` is specified, `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):
  module Type
    # The text input field has a fixed height of one line.
    SINGLE_LINE = 0

    # The text input field has a fixed height of multiple lines.
    MULTIPLE_LINE = 1
  end
end

#value::String



1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
# File 'proto_docs/google/apps/card/v1/card.rb', line 1154

class TextInput
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # How a text input field appears in the user interface. For example,
  # whether it's a single line input field, or a multi-line input. If
  # `initialSuggestions` is specified, `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):
  module Type
    # The text input field has a fixed height of one line.
    SINGLE_LINE = 0

    # The text input field has a fixed height of multiple lines.
    MULTIPLE_LINE = 1
  end
end