Class: Google::Apis::CloudsearchV1::DateTimePicker

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DateTimePicker

Returns a new instance of DateTimePicker.



7429
7430
7431
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7429

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

Instance Attribute Details

#labelString

The label for the field, which is displayed to the user. Corresponds to the JSON property label

Returns:

  • (String)


7392
7393
7394
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7392

def label
  @label
end

#nameString

The name of the text field which is used in FormInput, and uniquely identifies this input. Corresponds to the JSON property name

Returns:

  • (String)


7398
7399
7400
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7398

def name
  @name
end

#on_changeGoogle::Apis::CloudsearchV1::FormAction

Triggered when the user clicks on the Save, or Clear button from the date / time picker dialog. Will only be triggered if the value changed as a result of the Save / Clear operation. Corresponds to the JSON property onChange



7405
7406
7407
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7405

def on_change
  @on_change
end

#timezone_offset_dateFixnum

The number representing the time-zone offset from UTC, in minutes. If set, the value_ms_epoch will be displayed in the specified time zone. If not set, it will use the user's timezone setting in client side. Corresponds to the JSON property timezoneOffsetDate

Returns:

  • (Fixnum)


7412
7413
7414
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7412

def timezone_offset_date
  @timezone_offset_date
end

#typeString

The type of the DateTimePicker. Corresponds to the JSON property type

Returns:

  • (String)


7417
7418
7419
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7417

def type
  @type
end

#value_ms_epochFixnum

The value to display which can be the default value before user input or previous user input. It is represented in milliseconds (Epoch time). - For DATE_AND_TIME type, the full epoch value is used. - For DATE_ONLY type, only date of the epoch time is used. - For TIME_ONLY type, only time of the epoch time is used. For example, you can set epoch time to 3 * 60 * 60 * 1000 to represent 3am. Corresponds to the JSON property valueMsEpoch

Returns:

  • (Fixnum)


7427
7428
7429
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7427

def value_ms_epoch
  @value_ms_epoch
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7434
7435
7436
7437
7438
7439
7440
7441
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7434

def update!(**args)
  @label = args[:label] if args.key?(:label)
  @name = args[:name] if args.key?(:name)
  @on_change = args[:on_change] if args.key?(:on_change)
  @timezone_offset_date = args[:timezone_offset_date] if args.key?(:timezone_offset_date)
  @type = args[:type] if args.key?(:type)
  @value_ms_epoch = args[:value_ms_epoch] if args.key?(:value_ms_epoch)
end