// flynt-disable boolean-field-name-prefix
// flynt-disable missing-deprecated-field-annotation
// flynt-disable missing-string-validations

syntax = "proto3";

package wix.rich_content.v1;

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

message HTMLData {

  enum Source {
    HTML = 0;
    ADSENSE = 1;
    AI = 2;
  }

  PluginContainerData container_data = 1; //Styling for the HTML node's container. Height property is irrelevant for HTML embeds when autoHeight is set to `true`.
  oneof data {
    string url = 2; // The URL for the HTML code for the node.
    string html = 3; // The HTML code for the node.
    google.protobuf.BoolValue is_adsense = 4 [deprecated=true]; // Whether this is an AdSense element. Use `source` instead.
  }

  Source source = 5; // The type of HTML code.

  google.protobuf.BoolValue auto_height = 6; // If container height is aligned with its content height. Defaults to `true`.
}
