From fa5710f1cad50ddd17605c73d4661acbf265a469 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 2 Jan 2010 15:30:51 -0800 Subject: upb_string* -> upb_strptr, to follow aliasing rules. --- descriptor/descriptor.c | 836 ++++++++++++++++++++++++------------------------ descriptor/descriptor.h | 40 +-- 2 files changed, 438 insertions(+), 438 deletions(-) (limited to 'descriptor') diff --git a/descriptor/descriptor.c b/descriptor/descriptor.c index 6d15f64..aa5a000 100644 --- a/descriptor/descriptor.c +++ b/descriptor/descriptor.c @@ -3,7 +3,7 @@ * It was created by the upb compiler (upbc) with the following * command-line: * - * tools/upbc -i upb_file_descriptor_set -o descriptor/descriptor descriptor/descriptor.proto.pb + * ./tools/upbc -i upb_file_descriptor_set -o descriptor/descriptor descriptor/descriptor.proto.pb * * This file is a dump of 'descriptor/descriptor.proto.pb'. * It contains exactly the same data, but in a C structure form @@ -42,120 +42,120 @@ static char strdata[] = "alue"; static upb_norefcount_string strings[] = { - UPB_STRLIT_LEN(&strdata[0], 32), - UPB_STRLIT_LEN(&strdata[32], 47), - UPB_STRLIT_LEN(&strdata[79], 36), - UPB_STRLIT_LEN(&strdata[115], 28), - UPB_STRLIT_LEN(&strdata[143], 41), - UPB_STRLIT_LEN(&strdata[184], 33), - UPB_STRLIT_LEN(&strdata[217], 37), - UPB_STRLIT_LEN(&strdata[254], 43), - UPB_STRLIT_LEN(&strdata[297], 42), - UPB_STRLIT_LEN(&strdata[339], 29), - UPB_STRLIT_LEN(&strdata[368], 35), - UPB_STRLIT_LEN(&strdata[403], 36), - UPB_STRLIT_LEN(&strdata[439], 28), - UPB_STRLIT_LEN(&strdata[467], 41), - UPB_STRLIT_LEN(&strdata[508], 31), - UPB_STRLIT_LEN(&strdata[539], 38), - UPB_STRLIT_LEN(&strdata[577], 30), - UPB_STRLIT_LEN(&strdata[607], 39), - UPB_STRLIT_LEN(&strdata[646], 31), - UPB_STRLIT_LEN(&strdata[677], 36), - UPB_STRLIT_LEN(&strdata[713], 45), - UPB_STRLIT_LEN(&strdata[758], 9), - UPB_STRLIT_LEN(&strdata[767], 4), - UPB_STRLIT_LEN(&strdata[771], 5), - UPB_STRLIT_LEN(&strdata[776], 15), - UPB_STRLIT_LEN(&strdata[791], 16), - UPB_STRLIT_LEN(&strdata[807], 19), - UPB_STRLIT_LEN(&strdata[826], 11), - UPB_STRLIT_LEN(&strdata[837], 24), - UPB_STRLIT_LEN(&strdata[861], 16), - UPB_STRLIT_LEN(&strdata[877], 14), - UPB_STRLIT_LEN(&strdata[891], 20), - UPB_STRLIT_LEN(&strdata[911], 12), - UPB_STRLIT_LEN(&strdata[923], 19), - UPB_STRLIT_LEN(&strdata[942], 17), - UPB_STRLIT_LEN(&strdata[959], 11), - UPB_STRLIT_LEN(&strdata[970], 14), - UPB_STRLIT_LEN(&strdata[984], 14), - UPB_STRLIT_LEN(&strdata[998], 14), - UPB_STRLIT_LEN(&strdata[1012], 5), - UPB_STRLIT_LEN(&strdata[1017], 14), - UPB_STRLIT_LEN(&strdata[1031], 21), - UPB_STRLIT_LEN(&strdata[1052], 13), - UPB_STRLIT_LEN(&strdata[1065], 8), - UPB_STRLIT_LEN(&strdata[1073], 12), - UPB_STRLIT_LEN(&strdata[1085], 5), - UPB_STRLIT_LEN(&strdata[1090], 12), - UPB_STRLIT_LEN(&strdata[1102], 22), - UPB_STRLIT_LEN(&strdata[1124], 14), - UPB_STRLIT_LEN(&strdata[1138], 9), - UPB_STRLIT_LEN(&strdata[1147], 10), - UPB_STRLIT_LEN(&strdata[1157], 11), - UPB_STRLIT_LEN(&strdata[1168], 9), - UPB_STRLIT_LEN(&strdata[1177], 12), - UPB_STRLIT_LEN(&strdata[1189], 12), - UPB_STRLIT_LEN(&strdata[1201], 10), - UPB_STRLIT_LEN(&strdata[1211], 10), - UPB_STRLIT_LEN(&strdata[1221], 10), - UPB_STRLIT_LEN(&strdata[1231], 10), - UPB_STRLIT_LEN(&strdata[1241], 12), - UPB_STRLIT_LEN(&strdata[1253], 13), - UPB_STRLIT_LEN(&strdata[1266], 13), - UPB_STRLIT_LEN(&strdata[1279], 11), - UPB_STRLIT_LEN(&strdata[1290], 11), - UPB_STRLIT_LEN(&strdata[1301], 11), - UPB_STRLIT_LEN(&strdata[1312], 11), - UPB_STRLIT_LEN(&strdata[1323], 11), - UPB_STRLIT_LEN(&strdata[1334], 4), - UPB_STRLIT_LEN(&strdata[1338], 19), - UPB_STRLIT_LEN(&strdata[1357], 19), - UPB_STRLIT_LEN(&strdata[1376], 5), - UPB_STRLIT_LEN(&strdata[1381], 13), - UPB_STRLIT_LEN(&strdata[1394], 10), - UPB_STRLIT_LEN(&strdata[1404], 10), - UPB_STRLIT_LEN(&strdata[1414], 27), - UPB_STRLIT_LEN(&strdata[1441], 12), - UPB_STRLIT_LEN(&strdata[1453], 3), - UPB_STRLIT_LEN(&strdata[1456], 9), - UPB_STRLIT_LEN(&strdata[1465], 20), - UPB_STRLIT_LEN(&strdata[1485], 8), - UPB_STRLIT_LEN(&strdata[1493], 9), - UPB_STRLIT_LEN(&strdata[1502], 15), - UPB_STRLIT_LEN(&strdata[1517], 5), - UPB_STRLIT_LEN(&strdata[1522], 5), - UPB_STRLIT_LEN(&strdata[1527], 4), - UPB_STRLIT_LEN(&strdata[1531], 15), - UPB_STRLIT_LEN(&strdata[1546], 16), - UPB_STRLIT_LEN(&strdata[1562], 10), - UPB_STRLIT_LEN(&strdata[1572], 12), - UPB_STRLIT_LEN(&strdata[1584], 19), - UPB_STRLIT_LEN(&strdata[1603], 20), - UPB_STRLIT_LEN(&strdata[1623], 12), - UPB_STRLIT_LEN(&strdata[1635], 5), - UPB_STRLIT_LEN(&strdata[1640], 23), - UPB_STRLIT_LEN(&strdata[1663], 12), - UPB_STRLIT_LEN(&strdata[1675], 6), - UPB_STRLIT_LEN(&strdata[1681], 4), - UPB_STRLIT_LEN(&strdata[1685], 9), - UPB_STRLIT_LEN(&strdata[1694], 18), - UPB_STRLIT_LEN(&strdata[1712], 11), - UPB_STRLIT_LEN(&strdata[1723], 6), - UPB_STRLIT_LEN(&strdata[1729], 12), - UPB_STRLIT_LEN(&strdata[1741], 7), - UPB_STRLIT_LEN(&strdata[1748], 11), - UPB_STRLIT_LEN(&strdata[1759], 7), - UPB_STRLIT_LEN(&strdata[1766], 6), - UPB_STRLIT_LEN(&strdata[1772], 18), - UPB_STRLIT_LEN(&strdata[1790], 7), - UPB_STRLIT_LEN(&strdata[1797], 5), - UPB_STRLIT_LEN(&strdata[1802], 12), - UPB_STRLIT_LEN(&strdata[1814], 4), - UPB_STRLIT_LEN(&strdata[1818], 9), - UPB_STRLIT_LEN(&strdata[1827], 20), - UPB_STRLIT_LEN(&strdata[1847], 5), + UPB_STATIC_STRING_INIT_LEN(&strdata[0], 32), + UPB_STATIC_STRING_INIT_LEN(&strdata[32], 47), + UPB_STATIC_STRING_INIT_LEN(&strdata[79], 36), + UPB_STATIC_STRING_INIT_LEN(&strdata[115], 28), + UPB_STATIC_STRING_INIT_LEN(&strdata[143], 41), + UPB_STATIC_STRING_INIT_LEN(&strdata[184], 33), + UPB_STATIC_STRING_INIT_LEN(&strdata[217], 37), + UPB_STATIC_STRING_INIT_LEN(&strdata[254], 43), + UPB_STATIC_STRING_INIT_LEN(&strdata[297], 42), + UPB_STATIC_STRING_INIT_LEN(&strdata[339], 29), + UPB_STATIC_STRING_INIT_LEN(&strdata[368], 35), + UPB_STATIC_STRING_INIT_LEN(&strdata[403], 36), + UPB_STATIC_STRING_INIT_LEN(&strdata[439], 28), + UPB_STATIC_STRING_INIT_LEN(&strdata[467], 41), + UPB_STATIC_STRING_INIT_LEN(&strdata[508], 31), + UPB_STATIC_STRING_INIT_LEN(&strdata[539], 38), + UPB_STATIC_STRING_INIT_LEN(&strdata[577], 30), + UPB_STATIC_STRING_INIT_LEN(&strdata[607], 39), + UPB_STATIC_STRING_INIT_LEN(&strdata[646], 31), + UPB_STATIC_STRING_INIT_LEN(&strdata[677], 36), + UPB_STATIC_STRING_INIT_LEN(&strdata[713], 45), + UPB_STATIC_STRING_INIT_LEN(&strdata[758], 9), + UPB_STATIC_STRING_INIT_LEN(&strdata[767], 4), + UPB_STATIC_STRING_INIT_LEN(&strdata[771], 5), + UPB_STATIC_STRING_INIT_LEN(&strdata[776], 15), + UPB_STATIC_STRING_INIT_LEN(&strdata[791], 16), + UPB_STATIC_STRING_INIT_LEN(&strdata[807], 19), + UPB_STATIC_STRING_INIT_LEN(&strdata[826], 11), + UPB_STATIC_STRING_INIT_LEN(&strdata[837], 24), + UPB_STATIC_STRING_INIT_LEN(&strdata[861], 16), + UPB_STATIC_STRING_INIT_LEN(&strdata[877], 14), + UPB_STATIC_STRING_INIT_LEN(&strdata[891], 20), + UPB_STATIC_STRING_INIT_LEN(&strdata[911], 12), + UPB_STATIC_STRING_INIT_LEN(&strdata[923], 19), + UPB_STATIC_STRING_INIT_LEN(&strdata[942], 17), + UPB_STATIC_STRING_INIT_LEN(&strdata[959], 11), + UPB_STATIC_STRING_INIT_LEN(&strdata[970], 14), + UPB_STATIC_STRING_INIT_LEN(&strdata[984], 14), + UPB_STATIC_STRING_INIT_LEN(&strdata[998], 14), + UPB_STATIC_STRING_INIT_LEN(&strdata[1012], 5), + UPB_STATIC_STRING_INIT_LEN(&strdata[1017], 14), + UPB_STATIC_STRING_INIT_LEN(&strdata[1031], 21), + UPB_STATIC_STRING_INIT_LEN(&strdata[1052], 13), + UPB_STATIC_STRING_INIT_LEN(&strdata[1065], 8), + UPB_STATIC_STRING_INIT_LEN(&strdata[1073], 12), + UPB_STATIC_STRING_INIT_LEN(&strdata[1085], 5), + UPB_STATIC_STRING_INIT_LEN(&strdata[1090], 12), + UPB_STATIC_STRING_INIT_LEN(&strdata[1102], 22), + UPB_STATIC_STRING_INIT_LEN(&strdata[1124], 14), + UPB_STATIC_STRING_INIT_LEN(&strdata[1138], 9), + UPB_STATIC_STRING_INIT_LEN(&strdata[1147], 10), + UPB_STATIC_STRING_INIT_LEN(&strdata[1157], 11), + UPB_STATIC_STRING_INIT_LEN(&strdata[1168], 9), + UPB_STATIC_STRING_INIT_LEN(&strdata[1177], 12), + UPB_STATIC_STRING_INIT_LEN(&strdata[1189], 12), + UPB_STATIC_STRING_INIT_LEN(&strdata[1201], 10), + UPB_STATIC_STRING_INIT_LEN(&strdata[1211], 10), + UPB_STATIC_STRING_INIT_LEN(&strdata[1221], 10), + UPB_STATIC_STRING_INIT_LEN(&strdata[1231], 10), + UPB_STATIC_STRING_INIT_LEN(&strdata[1241], 12), + UPB_STATIC_STRING_INIT_LEN(&strdata[1253], 13), + UPB_STATIC_STRING_INIT_LEN(&strdata[1266], 13), + UPB_STATIC_STRING_INIT_LEN(&strdata[1279], 11), + UPB_STATIC_STRING_INIT_LEN(&strdata[1290], 11), + UPB_STATIC_STRING_INIT_LEN(&strdata[1301], 11), + UPB_STATIC_STRING_INIT_LEN(&strdata[1312], 11), + UPB_STATIC_STRING_INIT_LEN(&strdata[1323], 11), + UPB_STATIC_STRING_INIT_LEN(&strdata[1334], 4), + UPB_STATIC_STRING_INIT_LEN(&strdata[1338], 19), + UPB_STATIC_STRING_INIT_LEN(&strdata[1357], 19), + UPB_STATIC_STRING_INIT_LEN(&strdata[1376], 5), + UPB_STATIC_STRING_INIT_LEN(&strdata[1381], 13), + UPB_STATIC_STRING_INIT_LEN(&strdata[1394], 10), + UPB_STATIC_STRING_INIT_LEN(&strdata[1404], 10), + UPB_STATIC_STRING_INIT_LEN(&strdata[1414], 27), + UPB_STATIC_STRING_INIT_LEN(&strdata[1441], 12), + UPB_STATIC_STRING_INIT_LEN(&strdata[1453], 3), + UPB_STATIC_STRING_INIT_LEN(&strdata[1456], 9), + UPB_STATIC_STRING_INIT_LEN(&strdata[1465], 20), + UPB_STATIC_STRING_INIT_LEN(&strdata[1485], 8), + UPB_STATIC_STRING_INIT_LEN(&strdata[1493], 9), + UPB_STATIC_STRING_INIT_LEN(&strdata[1502], 15), + UPB_STATIC_STRING_INIT_LEN(&strdata[1517], 5), + UPB_STATIC_STRING_INIT_LEN(&strdata[1522], 5), + UPB_STATIC_STRING_INIT_LEN(&strdata[1527], 4), + UPB_STATIC_STRING_INIT_LEN(&strdata[1531], 15), + UPB_STATIC_STRING_INIT_LEN(&strdata[1546], 16), + UPB_STATIC_STRING_INIT_LEN(&strdata[1562], 10), + UPB_STATIC_STRING_INIT_LEN(&strdata[1572], 12), + UPB_STATIC_STRING_INIT_LEN(&strdata[1584], 19), + UPB_STATIC_STRING_INIT_LEN(&strdata[1603], 20), + UPB_STATIC_STRING_INIT_LEN(&strdata[1623], 12), + UPB_STATIC_STRING_INIT_LEN(&strdata[1635], 5), + UPB_STATIC_STRING_INIT_LEN(&strdata[1640], 23), + UPB_STATIC_STRING_INIT_LEN(&strdata[1663], 12), + UPB_STATIC_STRING_INIT_LEN(&strdata[1675], 6), + UPB_STATIC_STRING_INIT_LEN(&strdata[1681], 4), + UPB_STATIC_STRING_INIT_LEN(&strdata[1685], 9), + UPB_STATIC_STRING_INIT_LEN(&strdata[1694], 18), + UPB_STATIC_STRING_INIT_LEN(&strdata[1712], 11), + UPB_STATIC_STRING_INIT_LEN(&strdata[1723], 6), + UPB_STATIC_STRING_INIT_LEN(&strdata[1729], 12), + UPB_STATIC_STRING_INIT_LEN(&strdata[1741], 7), + UPB_STATIC_STRING_INIT_LEN(&strdata[1748], 11), + UPB_STATIC_STRING_INIT_LEN(&strdata[1759], 7), + UPB_STATIC_STRING_INIT_LEN(&strdata[1766], 6), + UPB_STATIC_STRING_INIT_LEN(&strdata[1772], 18), + UPB_STATIC_STRING_INIT_LEN(&strdata[1790], 7), + UPB_STATIC_STRING_INIT_LEN(&strdata[1797], 5), + UPB_STATIC_STRING_INIT_LEN(&strdata[1802], 12), + UPB_STATIC_STRING_INIT_LEN(&strdata[1814], 4), + UPB_STATIC_STRING_INIT_LEN(&strdata[1818], 9), + UPB_STATIC_STRING_INIT_LEN(&strdata[1827], 20), + UPB_STATIC_STRING_INIT_LEN(&strdata[1847], 5), }; /* Forward declarations of messages, and array decls. */ @@ -365,7 +365,7 @@ static google_protobuf_DescriptorProto google_protobuf_DescriptorProto_values[18 .extension = false, .options = false, }}, - .name = (upb_string*)&strings[34], /* "FileDescriptorSet" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[34]), /* "FileDescriptorSet" */ .field = &google_protobuf_FieldDescriptorProto_arrays[0], .nested_type = 0, /* Not set. */ .enum_type = 0, /* Not set. */ @@ -383,7 +383,7 @@ static google_protobuf_DescriptorProto google_protobuf_DescriptorProto_values[18 .extension = false, .options = false, }}, - .name = (upb_string*)&strings[33], /* "FileDescriptorProto" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[33]), /* "FileDescriptorProto" */ .field = &google_protobuf_FieldDescriptorProto_arrays[1], .nested_type = 0, /* Not set. */ .enum_type = 0, /* Not set. */ @@ -401,7 +401,7 @@ static google_protobuf_DescriptorProto google_protobuf_DescriptorProto_values[18 .extension = false, .options = false, }}, - .name = (upb_string*)&strings[24], /* "DescriptorProto" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[24]), /* "DescriptorProto" */ .field = &google_protobuf_FieldDescriptorProto_arrays[2], .nested_type = &google_protobuf_DescriptorProto_arrays[1], .enum_type = 0, /* Not set. */ @@ -419,7 +419,7 @@ static google_protobuf_DescriptorProto google_protobuf_DescriptorProto_values[18 .extension = false, .options = false, }}, - .name = (upb_string*)&strings[31], /* "FieldDescriptorProto" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[31]), /* "FieldDescriptorProto" */ .field = &google_protobuf_FieldDescriptorProto_arrays[4], .nested_type = 0, /* Not set. */ .enum_type = &google_protobuf_EnumDescriptorProto_arrays[0], @@ -437,7 +437,7 @@ static google_protobuf_DescriptorProto google_protobuf_DescriptorProto_values[18 .extension = false, .options = false, }}, - .name = (upb_string*)&strings[26], /* "EnumDescriptorProto" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[26]), /* "EnumDescriptorProto" */ .field = &google_protobuf_FieldDescriptorProto_arrays[5], .nested_type = 0, /* Not set. */ .enum_type = 0, /* Not set. */ @@ -455,7 +455,7 @@ static google_protobuf_DescriptorProto google_protobuf_DescriptorProto_values[18 .extension = false, .options = false, }}, - .name = (upb_string*)&strings[28], /* "EnumValueDescriptorProto" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[28]), /* "EnumValueDescriptorProto" */ .field = &google_protobuf_FieldDescriptorProto_arrays[6], .nested_type = 0, /* Not set. */ .enum_type = 0, /* Not set. */ @@ -473,7 +473,7 @@ static google_protobuf_DescriptorProto google_protobuf_DescriptorProto_values[18 .extension = false, .options = false, }}, - .name = (upb_string*)&strings[47], /* "ServiceDescriptorProto" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[47]), /* "ServiceDescriptorProto" */ .field = &google_protobuf_FieldDescriptorProto_arrays[7], .nested_type = 0, /* Not set. */ .enum_type = 0, /* Not set. */ @@ -491,7 +491,7 @@ static google_protobuf_DescriptorProto google_protobuf_DescriptorProto_values[18 .extension = false, .options = false, }}, - .name = (upb_string*)&strings[41], /* "MethodDescriptorProto" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[41]), /* "MethodDescriptorProto" */ .field = &google_protobuf_FieldDescriptorProto_arrays[8], .nested_type = 0, /* Not set. */ .enum_type = 0, /* Not set. */ @@ -509,7 +509,7 @@ static google_protobuf_DescriptorProto google_protobuf_DescriptorProto_values[18 .extension = false, .options = false, }}, - .name = (upb_string*)&strings[35], /* "FileOptions" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[35]), /* "FileOptions" */ .field = &google_protobuf_FieldDescriptorProto_arrays[9], .nested_type = 0, /* Not set. */ .enum_type = &google_protobuf_EnumDescriptorProto_arrays[1], @@ -527,7 +527,7 @@ static google_protobuf_DescriptorProto google_protobuf_DescriptorProto_values[18 .extension = false, .options = false, }}, - .name = (upb_string*)&strings[40], /* "MessageOptions" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[40]), /* "MessageOptions" */ .field = &google_protobuf_FieldDescriptorProto_arrays[10], .nested_type = 0, /* Not set. */ .enum_type = 0, /* Not set. */ @@ -545,7 +545,7 @@ static google_protobuf_DescriptorProto google_protobuf_DescriptorProto_values[18 .extension = false, .options = false, }}, - .name = (upb_string*)&strings[32], /* "FieldOptions" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[32]), /* "FieldOptions" */ .field = &google_protobuf_FieldDescriptorProto_arrays[11], .nested_type = 0, /* Not set. */ .enum_type = &google_protobuf_EnumDescriptorProto_arrays[2], @@ -563,7 +563,7 @@ static google_protobuf_DescriptorProto google_protobuf_DescriptorProto_values[18 .extension = false, .options = false, }}, - .name = (upb_string*)&strings[27], /* "EnumOptions" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[27]), /* "EnumOptions" */ .field = &google_protobuf_FieldDescriptorProto_arrays[12], .nested_type = 0, /* Not set. */ .enum_type = 0, /* Not set. */ @@ -581,7 +581,7 @@ static google_protobuf_DescriptorProto google_protobuf_DescriptorProto_values[18 .extension = false, .options = false, }}, - .name = (upb_string*)&strings[29], /* "EnumValueOptions" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[29]), /* "EnumValueOptions" */ .field = &google_protobuf_FieldDescriptorProto_arrays[13], .nested_type = 0, /* Not set. */ .enum_type = 0, /* Not set. */ @@ -599,7 +599,7 @@ static google_protobuf_DescriptorProto google_protobuf_DescriptorProto_values[18 .extension = false, .options = false, }}, - .name = (upb_string*)&strings[48], /* "ServiceOptions" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[48]), /* "ServiceOptions" */ .field = &google_protobuf_FieldDescriptorProto_arrays[14], .nested_type = 0, /* Not set. */ .enum_type = 0, /* Not set. */ @@ -617,7 +617,7 @@ static google_protobuf_DescriptorProto google_protobuf_DescriptorProto_values[18 .extension = false, .options = false, }}, - .name = (upb_string*)&strings[42], /* "MethodOptions" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[42]), /* "MethodOptions" */ .field = &google_protobuf_FieldDescriptorProto_arrays[15], .nested_type = 0, /* Not set. */ .enum_type = 0, /* Not set. */ @@ -635,7 +635,7 @@ static google_protobuf_DescriptorProto google_protobuf_DescriptorProto_values[18 .extension = false, .options = false, }}, - .name = (upb_string*)&strings[68], /* "UninterpretedOption" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[68]), /* "UninterpretedOption" */ .field = &google_protobuf_FieldDescriptorProto_arrays[16], .nested_type = &google_protobuf_DescriptorProto_arrays[2], .enum_type = 0, /* Not set. */ @@ -653,7 +653,7 @@ static google_protobuf_DescriptorProto google_protobuf_DescriptorProto_values[18 .extension = false, .options = false, }}, - .name = (upb_string*)&strings[30], /* "ExtensionRange" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[30]), /* "ExtensionRange" */ .field = &google_protobuf_FieldDescriptorProto_arrays[3], .nested_type = 0, /* Not set. */ .enum_type = 0, /* Not set. */ @@ -671,7 +671,7 @@ static google_protobuf_DescriptorProto google_protobuf_DescriptorProto_values[18 .extension = false, .options = false, }}, - .name = (upb_string*)&strings[43], /* "NamePart" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[43]), /* "NamePart" */ .field = &google_protobuf_FieldDescriptorProto_arrays[17], .nested_type = 0, /* Not set. */ .enum_type = 0, /* Not set. */ @@ -693,8 +693,8 @@ static google_protobuf_FileDescriptorProto google_protobuf_FileDescriptorProto_v .extension = false, .options = true, }}, - .name = (upb_string*)&strings[74], /* "descriptor/descriptor.proto" */ - .package = (upb_string*)&strings[85], /* "google.protobuf" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[74]), /* "descriptor/descriptor.proto" */ + .package = UPB_STATIC_STRING_PTR_INIT(strings[85]), /* "google.protobuf" */ .dependency = 0, /* Not set. */ .message_type = &google_protobuf_DescriptorProto_arrays[0], .enum_type = 0, /* Not set. */ @@ -781,8 +781,8 @@ static google_protobuf_FileOptions google_protobuf_FileOptions_values[1] = { .java_multiple_files = false, .uninterpreted_option = false, }}, - .java_package = (upb_string*)&strings[69], /* "com.google.protobuf" */ - .java_outer_classname = (upb_string*)&strings[25], /* "DescriptorProtos" */ + .java_package = UPB_STATIC_STRING_PTR_INIT(strings[69]), /* "com.google.protobuf" */ + .java_outer_classname = UPB_STATIC_STRING_PTR_INIT(strings[25]), /* "DescriptorProtos" */ .optimize_for = 1, .java_multiple_files = 0, /* Not set. */ .uninterpreted_option = 0, /* Not set. */ @@ -796,7 +796,7 @@ static google_protobuf_EnumDescriptorProto google_protobuf_EnumDescriptorProto_v .value = true, .options = false, }}, - .name = (upb_string*)&strings[67], /* "Type" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[67]), /* "Type" */ .value = &google_protobuf_EnumValueDescriptorProto_arrays[0], .options = 0, /* Not set. */ }, @@ -806,7 +806,7 @@ static google_protobuf_EnumDescriptorProto google_protobuf_EnumDescriptorProto_v .value = true, .options = false, }}, - .name = (upb_string*)&strings[39], /* "Label" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[39]), /* "Label" */ .value = &google_protobuf_EnumValueDescriptorProto_arrays[1], .options = 0, /* Not set. */ }, @@ -816,7 +816,7 @@ static google_protobuf_EnumDescriptorProto google_protobuf_EnumDescriptorProto_v .value = true, .options = false, }}, - .name = (upb_string*)&strings[44], /* "OptimizeMode" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[44]), /* "OptimizeMode" */ .value = &google_protobuf_EnumValueDescriptorProto_arrays[2], .options = 0, /* Not set. */ }, @@ -826,7 +826,7 @@ static google_protobuf_EnumDescriptorProto google_protobuf_EnumDescriptorProto_v .value = true, .options = false, }}, - .name = (upb_string*)&strings[23], /* "CType" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[23]), /* "CType" */ .value = &google_protobuf_EnumValueDescriptorProto_arrays[3], .options = 0, /* Not set. */ }, @@ -844,13 +844,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[84], /* "file" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[84]), /* "file" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 1, .label = 3, .type = 11, - .type_name = (upb_string*)&strings[11], /* ".google.protobuf.FileDescriptorProto" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[11]), /* ".google.protobuf.FileDescriptorProto" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -864,13 +864,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[96], /* "name" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[96]), /* "name" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 1, .label = 1, .type = 9, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -884,13 +884,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[104], /* "package" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[104]), /* "package" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 2, .label = 1, .type = 9, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -904,13 +904,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[72], /* "dependency" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[72]), /* "dependency" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 3, .label = 3, .type = 9, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -924,13 +924,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[94], /* "message_type" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[94]), /* "message_type" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 4, .label = 3, .type = 11, - .type_name = (upb_string*)&strings[0], /* ".google.protobuf.DescriptorProto" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[0]), /* ".google.protobuf.DescriptorProto" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -944,13 +944,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[77], /* "enum_type" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[77]), /* "enum_type" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 5, .label = 3, .type = 11, - .type_name = (upb_string*)&strings[2], /* ".google.protobuf.EnumDescriptorProto" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[2]), /* ".google.protobuf.EnumDescriptorProto" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -964,13 +964,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[107], /* "service" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[107]), /* "service" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 6, .label = 3, .type = 11, - .type_name = (upb_string*)&strings[17], /* ".google.protobuf.ServiceDescriptorProto" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[17]), /* ".google.protobuf.ServiceDescriptorProto" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -984,13 +984,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[80], /* "extension" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[80]), /* "extension" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 7, .label = 3, .type = 11, - .type_name = (upb_string*)&strings[6], /* ".google.protobuf.FieldDescriptorProto" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[6]), /* ".google.protobuf.FieldDescriptorProto" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1004,13 +1004,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[102], /* "options" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[102]), /* "options" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 8, .label = 1, .type = 11, - .type_name = (upb_string*)&strings[12], /* ".google.protobuf.FileOptions" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[12]), /* ".google.protobuf.FileOptions" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1024,13 +1024,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[96], /* "name" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[96]), /* "name" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 1, .label = 1, .type = 9, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1044,13 +1044,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[83], /* "field" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[83]), /* "field" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 2, .label = 3, .type = 11, - .type_name = (upb_string*)&strings[6], /* ".google.protobuf.FieldDescriptorProto" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[6]), /* ".google.protobuf.FieldDescriptorProto" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1064,13 +1064,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[99], /* "nested_type" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[99]), /* "nested_type" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 3, .label = 3, .type = 11, - .type_name = (upb_string*)&strings[0], /* ".google.protobuf.DescriptorProto" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[0]), /* ".google.protobuf.DescriptorProto" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1084,13 +1084,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[77], /* "enum_type" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[77]), /* "enum_type" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 4, .label = 3, .type = 11, - .type_name = (upb_string*)&strings[2], /* ".google.protobuf.EnumDescriptorProto" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[2]), /* ".google.protobuf.EnumDescriptorProto" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1104,13 +1104,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[81], /* "extension_range" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[81]), /* "extension_range" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 5, .label = 3, .type = 11, - .type_name = (upb_string*)&strings[1], /* ".google.protobuf.DescriptorProto.ExtensionRange" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[1]), /* ".google.protobuf.DescriptorProto.ExtensionRange" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1124,13 +1124,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[80], /* "extension" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[80]), /* "extension" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 6, .label = 3, .type = 11, - .type_name = (upb_string*)&strings[6], /* ".google.protobuf.FieldDescriptorProto" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[6]), /* ".google.protobuf.FieldDescriptorProto" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1144,13 +1144,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[102], /* "options" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[102]), /* "options" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 7, .label = 1, .type = 11, - .type_name = (upb_string*)&strings[14], /* ".google.protobuf.MessageOptions" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[14]), /* ".google.protobuf.MessageOptions" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1164,13 +1164,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[108], /* "start" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[108]), /* "start" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 1, .label = 1, .type = 5, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1184,13 +1184,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[76], /* "end" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[76]), /* "end" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 2, .label = 1, .type = 5, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1204,13 +1204,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[96], /* "name" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[96]), /* "name" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 1, .label = 1, .type = 9, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1224,13 +1224,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[79], /* "extendee" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[79]), /* "extendee" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 2, .label = 1, .type = 9, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1244,13 +1244,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[100], /* "number" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[100]), /* "number" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 3, .label = 1, .type = 5, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1264,13 +1264,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[92], /* "label" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[92]), /* "label" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 4, .label = 1, .type = 14, - .type_name = (upb_string*)&strings[7], /* ".google.protobuf.FieldDescriptorProto.Label" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[7]), /* ".google.protobuf.FieldDescriptorProto.Label" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1284,13 +1284,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[110], /* "type" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[110]), /* "type" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 5, .label = 1, .type = 14, - .type_name = (upb_string*)&strings[8], /* ".google.protobuf.FieldDescriptorProto.Type" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[8]), /* ".google.protobuf.FieldDescriptorProto.Type" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1304,13 +1304,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[111], /* "type_name" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[111]), /* "type_name" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 6, .label = 1, .type = 9, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1324,13 +1324,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[71], /* "default_value" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[71]), /* "default_value" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 7, .label = 1, .type = 9, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1344,13 +1344,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[102], /* "options" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[102]), /* "options" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 8, .label = 1, .type = 11, - .type_name = (upb_string*)&strings[9], /* ".google.protobuf.FieldOptions" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[9]), /* ".google.protobuf.FieldOptions" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1364,13 +1364,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[96], /* "name" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[96]), /* "name" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 1, .label = 1, .type = 9, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1384,13 +1384,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[113], /* "value" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[113]), /* "value" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 2, .label = 3, .type = 11, - .type_name = (upb_string*)&strings[4], /* ".google.protobuf.EnumValueDescriptorProto" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[4]), /* ".google.protobuf.EnumValueDescriptorProto" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1404,13 +1404,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[102], /* "options" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[102]), /* "options" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 3, .label = 1, .type = 11, - .type_name = (upb_string*)&strings[3], /* ".google.protobuf.EnumOptions" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[3]), /* ".google.protobuf.EnumOptions" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1424,13 +1424,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[96], /* "name" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[96]), /* "name" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 1, .label = 1, .type = 9, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1444,13 +1444,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[100], /* "number" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[100]), /* "number" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 2, .label = 1, .type = 5, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1464,13 +1464,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[102], /* "options" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[102]), /* "options" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 3, .label = 1, .type = 11, - .type_name = (upb_string*)&strings[5], /* ".google.protobuf.EnumValueOptions" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[5]), /* ".google.protobuf.EnumValueOptions" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1484,13 +1484,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[96], /* "name" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[96]), /* "name" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 1, .label = 1, .type = 9, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1504,13 +1504,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[95], /* "method" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[95]), /* "method" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 2, .label = 3, .type = 11, - .type_name = (upb_string*)&strings[15], /* ".google.protobuf.MethodDescriptorProto" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[15]), /* ".google.protobuf.MethodDescriptorProto" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1524,13 +1524,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[102], /* "options" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[102]), /* "options" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 3, .label = 1, .type = 11, - .type_name = (upb_string*)&strings[18], /* ".google.protobuf.ServiceOptions" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[18]), /* ".google.protobuf.ServiceOptions" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1544,13 +1544,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[96], /* "name" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[96]), /* "name" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 1, .label = 1, .type = 9, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1564,13 +1564,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[87], /* "input_type" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[87]), /* "input_type" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 2, .label = 1, .type = 9, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1584,13 +1584,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[103], /* "output_type" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[103]), /* "output_type" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 3, .label = 1, .type = 9, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1604,13 +1604,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[102], /* "options" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[102]), /* "options" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 4, .label = 1, .type = 11, - .type_name = (upb_string*)&strings[16], /* ".google.protobuf.MethodOptions" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[16]), /* ".google.protobuf.MethodOptions" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1624,13 +1624,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[91], /* "java_package" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[91]), /* "java_package" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 1, .label = 1, .type = 9, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1644,13 +1644,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[90], /* "java_outer_classname" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[90]), /* "java_outer_classname" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 8, .label = 1, .type = 9, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1664,13 +1664,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = true, .options = false, }}, - .name = (upb_string*)&strings[101], /* "optimize_for" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[101]), /* "optimize_for" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 9, .label = 1, .type = 14, - .type_name = (upb_string*)&strings[13], /* ".google.protobuf.FileOptions.OptimizeMode" */ - .default_value = (upb_string*)&strings[45], /* "SPEED" */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[13]), /* ".google.protobuf.FileOptions.OptimizeMode" */ + .default_value = UPB_STATIC_STRING_PTR_INIT(strings[45]), /* "SPEED" */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1684,13 +1684,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = true, .options = false, }}, - .name = (upb_string*)&strings[89], /* "java_multiple_files" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[89]), /* "java_multiple_files" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 10, .label = 1, .type = 8, - .type_name = 0, /* Not set. */ - .default_value = (upb_string*)&strings[82], /* "false" */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STATIC_STRING_PTR_INIT(strings[82]), /* "false" */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1704,13 +1704,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[112], /* "uninterpreted_option" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[112]), /* "uninterpreted_option" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 999, .label = 3, .type = 11, - .type_name = (upb_string*)&strings[19], /* ".google.protobuf.UninterpretedOption" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[19]), /* ".google.protobuf.UninterpretedOption" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1724,13 +1724,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = true, .options = false, }}, - .name = (upb_string*)&strings[93], /* "message_set_wire_format" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[93]), /* "message_set_wire_format" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 1, .label = 1, .type = 8, - .type_name = 0, /* Not set. */ - .default_value = (upb_string*)&strings[82], /* "false" */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STATIC_STRING_PTR_INIT(strings[82]), /* "false" */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1744,13 +1744,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[112], /* "uninterpreted_option" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[112]), /* "uninterpreted_option" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 999, .label = 3, .type = 11, - .type_name = (upb_string*)&strings[19], /* ".google.protobuf.UninterpretedOption" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[19]), /* ".google.protobuf.UninterpretedOption" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1764,13 +1764,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[70], /* "ctype" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[70]), /* "ctype" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 1, .label = 1, .type = 14, - .type_name = (upb_string*)&strings[10], /* ".google.protobuf.FieldOptions.CType" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[10]), /* ".google.protobuf.FieldOptions.CType" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1784,13 +1784,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[105], /* "packed" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[105]), /* "packed" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 2, .label = 1, .type = 8, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1804,13 +1804,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = true, .options = false, }}, - .name = (upb_string*)&strings[73], /* "deprecated" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[73]), /* "deprecated" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 3, .label = 1, .type = 8, - .type_name = 0, /* Not set. */ - .default_value = (upb_string*)&strings[82], /* "false" */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STATIC_STRING_PTR_INIT(strings[82]), /* "false" */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1824,13 +1824,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[78], /* "experimental_map_key" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[78]), /* "experimental_map_key" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 9, .label = 1, .type = 9, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1844,13 +1844,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[112], /* "uninterpreted_option" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[112]), /* "uninterpreted_option" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 999, .label = 3, .type = 11, - .type_name = (upb_string*)&strings[19], /* ".google.protobuf.UninterpretedOption" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[19]), /* ".google.protobuf.UninterpretedOption" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1864,13 +1864,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[112], /* "uninterpreted_option" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[112]), /* "uninterpreted_option" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 999, .label = 3, .type = 11, - .type_name = (upb_string*)&strings[19], /* ".google.protobuf.UninterpretedOption" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[19]), /* ".google.protobuf.UninterpretedOption" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1884,13 +1884,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[112], /* "uninterpreted_option" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[112]), /* "uninterpreted_option" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 999, .label = 3, .type = 11, - .type_name = (upb_string*)&strings[19], /* ".google.protobuf.UninterpretedOption" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[19]), /* ".google.protobuf.UninterpretedOption" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1904,13 +1904,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[112], /* "uninterpreted_option" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[112]), /* "uninterpreted_option" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 999, .label = 3, .type = 11, - .type_name = (upb_string*)&strings[19], /* ".google.protobuf.UninterpretedOption" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[19]), /* ".google.protobuf.UninterpretedOption" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1924,13 +1924,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[112], /* "uninterpreted_option" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[112]), /* "uninterpreted_option" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 999, .label = 3, .type = 11, - .type_name = (upb_string*)&strings[19], /* ".google.protobuf.UninterpretedOption" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[19]), /* ".google.protobuf.UninterpretedOption" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1944,13 +1944,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[96], /* "name" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[96]), /* "name" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 2, .label = 3, .type = 11, - .type_name = (upb_string*)&strings[20], /* ".google.protobuf.UninterpretedOption.NamePart" */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STATIC_STRING_PTR_INIT(strings[20]), /* ".google.protobuf.UninterpretedOption.NamePart" */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1964,13 +1964,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[86], /* "identifier_value" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[86]), /* "identifier_value" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 3, .label = 1, .type = 9, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -1984,13 +1984,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[106], /* "positive_int_value" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[106]), /* "positive_int_value" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 4, .label = 1, .type = 4, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -2004,13 +2004,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[98], /* "negative_int_value" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[98]), /* "negative_int_value" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 5, .label = 1, .type = 3, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -2024,13 +2024,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[75], /* "double_value" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[75]), /* "double_value" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 6, .label = 1, .type = 1, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -2044,13 +2044,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[109], /* "string_value" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[109]), /* "string_value" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 7, .label = 1, .type = 12, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -2064,13 +2064,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[97], /* "name_part" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[97]), /* "name_part" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 1, .label = 2, .type = 9, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, {.base = {UPB_DATA_FROZEN}, @@ -2084,13 +2084,13 @@ static google_protobuf_FieldDescriptorProto google_protobuf_FieldDescriptorProto .default_value = false, .options = false, }}, - .name = (upb_string*)&strings[88], /* "is_extension" */ - .extendee = 0, /* Not set. */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[88]), /* "is_extension" */ + .extendee = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .number = 2, .label = 2, .type = 8, - .type_name = 0, /* Not set. */ - .default_value = 0, /* Not set. */ + .type_name = UPB_STRING_NULL_INITIALIZER, /* Not set. */ + .default_value = UPB_STRING_NULL_INITIALIZER, /* Not set. */ .options = 0, /* Not set. */ }, }; @@ -2102,7 +2102,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[51], /* "TYPE_DOUBLE" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[51]), /* "TYPE_DOUBLE" */ .number = 1, .options = 0, /* Not set. */ }, @@ -2112,7 +2112,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[55], /* "TYPE_FLOAT" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[55]), /* "TYPE_FLOAT" */ .number = 2, .options = 0, /* Not set. */ }, @@ -2122,7 +2122,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[58], /* "TYPE_INT64" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[58]), /* "TYPE_INT64" */ .number = 3, .options = 0, /* Not set. */ }, @@ -2132,7 +2132,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[66], /* "TYPE_UINT64" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[66]), /* "TYPE_UINT64" */ .number = 4, .options = 0, /* Not set. */ }, @@ -2142,7 +2142,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[57], /* "TYPE_INT32" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[57]), /* "TYPE_INT32" */ .number = 5, .options = 0, /* Not set. */ }, @@ -2152,7 +2152,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[54], /* "TYPE_FIXED64" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[54]), /* "TYPE_FIXED64" */ .number = 6, .options = 0, /* Not set. */ }, @@ -2162,7 +2162,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[53], /* "TYPE_FIXED32" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[53]), /* "TYPE_FIXED32" */ .number = 7, .options = 0, /* Not set. */ }, @@ -2172,7 +2172,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[49], /* "TYPE_BOOL" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[49]), /* "TYPE_BOOL" */ .number = 8, .options = 0, /* Not set. */ }, @@ -2182,7 +2182,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[64], /* "TYPE_STRING" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[64]), /* "TYPE_STRING" */ .number = 9, .options = 0, /* Not set. */ }, @@ -2192,7 +2192,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[56], /* "TYPE_GROUP" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[56]), /* "TYPE_GROUP" */ .number = 10, .options = 0, /* Not set. */ }, @@ -2202,7 +2202,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[59], /* "TYPE_MESSAGE" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[59]), /* "TYPE_MESSAGE" */ .number = 11, .options = 0, /* Not set. */ }, @@ -2212,7 +2212,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[50], /* "TYPE_BYTES" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[50]), /* "TYPE_BYTES" */ .number = 12, .options = 0, /* Not set. */ }, @@ -2222,7 +2222,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[65], /* "TYPE_UINT32" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[65]), /* "TYPE_UINT32" */ .number = 13, .options = 0, /* Not set. */ }, @@ -2232,7 +2232,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[52], /* "TYPE_ENUM" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[52]), /* "TYPE_ENUM" */ .number = 14, .options = 0, /* Not set. */ }, @@ -2242,7 +2242,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[60], /* "TYPE_SFIXED32" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[60]), /* "TYPE_SFIXED32" */ .number = 15, .options = 0, /* Not set. */ }, @@ -2252,7 +2252,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[61], /* "TYPE_SFIXED64" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[61]), /* "TYPE_SFIXED64" */ .number = 16, .options = 0, /* Not set. */ }, @@ -2262,7 +2262,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[62], /* "TYPE_SINT32" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[62]), /* "TYPE_SINT32" */ .number = 17, .options = 0, /* Not set. */ }, @@ -2272,7 +2272,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[63], /* "TYPE_SINT64" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[63]), /* "TYPE_SINT64" */ .number = 18, .options = 0, /* Not set. */ }, @@ -2282,7 +2282,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[36], /* "LABEL_OPTIONAL" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[36]), /* "LABEL_OPTIONAL" */ .number = 1, .options = 0, /* Not set. */ }, @@ -2292,7 +2292,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[38], /* "LABEL_REQUIRED" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[38]), /* "LABEL_REQUIRED" */ .number = 2, .options = 0, /* Not set. */ }, @@ -2302,7 +2302,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[37], /* "LABEL_REPEATED" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[37]), /* "LABEL_REPEATED" */ .number = 3, .options = 0, /* Not set. */ }, @@ -2312,7 +2312,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[45], /* "SPEED" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[45]), /* "SPEED" */ .number = 1, .options = 0, /* Not set. */ }, @@ -2322,7 +2322,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[21], /* "CODE_SIZE" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[21]), /* "CODE_SIZE" */ .number = 2, .options = 0, /* Not set. */ }, @@ -2332,7 +2332,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[22], /* "CORD" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[22]), /* "CORD" */ .number = 1, .options = 0, /* Not set. */ }, @@ -2342,7 +2342,7 @@ static google_protobuf_EnumValueDescriptorProto google_protobuf_EnumValueDescrip .number = true, .options = false, }}, - .name = (upb_string*)&strings[46], /* "STRING_PIECE" */ + .name = UPB_STATIC_STRING_PTR_INIT(strings[46]), /* "STRING_PIECE" */ .number = 2, .options = 0, /* Not set. */ }, diff --git a/descriptor/descriptor.h b/descriptor/descriptor.h index a591bba..8db5bd3 100644 --- a/descriptor/descriptor.h +++ b/descriptor/descriptor.h @@ -98,7 +98,7 @@ struct google_protobuf_UninterpretedOption_NamePart { bool is_extension:1; /* = 2, required. */ } has; } set_flags; - upb_string* name_part; + upb_strptr name_part; bool is_extension; }; UPB_DEFINE_MSG_ARRAY(google_protobuf_UninterpretedOption_NamePart) @@ -117,7 +117,7 @@ struct google_protobuf_DescriptorProto { bool options:1; /* = 7, optional. */ } has; } set_flags; - upb_string* name; + upb_strptr name; UPB_MSG_ARRAY(google_protobuf_FieldDescriptorProto)* field; UPB_MSG_ARRAY(google_protobuf_DescriptorProto)* nested_type; UPB_MSG_ARRAY(google_protobuf_EnumDescriptorProto)* enum_type; @@ -137,7 +137,7 @@ struct google_protobuf_EnumDescriptorProto { bool options:1; /* = 3, optional. */ } has; } set_flags; - upb_string* name; + upb_strptr name; UPB_MSG_ARRAY(google_protobuf_EnumValueDescriptorProto)* value; google_protobuf_EnumOptions* options; }; @@ -157,11 +157,11 @@ struct google_protobuf_UninterpretedOption { } has; } set_flags; UPB_MSG_ARRAY(google_protobuf_UninterpretedOption_NamePart)* name; - upb_string* identifier_value; + upb_strptr identifier_value; uint64_t positive_int_value; int64_t negative_int_value; double double_value; - upb_string* string_value; + upb_strptr string_value; }; UPB_DEFINE_MSG_ARRAY(google_protobuf_UninterpretedOption) @@ -180,9 +180,9 @@ struct google_protobuf_FileDescriptorProto { bool options:1; /* = 8, optional. */ } has; } set_flags; - upb_string* name; - upb_string* package; - struct upb_string_array* dependency; + upb_strptr name; + upb_strptr package; + upb_array* dependency; UPB_MSG_ARRAY(google_protobuf_DescriptorProto)* message_type; UPB_MSG_ARRAY(google_protobuf_EnumDescriptorProto)* enum_type; UPB_MSG_ARRAY(google_protobuf_ServiceDescriptorProto)* service; @@ -202,9 +202,9 @@ struct google_protobuf_MethodDescriptorProto { bool options:1; /* = 4, optional. */ } has; } set_flags; - upb_string* name; - upb_string* input_type; - upb_string* output_type; + upb_strptr name; + upb_strptr input_type; + upb_strptr output_type; google_protobuf_MethodOptions* options; }; UPB_DEFINE_MSG_ARRAY(google_protobuf_MethodDescriptorProto) @@ -231,7 +231,7 @@ struct google_protobuf_EnumValueDescriptorProto { bool options:1; /* = 3, optional. */ } has; } set_flags; - upb_string* name; + upb_strptr name; int32_t number; google_protobuf_EnumValueOptions* options; }; @@ -247,7 +247,7 @@ struct google_protobuf_ServiceDescriptorProto { bool options:1; /* = 3, optional. */ } has; } set_flags; - upb_string* name; + upb_strptr name; UPB_MSG_ARRAY(google_protobuf_MethodDescriptorProto)* method; google_protobuf_ServiceOptions* options; }; @@ -294,7 +294,7 @@ struct google_protobuf_FieldOptions { int32_t ctype; bool packed; bool deprecated; - upb_string* experimental_map_key; + upb_strptr experimental_map_key; UPB_MSG_ARRAY(google_protobuf_UninterpretedOption)* uninterpreted_option; }; UPB_DEFINE_MSG_ARRAY(google_protobuf_FieldOptions) @@ -311,8 +311,8 @@ struct google_protobuf_FileOptions { bool uninterpreted_option:1; /* = 999, repeated. */ } has; } set_flags; - upb_string* java_package; - upb_string* java_outer_classname; + upb_strptr java_package; + upb_strptr java_outer_classname; int32_t optimize_for; bool java_multiple_files; UPB_MSG_ARRAY(google_protobuf_UninterpretedOption)* uninterpreted_option; @@ -360,13 +360,13 @@ struct google_protobuf_FieldDescriptorProto { bool options:1; /* = 8, optional. */ } has; } set_flags; - upb_string* name; - upb_string* extendee; + upb_strptr name; + upb_strptr extendee; int32_t number; int32_t label; int32_t type; - upb_string* type_name; - upb_string* default_value; + upb_strptr type_name; + upb_strptr default_value; google_protobuf_FieldOptions* options; }; UPB_DEFINE_MSG_ARRAY(google_protobuf_FieldDescriptorProto) -- cgit v1.2.3