73 lines
2.4 KiB
Erlang
73 lines
2.4 KiB
Erlang
%% -*- coding: utf-8 -*-
|
|
%% Automatically generated, do not edit
|
|
%% Generated by gpb_compile version 4.21.7
|
|
|
|
-ifndef(service_pb).
|
|
-define(service_pb, true).
|
|
|
|
-define(service_pb_gpb_version, "4.21.7").
|
|
|
|
|
|
-ifndef('SERVICEREQUEST.REGISTER_PB_H').
|
|
-define('SERVICEREQUEST.REGISTER_PB_H', true).
|
|
-record('ServiceRequest.Register',
|
|
{service_id = <<>> :: unicode:chardata() | undefined % = 1, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SERVICEREQUEST.SUBSCRIBE_PB_H').
|
|
-define('SERVICEREQUEST.SUBSCRIBE_PB_H', true).
|
|
-record('ServiceRequest.Subscribe',
|
|
{topic = <<>> :: unicode:chardata() | undefined % = 1, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SERVICEREQUEST_PB_H').
|
|
-define('SERVICEREQUEST_PB_H', true).
|
|
-record('ServiceRequest',
|
|
{packet_id = 0 :: non_neg_integer() | undefined, % = 1, optional, 64 bits
|
|
request :: {register, service_pb:'ServiceRequest.Register'()} | {subscribe, service_pb:'ServiceRequest.Subscribe'()} | undefined % oneof
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SERVICEREPLY.ERROR_PB_H').
|
|
-define('SERVICEREPLY.ERROR_PB_H', true).
|
|
-record('ServiceReply.Error',
|
|
{code = 0 :: integer() | undefined, % = 1, optional, 32 bits
|
|
message = <<>> :: unicode:chardata() | undefined % = 2, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SERVICEREPLY_PB_H').
|
|
-define('SERVICEREPLY_PB_H', true).
|
|
-record('ServiceReply',
|
|
{packet_id = 0 :: non_neg_integer() | undefined, % = 1, optional, 64 bits
|
|
reply :: {result, iodata()} | {error, service_pb:'ServiceReply.Error'()} | undefined % oneof
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SERVICECAST.METRICDATA_PB_H').
|
|
-define('SERVICECAST.METRICDATA_PB_H', true).
|
|
-record('ServiceCast.MetricData',
|
|
{route_key = <<>> :: iodata() | undefined, % = 1, optional
|
|
metric = <<>> :: iodata() | undefined % = 2, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SERVICECAST.TOPICEVENT_PB_H').
|
|
-define('SERVICECAST.TOPICEVENT_PB_H', true).
|
|
-record('ServiceCast.TopicEvent',
|
|
{topic = <<>> :: unicode:chardata() | undefined, % = 1, optional
|
|
content = <<>> :: iodata() | undefined % = 2, optional
|
|
}).
|
|
-endif.
|
|
|
|
-ifndef('SERVICECAST_PB_H').
|
|
-define('SERVICECAST_PB_H', true).
|
|
-record('ServiceCast',
|
|
{body :: {topic_event, service_pb:'ServiceCast.TopicEvent'()} | {metric_data, service_pb:'ServiceCast.MetricData'()} | undefined % oneof
|
|
}).
|
|
-endif.
|
|
|
|
-endif.
|