public sealed class UsageRule : IMessage<UsageRule>, IEquatable<UsageRule>, IDeepCloneable<UsageRule>, IBufferMessage, IMessage
Usage configuration rules for the service.
NOTE: Under development.
Use this rule to configure unregistered calls for the service. Unregistered
calls are calls that do not contain consumer project identity.
(Example: calls that do not contain an API key).
By default, API methods do not allow unregistered calls, and each method call
must be identified by a consumer project identity. Use this rule to
allow/disallow unregistered calls.
Example of an API that wants to allow unregistered calls for entire service.
If true, the selected method should skip service control and the control
plane features, such as quota and billing, will not be available.
This flag is used by Google Cloud Endpoints to bypass checks for internal
methods, such as service health check methods.
[[["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-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eUsageRule\u003c/code\u003e class allows configuration of unregistered calls for a service, which are calls that lack consumer project identity, such as those without an API key.\u003c/p\u003e\n"],["\u003cp\u003eBy default, API methods require consumer project identification, but \u003ccode\u003eUsageRule\u003c/code\u003e can be used to either allow or disallow these unregistered calls.\u003c/p\u003e\n"],["\u003cp\u003eYou can configure \u003ccode\u003eUsageRule\u003c/code\u003e to apply to an entire service by setting the selector to \u003ccode\u003e"*"\u003c/code\u003e, or to a specific method like \u003ccode\u003e"google.example.library.v1.LibraryService.CreateBook"\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUsageRule\u003c/code\u003e class also features a \u003ccode\u003eSkipServiceControl\u003c/code\u003e property that, if set to true, bypasses service control features like quota and billing for the selected methods, primarily for internal operations.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eUsageRule\u003c/code\u003e is 2.15.0, with previous versions including 2.10.0 and 2.2.0 available.\u003c/p\u003e\n"]]],[],null,[]]