C# Class Google.ProtocolBuffers.ProtoGen.Generator

Code generator for protocol buffers. Only C# is supported at the moment.
Mostrar archivo Open project: ayende/dotnet-protobufs

Public Methods

Method Description
CreateGenerator ( GeneratorOptions options ) : Generator

Returns a generator configured with the specified options.

Generate ( ) : void

Private Methods

Method Description
ConvertDescriptors ( FileDescriptorSet descriptorProtos ) : IList

Resolves any dependencies and converts FileDescriptorProtos into FileDescriptors. The list returned is in the same order as the protos are listed in the descriptor set. Note: this method is internal rather than private to allow testing.

Generate ( FileDescriptor descriptor ) : void

Generates code for a particular file. All dependencies must already have been resolved.

Generator ( GeneratorOptions options ) : System.Collections.Generic
GetOutputFile ( FileDescriptor descriptor ) : string

Method Details

CreateGenerator() public static method

Returns a generator configured with the specified options.
public static CreateGenerator ( GeneratorOptions options ) : Generator
options GeneratorOptions
return Generator

Generate() public method

public Generate ( ) : void
return void