DateTimePicker

com.google.apps.card.v1.card.DateTimePicker
See theDateTimePicker companion object
final case class DateTimePicker(name: String, label: String, `type`: DateTimePickerType, valueMsEpoch: Long, timezoneOffsetDate: Int, onChangeAction: Option[Action], unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[DateTimePicker]

Lets users input a date, a time, or both a date and a time. For an example in Google Chat apps, see Let a user pick a date and time.

Users can input text or use the picker to select dates and times. If users input an invalid date or time, the picker shows an error that prompts users to input the information correctly.

Google Workspace Add-ons and Chat apps:

Value parameters

label

The text that prompts users to input a date, a time, or a date and time. For example, if users are scheduling an appointment, use a label such as Appointment date or Appointment date and time.

name

The name by which the DateTimePicker is identified in a form input event. For details about working with form inputs, see Receive form data.

onChangeAction

Triggered when the user clicks Save or Clear from the DateTimePicker interface.

timezoneOffsetDate

The number representing the time zone offset from UTC, in minutes. If set, the value_ms_epoch is displayed in the specified time zone. If unset, the value defaults to the user's time zone setting.

type

Whether the widget supports inputting a date, a time, or the date and time.

valueMsEpoch

The default value displayed in the widget, in milliseconds since Unix epoch time. Specify the value based on the type of picker (DateTimePickerType):

  • DATE_AND_TIME: a calendar date and time in UTC. For example, to represent January 1, 2023 at 12:00 PM UTC, use 1672574400000.
  • DATE_ONLY: a calendar date at 00:00:00 UTC. For example, to represent January 1, 2023, use 1672531200000.
  • TIME_ONLY: a time in UTC. For example, to represent 12:00 PM, use 43200000 (or 12 * 60 * 60 * 1000).

Attributes

Companion
object
Source
DateTimePicker.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Attributes

Source
DateTimePicker.scala
def getField(`__field`: FieldDescriptor): PValue

Attributes

Source
DateTimePicker.scala
def getFieldByNumber(`__fieldNumber`: Int): Any

Attributes

Source
DateTimePicker.scala
override def serializedSize: Int

Attributes

Definition Classes
Source
DateTimePicker.scala

Returns a human-readable ASCII format representation of this message.

Returns a human-readable ASCII format representation of this message.

The original message can be decoded from this format by using fromAscii on the companion object.

Attributes

Returns

human-readable representation of this message.

Source
DateTimePicker.scala

Attributes

Source
DateTimePicker.scala

Attributes

Source
DateTimePicker.scala

Attributes

Source
DateTimePicker.scala
def writeTo(`_output__`: CodedOutputStream): Unit

Serializes the message into the given coded output stream

Serializes the message into the given coded output stream

Attributes

Source
DateTimePicker.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
final def toByteArray: Array[Byte]

Serializes the message and returns a byte array containing its raw bytes

Serializes the message and returns a byte array containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala

Serializes the message and returns a ByteString containing its raw bytes

Serializes the message and returns a ByteString containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def toPMessage: PMessage

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala

Attributes

Inherited from:
Updatable
Source
Lenses.scala

Serializes the message into the given output stream

Serializes the message into the given output stream

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala