syntax = "proto3";

package com.wix.media.site_media.v1;

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

message OtherMedia {
  option (.wix.api.decomposition_minimum_fields) = {
    field: "id"
  };
  // WixMedia ID. for use with Site Media APIs only
  string id = 1 [(.wix.api.maxLength) = 200];
  // The media type of the file: 'package', 'raw'
  google.protobuf.StringValue internal_media_type = 2 [(.wix.api.readOnly) = true, (.wix.api.maxLength) = 100];
  // size in bytes. Optional.
  google.protobuf.StringValue size_in_bytes = 3 [(.wix.api.readOnly) = true, (.wix.api.format) = DECIMAL_VALUE, (.wix.api.decimalValue) = { gte: "0", maxScale: 0 }];
  // The file URL.
  string url = 4 [(.wix.api.format) = WEB_URL];

}