syntax = "proto3";

package mesh.v1;

option go_package = "atlassian.com/bitbucket/mesh/rpc/v1";
option java_multiple_files = true;
option java_outer_classname = "ThrottleProtos";
option java_package = "com.atlassian.bitbucket.mesh.rpc.v1";

enum RpcThrottledResource {
  RESOURCE_UNSPECIFIED = 0;
  RESOURCE_COMMAND = 5;
  RESOURCE_LFS = 4;
  RESOURCE_MIRROR_PACK = 3;
  //Can be specified explicitly to disable throttling. For example, this can be applied
  //using method_resource to override a service_resource for a specific method.
  RESOURCE_NONE = 6;
  RESOURCE_PACK = 2;
  RESOURCE_REFS = 1;
}
