aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@iki.fi>2018-03-28 18:32:43 +0300
committerOskari Timperi <oskari.timperi@iki.fi>2018-03-28 18:32:43 +0300
commitd3a6e80dbc3a5d37aa0cbeb4a54a78c700cd842d (patch)
tree98356eab942d4b0dc9af1fd8f1bb717a74954b68
parent5e9000fcdcdb86981d52841abf1c4d5385ae2ba8 (diff)
downloadnimpb-d3a6e80dbc3a5d37aa0cbeb4a54a78c700cd842d.tar.gz
nimpb-d3a6e80dbc3a5d37aa0cbeb4a54a78c700cd842d.zip
Update generators _pb's to have oneofIdx
-rw-r--r--generator/descriptor_pb.nim72
-rw-r--r--generator/plugin_pb.nim39
2 files changed, 74 insertions, 37 deletions
diff --git a/generator/descriptor_pb.nim b/generator/descriptor_pb.nim
index 2a734e8..2974167 100644
--- a/generator/descriptor_pb.nim
+++ b/generator/descriptor_pb.nim
@@ -14,7 +14,8 @@ const
ftype: FieldType.Message,
label: FieldLabel.Repeated,
typeName: "FileDescriptorProto",
- packed: false
+ packed: false,
+ oneofIdx: -1,
)
]
)
@@ -28,7 +29,8 @@ const
ftype: FieldType.String,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "package",
@@ -36,7 +38,8 @@ const
ftype: FieldType.String,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "dependency",
@@ -44,7 +47,8 @@ const
ftype: FieldType.String,
label: FieldLabel.Repeated,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "message_type",
@@ -52,7 +56,8 @@ const
ftype: FieldType.Message,
label: FieldLabel.Repeated,
typeName: "DescriptorProto",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "enum_type",
@@ -60,7 +65,8 @@ const
ftype: FieldType.Message,
label: FieldLabel.Repeated,
typeName: "EnumDescriptorProto",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
]
)
@@ -74,7 +80,8 @@ const
ftype: FieldType.String,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "field",
@@ -82,7 +89,8 @@ const
ftype: FieldType.Message,
label: FieldLabel.Repeated,
typeName: "FieldDescriptorProto",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "nested_type",
@@ -90,7 +98,8 @@ const
ftype: FieldType.Message,
label: FieldLabel.Repeated,
typeName: "DescriptorProto",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "enum_type",
@@ -98,7 +107,8 @@ const
ftype: FieldType.Message,
label: FieldLabel.Repeated,
typeName: "EnumDescriptorProto",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "oneof_decl",
@@ -106,7 +116,8 @@ const
ftype: FieldType.Message,
label: FieldLabel.Repeated,
typeName: "OneofDescriptorProto",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
]
)
@@ -120,7 +131,8 @@ const
ftype: FieldType.String,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "value",
@@ -128,7 +140,8 @@ const
ftype: FieldType.Message,
label: FieldLabel.Repeated,
typeName: "EnumValueDescriptorProto",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
]
)
@@ -142,7 +155,8 @@ const
ftype: FieldType.String,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "number",
@@ -150,7 +164,8 @@ const
ftype: FieldType.Int32,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
]
)
@@ -164,7 +179,8 @@ const
ftype: FieldType.String,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "number",
@@ -172,7 +188,8 @@ const
ftype: FieldType.Int32,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "label",
@@ -180,7 +197,8 @@ const
ftype: FieldType.Enum,
label: FieldLabel.Optional,
typeName: "FieldDescriptorProto_Label",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "type",
@@ -188,7 +206,8 @@ const
ftype: FieldType.Enum,
label: FieldLabel.Optional,
typeName: "FieldDescriptorProto_Type",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "type_name",
@@ -196,7 +215,8 @@ const
ftype: FieldType.String,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "options",
@@ -204,7 +224,8 @@ const
ftype: FieldType.Message,
label: FieldLabel.Optional,
typeName: "FieldOptions",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "oneof_index",
@@ -212,7 +233,8 @@ const
ftype: FieldType.Int32,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
]
)
@@ -259,7 +281,8 @@ const
ftype: FieldType.Bool,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
]
)
@@ -273,7 +296,8 @@ const
ftype: FieldType.String,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
]
)
diff --git a/generator/plugin_pb.nim b/generator/plugin_pb.nim
index 6a3759d..f8d9188 100644
--- a/generator/plugin_pb.nim
+++ b/generator/plugin_pb.nim
@@ -16,7 +16,8 @@ const
ftype: FieldType.Int32,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "minor",
@@ -24,7 +25,8 @@ const
ftype: FieldType.Int32,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "patch",
@@ -32,7 +34,8 @@ const
ftype: FieldType.Int32,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "suffix",
@@ -40,7 +43,8 @@ const
ftype: FieldType.String,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
)
]
)
@@ -54,7 +58,8 @@ const
ftype: FieldType.String,
label: FieldLabel.Repeated,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "parameter",
@@ -62,7 +67,8 @@ const
ftype: FieldType.String,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "proto_file",
@@ -70,7 +76,8 @@ const
ftype: FieldType.Message,
label: FieldLabel.Repeated,
typeName: "FileDescriptorProto",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "compiler_version",
@@ -78,7 +85,8 @@ const
ftype: FieldType.Message,
label: FieldLabel.Optional,
typeName: "Version",
- packed: false
+ packed: false,
+ oneofIdx: -1,
)
]
)
@@ -92,7 +100,8 @@ const
ftype: FieldType.String,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "file",
@@ -100,7 +109,8 @@ const
ftype: FieldType.Message,
label: FieldLabel.Repeated,
typeName: "CodeGeneratorResponse_File",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
]
)
@@ -114,7 +124,8 @@ const
ftype: FieldType.String,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "insertion_point",
@@ -122,7 +133,8 @@ const
ftype: FieldType.String,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
FieldDesc(
name: "content",
@@ -130,7 +142,8 @@ const
ftype: FieldType.String,
label: FieldLabel.Optional,
typeName: "",
- packed: false
+ packed: false,
+ oneofIdx: -1,
),
]
)