Searched refs:field_definition (Results 1 – 1 of 1) sorted by relevance
305 def describe_field(field_definition): argument315 field_descriptor.name = field_definition.name316 field_descriptor.number = field_definition.number317 field_descriptor.variant = field_definition.variant319 if isinstance(field_definition, messages.EnumField):320 field_descriptor.type_name = field_definition.type.definition_name()322 if isinstance(field_definition, messages.MessageField):324 field_definition.message_type.definition_name())326 if field_definition.default is not None:328 type(field_definition)](field_definition.default)[all …]