public sealed class UsageRule : Protobuf.IMessage<UsageRule>, Protobuf.IBufferMessage
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.
usage:
rules:
selector: "*"
allow_unregistered_calls: true
Example of a method that wants to allow unregistered calls.
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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["The `UsageRule` class allows configuration of unregistered calls for a service, which are calls that lack consumer project identity, such as those without an API key."],["By default, API methods do not permit unregistered calls, but `UsageRule` can be used to allow or disallow them on a service-wide or method-specific basis."],["The `AllowUnregisteredCalls` property determines if unregistered calls are permitted for a specific method, and can be configured using the \"selector\" field."],["The `SkipServiceControl` property can bypass service control checks, meaning features like quota and billing will not apply to methods using this configuration."],["The `UsageRule` class has methods to handle operations like cloning, comparison, merging, reading, writing and provides descriptors, parsers and field information."]]],[]]