Class DateTimePicker

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableMessage<com.google.protobuf.GeneratedMessageV3>
com.google.protobuf.GeneratedMessageV3
com.google.apps.card.v1.DateTimePicker
All Implemented Interfaces:
DateTimePickerOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class DateTimePicker extends com.google.protobuf.GeneratedMessageV3 implements DateTimePickerOrBuilder
 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](https://developers.google.com/workspace/chat/design-interactive-card-dialog#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](https://developers.google.com/workspace/extend):
 
Protobuf type google.apps.card.v1.DateTimePicker
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Lets users input a date, a time, or both a date and a time.
    static enum 
    The format for the date and time in the `DateTimePicker` widget.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage

    com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionSerializer, com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWriter

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    The text that prompts users to input a date, a time, or a date and time.
    com.google.protobuf.ByteString
    The text that prompts users to input a date, a time, or a date and time.
    The name by which the `DateTimePicker` is identified in a form input event.
    com.google.protobuf.ByteString
    The name by which the `DateTimePicker` is identified in a form input event.
    Triggered when the user clicks **Save** or **Clear** from the `DateTimePicker` interface.
    Triggered when the user clicks **Save** or **Clear** from the `DateTimePicker` interface.
    com.google.protobuf.Parser<DateTimePicker>
     
    int
     
    int
    The number representing the time zone offset from UTC, in minutes.
    Whether the widget supports inputting a date, a time, or the date and time.
    int
    Whether the widget supports inputting a date, a time, or the date and time.
    long
    The default value displayed in the widget, in milliseconds since [Unix epoch time](https://en.wikipedia.org/wiki/Unix_time).
    int
     
    boolean
    Triggered when the user clicks **Save** or **Clear** from the `DateTimePicker` interface.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<DateTimePicker>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType

    Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage

    extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, newExtensionSerializer, newExtensionWriter, newMessageSetExtensionSerializer, newMessageSetExtensionWriter

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getDescriptorForType, getOneofFieldDescriptor, getUnknownFields, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • LABEL_FIELD_NUMBER

      public static final int LABEL_FIELD_NUMBER
      See Also:
    • TYPE_FIELD_NUMBER

      public static final int TYPE_FIELD_NUMBER
      See Also:
    • VALUE_MS_EPOCH_FIELD_NUMBER

      public static final int VALUE_MS_EPOCH_FIELD_NUMBER
      See Also:
    • TIMEZONE_OFFSET_DATE_FIELD_NUMBER

      public static final int TIMEZONE_OFFSET_DATE_FIELD_NUMBER
      See Also:
    • ON_CHANGE_ACTION_FIELD_NUMBER

      public static final int ON_CHANGE_ACTION_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Overrides:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getName

      public String getName()
       The name by which the `DateTimePicker` 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:
      getName in interface DateTimePickerOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name by which the `DateTimePicker` 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:
      getNameBytes in interface DateTimePickerOrBuilder
      Returns:
      The bytes for name.
    • getLabel

      public String getLabel()
       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`.
       
      string label = 2;
      Specified by:
      getLabel in interface DateTimePickerOrBuilder
      Returns:
      The label.
    • getLabelBytes

      public com.google.protobuf.ByteString getLabelBytes()
       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`.
       
      string label = 2;
      Specified by:
      getLabelBytes in interface DateTimePickerOrBuilder
      Returns:
      The bytes for label.
    • getTypeValue

      public int getTypeValue()
       Whether the widget supports inputting a date, a time, or the date and time.
       
      .google.apps.card.v1.DateTimePicker.DateTimePickerType type = 3;
      Specified by:
      getTypeValue in interface DateTimePickerOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • getType

       Whether the widget supports inputting a date, a time, or the date and time.
       
      .google.apps.card.v1.DateTimePicker.DateTimePickerType type = 3;
      Specified by:
      getType in interface DateTimePickerOrBuilder
      Returns:
      The type.
    • getValueMsEpoch

      public long getValueMsEpoch()
       The default value displayed in the widget, in milliseconds since [Unix
       epoch time](https://en.wikipedia.org/wiki/Unix_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`).
       
      int64 value_ms_epoch = 4;
      Specified by:
      getValueMsEpoch in interface DateTimePickerOrBuilder
      Returns:
      The valueMsEpoch.
    • getTimezoneOffsetDate

      public int getTimezoneOffsetDate()
       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.
       
      int32 timezone_offset_date = 5;
      Specified by:
      getTimezoneOffsetDate in interface DateTimePickerOrBuilder
      Returns:
      The timezoneOffsetDate.
    • hasOnChangeAction

      public boolean hasOnChangeAction()
       Triggered when the user clicks **Save** or **Clear** from the
       `DateTimePicker` interface.
       
      .google.apps.card.v1.Action on_change_action = 6;
      Specified by:
      hasOnChangeAction in interface DateTimePickerOrBuilder
      Returns:
      Whether the onChangeAction field is set.
    • getOnChangeAction

      public Action getOnChangeAction()
       Triggered when the user clicks **Save** or **Clear** from the
       `DateTimePicker` interface.
       
      .google.apps.card.v1.Action on_change_action = 6;
      Specified by:
      getOnChangeAction in interface DateTimePickerOrBuilder
      Returns:
      The onChangeAction.
    • getOnChangeActionOrBuilder

      public ActionOrBuilder getOnChangeActionOrBuilder()
       Triggered when the user clicks **Save** or **Clear** from the
       `DateTimePicker` interface.
       
      .google.apps.card.v1.Action on_change_action = 6;
      Specified by:
      getOnChangeActionOrBuilder in interface DateTimePickerOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableMessage<com.google.protobuf.GeneratedMessageV3>
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static DateTimePicker parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DateTimePicker parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DateTimePicker parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DateTimePicker parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DateTimePicker parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DateTimePicker parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DateTimePicker parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DateTimePicker parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DateTimePicker parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DateTimePicker parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DateTimePicker parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DateTimePicker parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public DateTimePicker.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static DateTimePicker.Builder newBuilder()
    • newBuilder

      public static DateTimePicker.Builder newBuilder(DateTimePicker prototype)
    • toBuilder

      public DateTimePicker.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected DateTimePicker.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static DateTimePicker getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DateTimePicker> parser()
    • getParserForType

      public com.google.protobuf.Parser<DateTimePicker> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public DateTimePicker getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder