{
  "nested": {
    "protocol": {
      "nested": {
        "Request": {
          "fields": {
            "id": {
              "rule": "required",
              "type": "bytes",
              "id": 1
            },
            "error": {
              "type": "bytes",
              "id": 2
            },
            "data": {
              "type": "bytes",
              "id": 3
            },
            "options": {
              "type": "bytes",
              "id": 4
            }
          }
        },
        "PeerChatMessage": {
          "fields": {
            "type": {
              "rule": "required",
              "type": "string",
              "id": 1
            },
            "data": {
              "type": "bytes",
              "id": 2
            }
          }
        },
        "Presence": {
          "fields": {
            "from": {
              "rule": "required",
              "type": "bytes",
              "id": 1
            },
            "connections": {
              "rule": "repeated",
              "type": "Connection",
              "id": 2
            }
          },
          "nested": {
            "Connection": {
              "fields": {
                "peerId": {
                  "rule": "required",
                  "type": "bytes",
                  "id": 1
                },
                "initiator": {
                  "type": "bool",
                  "id": 2
                }
              }
            }
          }
        }
      }
    }
  }
}