export const PROTO_DEFINITIONS = { "package" : "grpcbus" , "syntax" : "proto3" , "messages" : [ { "name" : "GBClientMessage" , "fields" : [ { "rule" : "optional" , "type" : "GBCreateService" , "name" : "service_create" , "id" : 1 } , { "rule" : "optional" , "type" : "GBReleaseService" , "name" : "service_release" , "id" : 2 } , { "rule" : "optional" , "type" : "GBCreateCall" , "name" : "call_create" , "id" : 3 } , { "rule" : "optional" , "type" : "GBCallEnd" , "name" : "call_end" , "id" : 4 } , { "rule" : "optional" , "type" : "GBSendCall" , "name" : "call_send" , "id" : 5 } ] , "syntax" : "proto3" } , { "name" : "GBServerMessage" , "fields" : [ { "rule" : "optional" , "type" : "GBCreateServiceResult" , "name" : "service_create" , "id" : 1 } , { "rule" : "optional" , "type" : "GBReleaseServiceResult" , "name" : "service_release" , "id" : 2 } , { "rule" : "optional" , "type" : "GBCreateCallResult" , "name" : "call_create" , "id" : 3 } , { "rule" : "optional" , "type" : "GBCallEvent" , "name" : "call_event" , "id" : 4 } , { "rule" : "optional" , "type" : "GBCallEnded" , "name" : "call_ended" , "id" : 5 } ] , "syntax" : "proto3" } , { "name" : "GBServiceInfo" , "fields" : [ { "rule" : "optional" , "type" : "string" , "name" : "endpoint" , "id" : 1 } , { "rule" : "optional" , "type" : "string" , "name" : "service_id" , "id" : 2 } ] , "syntax" : "proto3" } , { "name" : "GBCreateService" , "fields" : [ { "rule" : "optional" , "type" : "int32" , "name" : "service_id" , "id" : 1 } , { "rule" : "optional" , "type" : "GBServiceInfo" , "name" : "service_info" , "id" : 2 } ] , "syntax" : "proto3" } , { "name" : "GBReleaseService" , "fields" : [ { "rule" : "optional" , "type" : "int32" , "name" : "service_id" , "id" : 1 } ] , "syntax" : "proto3" } , { "name" : "GBCallInfo" , "fields" : [ { "rule" : "optional" , "type" : "string" , "name" : "method_id" , "id" : 1 } , { "rule" : "optional" , "type" : "bytes" , "name" : "bin_argument" , "id" : 2 } ] , "syntax" : "proto3" } , { "name" : "GBCreateCall" , "fields" : [ { "rule" : "optional" , "type" : "int32" , "name" : "service_id" , "id" : 1 } , { "rule" : "optional" , "type" : "int32" , "name" : "call_id" , "id" : 2 } , { "rule" : "optional" , "type" : "GBCallInfo" , "name" : "info" , "id" : 3 } ] , "syntax" : "proto3" } , { "name" : "GBCallEnded" , "fields" : [ { "rule" : "optional" , "type" : "int32" , "name" : "call_id" , "id" : 1 } , { "rule" : "optional" , "type" : "int32" , "name" : "service_id" , "id" : 2 } ] , "syntax" : "proto3" } , { "name" : "GBEndCall" , "fields" : [ { "rule" : "optional" , "type" : "int32" , "name" : "call_id" , "id" : 1 } , { "rule" : "optional" , "type" : "int32" , "name" : "service_id" , "id" : 2 } ] , "syntax" : "proto3" } , { "name" : "GBSendCall" , "fields" : [ { "rule" : "optional" , "type" : "int32" , "name" : "call_id" , "id" : 1 } , { "rule" : "optional" , "type" : "int32" , "name" : "service_id" , "id" : 2 } , { "rule" : "optional" , "type" : "bytes" , "name" : "bin_data" , "id" : 3 } , { "rule" : "optional" , "type" : "bool" , "name" : "is_end" , "id" : 4 } ] , "syntax" : "proto3" } , { "name" : "GBCreateServiceResult" , "fields" : [ { "rule" : "optional" , "type" : "int32" , "name" : "service_id" , "id" : 1 } , { "rule" : "optional" , "type" : "ECreateServiceResult" , "name" : "result" , "id" : 2 } , { "rule" : "optional" , "type" : "string" , "name" : "error_details" , "id" : 3 } ] , "syntax" : "proto3" , "enums" : [ { "name" : "ECreateServiceResult" , "values" : [ { "name" : "SUCCESS" , "id" : 0 } , { "name" : "INVALID_ID" , "id" : 1 } , { "name" : "GRPC_ERROR" , "id" : 2 } ] , "syntax" : "proto3" } ] } , { "name" : "GBReleaseServiceResult" , "fields" : [ { "rule" : "optional" , "type" : "int32" , "name" : "service_id" , "id" : 1 } ] , "syntax" : "proto3" } , { "name" : "GBCreateCallResult" , "fields" : [ { "rule" : "optional" , "type" : "int32" , "name" : "call_id" , "id" : 1 } , { "rule" : "optional" , "type" : "int32" , "name" : "service_id" , "id" : 4 } , { "rule" : "optional" , "type" : "ECreateCallResult" , "name" : "result" , "id" : 2 } , { "rule" : "optional" , "type" : "string" , "name" : "error_details" , "id" : 3 } ] , "syntax" : "proto3" , "enums" : [ { "name" : "ECreateCallResult" , "values" : [ { "name" : "SUCCESS" , "id" : 0 } , { "name" : "INVALID_ID" , "id" : 1 } , { "name" : "GRPC_ERROR" , "id" : 2 } ] , "syntax" : "proto3" } ] } , { "name" : "GBCallEvent" , "fields" : [ { "rule" : "optional" , "type" : "int32" , "name" : "call_id" , "id" : 1 } , { "rule" : "optional" , "type" : "int32" , "name" : "service_id" , "id" : 4 } , { "rule" : "optional" , "type" : "string" , "name" : "event" , "id" : 2 } , { "rule" : "optional" , "type" : "string" , "name" : "json_data" , "id" : 3 } , { "rule" : "optional" , "type" : "bytes" , "name" : "bin_data" , "id" : 5 } ] , "syntax" : "proto3" } , { "name" : "GBCallEnd" , "fields" : [ { "rule" : "optional" , "type" : "int32" , "name" : "call_id" , "id" : 1 } , { "rule" : "optional" , "type" : "int32" , "name" : "service_id" , "id" : 2 } ] , "syntax" : "proto3" } ] , "isNamespace" : true } ;