syntax = "proto3";

package com.wix.media.site_media.v1;

import "google/protobuf/wrappers.proto";
import "wix/api/validations.proto";
import "wix/api/annotations.proto";
import "com/wix/media/site_media/upstream/wix/common/media.proto";

message AudioV2 {
  option (.wix.api.decomposition_minimum_fields) = {
    field: "id"
  };
  // WixMedia ID.
  string id = 1 [(.wix.api.maxLength) = 200];
  // Audio formats available for this file.
  repeated com.wix.media.site_media.upstream.wix.common.Audio assets = 2 [(.wix.api.maxSize) = 100];

  // Audio bitrate.
  google.protobuf.Int32Value bitrate = 3 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PUBLIC, (.wix.api.min) = 0];

  // Audio format.
  google.protobuf.StringValue format = 4 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PUBLIC, (.wix.api.maxLength) = 100];

  // Audio duration in seconds.
  google.protobuf.Int32Value duration = 5 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PUBLIC, (.wix.api.min) = 0];

  // Audio size in bytes.
  google.protobuf.StringValue size_in_bytes = 6 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PUBLIC, (.wix.api.format) = DECIMAL_VALUE, (.wix.api.decimalValue) = { maxScale: 0 }];

}