webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Functions
google.protobuf.proto_builder Namespace Reference

Functions

def MakeSimpleProtoClass (fields, full_name=None, pool=None)
 

Function Documentation

◆ MakeSimpleProtoClass()

def google.protobuf.proto_builder.MakeSimpleProtoClass (   fields,
  full_name = None,
  pool = None 
)
Create a Protobuf class whose fields are basic types.

Note: this doesn't validate field names!

Args:
  fields: dict of {name: field_type} mappings for each field in the proto. If
      this is an OrderedDict the order will be maintained, otherwise the
      fields will be sorted by name.
  full_name: optional str, the fully-qualified name of the proto type.
  pool: optional DescriptorPool instance.
Returns:
  a class, the new protobuf class with a FileDescriptor.