Class L7RuleTarget
- Namespace
- Openshell.V1
- Assembly
- OpenShell.Sdk.dll
Exact endpoint and complete authorization scope affected by an L7 append. All ports and binaries must match the stored target; omitted scope is invalid.
public sealed class L7RuleTarget : IMessage<L7RuleTarget>, IEquatable<L7RuleTarget>, IDeepCloneable<L7RuleTarget>, IBufferMessage, IMessage
- Inheritance
-
L7RuleTarget
- Implements
-
IMessage<L7RuleTarget>IDeepCloneable<L7RuleTarget>IBufferMessageIMessage
- Inherited Members
Constructors
L7RuleTarget()
public L7RuleTarget()
L7RuleTarget(L7RuleTarget)
public L7RuleTarget(L7RuleTarget other)
Parameters
otherL7RuleTarget
Fields
AnyBinaryFieldNumber
Field number for the "any_binary" field.
public const int AnyBinaryFieldNumber = 6
Field Value
BinariesFieldNumber
Field number for the "binaries" field.
public const int BinariesFieldNumber = 5
Field Value
HostFieldNumber
Field number for the "host" field.
public const int HostFieldNumber = 2
Field Value
PathFieldNumber
Field number for the "path" field.
public const int PathFieldNumber = 4
Field Value
PortsFieldNumber
Field number for the "ports" field.
public const int PortsFieldNumber = 3
Field Value
RuleNameFieldNumber
Field number for the "rule_name" field.
public const int RuleNameFieldNumber = 1
Field Value
Properties
AnyBinary
public bool AnyBinary { get; set; }
Property Value
Binaries
Declare either a nonempty binary list or any_binary, never both.
public RepeatedField<NetworkBinary> Binaries { get; }
Property Value
- RepeatedField<NetworkBinary>
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
HasPath
Gets whether the "path" field is set
public bool HasPath { get; }
Property Value
Host
public string Host { get; set; }
Property Value
Parser
public static MessageParser<L7RuleTarget> Parser { get; }
Property Value
- MessageParser<L7RuleTarget>
Path
An absent path requires a unique endpoint. An empty path selects an endpoint without a path selector. This is not the appended request path.
public string Path { get; set; }
Property Value
Ports
public RepeatedField<uint> Ports { get; }
Property Value
- RepeatedField<uint>
RuleName
public string RuleName { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
ClearPath()
Clears the value of the "path" field
public void ClearPath()
Clone()
Creates a deep clone of this object.
public L7RuleTarget Clone()
Returns
- L7RuleTarget
A deep clone of this object.
Equals(L7RuleTarget)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(L7RuleTarget other)
Parameters
otherL7RuleTargetAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(L7RuleTarget)
Merges the given message into this one.
public void MergeFrom(L7RuleTarget other)
Parameters
otherL7RuleTarget
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.