Class Protocol
Inheritance
System.Object
Protocol
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Avro
Assembly: Avro.dll
Syntax
public class Protocol
Constructors
| Improve this Doc View SourceProtocol(String, String, String, IEnumerable<Schema>, IDictionary<String, Message>)
Constructor for Protocol class
Declaration
public Protocol(string name, string space, string doc, IEnumerable<Schema> types, IDictionary<string, Message> messages)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | required name of protocol |
System.String | space | optional namespace |
System.String | doc | optional documentation |
System.Collections.Generic.IEnumerable<Schema> | types | required list of types |
System.Collections.Generic.IDictionary<System.String, Message> | messages | required list of messages |
Properties
| Improve this Doc View SourceDoc
Documentation for the protocol
Declaration
public string Doc { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MD5
Declaration
public byte[] MD5 { get; }
Property Value
Type | Description |
---|---|
System.Byte[] |
Messages
List of message objects representing the different schemas defined under the 'messages' attribute
Declaration
public IDictionary<string, Message> Messages { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, Message> |
Name
Name of the protocol
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Namespace
Namespace of the protocol
Declaration
public string Namespace { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Types
List of schemas objects representing the different schemas defined under the 'types' attribute
Declaration
public IList<Schema> Types { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<Schema> |
Methods
| Improve this Doc View SourceEquals(Object)
Tests equality of this protocol object with the passed object
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Returns the hash code of this protocol object
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
Parse(String)
Parses the given JSON string to create a Protocol object
Declaration
public static Protocol Parse(string jstring)
Parameters
Type | Name | Description |
---|---|---|
System.String | jstring | JSON string |
Returns
Type | Description |
---|---|
Protocol | Protocol object |
ToString()
Writes Protocol in JSON format
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | JSON string |
Overrides
System.Object.ToString()