public sealed class AuthenticationRule : IMessage<AuthenticationRule>, IEquatable<AuthenticationRule>, IDeepCloneable<AuthenticationRule>, IBufferMessage, IMessage
Authentication rules for the service.
By default, if a method has any authentication requirements, every request
must include a valid credential matching one of the requirements.
It's an error to include more than one kind of credential in a single
request.
If a method doesn't have any auth requirements, request credentials will be
ignored.
[[["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-06-03 UTC."],[[["`AuthenticationRule` is a class used to define authentication requirements for a service's methods, with each method needing a valid credential if authentication is required."],["The `AuthenticationRule` class implements interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, providing functionalities like deep cloning and message merging."],["This class has several properties including `AllowWithoutCredential`, `Oauth`, `Requirements`, and `Selector`, which determine the authentication behavior, OAuth requirements, additional provider needs, and method selection."],["Key fields associated with `AuthenticationRule` include `AllowWithoutCredentialFieldNumber`, `OauthFieldNumber`, `RequirementsFieldNumber`, and `SelectorFieldNumber`, each corresponding to specific settings or requirements."],["Methods of the `AuthenticationRule` class allow for actions such as calculating message size, creating clones, comparing instances, merging messages, and handling input/output streams for protocol buffer data."]]],[]]