syntax = "proto3"; package rpc_node; option go_package = "rpc_node;rpc_node"; message NodeRequest { string name = 1; string email = 2; string country = 3; string address = 4; } message NodeResponse { message Country { int32 id = 1; string name = 2; int32 code = 3; } message City { int32 id = 1; string name = 2; string postalCode = 3; } message Address { Country country = 1; City city = 2; string street = 3; int32 number = 4; int32 apartment = 5; } int32 id = 1; string name = 2; string email = 3; Address address = 4; } service NodeService { rpc GetNode(NodeRequest) returns (NodeResponse); }