The per-user queries per second to allow for this rule.
Element Detail
match
public abstract java.lang.String match
The matching rule that defines this segment. You can define the match in
terms of headers or query parameters.
For example "Referer=.*\.example\.com" will define a match for traffic from
the example.com site. The first matching rule will be used to define the limits
for a particular request.
Default:
""
qps
public abstract int qps
The total queries per second to allow for this rule. The default is unlimited.
Default:
-1
userQps
public abstract int userQps
The per-user queries per second to allow for this rule. The default is unlimited.
Default:
-1
daily
public abstract int daily
The total queries per day to allow for this rule. The default is unlimited.
Default:
-1
analyticsId
public abstract java.lang.String analyticsId
Logs traffic for this rule under a specific analytics project id.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-28 UTC."],[[["\u003cp\u003e\u003ccode\u003e@ApiFrontendLimitRule\u003c/code\u003e is an annotation used to configure API quota frontend limit rules.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ematch\u003c/code\u003e element allows defining matching rules based on headers or query parameters to segment traffic.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eqps\u003c/code\u003e, \u003ccode\u003euserQps\u003c/code\u003e, and \u003ccode\u003edaily\u003c/code\u003e elements define the total queries per second, per-user queries per second, and total queries per day respectively, with unlimited as the default.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eanalyticsId\u003c/code\u003e element is used to log traffic for a specific rule under a designated analytics project ID.\u003c/p\u003e\n"]]],[],null,["# ApiFrontendLimitRule\n\ncom.google.api.server.spi.config\n\nAnnotation Type ApiFrontendLimitRule\n------------------------------------\n\n-\n\n *** ** * ** ***\n\n \u003cbr /\u003e\n\n ```\n @Retention(value=RUNTIME)\n @Target(value=TYPE)\n public @interface ApiFrontendLimitRule\n ``` \nAnnotation for configuration of API quota frontend limit rules. \n-\n -\n\n ### Optional Element Summary\n\n-\n -\n\n ### Element Detail\n\n\n -\n\n #### match\n\n ```\n public abstract java.lang.String match\n ``` \n The matching rule that defines this segment. You can define the match in terms of headers or query parameters. For example \"Referer=.\\*\\\\.example\\\\.com\" will define a match for traffic from the example.com site. The first matching rule will be used to define the limits for a particular request.\n\n Default:\n : \"\"\n\n \u003c!-- --\u003e\n\n -\n\n -\n\n #### qps\n\n ```\n public abstract int qps\n ``` \n The total queries per second to allow for this rule. The default is unlimited.\n\n Default:\n : -1\n\n \u003c!-- --\u003e\n\n -\n\n -\n\n #### userQps\n\n ```\n public abstract int userQps\n ``` \n The per-user queries per second to allow for this rule. The default is unlimited.\n\n Default:\n : -1\n\n \u003c!-- --\u003e\n\n -\n\n -\n\n #### daily\n\n ```\n public abstract int daily\n ``` \n The total queries per day to allow for this rule. The default is unlimited.\n\n Default:\n : -1\n\n \u003c!-- --\u003e\n\n -\n\n -\n\n #### analyticsId\n\n ```\n public abstract java.lang.String analyticsId\n ``` \n Logs traffic for this rule under a specific analytics project id.\n\n Default:\n : \"\""]]