syntax = "proto3"; package hapi; import "aaa.proto"; message GetRequest { string name = 1; } message GetResponseError { oneof response { Error err = 1; GetResponse get_response = 2; } } message GetResponse { Chart chart = 1; Values values = 2; }