diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2018-04-07 00:19:17 +0300 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2018-04-07 00:19:17 +0300 |
| commit | 5bc364b94c90b1e6e3910bd29adc75e0affa0d10 (patch) | |
| tree | 32ecc1c3fe1af5a23afade2c4c31bfad5cce9b70 /generator/plugin_pb.nim | |
| parent | 4b6946251d36b16048d6b5aa4aee493313cf7ca9 (diff) | |
| download | nimpb-5bc364b94c90b1e6e3910bd29adc75e0affa0d10.tar.gz nimpb-5bc364b94c90b1e6e3910bd29adc75e0affa0d10.zip | |
Remove generator in favor of nimpb_build
Diffstat (limited to 'generator/plugin_pb.nim')
| -rw-r--r-- | generator/plugin_pb.nim | 160 |
1 files changed, 0 insertions, 160 deletions
diff --git a/generator/plugin_pb.nim b/generator/plugin_pb.nim deleted file mode 100644 index fa9fc94..0000000 --- a/generator/plugin_pb.nim +++ /dev/null @@ -1,160 +0,0 @@ -import intsets - -import gen -import nimpb/nimpb - -import descriptor_pb - -const - VersionDesc = MessageDesc( - name: "Version", - fields: @[ - FieldDesc( - name: "major", - number: 1, - ftype: FieldType.Int32, - label: FieldLabel.Optional, - typeName: "", - packed: false, - oneofIdx: -1, - ), - FieldDesc( - name: "minor", - number: 2, - ftype: FieldType.Int32, - label: FieldLabel.Optional, - typeName: "", - packed: false, - oneofIdx: -1, - ), - FieldDesc( - name: "patch", - number: 3, - ftype: FieldType.Int32, - label: FieldLabel.Optional, - typeName: "", - packed: false, - oneofIdx: -1, - ), - FieldDesc( - name: "suffix", - number: 4, - ftype: FieldType.String, - label: FieldLabel.Optional, - typeName: "", - packed: false, - oneofIdx: -1, - ) - ] - ) - - CodeGeneratorRequestDesc = MessageDesc( - name: "CodeGeneratorRequest", - fields: @[ - FieldDesc( - name: "file_to_generate", - number: 1, - ftype: FieldType.String, - label: FieldLabel.Repeated, - typeName: "", - packed: false, - oneofIdx: -1, - ), - FieldDesc( - name: "parameter", - number: 2, - ftype: FieldType.String, - label: FieldLabel.Optional, - typeName: "", - packed: false, - oneofIdx: -1, - ), - FieldDesc( - name: "proto_file", - number: 15, - ftype: FieldType.Message, - label: FieldLabel.Repeated, - typeName: "FileDescriptorProto", - packed: false, - oneofIdx: -1, - ), - FieldDesc( - name: "compiler_version", - number: 3, - ftype: FieldType.Message, - label: FieldLabel.Optional, - typeName: "Version", - packed: false, - oneofIdx: -1, - ) - ] - ) - - CodeGeneratorResponseDesc = MessageDesc( - name: "CodeGeneratorResponse", - fields: @[ - FieldDesc( - name: "error", - number: 1, - ftype: FieldType.String, - label: FieldLabel.Optional, - typeName: "", - packed: false, - oneofIdx: -1, - ), - FieldDesc( - name: "file", - number: 15, - ftype: FieldType.Message, - label: FieldLabel.Repeated, - typeName: "CodeGeneratorResponse_File", - packed: false, - oneofIdx: -1, - ), - ] - ) - - CodeGeneratorResponse_FileDesc = MessageDesc( - name: "CodeGeneratorResponse_File", - fields: @[ - FieldDesc( - name: "name", - number: 1, - ftype: FieldType.String, - label: FieldLabel.Optional, - typeName: "", - packed: false, - oneofIdx: -1, - ), - FieldDesc( - name: "insertion_point", - number: 2, - ftype: FieldType.String, - label: FieldLabel.Optional, - typeName: "", - packed: false, - oneofIdx: -1, - ), - FieldDesc( - name: "content", - number: 15, - ftype: FieldType.String, - label: FieldLabel.Optional, - typeName: "", - packed: false, - oneofIdx: -1, - ), - ] - ) - -generateMessageType(VersionDesc) -generateMessageProcs(VersionDesc) - -generateMessageType(CodeGeneratorRequestDesc) -generateMessageProcs(CodeGeneratorRequestDesc) - -generateMessageType(CodeGeneratorResponse_FileDesc) -generateMessageProcs(CodeGeneratorResponse_FileDesc) - -generateMessageType(CodeGeneratorResponseDesc) -generateMessageProcs(CodeGeneratorResponseDesc) |
