Class: Google::Apis::ChatV1::Inputs

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb

Overview

Types of data inputs for widgets. Users enter data with these inputs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Inputs

Returns a new instance of Inputs.



2513
2514
2515
# File 'lib/google/apis/chat_v1/classes.rb', line 2513

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#date_inputGoogle::Apis::ChatV1::DateInput

Date input values. Not supported by Chat apps. Corresponds to the JSON property dateInput



2494
2495
2496
# File 'lib/google/apis/chat_v1/classes.rb', line 2494

def date_input
  @date_input
end

#date_time_inputGoogle::Apis::ChatV1::DateTimeInput

Date and time input values. Not supported by Chat apps. Corresponds to the JSON property dateTimeInput



2499
2500
2501
# File 'lib/google/apis/chat_v1/classes.rb', line 2499

def date_time_input
  @date_time_input
end

#string_inputsGoogle::Apis::ChatV1::StringInputs

Input parameter for regular widgets. For single-valued widgets, it is a single value list. For multi-valued widgets, such as checkbox, all the values are presented. Corresponds to the JSON property stringInputs



2506
2507
2508
# File 'lib/google/apis/chat_v1/classes.rb', line 2506

def string_inputs
  @string_inputs
end

#time_inputGoogle::Apis::ChatV1::TimeInput

Time input values. Not supported by Chat apps. Corresponds to the JSON property timeInput



2511
2512
2513
# File 'lib/google/apis/chat_v1/classes.rb', line 2511

def time_input
  @time_input
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2518
2519
2520
2521
2522
2523
# File 'lib/google/apis/chat_v1/classes.rb', line 2518

def update!(**args)
  @date_input = args[:date_input] if args.key?(:date_input)
  @date_time_input = args[:date_time_input] if args.key?(:date_time_input)
  @string_inputs = args[:string_inputs] if args.key?(:string_inputs)
  @time_input = args[:time_input] if args.key?(:time_input)
end