ProtoSchema(mapping=None, *, ignore_unknown_fields=False, **kwargs)Represents a protobuf schema.
Attribute |
|
|---|---|
| Name | Description |
proto_descriptors |
bytes
Required. Contains a protobuf-serialized google.protobuf.FileDescriptorSet __,
which could include multiple proto files. To generate it,
install __ and
run protoc with --include_imports and
--descriptor_set_out. For example, to generate for
moon/shot/app.proto, run
::
$protoc --proto_path=/app_path --proto_path=/lib_path \
--include_imports \
--descriptor_set_out=descriptors.pb \
moon/shot/app.proto
For more details, see protobuffer `self
description |