//flynt-disable renamed-field-breaking-change

syntax = "proto3";

package com.wixpress.appservice.api;

import "wix/api/validations.proto";

message WidgetSize {
     message Height {
          enum HeightMode {
               UNKNOWN = 0;
               AUTO = 1; // Height is calculated by content
               FIXED = 2; // Height is fixed require size in px
          }

          // Height calculation mode
          HeightMode height_mode = 1;
          // Default height in pixels
          int32 default_height = 4 [(wix.api.min) = 0, (wix.api.max) = 9999];

          reserved 2, 3;
     }

     message Width {
          // Boolean to set stretch, will place the widget stretched to the full width of the container
          bool allow_stretch = 1;
          // Default width in pixels
          int32 default_width = 3 [(wix.api.min) = 0, (wix.api.max) = 9999];
          // Boolean to set stretch by default on installation, if true will place the widget stretched to the full width of the container
          bool stretch_by_default = 4;

          reserved 2;
     }

     // define the size of the widget's height
     Height height = 2;
     //define the size of the widget's width
     Width width = 3;
}