mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Rename all protos to end with 'Proto' to avoid name conflicts.
This commit is contained in:
@@ -38,7 +38,7 @@ static void test_setting(void)
|
||||
|
||||
static void test_config(void)
|
||||
{
|
||||
Config config;
|
||||
ConfigProto config;
|
||||
|
||||
const std::string text = R"M(
|
||||
input {
|
||||
@@ -78,7 +78,7 @@ static void test_load(void)
|
||||
static void test_range(void)
|
||||
{
|
||||
{
|
||||
Range r;
|
||||
RangeProto r;
|
||||
r.set_start(0);
|
||||
r.set_end(3);
|
||||
r.add_also(5);
|
||||
@@ -87,7 +87,7 @@ static void test_range(void)
|
||||
}
|
||||
|
||||
{
|
||||
Range r;
|
||||
RangeProto r;
|
||||
r.set_start(1);
|
||||
r.set_end(1);
|
||||
r.add_also(5);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
syntax = "proto2";
|
||||
|
||||
message TestProto {
|
||||
message SubMessage {
|
||||
message SubMessageProto {
|
||||
optional string s = 1;
|
||||
}
|
||||
|
||||
@@ -10,12 +10,12 @@ message TestProto {
|
||||
optional uint64 u64 = 3;
|
||||
optional uint32 u32 = 4;
|
||||
optional double d = 5;
|
||||
optional SubMessage m = 6;
|
||||
repeated SubMessage r = 7;
|
||||
optional SubMessageProto m = 6;
|
||||
repeated SubMessageProto r = 7;
|
||||
|
||||
oneof alt {
|
||||
SubMessage firstoption = 8;
|
||||
SubMessage secondoption = 9;
|
||||
SubMessageProto firstoption = 8;
|
||||
SubMessageProto secondoption = 9;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user