C# Класс Google.ProtocolBuffers.ProtoGen.Generator

Code generator for protocol buffers. Only C# is supported at the moment.
Показать файл Открыть проект

Открытые методы

Метод Описание
CreateGenerator ( GeneratorOptions options ) : Generator

Returns a generator configured with the specified options.

Generate ( ) : void

Приватные методы

Метод Описание
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

Описание методов

CreateGenerator() публичный статический Метод

Returns a generator configured with the specified options.
public static CreateGenerator ( GeneratorOptions options ) : Generator
options GeneratorOptions
Результат Generator

Generate() публичный Метод

public Generate ( ) : void
Результат void