Lines Matching refs:FieldD
67 FieldD = descriptor.FieldDescriptorProto variable
69 FieldD.TYPE_BOOL: ('bool', 'BOOL', 1, False),
70 FieldD.TYPE_DOUBLE: ('double', 'DOUBLE', 8, False),
71 FieldD.TYPE_FIXED32: ('uint32_t', 'FIXED32', 4, False),
72 FieldD.TYPE_FIXED64: ('uint64_t', 'FIXED64', 8, False),
73 FieldD.TYPE_FLOAT: ('float', 'FLOAT', 4, False),
74 FieldD.TYPE_INT32: ('int32_t', 'INT32', 10, True),
75 FieldD.TYPE_INT64: ('int64_t', 'INT64', 10, True),
76 FieldD.TYPE_SFIXED32: ('int32_t', 'SFIXED32', 4, False),
77 FieldD.TYPE_SFIXED64: ('int64_t', 'SFIXED64', 8, False),
78 FieldD.TYPE_SINT32: ('int32_t', 'SINT32', 5, True),
79 FieldD.TYPE_SINT64: ('int64_t', 'SINT64', 10, True),
80 FieldD.TYPE_UINT32: ('uint32_t', 'UINT32', 5, True),
81 FieldD.TYPE_UINT64: ('uint64_t', 'UINT64', 10, True)
292 if desc.type == FieldD.TYPE_STRING and field_options.HasField("max_length"):
304 if desc.label == FieldD.LABEL_REPEATED:
314 elif desc.label == FieldD.LABEL_REQUIRED:
316 elif desc.label == FieldD.LABEL_OPTIONAL:
323 if desc.type == FieldD.TYPE_STRING and self.max_size is None:
326 if desc.type == FieldD.TYPE_BYTES and self.max_size is None:
360 if desc.type == FieldD.TYPE_UINT32 or desc.type == FieldD.TYPE_UINT64:
362 elif desc.type == FieldD.TYPE_ENUM:
368 elif desc.type == FieldD.TYPE_STRING:
375 elif desc.type == FieldD.TYPE_BYTES:
392 elif desc.type == FieldD.TYPE_MESSAGE: