Class ContextRule
A context rule provides information about the context for an individual API
element.
Inheritance
System.Object
ContextRule
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 ContextRule : IMessage<ContextRule>, IMessage, IEquatable<ContextRule>, IDeepCloneable<ContextRule>
Constructors
ContextRule()
Declaration
ContextRule(ContextRule)
Declaration
public ContextRule(ContextRule other)
Parameters
Fields
AllowedRequestExtensionsFieldNumber
Field number for the "allowed_request_extensions" field.
Declaration
public const int AllowedRequestExtensionsFieldNumber = 4
Field Value
Type |
Description |
System.Int32 |
|
AllowedResponseExtensionsFieldNumber
Field number for the "allowed_response_extensions" field.
Declaration
public const int AllowedResponseExtensionsFieldNumber = 5
Field Value
Type |
Description |
System.Int32 |
|
ProvidedFieldNumber
Field number for the "provided" field.
Declaration
public const int ProvidedFieldNumber = 3
Field Value
Type |
Description |
System.Int32 |
|
RequestedFieldNumber
Field number for the "requested" field.
Declaration
public const int RequestedFieldNumber = 2
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
AllowedRequestExtensions
A list of full type names or extension IDs of extensions allowed in grpc
side channel from client to backend.
Declaration
public RepeatedField<string> AllowedRequestExtensions { get; }
Property Value
AllowedResponseExtensions
A list of full type names or extension IDs of extensions allowed in grpc
side channel from backend to client.
Declaration
public RepeatedField<string> AllowedResponseExtensions { get; }
Property Value
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Parser
Declaration
public static MessageParser<ContextRule> Parser { get; }
Property Value
Provided
A list of full type names of provided contexts.
Declaration
public RepeatedField<string> Provided { get; }
Property Value
Requested
A list of full type names of requested contexts.
Declaration
public RepeatedField<string> Requested { 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 ContextRule Clone()
Returns
Implements
Equals(ContextRule)
Declaration
public bool Equals(ContextRule 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(ContextRule)
Declaration
public void MergeFrom(ContextRule other)
Parameters
Implements
MergeFrom(CodedInputStream)
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