From: Florian Forster Date: Wed, 10 Aug 2016 12:46:24 +0000 (+0200) Subject: proto/*.proto: Reformat using clang-format. X-Git-Tag: collectd-5.6.0~54^2~2 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=ceb89aec8be5d0632275f65cdaccf05bcb26fc56 proto/*.proto: Reformat using clang-format. --- diff --git a/proto/collectd.proto b/proto/collectd.proto index 0ff6e771..37df5b66 100644 --- a/proto/collectd.proto +++ b/proto/collectd.proto @@ -30,31 +30,27 @@ option go_package = "collectd.org/rpc/proto"; import "types.proto"; service Collectd { - // Query a list of values available from collectd's value cache. - rpc QueryValues(QueryValuesRequest) returns (stream QueryValuesResponse); + // Query a list of values available from collectd's value cache. + rpc QueryValues(QueryValuesRequest) returns (stream QueryValuesResponse); // DispatchValues sends a stream of ValueLists to the server. - rpc DispatchValues(stream DispatchValuesRequest) returns (DispatchValuesResponse); + rpc DispatchValues(stream DispatchValuesRequest) + returns (DispatchValuesResponse); } // The arguments to DispatchValues. -message DispatchValuesRequest { - collectd.types.ValueList value_list = 1; -} +message DispatchValuesRequest { collectd.types.ValueList value_list = 1; } // The response from DispatchValues. -message DispatchValuesResponse { -} +message DispatchValuesResponse {} // The arguments to QueryValues. message QueryValuesRequest { - // Query by the fields of the identifier. Only return values matching the - // specified shell wildcard patterns (see fnmatch(3)). Use '*' to match - // any value. - collectd.types.Identifier identifier = 1; + // Query by the fields of the identifier. Only return values matching the + // specified shell wildcard patterns (see fnmatch(3)). Use '*' to match + // any value. + collectd.types.Identifier identifier = 1; } // The response from QueryValues. -message QueryValuesResponse { - collectd.types.ValueList value_list = 1; -} +message QueryValuesResponse { collectd.types.ValueList value_list = 1; } diff --git a/proto/types.proto b/proto/types.proto index ae8e6e9a..952c5418 100644 --- a/proto/types.proto +++ b/proto/types.proto @@ -31,29 +31,29 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; message Identifier { - string host = 1; - string plugin = 2; - string plugin_instance = 3; - string type = 4; - string type_instance = 5; + string host = 1; + string plugin = 2; + string plugin_instance = 3; + string type = 4; + string type_instance = 5; } message Value { - oneof value { - uint64 counter = 1; - double gauge = 2; - int64 derive = 3; - uint64 absolute = 4; - }; + oneof value { + uint64 counter = 1; + double gauge = 2; + int64 derive = 3; + uint64 absolute = 4; + }; } message ValueList { - repeated Value values = 1; + repeated Value values = 1; - google.protobuf.Timestamp time = 2; - google.protobuf.Duration interval = 3; + google.protobuf.Timestamp time = 2; + google.protobuf.Duration interval = 3; - Identifier identifier = 4; + Identifier identifier = 4; - repeated string ds_names = 5; + repeated string ds_names = 5; }