// flynt-disable field-lower-snake-case
// flynt-disable missing-deprecated-field-annotation
// flynt-disable missing-string-validations

syntax = "proto3";

package wix.rich_content.v1;

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

message FileData {
  message PDFSettings {
    enum ViewMode {
      NONE = 0; // No PDF view
      FULL = 1; // Full PDF view
      MINI = 2; // Mini PDF view
    }
    /* PDF view mode. One of the following:
     * `NONE` : The PDF isn't displayed.
     * `FULL` : A full page view of the PDF is displayed.
     * `MINI` : A mini view of the PDF is displayed.
    */
    ViewMode view_mode = 1;
    google.protobuf.BoolValue disable_download = 2; // Sets whether the PDF download button is disabled. Defaults to `false`.
    google.protobuf.BoolValue disable_print = 3; // Sets whether the PDF print button is disabled. Defaults to `false`.
  }

  PluginContainerData container_data = 1; // Styling for the file's container.
  FileSource src = 2; // The source for the file's data.
  google.protobuf.StringValue name = 3; // File name.
  google.protobuf.StringValue type = 4; // File type.
  google.protobuf.Int32Value size = 5 [deprecated = true]; // Use `sizeInKb` instead.
  PDFSettings pdf_settings = 6; // Settings for PDF files.
  google.protobuf.StringValue mime_type = 7; // File MIME type.
  google.protobuf.StringValue path = 8; // File path.
  google.protobuf.StringValue sizeInKb = 9; // File size in KB.
}
