syntax = "proto3";

package com.wixpress.appservice.api.upstream.wix.forms.v4.components;
option java_package = "com.wixpress.appservice.api.upstream.wix.forms.v4.components";

import "google/protobuf/wrappers.proto";
import "wix/api/validations.proto";
import "wix/api/annotations.proto";
import "wix/rich_content/v1/rich_content.proto";

message TimeInput {
    option (.wix.api.decomposite_of) = "wix.forms.v4.components.TimeInput";
  // Label of the field. Displayed text for the date/time input.
  google.protobuf.StringValue label = 1 [(.wix.api.maxLength) = 350, (.wix.api.translatable) = {
    name: "Time Input Label"
    hidden: false
    grouping: "formFields"
    type: SHORT_TEXT
  }];

  // Description of the field. Additional information about the date/time input.
  .wix.rich_content.v1.RichContent description = 2 [(.wix.api.translatable) = {
    name: "Time Input Description"
    hidden: false
    grouping: "formFields"
    type: RICH_CONTENT_EDITOR
  }];

  // Flag identifying whether to show or hide the label.
  // Default: true
  google.protobuf.BoolValue show_label = 3;

  // Flag identifying whether to show or hide the placeholder.
  // Default: true
  google.protobuf.BoolValue show_placeholder = 4;

  // Flag indicating whether to use the 24-hour time format.
  // Default: false.
  bool use_24_hour_format = 5;

  // Default value for the time input.
  google.protobuf.StringValue default = 6 [(.wix.api.format) = LOCAL_TIME];
}
