Kinetica   C#   API  Version 7.2.3.0
Avro.Protocol Class Reference

Public Member Functions

 Protocol (string name, string space, string doc, IEnumerable< Schema > types, IDictionary< string, Message > messages)
 Constructor for Protocol class More...
 
override string ToString ()
 Writes Protocol in JSON format More...
 
override bool Equals (object obj)
 Tests equality of this protocol object with the passed object More...
 
override int GetHashCode ()
 Returns the hash code of this protocol object More...
 

Static Public Member Functions

static Protocol Parse (string jstring)
 Parses the given JSON string to create a Protocol object More...
 

Properties

string Name [get, set]
 Name of the protocol More...
 
string Namespace [get, set]
 Namespace of the protocol More...
 
string Doc [get, set]
 Documentation for the protocol More...
 
IList< SchemaTypes [get, set]
 List of schemas objects representing the different schemas defined under the 'types' attribute More...
 
IDictionary< string, MessageMessages [get, set]
 List of message objects representing the different schemas defined under the 'messages' attribute More...
 
byte [] MD5 [get]
 

Detailed Description

Definition at line 27 of file Protocol.cs.

Constructor & Destructor Documentation

◆ Protocol()

Avro.Protocol.Protocol ( string  name,
string  space,
string  doc,
IEnumerable< Schema types,
IDictionary< string, Message messages 
)
inline

Constructor for Protocol class

Parameters
namerequired name of protocol
spaceoptional namespace
docoptional documentation
typesrequired list of types
messagesrequired list of messages

Definition at line 80 of file Protocol.cs.

Member Function Documentation

◆ Equals()

override bool Avro.Protocol.Equals ( object  obj)
inline

Tests equality of this protocol object with the passed object

Parameters
obj
Returns

Definition at line 214 of file Protocol.cs.

◆ GetHashCode()

override int Avro.Protocol.GetHashCode ( )
inline

Returns the hash code of this protocol object

Returns

Definition at line 264 of file Protocol.cs.

◆ Parse()

static Protocol Avro.Protocol.Parse ( string  jstring)
inlinestatic

Parses the given JSON string to create a Protocol object

Parameters
jstringJSON string
Returns
Protocol object

Definition at line 100 of file Protocol.cs.

◆ ToString()

override string Avro.Protocol.ToString ( )
inline

Writes Protocol in JSON format

Returns
JSON string

Definition at line 158 of file Protocol.cs.

Property Documentation

◆ Doc

string Avro.Protocol.Doc
getset

Documentation for the protocol

Definition at line 42 of file Protocol.cs.

◆ MD5

byte [] Avro.Protocol.MD5
get

Definition at line 56 of file Protocol.cs.

◆ Messages

IDictionary<string,Message> Avro.Protocol.Messages
getset

List of message objects representing the different schemas defined under the 'messages' attribute

Definition at line 52 of file Protocol.cs.

◆ Name

string Avro.Protocol.Name
getset

Name of the protocol

Definition at line 32 of file Protocol.cs.

◆ Namespace

string Avro.Protocol.Namespace
getset

Namespace of the protocol

Definition at line 37 of file Protocol.cs.

◆ Types

IList<Schema> Avro.Protocol.Types
getset

List of schemas objects representing the different schemas defined under the 'types' attribute

Definition at line 47 of file Protocol.cs.


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