signable-haskell-protoc-0.1: src/Proto/Google/Protobuf/Compiler/Plugin.hs
{- This file was auto-generated from google/protobuf/compiler/plugin.proto by the proto-lens-protoc program. -}
{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, DataKinds, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies#-}
{-# OPTIONS_GHC -Wno-unused-imports#-}
{-# OPTIONS_GHC -Wno-duplicate-exports#-}
{-# OPTIONS_GHC -Wno-dodgy-exports#-}
module Proto.Google.Protobuf.Compiler.Plugin (
CodeGeneratorRequest(), CodeGeneratorResponse(),
CodeGeneratorResponse'File(), Version()
) where
import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism
import qualified Data.ProtoLens.Runtime.Prelude as Prelude
import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int
import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid
import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word
import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types
import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2
import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked
import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text
import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map
import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString
import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8
import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding
import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector
import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic
import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed
import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read
import qualified Proto.Google.Protobuf.Descriptor
{- | Fields :
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.fileToGenerate' @:: Lens' CodeGeneratorRequest [Data.Text.Text]@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.vec'fileToGenerate' @:: Lens' CodeGeneratorRequest (Data.Vector.Vector Data.Text.Text)@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.parameter' @:: Lens' CodeGeneratorRequest Data.Text.Text@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.maybe'parameter' @:: Lens' CodeGeneratorRequest (Prelude.Maybe Data.Text.Text)@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.protoFile' @:: Lens' CodeGeneratorRequest [Proto.Google.Protobuf.Descriptor.FileDescriptorProto]@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.vec'protoFile' @:: Lens' CodeGeneratorRequest (Data.Vector.Vector Proto.Google.Protobuf.Descriptor.FileDescriptorProto)@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.compilerVersion' @:: Lens' CodeGeneratorRequest Version@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.maybe'compilerVersion' @:: Lens' CodeGeneratorRequest (Prelude.Maybe Version)@ -}
data CodeGeneratorRequest
= CodeGeneratorRequest'_constructor {_CodeGeneratorRequest'fileToGenerate :: !(Data.Vector.Vector Data.Text.Text),
_CodeGeneratorRequest'parameter :: !(Prelude.Maybe Data.Text.Text),
_CodeGeneratorRequest'protoFile :: !(Data.Vector.Vector Proto.Google.Protobuf.Descriptor.FileDescriptorProto),
_CodeGeneratorRequest'compilerVersion :: !(Prelude.Maybe Version),
_CodeGeneratorRequest'_unknownFields :: !Data.ProtoLens.FieldSet}
deriving stock (Prelude.Eq, Prelude.Ord)
instance Prelude.Show CodeGeneratorRequest where
showsPrec _ __x __s
= Prelude.showChar
'{'
(Prelude.showString
(Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))
instance Data.ProtoLens.Field.HasField CodeGeneratorRequest "fileToGenerate" [Data.Text.Text] where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_CodeGeneratorRequest'fileToGenerate
(\ x__ y__ -> x__ {_CodeGeneratorRequest'fileToGenerate = y__}))
(Lens.Family2.Unchecked.lens
Data.Vector.Generic.toList
(\ _ y__ -> Data.Vector.Generic.fromList y__))
instance Data.ProtoLens.Field.HasField CodeGeneratorRequest "vec'fileToGenerate" (Data.Vector.Vector Data.Text.Text) where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_CodeGeneratorRequest'fileToGenerate
(\ x__ y__ -> x__ {_CodeGeneratorRequest'fileToGenerate = y__}))
Prelude.id
instance Data.ProtoLens.Field.HasField CodeGeneratorRequest "parameter" Data.Text.Text where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_CodeGeneratorRequest'parameter
(\ x__ y__ -> x__ {_CodeGeneratorRequest'parameter = y__}))
(Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault)
instance Data.ProtoLens.Field.HasField CodeGeneratorRequest "maybe'parameter" (Prelude.Maybe Data.Text.Text) where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_CodeGeneratorRequest'parameter
(\ x__ y__ -> x__ {_CodeGeneratorRequest'parameter = y__}))
Prelude.id
instance Data.ProtoLens.Field.HasField CodeGeneratorRequest "protoFile" [Proto.Google.Protobuf.Descriptor.FileDescriptorProto] where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_CodeGeneratorRequest'protoFile
(\ x__ y__ -> x__ {_CodeGeneratorRequest'protoFile = y__}))
(Lens.Family2.Unchecked.lens
Data.Vector.Generic.toList
(\ _ y__ -> Data.Vector.Generic.fromList y__))
instance Data.ProtoLens.Field.HasField CodeGeneratorRequest "vec'protoFile" (Data.Vector.Vector Proto.Google.Protobuf.Descriptor.FileDescriptorProto) where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_CodeGeneratorRequest'protoFile
(\ x__ y__ -> x__ {_CodeGeneratorRequest'protoFile = y__}))
Prelude.id
instance Data.ProtoLens.Field.HasField CodeGeneratorRequest "compilerVersion" Version where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_CodeGeneratorRequest'compilerVersion
(\ x__ y__ -> x__ {_CodeGeneratorRequest'compilerVersion = y__}))
(Data.ProtoLens.maybeLens Data.ProtoLens.defMessage)
instance Data.ProtoLens.Field.HasField CodeGeneratorRequest "maybe'compilerVersion" (Prelude.Maybe Version) where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_CodeGeneratorRequest'compilerVersion
(\ x__ y__ -> x__ {_CodeGeneratorRequest'compilerVersion = y__}))
Prelude.id
instance Data.ProtoLens.Message CodeGeneratorRequest where
messageName _
= Data.Text.pack "google.protobuf.compiler.CodeGeneratorRequest"
packedMessageDescriptor _
= "\n\
\\DC4CodeGeneratorRequest\DC2(\n\
\\DLEfile_to_generate\CAN\SOH \ETX(\tR\SOfileToGenerate\DC2\FS\n\
\\tparameter\CAN\STX \SOH(\tR\tparameter\DC2C\n\
\\n\
\proto_file\CAN\SI \ETX(\v2$.google.protobuf.FileDescriptorProtoR\tprotoFile\DC2L\n\
\\DLEcompiler_version\CAN\ETX \SOH(\v2!.google.protobuf.compiler.VersionR\SIcompilerVersion"
packedFileDescriptor _ = packedFileDescriptor
fieldsByTag
= let
fileToGenerate__field_descriptor
= Data.ProtoLens.FieldDescriptor
"file_to_generate"
(Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::
Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)
(Data.ProtoLens.RepeatedField
Data.ProtoLens.Unpacked
(Data.ProtoLens.Field.field @"fileToGenerate")) ::
Data.ProtoLens.FieldDescriptor CodeGeneratorRequest
parameter__field_descriptor
= Data.ProtoLens.FieldDescriptor
"parameter"
(Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::
Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)
(Data.ProtoLens.OptionalField
(Data.ProtoLens.Field.field @"maybe'parameter")) ::
Data.ProtoLens.FieldDescriptor CodeGeneratorRequest
protoFile__field_descriptor
= Data.ProtoLens.FieldDescriptor
"proto_file"
(Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::
Data.ProtoLens.FieldTypeDescriptor Proto.Google.Protobuf.Descriptor.FileDescriptorProto)
(Data.ProtoLens.RepeatedField
Data.ProtoLens.Unpacked
(Data.ProtoLens.Field.field @"protoFile")) ::
Data.ProtoLens.FieldDescriptor CodeGeneratorRequest
compilerVersion__field_descriptor
= Data.ProtoLens.FieldDescriptor
"compiler_version"
(Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::
Data.ProtoLens.FieldTypeDescriptor Version)
(Data.ProtoLens.OptionalField
(Data.ProtoLens.Field.field @"maybe'compilerVersion")) ::
Data.ProtoLens.FieldDescriptor CodeGeneratorRequest
in
Data.Map.fromList
[(Data.ProtoLens.Tag 1, fileToGenerate__field_descriptor),
(Data.ProtoLens.Tag 2, parameter__field_descriptor),
(Data.ProtoLens.Tag 15, protoFile__field_descriptor),
(Data.ProtoLens.Tag 3, compilerVersion__field_descriptor)]
unknownFields
= Lens.Family2.Unchecked.lens
_CodeGeneratorRequest'_unknownFields
(\ x__ y__ -> x__ {_CodeGeneratorRequest'_unknownFields = y__})
defMessage
= CodeGeneratorRequest'_constructor
{_CodeGeneratorRequest'fileToGenerate = Data.Vector.Generic.empty,
_CodeGeneratorRequest'parameter = Prelude.Nothing,
_CodeGeneratorRequest'protoFile = Data.Vector.Generic.empty,
_CodeGeneratorRequest'compilerVersion = Prelude.Nothing,
_CodeGeneratorRequest'_unknownFields = []}
parseMessage
= let
loop ::
CodeGeneratorRequest
-> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Text.Text
-> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Proto.Google.Protobuf.Descriptor.FileDescriptorProto
-> Data.ProtoLens.Encoding.Bytes.Parser CodeGeneratorRequest
loop x mutable'fileToGenerate mutable'protoFile
= do end <- Data.ProtoLens.Encoding.Bytes.atEnd
if end then
do frozen'fileToGenerate <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
(Data.ProtoLens.Encoding.Growing.unsafeFreeze
mutable'fileToGenerate)
frozen'protoFile <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
(Data.ProtoLens.Encoding.Growing.unsafeFreeze
mutable'protoFile)
(let missing = []
in
if Prelude.null missing then
Prelude.return ()
else
Prelude.fail
((Prelude.++)
"Missing required fields: "
(Prelude.show (missing :: [Prelude.String]))))
Prelude.return
(Lens.Family2.over
Data.ProtoLens.unknownFields
(\ !t -> Prelude.reverse t)
(Lens.Family2.set
(Data.ProtoLens.Field.field @"vec'fileToGenerate")
frozen'fileToGenerate
(Lens.Family2.set
(Data.ProtoLens.Field.field @"vec'protoFile") frozen'protoFile x)))
else
do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt
case tag of
10
-> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)
(do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt
Data.ProtoLens.Encoding.Bytes.getBytes
(Prelude.fromIntegral len)
Data.ProtoLens.Encoding.Bytes.runEither
(case Data.Text.Encoding.decodeUtf8' value of
(Prelude.Left err)
-> Prelude.Left (Prelude.show err)
(Prelude.Right r) -> Prelude.Right r))
"file_to_generate"
v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
(Data.ProtoLens.Encoding.Growing.append
mutable'fileToGenerate y)
loop x v mutable'protoFile
18
-> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)
(do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt
Data.ProtoLens.Encoding.Bytes.getBytes
(Prelude.fromIntegral len)
Data.ProtoLens.Encoding.Bytes.runEither
(case Data.Text.Encoding.decodeUtf8' value of
(Prelude.Left err)
-> Prelude.Left (Prelude.show err)
(Prelude.Right r) -> Prelude.Right r))
"parameter"
loop
(Lens.Family2.set (Data.ProtoLens.Field.field @"parameter") y x)
mutable'fileToGenerate
mutable'protoFile
122
-> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)
(do len <- Data.ProtoLens.Encoding.Bytes.getVarInt
Data.ProtoLens.Encoding.Bytes.isolate
(Prelude.fromIntegral len)
Data.ProtoLens.parseMessage)
"proto_file"
v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
(Data.ProtoLens.Encoding.Growing.append mutable'protoFile y)
loop x mutable'fileToGenerate v
26
-> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)
(do len <- Data.ProtoLens.Encoding.Bytes.getVarInt
Data.ProtoLens.Encoding.Bytes.isolate
(Prelude.fromIntegral len) Data.ProtoLens.parseMessage)
"compiler_version"
loop
(Lens.Family2.set
(Data.ProtoLens.Field.field @"compilerVersion") y x)
mutable'fileToGenerate
mutable'protoFile
wire
-> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire
wire
loop
(Lens.Family2.over
Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)
mutable'fileToGenerate
mutable'protoFile
in
(Data.ProtoLens.Encoding.Bytes.<?>)
(do mutable'fileToGenerate <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
Data.ProtoLens.Encoding.Growing.new
mutable'protoFile <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
Data.ProtoLens.Encoding.Growing.new
loop
Data.ProtoLens.defMessage mutable'fileToGenerate mutable'protoFile)
"CodeGeneratorRequest"
buildMessage
= \ _x
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.foldMapBuilder
(\ _v
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt 10)
((Prelude..)
(\ bs
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt
(Prelude.fromIntegral (Data.ByteString.length bs)))
(Data.ProtoLens.Encoding.Bytes.putBytes bs))
Data.Text.Encoding.encodeUtf8
_v))
(Lens.Family2.view
(Data.ProtoLens.Field.field @"vec'fileToGenerate") _x))
((Data.Monoid.<>)
(case
Lens.Family2.view
(Data.ProtoLens.Field.field @"maybe'parameter") _x
of
Prelude.Nothing -> Data.Monoid.mempty
(Prelude.Just _v)
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt 18)
((Prelude..)
(\ bs
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt
(Prelude.fromIntegral (Data.ByteString.length bs)))
(Data.ProtoLens.Encoding.Bytes.putBytes bs))
Data.Text.Encoding.encodeUtf8
_v))
((Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.foldMapBuilder
(\ _v
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt 122)
((Prelude..)
(\ bs
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt
(Prelude.fromIntegral (Data.ByteString.length bs)))
(Data.ProtoLens.Encoding.Bytes.putBytes bs))
Data.ProtoLens.encodeMessage
_v))
(Lens.Family2.view
(Data.ProtoLens.Field.field @"vec'protoFile") _x))
((Data.Monoid.<>)
(case
Lens.Family2.view
(Data.ProtoLens.Field.field @"maybe'compilerVersion") _x
of
Prelude.Nothing -> Data.Monoid.mempty
(Prelude.Just _v)
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt 26)
((Prelude..)
(\ bs
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt
(Prelude.fromIntegral (Data.ByteString.length bs)))
(Data.ProtoLens.Encoding.Bytes.putBytes bs))
Data.ProtoLens.encodeMessage
_v))
(Data.ProtoLens.Encoding.Wire.buildFieldSet
(Lens.Family2.view Data.ProtoLens.unknownFields _x)))))
instance Control.DeepSeq.NFData CodeGeneratorRequest where
rnf
= \ x__
-> Control.DeepSeq.deepseq
(_CodeGeneratorRequest'_unknownFields x__)
(Control.DeepSeq.deepseq
(_CodeGeneratorRequest'fileToGenerate x__)
(Control.DeepSeq.deepseq
(_CodeGeneratorRequest'parameter x__)
(Control.DeepSeq.deepseq
(_CodeGeneratorRequest'protoFile x__)
(Control.DeepSeq.deepseq
(_CodeGeneratorRequest'compilerVersion x__) ()))))
{- | Fields :
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.error' @:: Lens' CodeGeneratorResponse Data.Text.Text@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.maybe'error' @:: Lens' CodeGeneratorResponse (Prelude.Maybe Data.Text.Text)@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.file' @:: Lens' CodeGeneratorResponse [CodeGeneratorResponse'File]@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.vec'file' @:: Lens' CodeGeneratorResponse (Data.Vector.Vector CodeGeneratorResponse'File)@ -}
data CodeGeneratorResponse
= CodeGeneratorResponse'_constructor {_CodeGeneratorResponse'error :: !(Prelude.Maybe Data.Text.Text),
_CodeGeneratorResponse'file :: !(Data.Vector.Vector CodeGeneratorResponse'File),
_CodeGeneratorResponse'_unknownFields :: !Data.ProtoLens.FieldSet}
deriving stock (Prelude.Eq, Prelude.Ord)
instance Prelude.Show CodeGeneratorResponse where
showsPrec _ __x __s
= Prelude.showChar
'{'
(Prelude.showString
(Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))
instance Data.ProtoLens.Field.HasField CodeGeneratorResponse "error" Data.Text.Text where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_CodeGeneratorResponse'error
(\ x__ y__ -> x__ {_CodeGeneratorResponse'error = y__}))
(Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault)
instance Data.ProtoLens.Field.HasField CodeGeneratorResponse "maybe'error" (Prelude.Maybe Data.Text.Text) where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_CodeGeneratorResponse'error
(\ x__ y__ -> x__ {_CodeGeneratorResponse'error = y__}))
Prelude.id
instance Data.ProtoLens.Field.HasField CodeGeneratorResponse "file" [CodeGeneratorResponse'File] where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_CodeGeneratorResponse'file
(\ x__ y__ -> x__ {_CodeGeneratorResponse'file = y__}))
(Lens.Family2.Unchecked.lens
Data.Vector.Generic.toList
(\ _ y__ -> Data.Vector.Generic.fromList y__))
instance Data.ProtoLens.Field.HasField CodeGeneratorResponse "vec'file" (Data.Vector.Vector CodeGeneratorResponse'File) where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_CodeGeneratorResponse'file
(\ x__ y__ -> x__ {_CodeGeneratorResponse'file = y__}))
Prelude.id
instance Data.ProtoLens.Message CodeGeneratorResponse where
messageName _
= Data.Text.pack "google.protobuf.compiler.CodeGeneratorResponse"
packedMessageDescriptor _
= "\n\
\\NAKCodeGeneratorResponse\DC2\DC4\n\
\\ENQerror\CAN\SOH \SOH(\tR\ENQerror\DC2H\n\
\\EOTfile\CAN\SI \ETX(\v24.google.protobuf.compiler.CodeGeneratorResponse.FileR\EOTfile\SUB]\n\
\\EOTFile\DC2\DC2\n\
\\EOTname\CAN\SOH \SOH(\tR\EOTname\DC2'\n\
\\SIinsertion_point\CAN\STX \SOH(\tR\SOinsertionPoint\DC2\CAN\n\
\\acontent\CAN\SI \SOH(\tR\acontent"
packedFileDescriptor _ = packedFileDescriptor
fieldsByTag
= let
error__field_descriptor
= Data.ProtoLens.FieldDescriptor
"error"
(Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::
Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)
(Data.ProtoLens.OptionalField
(Data.ProtoLens.Field.field @"maybe'error")) ::
Data.ProtoLens.FieldDescriptor CodeGeneratorResponse
file__field_descriptor
= Data.ProtoLens.FieldDescriptor
"file"
(Data.ProtoLens.MessageField Data.ProtoLens.MessageType ::
Data.ProtoLens.FieldTypeDescriptor CodeGeneratorResponse'File)
(Data.ProtoLens.RepeatedField
Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"file")) ::
Data.ProtoLens.FieldDescriptor CodeGeneratorResponse
in
Data.Map.fromList
[(Data.ProtoLens.Tag 1, error__field_descriptor),
(Data.ProtoLens.Tag 15, file__field_descriptor)]
unknownFields
= Lens.Family2.Unchecked.lens
_CodeGeneratorResponse'_unknownFields
(\ x__ y__ -> x__ {_CodeGeneratorResponse'_unknownFields = y__})
defMessage
= CodeGeneratorResponse'_constructor
{_CodeGeneratorResponse'error = Prelude.Nothing,
_CodeGeneratorResponse'file = Data.Vector.Generic.empty,
_CodeGeneratorResponse'_unknownFields = []}
parseMessage
= let
loop ::
CodeGeneratorResponse
-> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld CodeGeneratorResponse'File
-> Data.ProtoLens.Encoding.Bytes.Parser CodeGeneratorResponse
loop x mutable'file
= do end <- Data.ProtoLens.Encoding.Bytes.atEnd
if end then
do frozen'file <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
(Data.ProtoLens.Encoding.Growing.unsafeFreeze mutable'file)
(let missing = []
in
if Prelude.null missing then
Prelude.return ()
else
Prelude.fail
((Prelude.++)
"Missing required fields: "
(Prelude.show (missing :: [Prelude.String]))))
Prelude.return
(Lens.Family2.over
Data.ProtoLens.unknownFields
(\ !t -> Prelude.reverse t)
(Lens.Family2.set
(Data.ProtoLens.Field.field @"vec'file") frozen'file x))
else
do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt
case tag of
10
-> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)
(do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt
Data.ProtoLens.Encoding.Bytes.getBytes
(Prelude.fromIntegral len)
Data.ProtoLens.Encoding.Bytes.runEither
(case Data.Text.Encoding.decodeUtf8' value of
(Prelude.Left err)
-> Prelude.Left (Prelude.show err)
(Prelude.Right r) -> Prelude.Right r))
"error"
loop
(Lens.Family2.set (Data.ProtoLens.Field.field @"error") y x)
mutable'file
122
-> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>)
(do len <- Data.ProtoLens.Encoding.Bytes.getVarInt
Data.ProtoLens.Encoding.Bytes.isolate
(Prelude.fromIntegral len)
Data.ProtoLens.parseMessage)
"file"
v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
(Data.ProtoLens.Encoding.Growing.append mutable'file y)
loop x v
wire
-> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire
wire
loop
(Lens.Family2.over
Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)
mutable'file
in
(Data.ProtoLens.Encoding.Bytes.<?>)
(do mutable'file <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
Data.ProtoLens.Encoding.Growing.new
loop Data.ProtoLens.defMessage mutable'file)
"CodeGeneratorResponse"
buildMessage
= \ _x
-> (Data.Monoid.<>)
(case
Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'error") _x
of
Prelude.Nothing -> Data.Monoid.mempty
(Prelude.Just _v)
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt 10)
((Prelude..)
(\ bs
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt
(Prelude.fromIntegral (Data.ByteString.length bs)))
(Data.ProtoLens.Encoding.Bytes.putBytes bs))
Data.Text.Encoding.encodeUtf8
_v))
((Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.foldMapBuilder
(\ _v
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt 122)
((Prelude..)
(\ bs
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt
(Prelude.fromIntegral (Data.ByteString.length bs)))
(Data.ProtoLens.Encoding.Bytes.putBytes bs))
Data.ProtoLens.encodeMessage
_v))
(Lens.Family2.view (Data.ProtoLens.Field.field @"vec'file") _x))
(Data.ProtoLens.Encoding.Wire.buildFieldSet
(Lens.Family2.view Data.ProtoLens.unknownFields _x)))
instance Control.DeepSeq.NFData CodeGeneratorResponse where
rnf
= \ x__
-> Control.DeepSeq.deepseq
(_CodeGeneratorResponse'_unknownFields x__)
(Control.DeepSeq.deepseq
(_CodeGeneratorResponse'error x__)
(Control.DeepSeq.deepseq (_CodeGeneratorResponse'file x__) ()))
{- | Fields :
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.name' @:: Lens' CodeGeneratorResponse'File Data.Text.Text@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.maybe'name' @:: Lens' CodeGeneratorResponse'File (Prelude.Maybe Data.Text.Text)@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.insertionPoint' @:: Lens' CodeGeneratorResponse'File Data.Text.Text@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.maybe'insertionPoint' @:: Lens' CodeGeneratorResponse'File (Prelude.Maybe Data.Text.Text)@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.content' @:: Lens' CodeGeneratorResponse'File Data.Text.Text@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.maybe'content' @:: Lens' CodeGeneratorResponse'File (Prelude.Maybe Data.Text.Text)@ -}
data CodeGeneratorResponse'File
= CodeGeneratorResponse'File'_constructor {_CodeGeneratorResponse'File'name :: !(Prelude.Maybe Data.Text.Text),
_CodeGeneratorResponse'File'insertionPoint :: !(Prelude.Maybe Data.Text.Text),
_CodeGeneratorResponse'File'content :: !(Prelude.Maybe Data.Text.Text),
_CodeGeneratorResponse'File'_unknownFields :: !Data.ProtoLens.FieldSet}
deriving stock (Prelude.Eq, Prelude.Ord)
instance Prelude.Show CodeGeneratorResponse'File where
showsPrec _ __x __s
= Prelude.showChar
'{'
(Prelude.showString
(Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))
instance Data.ProtoLens.Field.HasField CodeGeneratorResponse'File "name" Data.Text.Text where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_CodeGeneratorResponse'File'name
(\ x__ y__ -> x__ {_CodeGeneratorResponse'File'name = y__}))
(Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault)
instance Data.ProtoLens.Field.HasField CodeGeneratorResponse'File "maybe'name" (Prelude.Maybe Data.Text.Text) where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_CodeGeneratorResponse'File'name
(\ x__ y__ -> x__ {_CodeGeneratorResponse'File'name = y__}))
Prelude.id
instance Data.ProtoLens.Field.HasField CodeGeneratorResponse'File "insertionPoint" Data.Text.Text where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_CodeGeneratorResponse'File'insertionPoint
(\ x__ y__
-> x__ {_CodeGeneratorResponse'File'insertionPoint = y__}))
(Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault)
instance Data.ProtoLens.Field.HasField CodeGeneratorResponse'File "maybe'insertionPoint" (Prelude.Maybe Data.Text.Text) where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_CodeGeneratorResponse'File'insertionPoint
(\ x__ y__
-> x__ {_CodeGeneratorResponse'File'insertionPoint = y__}))
Prelude.id
instance Data.ProtoLens.Field.HasField CodeGeneratorResponse'File "content" Data.Text.Text where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_CodeGeneratorResponse'File'content
(\ x__ y__ -> x__ {_CodeGeneratorResponse'File'content = y__}))
(Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault)
instance Data.ProtoLens.Field.HasField CodeGeneratorResponse'File "maybe'content" (Prelude.Maybe Data.Text.Text) where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_CodeGeneratorResponse'File'content
(\ x__ y__ -> x__ {_CodeGeneratorResponse'File'content = y__}))
Prelude.id
instance Data.ProtoLens.Message CodeGeneratorResponse'File where
messageName _
= Data.Text.pack
"google.protobuf.compiler.CodeGeneratorResponse.File"
packedMessageDescriptor _
= "\n\
\\EOTFile\DC2\DC2\n\
\\EOTname\CAN\SOH \SOH(\tR\EOTname\DC2'\n\
\\SIinsertion_point\CAN\STX \SOH(\tR\SOinsertionPoint\DC2\CAN\n\
\\acontent\CAN\SI \SOH(\tR\acontent"
packedFileDescriptor _ = packedFileDescriptor
fieldsByTag
= let
name__field_descriptor
= Data.ProtoLens.FieldDescriptor
"name"
(Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::
Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)
(Data.ProtoLens.OptionalField
(Data.ProtoLens.Field.field @"maybe'name")) ::
Data.ProtoLens.FieldDescriptor CodeGeneratorResponse'File
insertionPoint__field_descriptor
= Data.ProtoLens.FieldDescriptor
"insertion_point"
(Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::
Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)
(Data.ProtoLens.OptionalField
(Data.ProtoLens.Field.field @"maybe'insertionPoint")) ::
Data.ProtoLens.FieldDescriptor CodeGeneratorResponse'File
content__field_descriptor
= Data.ProtoLens.FieldDescriptor
"content"
(Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::
Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)
(Data.ProtoLens.OptionalField
(Data.ProtoLens.Field.field @"maybe'content")) ::
Data.ProtoLens.FieldDescriptor CodeGeneratorResponse'File
in
Data.Map.fromList
[(Data.ProtoLens.Tag 1, name__field_descriptor),
(Data.ProtoLens.Tag 2, insertionPoint__field_descriptor),
(Data.ProtoLens.Tag 15, content__field_descriptor)]
unknownFields
= Lens.Family2.Unchecked.lens
_CodeGeneratorResponse'File'_unknownFields
(\ x__ y__
-> x__ {_CodeGeneratorResponse'File'_unknownFields = y__})
defMessage
= CodeGeneratorResponse'File'_constructor
{_CodeGeneratorResponse'File'name = Prelude.Nothing,
_CodeGeneratorResponse'File'insertionPoint = Prelude.Nothing,
_CodeGeneratorResponse'File'content = Prelude.Nothing,
_CodeGeneratorResponse'File'_unknownFields = []}
parseMessage
= let
loop ::
CodeGeneratorResponse'File
-> Data.ProtoLens.Encoding.Bytes.Parser CodeGeneratorResponse'File
loop x
= do end <- Data.ProtoLens.Encoding.Bytes.atEnd
if end then
do (let missing = []
in
if Prelude.null missing then
Prelude.return ()
else
Prelude.fail
((Prelude.++)
"Missing required fields: "
(Prelude.show (missing :: [Prelude.String]))))
Prelude.return
(Lens.Family2.over
Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)
else
do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt
case tag of
10
-> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)
(do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt
Data.ProtoLens.Encoding.Bytes.getBytes
(Prelude.fromIntegral len)
Data.ProtoLens.Encoding.Bytes.runEither
(case Data.Text.Encoding.decodeUtf8' value of
(Prelude.Left err)
-> Prelude.Left (Prelude.show err)
(Prelude.Right r) -> Prelude.Right r))
"name"
loop (Lens.Family2.set (Data.ProtoLens.Field.field @"name") y x)
18
-> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)
(do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt
Data.ProtoLens.Encoding.Bytes.getBytes
(Prelude.fromIntegral len)
Data.ProtoLens.Encoding.Bytes.runEither
(case Data.Text.Encoding.decodeUtf8' value of
(Prelude.Left err)
-> Prelude.Left (Prelude.show err)
(Prelude.Right r) -> Prelude.Right r))
"insertion_point"
loop
(Lens.Family2.set
(Data.ProtoLens.Field.field @"insertionPoint") y x)
122
-> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)
(do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt
Data.ProtoLens.Encoding.Bytes.getBytes
(Prelude.fromIntegral len)
Data.ProtoLens.Encoding.Bytes.runEither
(case Data.Text.Encoding.decodeUtf8' value of
(Prelude.Left err)
-> Prelude.Left (Prelude.show err)
(Prelude.Right r) -> Prelude.Right r))
"content"
loop (Lens.Family2.set (Data.ProtoLens.Field.field @"content") y x)
wire
-> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire
wire
loop
(Lens.Family2.over
Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)
in
(Data.ProtoLens.Encoding.Bytes.<?>)
(do loop Data.ProtoLens.defMessage) "File"
buildMessage
= \ _x
-> (Data.Monoid.<>)
(case
Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'name") _x
of
Prelude.Nothing -> Data.Monoid.mempty
(Prelude.Just _v)
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt 10)
((Prelude..)
(\ bs
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt
(Prelude.fromIntegral (Data.ByteString.length bs)))
(Data.ProtoLens.Encoding.Bytes.putBytes bs))
Data.Text.Encoding.encodeUtf8
_v))
((Data.Monoid.<>)
(case
Lens.Family2.view
(Data.ProtoLens.Field.field @"maybe'insertionPoint") _x
of
Prelude.Nothing -> Data.Monoid.mempty
(Prelude.Just _v)
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt 18)
((Prelude..)
(\ bs
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt
(Prelude.fromIntegral (Data.ByteString.length bs)))
(Data.ProtoLens.Encoding.Bytes.putBytes bs))
Data.Text.Encoding.encodeUtf8
_v))
((Data.Monoid.<>)
(case
Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'content") _x
of
Prelude.Nothing -> Data.Monoid.mempty
(Prelude.Just _v)
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt 122)
((Prelude..)
(\ bs
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt
(Prelude.fromIntegral (Data.ByteString.length bs)))
(Data.ProtoLens.Encoding.Bytes.putBytes bs))
Data.Text.Encoding.encodeUtf8
_v))
(Data.ProtoLens.Encoding.Wire.buildFieldSet
(Lens.Family2.view Data.ProtoLens.unknownFields _x))))
instance Control.DeepSeq.NFData CodeGeneratorResponse'File where
rnf
= \ x__
-> Control.DeepSeq.deepseq
(_CodeGeneratorResponse'File'_unknownFields x__)
(Control.DeepSeq.deepseq
(_CodeGeneratorResponse'File'name x__)
(Control.DeepSeq.deepseq
(_CodeGeneratorResponse'File'insertionPoint x__)
(Control.DeepSeq.deepseq
(_CodeGeneratorResponse'File'content x__) ())))
{- | Fields :
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.major' @:: Lens' Version Data.Int.Int32@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.maybe'major' @:: Lens' Version (Prelude.Maybe Data.Int.Int32)@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.minor' @:: Lens' Version Data.Int.Int32@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.maybe'minor' @:: Lens' Version (Prelude.Maybe Data.Int.Int32)@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.patch' @:: Lens' Version Data.Int.Int32@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.maybe'patch' @:: Lens' Version (Prelude.Maybe Data.Int.Int32)@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.suffix' @:: Lens' Version Data.Text.Text@
* 'Proto.Google.Protobuf.Compiler.Plugin_Fields.maybe'suffix' @:: Lens' Version (Prelude.Maybe Data.Text.Text)@ -}
data Version
= Version'_constructor {_Version'major :: !(Prelude.Maybe Data.Int.Int32),
_Version'minor :: !(Prelude.Maybe Data.Int.Int32),
_Version'patch :: !(Prelude.Maybe Data.Int.Int32),
_Version'suffix :: !(Prelude.Maybe Data.Text.Text),
_Version'_unknownFields :: !Data.ProtoLens.FieldSet}
deriving stock (Prelude.Eq, Prelude.Ord)
instance Prelude.Show Version where
showsPrec _ __x __s
= Prelude.showChar
'{'
(Prelude.showString
(Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s))
instance Data.ProtoLens.Field.HasField Version "major" Data.Int.Int32 where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_Version'major (\ x__ y__ -> x__ {_Version'major = y__}))
(Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault)
instance Data.ProtoLens.Field.HasField Version "maybe'major" (Prelude.Maybe Data.Int.Int32) where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_Version'major (\ x__ y__ -> x__ {_Version'major = y__}))
Prelude.id
instance Data.ProtoLens.Field.HasField Version "minor" Data.Int.Int32 where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_Version'minor (\ x__ y__ -> x__ {_Version'minor = y__}))
(Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault)
instance Data.ProtoLens.Field.HasField Version "maybe'minor" (Prelude.Maybe Data.Int.Int32) where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_Version'minor (\ x__ y__ -> x__ {_Version'minor = y__}))
Prelude.id
instance Data.ProtoLens.Field.HasField Version "patch" Data.Int.Int32 where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_Version'patch (\ x__ y__ -> x__ {_Version'patch = y__}))
(Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault)
instance Data.ProtoLens.Field.HasField Version "maybe'patch" (Prelude.Maybe Data.Int.Int32) where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_Version'patch (\ x__ y__ -> x__ {_Version'patch = y__}))
Prelude.id
instance Data.ProtoLens.Field.HasField Version "suffix" Data.Text.Text where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_Version'suffix (\ x__ y__ -> x__ {_Version'suffix = y__}))
(Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault)
instance Data.ProtoLens.Field.HasField Version "maybe'suffix" (Prelude.Maybe Data.Text.Text) where
fieldOf _
= (Prelude..)
(Lens.Family2.Unchecked.lens
_Version'suffix (\ x__ y__ -> x__ {_Version'suffix = y__}))
Prelude.id
instance Data.ProtoLens.Message Version where
messageName _ = Data.Text.pack "google.protobuf.compiler.Version"
packedMessageDescriptor _
= "\n\
\\aVersion\DC2\DC4\n\
\\ENQmajor\CAN\SOH \SOH(\ENQR\ENQmajor\DC2\DC4\n\
\\ENQminor\CAN\STX \SOH(\ENQR\ENQminor\DC2\DC4\n\
\\ENQpatch\CAN\ETX \SOH(\ENQR\ENQpatch\DC2\SYN\n\
\\ACKsuffix\CAN\EOT \SOH(\tR\ACKsuffix"
packedFileDescriptor _ = packedFileDescriptor
fieldsByTag
= let
major__field_descriptor
= Data.ProtoLens.FieldDescriptor
"major"
(Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::
Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)
(Data.ProtoLens.OptionalField
(Data.ProtoLens.Field.field @"maybe'major")) ::
Data.ProtoLens.FieldDescriptor Version
minor__field_descriptor
= Data.ProtoLens.FieldDescriptor
"minor"
(Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::
Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)
(Data.ProtoLens.OptionalField
(Data.ProtoLens.Field.field @"maybe'minor")) ::
Data.ProtoLens.FieldDescriptor Version
patch__field_descriptor
= Data.ProtoLens.FieldDescriptor
"patch"
(Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field ::
Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)
(Data.ProtoLens.OptionalField
(Data.ProtoLens.Field.field @"maybe'patch")) ::
Data.ProtoLens.FieldDescriptor Version
suffix__field_descriptor
= Data.ProtoLens.FieldDescriptor
"suffix"
(Data.ProtoLens.ScalarField Data.ProtoLens.StringField ::
Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)
(Data.ProtoLens.OptionalField
(Data.ProtoLens.Field.field @"maybe'suffix")) ::
Data.ProtoLens.FieldDescriptor Version
in
Data.Map.fromList
[(Data.ProtoLens.Tag 1, major__field_descriptor),
(Data.ProtoLens.Tag 2, minor__field_descriptor),
(Data.ProtoLens.Tag 3, patch__field_descriptor),
(Data.ProtoLens.Tag 4, suffix__field_descriptor)]
unknownFields
= Lens.Family2.Unchecked.lens
_Version'_unknownFields
(\ x__ y__ -> x__ {_Version'_unknownFields = y__})
defMessage
= Version'_constructor
{_Version'major = Prelude.Nothing,
_Version'minor = Prelude.Nothing, _Version'patch = Prelude.Nothing,
_Version'suffix = Prelude.Nothing, _Version'_unknownFields = []}
parseMessage
= let
loop :: Version -> Data.ProtoLens.Encoding.Bytes.Parser Version
loop x
= do end <- Data.ProtoLens.Encoding.Bytes.atEnd
if end then
do (let missing = []
in
if Prelude.null missing then
Prelude.return ()
else
Prelude.fail
((Prelude.++)
"Missing required fields: "
(Prelude.show (missing :: [Prelude.String]))))
Prelude.return
(Lens.Family2.over
Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x)
else
do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt
case tag of
8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)
(Prelude.fmap
Prelude.fromIntegral
Data.ProtoLens.Encoding.Bytes.getVarInt)
"major"
loop (Lens.Family2.set (Data.ProtoLens.Field.field @"major") y x)
16
-> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)
(Prelude.fmap
Prelude.fromIntegral
Data.ProtoLens.Encoding.Bytes.getVarInt)
"minor"
loop (Lens.Family2.set (Data.ProtoLens.Field.field @"minor") y x)
24
-> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)
(Prelude.fmap
Prelude.fromIntegral
Data.ProtoLens.Encoding.Bytes.getVarInt)
"patch"
loop (Lens.Family2.set (Data.ProtoLens.Field.field @"patch") y x)
34
-> do y <- (Data.ProtoLens.Encoding.Bytes.<?>)
(do value <- do len <- Data.ProtoLens.Encoding.Bytes.getVarInt
Data.ProtoLens.Encoding.Bytes.getBytes
(Prelude.fromIntegral len)
Data.ProtoLens.Encoding.Bytes.runEither
(case Data.Text.Encoding.decodeUtf8' value of
(Prelude.Left err)
-> Prelude.Left (Prelude.show err)
(Prelude.Right r) -> Prelude.Right r))
"suffix"
loop (Lens.Family2.set (Data.ProtoLens.Field.field @"suffix") y x)
wire
-> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire
wire
loop
(Lens.Family2.over
Data.ProtoLens.unknownFields (\ !t -> (:) y t) x)
in
(Data.ProtoLens.Encoding.Bytes.<?>)
(do loop Data.ProtoLens.defMessage) "Version"
buildMessage
= \ _x
-> (Data.Monoid.<>)
(case
Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'major") _x
of
Prelude.Nothing -> Data.Monoid.mempty
(Prelude.Just _v)
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt 8)
((Prelude..)
Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))
((Data.Monoid.<>)
(case
Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'minor") _x
of
Prelude.Nothing -> Data.Monoid.mempty
(Prelude.Just _v)
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt 16)
((Prelude..)
Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))
((Data.Monoid.<>)
(case
Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'patch") _x
of
Prelude.Nothing -> Data.Monoid.mempty
(Prelude.Just _v)
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt 24)
((Prelude..)
Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v))
((Data.Monoid.<>)
(case
Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'suffix") _x
of
Prelude.Nothing -> Data.Monoid.mempty
(Prelude.Just _v)
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt 34)
((Prelude..)
(\ bs
-> (Data.Monoid.<>)
(Data.ProtoLens.Encoding.Bytes.putVarInt
(Prelude.fromIntegral (Data.ByteString.length bs)))
(Data.ProtoLens.Encoding.Bytes.putBytes bs))
Data.Text.Encoding.encodeUtf8
_v))
(Data.ProtoLens.Encoding.Wire.buildFieldSet
(Lens.Family2.view Data.ProtoLens.unknownFields _x)))))
instance Control.DeepSeq.NFData Version where
rnf
= \ x__
-> Control.DeepSeq.deepseq
(_Version'_unknownFields x__)
(Control.DeepSeq.deepseq
(_Version'major x__)
(Control.DeepSeq.deepseq
(_Version'minor x__)
(Control.DeepSeq.deepseq
(_Version'patch x__)
(Control.DeepSeq.deepseq (_Version'suffix x__) ()))))
packedFileDescriptor :: Data.ByteString.ByteString
packedFileDescriptor
= "\n\
\%google/protobuf/compiler/plugin.proto\DC2\CANgoogle.protobuf.compiler\SUB google/protobuf/descriptor.proto\"c\n\
\\aVersion\DC2\DC4\n\
\\ENQmajor\CAN\SOH \SOH(\ENQR\ENQmajor\DC2\DC4\n\
\\ENQminor\CAN\STX \SOH(\ENQR\ENQminor\DC2\DC4\n\
\\ENQpatch\CAN\ETX \SOH(\ENQR\ENQpatch\DC2\SYN\n\
\\ACKsuffix\CAN\EOT \SOH(\tR\ACKsuffix\"\241\SOH\n\
\\DC4CodeGeneratorRequest\DC2(\n\
\\DLEfile_to_generate\CAN\SOH \ETX(\tR\SOfileToGenerate\DC2\FS\n\
\\tparameter\CAN\STX \SOH(\tR\tparameter\DC2C\n\
\\n\
\proto_file\CAN\SI \ETX(\v2$.google.protobuf.FileDescriptorProtoR\tprotoFile\DC2L\n\
\\DLEcompiler_version\CAN\ETX \SOH(\v2!.google.protobuf.compiler.VersionR\SIcompilerVersion\"\214\SOH\n\
\\NAKCodeGeneratorResponse\DC2\DC4\n\
\\ENQerror\CAN\SOH \SOH(\tR\ENQerror\DC2H\n\
\\EOTfile\CAN\SI \ETX(\v24.google.protobuf.compiler.CodeGeneratorResponse.FileR\EOTfile\SUB]\n\
\\EOTFile\DC2\DC2\n\
\\EOTname\CAN\SOH \SOH(\tR\EOTname\DC2'\n\
\\SIinsertion_point\CAN\STX \SOH(\tR\SOinsertionPoint\DC2\CAN\n\
\\acontent\CAN\SI \SOH(\tR\acontentBg\n\
\\FScom.google.protobuf.compilerB\fPluginProtosZ9github.com/golang/protobuf/protoc-gen-go/plugin;plugin_goJ\166@\n\
\\a\DC2\ENQ.\NUL\166\SOH\SOH\n\
\\202\DC1\n\
\\SOH\f\DC2\ETX.\NUL\DC22\193\f Protocol Buffers - Google's data interchange format\n\
\ Copyright 2008 Google Inc. All rights reserved.\n\
\ https://developers.google.com/protocol-buffers/\n\
\\n\
\ Redistribution and use in source and binary forms, with or without\n\
\ modification, are permitted provided that the following conditions are\n\
\ met:\n\
\\n\
\ * Redistributions of source code must retain the above copyright\n\
\ notice, this list of conditions and the following disclaimer.\n\
\ * Redistributions in binary form must reproduce the above\n\
\ copyright notice, this list of conditions and the following disclaimer\n\
\ in the documentation and/or other materials provided with the\n\
\ distribution.\n\
\ * Neither the name of Google Inc. nor the names of its\n\
\ contributors may be used to endorse or promote products derived from\n\
\ this software without specific prior written permission.\n\
\\n\
\ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\
\ \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n\
\ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n\
\ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n\
\ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n\
\ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n\
\ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n\
\ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n\
\ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n\
\ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n\
\ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\
\2\251\EOT Author: kenton@google.com (Kenton Varda)\n\
\\n\
\ WARNING: The plugin interface is currently EXPERIMENTAL and is subject to\n\
\ change.\n\
\\n\
\ protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is\n\
\ just a program that reads a CodeGeneratorRequest from stdin and writes a\n\
\ CodeGeneratorResponse to stdout.\n\
\\n\
\ Plugins written using C++ can use google/protobuf/compiler/plugin.h instead\n\
\ of dealing with the raw protocol defined here.\n\
\\n\
\ A plugin executable needs only to be placed somewhere in the path. The\n\
\ plugin should be named \"protoc-gen-$NAME\", and will then be used when the\n\
\ flag \"--${NAME}_out\" is passed to protoc.\n\
\\n\
\\b\n\
\\SOH\STX\DC2\ETX/\b \n\
\\b\n\
\\SOH\b\DC2\ETX0\NUL5\n\
\\v\n\
\\EOT\b\231\a\NUL\DC2\ETX0\NUL5\n\
\\f\n\
\\ENQ\b\231\a\NUL\STX\DC2\ETX0\a\DC3\n\
\\r\n\
\\ACK\b\231\a\NUL\STX\NUL\DC2\ETX0\a\DC3\n\
\\SO\n\
\\a\b\231\a\NUL\STX\NUL\SOH\DC2\ETX0\a\DC3\n\
\\f\n\
\\ENQ\b\231\a\NUL\a\DC2\ETX0\SYN4\n\
\\b\n\
\\SOH\b\DC2\ETX1\NUL-\n\
\\v\n\
\\EOT\b\231\a\SOH\DC2\ETX1\NUL-\n\
\\f\n\
\\ENQ\b\231\a\SOH\STX\DC2\ETX1\a\ESC\n\
\\r\n\
\\ACK\b\231\a\SOH\STX\NUL\DC2\ETX1\a\ESC\n\
\\SO\n\
\\a\b\231\a\SOH\STX\NUL\SOH\DC2\ETX1\a\ESC\n\
\\f\n\
\\ENQ\b\231\a\SOH\a\DC2\ETX1\RS,\n\
\\b\n\
\\SOH\b\DC2\ETX3\NULP\n\
\\v\n\
\\EOT\b\231\a\STX\DC2\ETX3\NULP\n\
\\f\n\
\\ENQ\b\231\a\STX\STX\DC2\ETX3\a\DC1\n\
\\r\n\
\\ACK\b\231\a\STX\STX\NUL\DC2\ETX3\a\DC1\n\
\\SO\n\
\\a\b\231\a\STX\STX\NUL\SOH\DC2\ETX3\a\DC1\n\
\\f\n\
\\ENQ\b\231\a\STX\a\DC2\ETX3\DC4O\n\
\\t\n\
\\STX\ETX\NUL\DC2\ETX5\a)\n\
\6\n\
\\STX\EOT\NUL\DC2\EOT8\NUL?\SOH\SUB* The version number of protocol compiler.\n\
\\n\
\\n\
\\n\
\\ETX\EOT\NUL\SOH\DC2\ETX8\b\SI\n\
\\v\n\
\\EOT\EOT\NUL\STX\NUL\DC2\ETX9\STX\ESC\n\
\\f\n\
\\ENQ\EOT\NUL\STX\NUL\EOT\DC2\ETX9\STX\n\
\\n\
\\f\n\
\\ENQ\EOT\NUL\STX\NUL\ENQ\DC2\ETX9\v\DLE\n\
\\f\n\
\\ENQ\EOT\NUL\STX\NUL\SOH\DC2\ETX9\DC1\SYN\n\
\\f\n\
\\ENQ\EOT\NUL\STX\NUL\ETX\DC2\ETX9\EM\SUB\n\
\\v\n\
\\EOT\EOT\NUL\STX\SOH\DC2\ETX:\STX\ESC\n\
\\f\n\
\\ENQ\EOT\NUL\STX\SOH\EOT\DC2\ETX:\STX\n\
\\n\
\\f\n\
\\ENQ\EOT\NUL\STX\SOH\ENQ\DC2\ETX:\v\DLE\n\
\\f\n\
\\ENQ\EOT\NUL\STX\SOH\SOH\DC2\ETX:\DC1\SYN\n\
\\f\n\
\\ENQ\EOT\NUL\STX\SOH\ETX\DC2\ETX:\EM\SUB\n\
\\v\n\
\\EOT\EOT\NUL\STX\STX\DC2\ETX;\STX\ESC\n\
\\f\n\
\\ENQ\EOT\NUL\STX\STX\EOT\DC2\ETX;\STX\n\
\\n\
\\f\n\
\\ENQ\EOT\NUL\STX\STX\ENQ\DC2\ETX;\v\DLE\n\
\\f\n\
\\ENQ\EOT\NUL\STX\STX\SOH\DC2\ETX;\DC1\SYN\n\
\\f\n\
\\ENQ\EOT\NUL\STX\STX\ETX\DC2\ETX;\EM\SUB\n\
\\128\SOH\n\
\\EOT\EOT\NUL\STX\ETX\DC2\ETX>\STX\GS\SUBs A suffix for alpha, beta or rc release, e.g., \"alpha-1\", \"rc2\". It should\n\
\ be empty for mainline stable releases.\n\
\\n\
\\f\n\
\\ENQ\EOT\NUL\STX\ETX\EOT\DC2\ETX>\STX\n\
\\n\
\\f\n\
\\ENQ\EOT\NUL\STX\ETX\ENQ\DC2\ETX>\v\DC1\n\
\\f\n\
\\ENQ\EOT\NUL\STX\ETX\SOH\DC2\ETX>\DC2\CAN\n\
\\f\n\
\\ENQ\EOT\NUL\STX\ETX\ETX\DC2\ETX>\ESC\FS\n\
\O\n\
\\STX\EOT\SOH\DC2\EOTB\NUL^\SOH\SUBC An encoded CodeGeneratorRequest is written to the plugin's stdin.\n\
\\n\
\\n\
\\n\
\\ETX\EOT\SOH\SOH\DC2\ETXB\b\FS\n\
\\209\SOH\n\
\\EOT\EOT\SOH\STX\NUL\DC2\ETXF\STX'\SUB\195\SOH The .proto files that were explicitly listed on the command-line. The\n\
\ code generator should generate code only for these files. Each file's\n\
\ descriptor will be included in proto_file, below.\n\
\\n\
\\f\n\
\\ENQ\EOT\SOH\STX\NUL\EOT\DC2\ETXF\STX\n\
\\n\
\\f\n\
\\ENQ\EOT\SOH\STX\NUL\ENQ\DC2\ETXF\v\DC1\n\
\\f\n\
\\ENQ\EOT\SOH\STX\NUL\SOH\DC2\ETXF\DC2\"\n\
\\f\n\
\\ENQ\EOT\SOH\STX\NUL\ETX\DC2\ETXF%&\n\
\B\n\
\\EOT\EOT\SOH\STX\SOH\DC2\ETXI\STX \SUB5 The generator parameter passed on the command-line.\n\
\\n\
\\f\n\
\\ENQ\EOT\SOH\STX\SOH\EOT\DC2\ETXI\STX\n\
\\n\
\\f\n\
\\ENQ\EOT\SOH\STX\SOH\ENQ\DC2\ETXI\v\DC1\n\
\\f\n\
\\ENQ\EOT\SOH\STX\SOH\SOH\DC2\ETXI\DC2\ESC\n\
\\f\n\
\\ENQ\EOT\SOH\STX\SOH\ETX\DC2\ETXI\RS\US\n\
\\135\ACK\n\
\\EOT\EOT\SOH\STX\STX\DC2\ETXY\STX/\SUB\249\ENQ FileDescriptorProtos for all files in files_to_generate and everything\n\
\ they import. The files will appear in topological order, so each file\n\
\ appears before any file that imports it.\n\
\\n\
\ protoc guarantees that all proto_files will be written after\n\
\ the fields above, even though this is not technically guaranteed by the\n\
\ protobuf wire format. This theoretically could allow a plugin to stream\n\
\ in the FileDescriptorProtos and handle them one by one rather than read\n\
\ the entire set into memory at once. However, as of this writing, this\n\
\ is not similarly optimized on protoc's end -- it will store all fields in\n\
\ memory at once before sending them to the plugin.\n\
\\n\
\ Type names of fields and extensions in the FileDescriptorProto are always\n\
\ fully qualified.\n\
\\n\
\\f\n\
\\ENQ\EOT\SOH\STX\STX\EOT\DC2\ETXY\STX\n\
\\n\
\\f\n\
\\ENQ\EOT\SOH\STX\STX\ACK\DC2\ETXY\v\RS\n\
\\f\n\
\\ENQ\EOT\SOH\STX\STX\SOH\DC2\ETXY\US)\n\
\\f\n\
\\ENQ\EOT\SOH\STX\STX\ETX\DC2\ETXY,.\n\
\7\n\
\\EOT\EOT\SOH\STX\ETX\DC2\ETX\\\STX(\SUB* The version number of protocol compiler.\n\
\\n\
\\f\n\
\\ENQ\EOT\SOH\STX\ETX\EOT\DC2\ETX\\\STX\n\
\\n\
\\f\n\
\\ENQ\EOT\SOH\STX\ETX\ACK\DC2\ETX\\\v\DC2\n\
\\f\n\
\\ENQ\EOT\SOH\STX\ETX\SOH\DC2\ETX\\\DC3#\n\
\\f\n\
\\ENQ\EOT\SOH\STX\ETX\ETX\DC2\ETX\\&'\n\
\L\n\
\\STX\EOT\STX\DC2\ENQa\NUL\166\SOH\SOH\SUB? The plugin writes an encoded CodeGeneratorResponse to stdout.\n\
\\n\
\\n\
\\n\
\\ETX\EOT\STX\SOH\DC2\ETXa\b\GS\n\
\\237\ETX\n\
\\EOT\EOT\STX\STX\NUL\DC2\ETXj\STX\FS\SUB\223\ETX Error message. If non-empty, code generation failed. The plugin process\n\
\ should exit with status code zero even if it reports an error in this way.\n\
\\n\
\ This should be used to indicate errors in .proto files which prevent the\n\
\ code generator from generating correct code. Errors which indicate a\n\
\ problem in protoc itself -- such as the input CodeGeneratorRequest being\n\
\ unparseable -- should be reported by writing a message to stderr and\n\
\ exiting with a non-zero status code.\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\NUL\EOT\DC2\ETXj\STX\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\NUL\ENQ\DC2\ETXj\v\DC1\n\
\\f\n\
\\ENQ\EOT\STX\STX\NUL\SOH\DC2\ETXj\DC2\ETB\n\
\\f\n\
\\ENQ\EOT\STX\STX\NUL\ETX\DC2\ETXj\SUB\ESC\n\
\4\n\
\\EOT\EOT\STX\ETX\NUL\DC2\ENQm\STX\164\SOH\ETX\SUB% Represents a single generated file.\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\ETX\NUL\SOH\DC2\ETXm\n\
\\SO\n\
\\173\ENQ\n\
\\ACK\EOT\STX\ETX\NUL\STX\NUL\DC2\ETXy\EOT\GS\SUB\157\ENQ The file name, relative to the output directory. The name must not\n\
\ contain \".\" or \"..\" components and must be relative, not be absolute (so,\n\
\ the file cannot lie outside the output directory). \"/\" must be used as\n\
\ the path separator, not \"\\\".\n\
\\n\
\ If the name is omitted, the content will be appended to the previous\n\
\ file. This allows the generator to break large files into small chunks,\n\
\ and allows the generated text to be streamed back to protoc so that large\n\
\ files need not reside completely in memory at one time. Note that as of\n\
\ this writing protoc does not optimize for this -- it will read the entire\n\
\ CodeGeneratorResponse before writing files to disk.\n\
\\n\
\\SO\n\
\\a\EOT\STX\ETX\NUL\STX\NUL\EOT\DC2\ETXy\EOT\f\n\
\\SO\n\
\\a\EOT\STX\ETX\NUL\STX\NUL\ENQ\DC2\ETXy\r\DC3\n\
\\SO\n\
\\a\EOT\STX\ETX\NUL\STX\NUL\SOH\DC2\ETXy\DC4\CAN\n\
\\SO\n\
\\a\EOT\STX\ETX\NUL\STX\NUL\ETX\DC2\ETXy\ESC\FS\n\
\\174\DLE\n\
\\ACK\EOT\STX\ETX\NUL\STX\SOH\DC2\EOT\160\SOH\EOT(\SUB\157\DLE If non-empty, indicates that the named file should already exist, and the\n\
\ content here is to be inserted into that file at a defined insertion\n\
\ point. This feature allows a code generator to extend the output\n\
\ produced by another code generator. The original generator may provide\n\
\ insertion points by placing special annotations in the file that look\n\
\ like:\n\
\ @@protoc_insertion_point(NAME)\n\
\ The annotation can have arbitrary text before and after it on the line,\n\
\ which allows it to be placed in a comment. NAME should be replaced with\n\
\ an identifier naming the point -- this is what other generators will use\n\
\ as the insertion_point. Code inserted at this point will be placed\n\
\ immediately above the line containing the insertion point (thus multiple\n\
\ insertions to the same point will come out in the order they were added).\n\
\ The double-@ is intended to make it unlikely that the generated code\n\
\ could contain things that look like insertion points by accident.\n\
\\n\
\ For example, the C++ code generator places the following line in the\n\
\ .pb.h files that it generates:\n\
\ // @@protoc_insertion_point(namespace_scope)\n\
\ This line appears within the scope of the file's package namespace, but\n\
\ outside of any particular class. Another plugin can then specify the\n\
\ insertion_point \"namespace_scope\" to generate additional classes or\n\
\ other declarations that should be placed in this scope.\n\
\\n\
\ Note that if the line containing the insertion point begins with\n\
\ whitespace, the same whitespace will be added to every line of the\n\
\ inserted text. This is useful for languages like Python, where\n\
\ indentation matters. In these languages, the insertion point comment\n\
\ should be indented the same amount as any inserted code will need to be\n\
\ in order to work correctly in that context.\n\
\\n\
\ The code generator that generates the initial file and the one which\n\
\ inserts into it must both run as part of a single invocation of protoc.\n\
\ Code generators are executed in the order in which they appear on the\n\
\ command line.\n\
\\n\
\ If |insertion_point| is present, |name| must also be present.\n\
\\n\
\\SI\n\
\\a\EOT\STX\ETX\NUL\STX\SOH\EOT\DC2\EOT\160\SOH\EOT\f\n\
\\SI\n\
\\a\EOT\STX\ETX\NUL\STX\SOH\ENQ\DC2\EOT\160\SOH\r\DC3\n\
\\SI\n\
\\a\EOT\STX\ETX\NUL\STX\SOH\SOH\DC2\EOT\160\SOH\DC4#\n\
\\SI\n\
\\a\EOT\STX\ETX\NUL\STX\SOH\ETX\DC2\EOT\160\SOH&'\n\
\$\n\
\\ACK\EOT\STX\ETX\NUL\STX\STX\DC2\EOT\163\SOH\EOT!\SUB\DC4 The file contents.\n\
\\n\
\\SI\n\
\\a\EOT\STX\ETX\NUL\STX\STX\EOT\DC2\EOT\163\SOH\EOT\f\n\
\\SI\n\
\\a\EOT\STX\ETX\NUL\STX\STX\ENQ\DC2\EOT\163\SOH\r\DC3\n\
\\SI\n\
\\a\EOT\STX\ETX\NUL\STX\STX\SOH\DC2\EOT\163\SOH\DC4\ESC\n\
\\SI\n\
\\a\EOT\STX\ETX\NUL\STX\STX\ETX\DC2\EOT\163\SOH\RS \n\
\\f\n\
\\EOT\EOT\STX\STX\SOH\DC2\EOT\165\SOH\STX\SUB\n\
\\r\n\
\\ENQ\EOT\STX\STX\SOH\EOT\DC2\EOT\165\SOH\STX\n\
\\n\
\\r\n\
\\ENQ\EOT\STX\STX\SOH\ACK\DC2\EOT\165\SOH\v\SI\n\
\\r\n\
\\ENQ\EOT\STX\STX\SOH\SOH\DC2\EOT\165\SOH\DLE\DC4\n\
\\r\n\
\\ENQ\EOT\STX\STX\SOH\ETX\DC2\EOT\165\SOH\ETB\EM"