Dart Code Generator
A command-line tool which generates Dart code for Protobuf type registries.
Usage
The generator accepts several command-line arguments:
- Required option
--descriptorspecifies the path to a file which contains agoogle.protobuf.FileDescriptorSet. The descriptor set contains all the Protobuf types for which the tool must generate code. - Required option
--destinationspecifies the path to the file into which the code must be written. If the file does not exist, it is created. - Option
--standard-typesspecifies a Dart package which contains standard Protobuf types. The default value of this option isspine_client. The package should contain types:- declared in the
google.protobuf.*package; - declared in the base module in Spine.
- declared in the
- Option
--import-prefixspecifies the path prefix for.pb.dartfiles generated for types listed in thedescriptor. Defaults to an empty path, implying that the generated files are located in the same directory as thedestination. - Flag
--stdoutmakes the tool print the output Dart code into the standard output stream, as well as writing it into thedestinationfile. - Flag
--no-stdoutensures that the tool does not print Dart code into the standard output stream. This is the default behaviour. - Flag
--help(or-hfor short), makes the tool print a brief usage guide. When called with this flag, all the other flags are ignored.
Libraries
- dart_code_gen
- google/protobuf/any.pb
- google/protobuf/any.pbenum
- google/protobuf/any.pbjson
- google/protobuf/any.pbserver
- google/protobuf/api.pb
- google/protobuf/api.pbenum
- google/protobuf/api.pbjson
- google/protobuf/api.pbserver
- google/protobuf/compiler/plugin.pb
- google/protobuf/compiler/plugin.pbenum
- google/protobuf/compiler/plugin.pbjson
- google/protobuf/compiler/plugin.pbserver
- google/protobuf/descriptor.pb
- google/protobuf/descriptor.pbenum
- google/protobuf/descriptor.pbjson
- google/protobuf/descriptor.pbserver
- google/protobuf/duration.pb
- google/protobuf/duration.pbenum
- google/protobuf/duration.pbjson
- google/protobuf/duration.pbserver
- google/protobuf/empty.pb
- google/protobuf/empty.pbenum
- google/protobuf/empty.pbjson
- google/protobuf/empty.pbserver
- google/protobuf/field_mask.pb
- google/protobuf/field_mask.pbenum
- google/protobuf/field_mask.pbjson
- google/protobuf/field_mask.pbserver
- google/protobuf/source_context.pb
- google/protobuf/source_context.pbenum
- google/protobuf/source_context.pbjson
- google/protobuf/source_context.pbserver
- google/protobuf/struct.pb
- google/protobuf/struct.pbenum
- google/protobuf/struct.pbjson
- google/protobuf/struct.pbserver
- google/protobuf/timestamp.pb
- google/protobuf/timestamp.pbenum
- google/protobuf/timestamp.pbjson
- google/protobuf/timestamp.pbserver
- google/protobuf/type.pb
- google/protobuf/type.pbenum
- google/protobuf/type.pbjson
- google/protobuf/type.pbserver
- google/protobuf/wrappers.pb
- google/protobuf/wrappers.pbenum
- google/protobuf/wrappers.pbjson
- google/protobuf/wrappers.pbserver
- spine/base/error.pb
- spine/base/error.pbenum
- spine/base/error.pbjson
- spine/base/error.pbserver
- spine/base/field_filter.pb
- spine/base/field_filter.pbenum
- spine/base/field_filter.pbjson
- spine/base/field_filter.pbserver
- spine/base/field_path.pb
- spine/base/field_path.pbenum
- spine/base/field_path.pbjson
- spine/base/field_path.pbserver
- spine/net/email_address.pb
- spine/net/email_address.pbenum
- spine/net/email_address.pbjson
- spine/net/email_address.pbserver
- spine/net/internet_domain.pb
- spine/net/internet_domain.pbenum
- spine/net/internet_domain.pbjson
- spine/net/internet_domain.pbserver
- spine/net/url.pb
- spine/net/url.pbenum
- spine/net/url.pbjson
- spine/net/url.pbserver
- spine/options.pb
- spine/options.pbenum
- spine/options.pbjson
- spine/options.pbserver
- spine/people/person_name.pb
- spine/people/person_name.pbenum
- spine/people/person_name.pbjson
- spine/people/person_name.pbserver
- spine/ui/color.pb
- spine/ui/color.pbenum
- spine/ui/color.pbjson
- spine/ui/color.pbserver
- spine/ui/language.pb
- spine/ui/language.pbenum
- spine/ui/language.pbjson
- spine/ui/language.pbserver
- spine/validate/validation_error.pb
- spine/validate/validation_error.pbenum
- spine/validate/validation_error.pbjson
- spine/validate/validation_error.pbserver