Avro C#
Loading...
Searching...
No Matches
Public Member Functions | Static Protected Member Functions | Properties | List of all members
Avro.Message Class Reference

Represents a message in an Avro protocol. More...

Public Member Functions

 Message (string name, string doc, RecordSchema request, Schema response, UnionSchema error, bool? oneway)
 Constructor for Message class.
 
override bool Equals (Object obj)
 Tests equality of this Message object with the passed object.
 
override int GetHashCode ()
 Returns the hash code of this Message object.
 

Static Protected Member Functions

static bool areEqual (object o1, object o2)
 Tests equality of two objects taking null values into account.
 

Properties

string Name [get, set]
 Name of the message.
 
string Doc [get, set]
 Documentation for the message.
 
RecordSchema Request [get, set]
 Anonymous record for the list of parameters for the request fields.
 
Schema Response [get, set]
 Schema object for the 'response' attribute.
 
UnionSchema Error [get, set]
 Union schema object for the 'error' attribute.
 
bool? Oneway [get, set]
 Optional one-way attribute.
 
UnionSchema SupportedErrors [get, set]
 Explicitly defined protocol errors plus system added "string" error.
 

Detailed Description

Represents a message in an Avro protocol.

Constructor & Destructor Documentation

◆ Message()

Avro.Message.Message ( string  name,
string  doc,
RecordSchema  request,
Schema  response,
UnionSchema  error,
bool?  oneway 
)
inline

Constructor for Message class.

Parameters
namename property
docdoc property
requestlist of parameters
responseresponse property
errorerror union schema
onewayIndicates that this is a one-way message. This may only be true when response is Schema.Type.Null and there are no errors listed.

Member Function Documentation

◆ areEqual()

static bool Avro.Message.areEqual ( object  o1,
object  o2 
)
inlinestaticprotected

Tests equality of two objects taking null values into account.

Parameters
o1
o2
Returns

◆ Equals()

override bool Avro.Message.Equals ( Object  obj)
inline

Tests equality of this Message object with the passed object.

Parameters
obj
Returns

◆ GetHashCode()

override int Avro.Message.GetHashCode ( )
inline

Returns the hash code of this Message object.

Returns

The documentation for this class was generated from the following file: