Class AuthenticationRule
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.
Inheritance
System.Object
AuthenticationRule
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class AuthenticationRule : IMessage<AuthenticationRule>, IMessage, IEquatable<AuthenticationRule>, IDeepCloneable<AuthenticationRule>
Constructors
AuthenticationRule()
Declaration
public AuthenticationRule()
AuthenticationRule(AuthenticationRule)
Declaration
public AuthenticationRule(AuthenticationRule other)
Parameters
Fields
AllowWithoutCredentialFieldNumber
Field number for the "allow_without_credential" field.
Declaration
public const int AllowWithoutCredentialFieldNumber = 5
Field Value
Type |
Description |
System.Int32 |
|
OauthFieldNumber
Field number for the "oauth" field.
Declaration
public const int OauthFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
RequirementsFieldNumber
Field number for the "requirements" field.
Declaration
public const int RequirementsFieldNumber = 7
Field Value
Type |
Description |
System.Int32 |
|
SelectorFieldNumber
Field number for the "selector" field.
Declaration
public const int SelectorFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
Properties
AllowWithoutCredential
If true, the service accepts API keys without any other credential.
Declaration
public bool AllowWithoutCredential { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Oauth
The requirements for OAuth credentials.
Declaration
public OAuthRequirements Oauth { get; set; }
Property Value
Parser
Declaration
public static MessageParser<AuthenticationRule> Parser { get; }
Property Value
Requirements
Requirements for additional authentication providers.
Declaration
public RepeatedField<AuthRequirement> Requirements { get; }
Property Value
Selector
Selects the methods to which this rule applies.
Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
Declaration
public string Selector { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
Clone()
Declaration
public AuthenticationRule Clone()
Returns
Implements
Equals(AuthenticationRule)
Declaration
public bool Equals(AuthenticationRule other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>.Equals(T)
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
MergeFrom(AuthenticationRule)
Declaration
public void MergeFrom(AuthenticationRule other)
Parameters
Implements
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Implements
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
WriteTo(CodedOutputStream)
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Implements
Explicit Interface Implementations
IMessage.Descriptor
Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Implements