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-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eAuthenticationRule\u003c/code\u003e is a class used to define authentication requirements for a service's methods, with each method needing a valid credential if authentication is required.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAuthenticationRule\u003c/code\u003e class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionalities like deep cloning and message merging.\u003c/p\u003e\n"],["\u003cp\u003eThis class has several properties including \u003ccode\u003eAllowWithoutCredential\u003c/code\u003e, \u003ccode\u003eOauth\u003c/code\u003e, \u003ccode\u003eRequirements\u003c/code\u003e, and \u003ccode\u003eSelector\u003c/code\u003e, which determine the authentication behavior, OAuth requirements, additional provider needs, and method selection.\u003c/p\u003e\n"],["\u003cp\u003eKey fields associated with \u003ccode\u003eAuthenticationRule\u003c/code\u003e include \u003ccode\u003eAllowWithoutCredentialFieldNumber\u003c/code\u003e, \u003ccode\u003eOauthFieldNumber\u003c/code\u003e, \u003ccode\u003eRequirementsFieldNumber\u003c/code\u003e, and \u003ccode\u003eSelectorFieldNumber\u003c/code\u003e, each corresponding to specific settings or requirements.\u003c/p\u003e\n"],["\u003cp\u003eMethods of the \u003ccode\u003eAuthenticationRule\u003c/code\u003e class allow for actions such as calculating message size, creating clones, comparing instances, merging messages, and handling input/output streams for protocol buffer data.\u003c/p\u003e\n"]]],[],null,[]]