Searched refs:field_definition (Results 1 – 1 of 1) sorted by relevance
341 def describe_field(field_definition): argument351 field_descriptor.name = field_definition.name352 field_descriptor.number = field_definition.number353 field_descriptor.variant = field_definition.variant355 if isinstance(field_definition, messages.EnumField):356 field_descriptor.type_name = field_definition.type.definition_name()358 if isinstance(field_definition, messages.MessageField):359 field_descriptor.type_name = field_definition.message_type.definition_name()361 if field_definition.default is not None:363 type(field_definition)](field_definition.default)[all …]