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 RatingInput {
  option (.wix.api.decomposite_of) = "wix.forms.v4.components.RatingInput";
  // Label of the field
  google.protobuf.StringValue label = 1 [(.wix.api.maxLength) = 350, (.wix.api.translatable) = {
    name: "Rating Input Label"
    hidden: false
    grouping: "formFields"
    type: SHORT_TEXT
  }];
  // Description of the field
  .wix.rich_content.v1.RichContent description = 2 [(.wix.api.translatable) = {
    name: "Rating Input Description"
    hidden: false
    grouping: "formFields"
    type: RICH_CONTENT_EDITOR
  }];
  // Default rating
  //flynt-disable renamed-field-breaking-change
  google.protobuf.Int32Value default_value = 3 [(.wix.api.min) = 1, (.wix.api.max) = 5];
  // Flag identifying to hide label or not
  // Default: true
  google.protobuf.BoolValue show_label = 4;
}
