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"]],[["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."],[[["`UsageRule` is a class in the `Google.Api` namespace that allows configuration of rules for unregistered calls to a service, providing control over whether such calls are permitted."],["This class can be implemented to configure rules for the entire service or specific methods, like allowing or disallowing unregistered calls with the `allow_unregistered_calls` property."],["The `UsageRule` class can skip service control using the `SkipServiceControl` property."],["The `Selector` property in `UsageRule` determines the methods to which a particular rule applies, using '\\*' to signify all methods."],["The `UsageRule` class has methods to help with cloning, merging and comparing objects of that class."]]],[]]