syntax = "proto3";

package com.wix.ecommerce.catalog_spi.api.v1;

option java_multiple_files = true;
option java_package = "com.wix.ecommerce.catalog_spi.api.v1";

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

message Image {
    option (.wix.api.decomposite_of) = "wix.common.Image";
    option (.wix.api.decomposition_minimum_fields) = {
        field: "id"
        field: "height"
        field: "width"
    };

    // __Required.__ WixMedia image ID.
    //
    // Given a full image URL of `https://static.wixstatic.com/media/5cc69183e7954e2c9760fa2383870992.jpg`, `media.id` is `5cc69183e7954e2c9760fa2383870992.jpg`.
    string id = 1;
    
    reserved 2;
    
    // __Required.__ Image height.
    int32 height = 3 [(.wix.api.readOnly) = true];
    
    // __Required.__ Image width.
    int32 width = 4 [(.wix.api.readOnly) = true];
    
    // Image alt text.
    google.protobuf.StringValue alt_text = 5;
    
    reserved 6;
    
    // Image filename.
    google.protobuf.StringValue filename = 7 [(.wix.api.readOnly) = true];
}
