syntax = "proto3"; option java_multiple_files = true; option java_package = 'com.wireguard.android.backend.gen'; option java_outer_classname = "LibwgProto"; option java_generic_services = true; option go_package = 'golang.zx2c4.com/wireguard/android/gen'; package api; service Libwg { rpc StopGrpc(StopGrpcRequest) returns (StopGrpcResponse); rpc Version(VersionRequest) returns (VersionResponse); } message Error { enum Code { NO_ERROR = 0; UNSPECIFIED = 1; INVALID_PROTOCOL_BUFFER = 2; INVALID_RESPONSE = 3; } Code code = 1; string message = 2; } message StopGrpcRequest { } message StopGrpcResponse { } message VersionRequest { } message VersionResponse { string version = 1; }