syntax = "proto3";

package com.wix.media.site_media.v1;

import "google/protobuf/wrappers.proto";
import "wix/api/validations.proto";
import "com/wix/media/media_quota_api.proto";


message ServiceError {
  // Error codes are groups of related errors
  // The error code can be used to provide additional details to wix support while debugging service errors
  google.protobuf.StringValue internal_code = 1 [(.wix.api.maxLength) = 200];
  // Debugging information, http status code returned from wix media internal API
  google.protobuf.Int32Value internal_http_status_code = 2;

  // Optional Debugging information, error key will represent the error "family" returned from wix media internal API
  google.protobuf.StringValue internal_key = 3 [(.wix.api.maxLength) = 200];

}

message UnsupportedRequestValueError {
  // Optional A list of allowed values
  repeated string allowed_values = 1  [(.wix.api.maxSize) = 100, (.wix.api.maxLength) = 200];
  // The unsupported value send in the request
  string request_value = 2 [ (.wix.api.maxLength) = 200];
}

message SiteQuotaExceededError {
  // Error codes are groups of related errors
  // The error code can be used to provide additional details to wix support while debugging service errors
  google.protobuf.StringValue internal_code = 1 [(.wix.api.maxLength) = 200];
  // Debugging information, http status code returned from wix media internal API
  google.protobuf.Int32Value internal_http_status_code = 2;

  // Optional Debugging information, error key will represent the error "family" returned from wix media internal API
  google.protobuf.StringValue internal_key = 3 [(.wix.api.maxLength) = 200];

  // The quota details
  .wix.media.quota.v1.TotalQuota quota = 4 ;
}