| { |
| "protocol" : "Simple", |
| "namespace" : "org.apache.avro.test", |
| "types" : [ { |
| "type" : "enum", |
| "name" : "Kind", |
| "symbols" : [ "FOO", "BAR", "BAZ" ], |
| "aliases" : [ "org.foo.KindOf" ] |
| }, { |
| "type" : "fixed", |
| "name" : "MD5", |
| "size" : 16, |
| "foo" : "bar" |
| }, { |
| "type" : "record", |
| "name" : "TestRecord", |
| "fields" : [ { |
| "name" : "name", |
| "type" : "string", |
| "default" : "foo", |
| "order" : "ignore" |
| }, { |
| "name" : "kind", |
| "type" : "Kind", |
| "order" : "descending" |
| }, { |
| "name" : "hash", |
| "type" : "MD5" |
| }, { |
| "name" : "nullableHash", |
| "type" : [ "MD5", "null" ], |
| "aliases" : [ "hash", "hsh" ] |
| } ] |
| }, { |
| "type" : "error", |
| "name" : "TestError", |
| "fields" : [ { |
| "name" : "message", |
| "type" : "string" |
| } ] |
| } ], |
| "messages" : { |
| "hello" : { |
| "request" : [ { |
| "name" : "greeting", |
| "type" : "string" |
| } ], |
| "response" : "string" |
| }, |
| "echo" : { |
| "request" : [ { |
| "name" : "record", |
| "type" : "TestRecord", |
| "default" : { |
| "name" : "bar" |
| } |
| } ], |
| "response" : "TestRecord" |
| }, |
| "add" : { |
| "request" : [ { |
| "name" : "arg1", |
| "type" : "int" |
| }, { |
| "name" : "arg2", |
| "type" : "int", |
| "default" : 0 |
| } ], |
| "response" : "int" |
| }, |
| "echoBytes" : { |
| "request" : [ { |
| "name" : "data", |
| "type" : "bytes" |
| } ], |
| "response" : "bytes" |
| }, |
| "error" : { |
| "request" : [ ], |
| "response" : "null", |
| "errors" : [ "TestError" ] |
| }, |
| "ping" : { |
| "request" : [ ], |
| "response" : "null", |
| "one-way" : true |
| } |
| } |
| } |