Class RedbMessage

Assembly: redb.Route.Grpc.dll

Generic message carrying binary payload and string headers.

public sealed class RedbMessage : IMessage<RedbMessage>, IEquatable<RedbMessage>, IDeepCloneable<RedbMessage>, IBufferMessage, IMessage

Inheritance

Object→RedbMessage

Implements

RedbMessage}RedbMessage}RedbMessage}IBufferMessageIMessage

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }

Headers

String key-value headers (exchange headers).

public MapField<string, string> Headers { get; }

Parser

public static MessageParser<RedbMessage> Parser { get; }

Payload

Binary payload (exchange body).

public ByteString Payload { get; set; }

Methods

CalculateSize()

Calculates the size of this message in Protocol Buffer wire format, in bytes.

public int CalculateSize()

Clone()

Creates a deep clone of this object.

public RedbMessage Clone()

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object other)

Equals(RedbMessage)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(RedbMessage other)

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

MergeFrom(CodedInputStream)

Merges the data from the specified coded input stream with the current message.

public void MergeFrom(CodedInputStream input)

MergeFrom(RedbMessage)

Merges the given message into this one.

public void MergeFrom(RedbMessage other)

ToString()

Returns a string that represents the current object.

public override string ToString()

WriteTo(CodedOutputStream)

Writes the data to the given coded output stream.

public void WriteTo(CodedOutputStream output)

Constructors