Interface DateTimePickerOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    DateTimePicker, DateTimePicker.Builder

    public interface DateTimePickerOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getLabel()
      The text that prompts users to input a date, a time, or a date and time.
      com.google.protobuf.ByteString getLabelBytes()
      The text that prompts users to input a date, a time, or a date and time.
      java.lang.String getName()
      The name by which the `DateTimePicker` is identified in a form input event.
      com.google.protobuf.ByteString getNameBytes()
      The name by which the `DateTimePicker` is identified in a form input event.
      Action getOnChangeAction()
      Triggered when the user clicks **Save** or **Clear** from the `DateTimePicker` interface.
      ActionOrBuilder getOnChangeActionOrBuilder()
      Triggered when the user clicks **Save** or **Clear** from the `DateTimePicker` interface.
      int getTimezoneOffsetDate()
      The number representing the time zone offset from UTC, in minutes.
      DateTimePicker.DateTimePickerType getType()
      Whether the widget supports inputting a date, a time, or the date and time.
      int getTypeValue()
      Whether the widget supports inputting a date, a time, or the date and time.
      long getValueMsEpoch()
      The default value displayed in the widget, in milliseconds since [Unix epoch time](https://en.wikipedia.org/wiki/Unix_time).
      boolean hasOnChangeAction()
      Triggered when the user clicks **Save** or **Clear** from the `DateTimePicker` interface.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getName

        java.lang.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;
        Returns:
        The name.
      • getNameBytes

        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;
        Returns:
        The bytes for name.
      • getLabel

        java.lang.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;
        Returns:
        The label.
      • getLabelBytes

        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;
        Returns:
        The bytes for label.
      • getTypeValue

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

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

        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;
        Returns:
        The valueMsEpoch.
      • getTimezoneOffsetDate

        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;
        Returns:
        The timezoneOffsetDate.
      • hasOnChangeAction

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

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

        ActionOrBuilder getOnChangeActionOrBuilder()
         Triggered when the user clicks **Save** or **Clear** from the
         `DateTimePicker` interface.
         
        .google.apps.card.v1.Action on_change_action = 6;