Class BowireMessageInfo
- Namespace
- Kuestenlogik.Bowire.Models
- Assembly
- Kuestenlogik.Bowire.dll
Describes a protobuf message type with its fields.
public sealed record BowireMessageInfo : IEquatable<BowireMessageInfo>
- Inheritance
-
BowireMessageInfo
- Implements
- Inherited Members
Constructors
BowireMessageInfo(string, string, List<BowireFieldInfo>)
Describes a protobuf message type with its fields.
public BowireMessageInfo(string Name, string FullName, List<BowireFieldInfo> Fields)
Parameters
NamestringFullNamestringFieldsList<BowireFieldInfo>
Properties
Fields
public List<BowireFieldInfo> Fields { get; init; }
Property Value
FullName
public string FullName { get; init; }
Property Value
Name
public string Name { get; init; }
Property Value
Truncated
True when this shape was deliberately not expanded here — because it closes a cycle, sits past the depth cap, or arrived after the walk's expansion budget ran out (#694).
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool Truncated { get; init; }
Property Value
Remarks
Without this flag an unexpanded shape is indistinguishable from a message that genuinely has no fields, and a form renderer has no way to tell "nothing to fill in" from "not shown here". Omitted from JSON when false, so the common case costs no bytes.
Methods
Deconstruct(out string, out string, out List<BowireFieldInfo>)
public void Deconstruct(out string Name, out string FullName, out List<BowireFieldInfo> Fields)
Parameters
NamestringFullNamestringFieldsList<BowireFieldInfo>
Equals(BowireMessageInfo?)
public bool Equals(BowireMessageInfo? other)
Parameters
otherBowireMessageInfo
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BowireMessageInfo?, BowireMessageInfo?)
public static bool operator ==(BowireMessageInfo? left, BowireMessageInfo? right)
Parameters
leftBowireMessageInforightBowireMessageInfo
Returns
operator !=(BowireMessageInfo?, BowireMessageInfo?)
public static bool operator !=(BowireMessageInfo? left, BowireMessageInfo? right)
Parameters
leftBowireMessageInforightBowireMessageInfo