syntax = "proto3";

package com.wixpress.appservice.api.upstream.com.wixpress.comm.channels.entities.v2.commons.upstream.wix.common;

option java_multiple_files = true;
option java_package = "com.wixpress.appservice.api.upstream.com.wixpress.comm.channels.entities.v2.commons.upstream.wix.common";


import "google/protobuf/wrappers.proto";
import "google/protobuf/timestamp.proto";

import "wix/api/validations.proto";
import "wix/api/annotations.proto";

message Image {
    option (.wix.api.decomposite_of) = "com.wixpress.comm.channels.entities.v2.commons.upstream.wix.common.Image";
  option (.wix.api.decomposition_minimum_fields) = {
    field: "id"
    field: "url"
  };

  // WixMedia image ID.
  google.protobuf.StringValue id = 1 [(.wix.api.maxLength) = 2000];
  // Image URL.
  google.protobuf.StringValue url = 2 [(.wix.api.format) = WEB_URL, (.wix.api.readOnly) = true];
}