Merge pull request #873 from acozzette/update-cmake-files
Check in generated CMake filespull/13171/head
commit
6c4dc6f9e8
3 changed files with 4160 additions and 0 deletions
@ -0,0 +1,311 @@ |
||||
# This file was generated from BUILD using tools/make_cmakelists.py. |
||||
|
||||
cmake_minimum_required(VERSION 3.1) |
||||
|
||||
if(${CMAKE_VERSION} VERSION_LESS 3.12) |
||||
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}) |
||||
else() |
||||
cmake_policy(VERSION 3.12) |
||||
endif() |
||||
|
||||
cmake_minimum_required (VERSION 3.0) |
||||
cmake_policy(SET CMP0048 NEW) |
||||
|
||||
project(upb) |
||||
set(CMAKE_C_STANDARD 99) |
||||
|
||||
|
||||
# Prevent CMake from setting -rdynamic on Linux (!!). |
||||
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") |
||||
SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "") |
||||
|
||||
# Set default build type. |
||||
if(NOT CMAKE_BUILD_TYPE) |
||||
message(STATUS "Setting build type to 'RelWithDebInfo' as none was specified.") |
||||
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING |
||||
"Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." |
||||
FORCE) |
||||
endif() |
||||
|
||||
# When using Ninja, compiler output won't be colorized without this. |
||||
include(CheckCXXCompilerFlag) |
||||
CHECK_CXX_COMPILER_FLAG(-fdiagnostics-color=always SUPPORTS_COLOR_ALWAYS) |
||||
if(SUPPORTS_COLOR_ALWAYS) |
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color=always") |
||||
endif() |
||||
|
||||
# Implement ASAN/UBSAN options |
||||
if(UPB_ENABLE_ASAN) |
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address") |
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address") |
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=address") |
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fsanitize=address") |
||||
endif() |
||||
|
||||
if(UPB_ENABLE_UBSAN) |
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=undefined") |
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address") |
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=address") |
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fsanitize=address") |
||||
endif() |
||||
|
||||
include_directories(..) |
||||
include_directories(../cmake) |
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR}) |
||||
|
||||
if(APPLE) |
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -undefined dynamic_lookup -flat_namespace") |
||||
elseif(UNIX) |
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--build-id") |
||||
endif() |
||||
|
||||
enable_testing() |
||||
|
||||
add_library(port INTERFACE) |
||||
add_library(upb |
||||
../upb/alloc.c |
||||
../upb/arena.c |
||||
../upb/array.c |
||||
../upb/decode.c |
||||
../upb/encode.c |
||||
../upb/internal/table.h |
||||
../upb/internal/unicode.h |
||||
../upb/map_sorter.c |
||||
../upb/map_sorter.h |
||||
../upb/msg.c |
||||
../upb/msg_internal.h |
||||
../upb/status.c |
||||
../upb/upb.c |
||||
../upb/alloc.h |
||||
../upb/arena.h |
||||
../upb/array.h |
||||
../upb/decode.h |
||||
../upb/encode.h |
||||
../upb/extension_registry.h |
||||
../upb/message_value.h |
||||
../upb/msg.h |
||||
../upb/status.h |
||||
../upb/string_view.h |
||||
../upb/upb.h |
||||
../upb/upb.hpp) |
||||
target_link_libraries(upb |
||||
arena_internal |
||||
array_internal |
||||
decode_internal |
||||
encode_internal |
||||
extension_registry |
||||
fastdecode |
||||
port |
||||
table_internal |
||||
unicode_internal) |
||||
add_library(extension_registry |
||||
../upb/extension_registry.c |
||||
../upb/msg.h |
||||
../upb/msg_internal.h |
||||
../upb/string_view.h |
||||
../upb/upb.h |
||||
../upb/extension_registry.h) |
||||
target_link_libraries(extension_registry |
||||
port |
||||
table_internal) |
||||
add_library(mini_table_internal INTERFACE) |
||||
target_link_libraries(mini_table_internal INTERFACE |
||||
extension_registry |
||||
port |
||||
table_internal |
||||
upb) |
||||
add_library(mini_table |
||||
../upb/mini_table.c |
||||
../upb/mini_table.h |
||||
../upb/mini_table.hpp) |
||||
target_link_libraries(mini_table |
||||
extension_registry |
||||
mini_table_internal |
||||
port |
||||
upb) |
||||
add_library(mini_table_accessors |
||||
../upb/internal/mini_table_accessors.h |
||||
../upb/mini_table_accessors.c |
||||
../upb/mini_table_accessors.h) |
||||
target_link_libraries(mini_table_accessors |
||||
array_internal |
||||
collections |
||||
mini_table |
||||
mini_table_internal |
||||
port |
||||
upb) |
||||
add_library(fastdecode |
||||
../upb/decode.h |
||||
../upb/decode_fast.c |
||||
../upb/decode_fast.h |
||||
../upb/msg.h |
||||
../upb/msg_internal.h) |
||||
target_link_libraries(fastdecode |
||||
arena_internal |
||||
array_internal |
||||
decode_internal |
||||
extension_registry |
||||
port |
||||
table_internal) |
||||
add_library(generated_code_support__only_for_generated_code_do_not_use__i_give_permission_to_break_me INTERFACE) |
||||
target_link_libraries(generated_code_support__only_for_generated_code_do_not_use__i_give_permission_to_break_me INTERFACE |
||||
table_internal |
||||
upb) |
||||
add_library(generated_cpp_support__only_for_generated_code_do_not_use__i_give_permission_to_break_me INTERFACE) |
||||
target_link_libraries(generated_cpp_support__only_for_generated_code_do_not_use__i_give_permission_to_break_me INTERFACE |
||||
mini_table |
||||
table_internal |
||||
upb) |
||||
add_library(generated_reflection_support__only_for_generated_code_do_not_use__i_give_permission_to_break_me INTERFACE) |
||||
target_link_libraries(generated_reflection_support__only_for_generated_code_do_not_use__i_give_permission_to_break_me INTERFACE |
||||
descriptor_upb_proto |
||||
reflection |
||||
reflection_internal |
||||
table_internal) |
||||
add_library(collections |
||||
../upb/map.c |
||||
../upb/msg_internal.h |
||||
../upb/collections.h |
||||
../upb/map.h |
||||
../upb/map_sorter.h |
||||
../upb/message_value.h) |
||||
target_link_libraries(collections |
||||
mini_table |
||||
port |
||||
table_internal |
||||
upb) |
||||
add_library(reflection |
||||
../upb/reflection/common.h |
||||
../upb/reflection/def_builder.c |
||||
../upb/reflection/def_builder_internal.h |
||||
../upb/reflection/def_pool.c |
||||
../upb/reflection/def_pool.h |
||||
../upb/reflection/def_pool_internal.h |
||||
../upb/reflection/def_type.c |
||||
../upb/reflection/def_type.h |
||||
../upb/reflection/desc_state.c |
||||
../upb/reflection/desc_state_internal.h |
||||
../upb/reflection/enum_def.c |
||||
../upb/reflection/enum_def.h |
||||
../upb/reflection/enum_def_internal.h |
||||
../upb/reflection/enum_value_def.c |
||||
../upb/reflection/enum_value_def.h |
||||
../upb/reflection/enum_value_def_internal.h |
||||
../upb/reflection/extension_range.c |
||||
../upb/reflection/extension_range.h |
||||
../upb/reflection/extension_range_internal.h |
||||
../upb/reflection/field_def.c |
||||
../upb/reflection/field_def.h |
||||
../upb/reflection/field_def_internal.h |
||||
../upb/reflection/file_def.c |
||||
../upb/reflection/file_def.h |
||||
../upb/reflection/file_def_internal.h |
||||
../upb/reflection/message.c |
||||
../upb/reflection/message_def.c |
||||
../upb/reflection/message_def.h |
||||
../upb/reflection/message_def_internal.h |
||||
../upb/reflection/method_def.c |
||||
../upb/reflection/method_def.h |
||||
../upb/reflection/method_def_internal.h |
||||
../upb/reflection/oneof_def.c |
||||
../upb/reflection/oneof_def.h |
||||
../upb/reflection/oneof_def_internal.h |
||||
../upb/reflection/service_def.c |
||||
../upb/reflection/service_def.h |
||||
../upb/reflection/service_def_internal.h |
||||
../upb/def.h |
||||
../upb/def.hpp |
||||
../upb/reflection.h |
||||
../upb/reflection.hpp |
||||
../upb/reflection/def.h |
||||
../upb/reflection/def.hpp |
||||
../upb/reflection/message.h |
||||
../upb/reflection/message.hpp) |
||||
target_link_libraries(reflection |
||||
collections |
||||
descriptor_upb_proto |
||||
mini_table |
||||
mini_table_internal |
||||
port |
||||
table_internal |
||||
upb) |
||||
add_library(reflection_internal INTERFACE) |
||||
target_link_libraries(reflection_internal INTERFACE |
||||
collections |
||||
descriptor_upb_proto |
||||
mini_table |
||||
mini_table_internal |
||||
port |
||||
reflection |
||||
table_internal |
||||
upb) |
||||
add_library(textformat |
||||
../upb/text_encode.c |
||||
../upb/text_encode.h) |
||||
target_link_libraries(textformat |
||||
collections |
||||
encode_internal |
||||
port |
||||
reflection) |
||||
add_library(json |
||||
../upb/json/decode.c |
||||
../upb/json/encode.c |
||||
../upb/json/decode.h |
||||
../upb/json/encode.h |
||||
../upb/json_decode.h |
||||
../upb/json_encode.h) |
||||
target_link_libraries(json |
||||
atoi_internal |
||||
collections |
||||
encode_internal |
||||
port |
||||
reflection |
||||
unicode_internal |
||||
upb) |
||||
add_library(array_internal |
||||
../upb/alloc.h |
||||
../upb/arena.h |
||||
../upb/array.h |
||||
../upb/internal/array.c |
||||
../upb/message_value.h |
||||
../upb/msg.h |
||||
../upb/status.h |
||||
../upb/string_view.h |
||||
../upb/upb.h |
||||
../upb/internal/array.h) |
||||
target_link_libraries(array_internal |
||||
port) |
||||
add_library(arena_internal INTERFACE) |
||||
target_link_libraries(arena_internal INTERFACE |
||||
port) |
||||
add_library(atoi_internal |
||||
../upb/internal/atoi.c |
||||
../upb/internal/atoi.h) |
||||
target_link_libraries(atoi_internal |
||||
port) |
||||
add_library(decode_internal INTERFACE) |
||||
target_link_libraries(decode_internal INTERFACE |
||||
arena_internal |
||||
port |
||||
table_internal |
||||
/third_party/utf8_range) |
||||
add_library(encode_internal INTERFACE) |
||||
target_link_libraries(encode_internal INTERFACE |
||||
port) |
||||
add_library(table_internal |
||||
../upb/internal/table.c |
||||
../upb/alloc.h |
||||
../upb/arena.h |
||||
../upb/internal/table.h |
||||
../upb/status.h |
||||
../upb/string_view.h |
||||
../upb/upb.h) |
||||
target_link_libraries(table_internal |
||||
port) |
||||
add_library(unicode_internal |
||||
../upb/internal/unicode.c |
||||
../upb/internal/unicode.h) |
||||
target_link_libraries(unicode_internal |
||||
port) |
||||
|
||||
|
@ -0,0 +1,613 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* google/protobuf/descriptor.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/internal/array.h" |
||||
#include "upb/msg_internal.h" |
||||
#include "google/protobuf/descriptor.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_FileDescriptorSet_submsgs[1] = { |
||||
{.submsg = &google_protobuf_FileDescriptorProto_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_FileDescriptorSet__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_FileDescriptorSet_msg_init = { |
||||
&google_protobuf_FileDescriptorSet_submsgs[0], |
||||
&google_protobuf_FileDescriptorSet__fields[0], |
||||
UPB_SIZE(8, 8), 1, kUpb_ExtMode_NonExtendable, 1, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_FileDescriptorProto_submsgs[6] = { |
||||
{.submsg = &google_protobuf_DescriptorProto_msg_init}, |
||||
{.submsg = &google_protobuf_EnumDescriptorProto_msg_init}, |
||||
{.submsg = &google_protobuf_ServiceDescriptorProto_msg_init}, |
||||
{.submsg = &google_protobuf_FieldDescriptorProto_msg_init}, |
||||
{.submsg = &google_protobuf_FileOptions_msg_init}, |
||||
{.submsg = &google_protobuf_SourceCodeInfo_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_FileDescriptorProto__fields[13] = { |
||||
{1, UPB_SIZE(40, 8), UPB_SIZE(1, 1), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(48, 24), UPB_SIZE(2, 2), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{3, UPB_SIZE(4, 40), UPB_SIZE(0, 0), kUpb_NoSub, 12, kUpb_FieldMode_Array | kUpb_LabelFlags_IsAlternate | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{4, UPB_SIZE(8, 48), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{5, UPB_SIZE(12, 56), UPB_SIZE(0, 0), 1, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{6, UPB_SIZE(16, 64), UPB_SIZE(0, 0), 2, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{7, UPB_SIZE(20, 72), UPB_SIZE(0, 0), 3, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{8, UPB_SIZE(24, 80), UPB_SIZE(3, 3), 4, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{9, UPB_SIZE(28, 88), UPB_SIZE(4, 4), 5, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{10, UPB_SIZE(32, 96), UPB_SIZE(0, 0), kUpb_NoSub, 5, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{11, UPB_SIZE(36, 104), UPB_SIZE(0, 0), kUpb_NoSub, 5, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{12, UPB_SIZE(56, 112), UPB_SIZE(5, 5), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{13, UPB_SIZE(64, 128), UPB_SIZE(6, 6), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_FileDescriptorProto_msg_init = { |
||||
&google_protobuf_FileDescriptorProto_submsgs[0], |
||||
&google_protobuf_FileDescriptorProto__fields[0], |
||||
UPB_SIZE(72, 144), 13, kUpb_ExtMode_NonExtendable, 13, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_DescriptorProto_submsgs[8] = { |
||||
{.submsg = &google_protobuf_FieldDescriptorProto_msg_init}, |
||||
{.submsg = &google_protobuf_DescriptorProto_msg_init}, |
||||
{.submsg = &google_protobuf_EnumDescriptorProto_msg_init}, |
||||
{.submsg = &google_protobuf_DescriptorProto_ExtensionRange_msg_init}, |
||||
{.submsg = &google_protobuf_FieldDescriptorProto_msg_init}, |
||||
{.submsg = &google_protobuf_MessageOptions_msg_init}, |
||||
{.submsg = &google_protobuf_OneofDescriptorProto_msg_init}, |
||||
{.submsg = &google_protobuf_DescriptorProto_ReservedRange_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_DescriptorProto__fields[10] = { |
||||
{1, UPB_SIZE(40, 8), UPB_SIZE(1, 1), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(4, 24), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{3, UPB_SIZE(8, 32), UPB_SIZE(0, 0), 1, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{4, UPB_SIZE(12, 40), UPB_SIZE(0, 0), 2, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{5, UPB_SIZE(16, 48), UPB_SIZE(0, 0), 3, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{6, UPB_SIZE(20, 56), UPB_SIZE(0, 0), 4, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{7, UPB_SIZE(24, 64), UPB_SIZE(2, 2), 5, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{8, UPB_SIZE(28, 72), UPB_SIZE(0, 0), 6, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{9, UPB_SIZE(32, 80), UPB_SIZE(0, 0), 7, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{10, UPB_SIZE(36, 88), UPB_SIZE(0, 0), kUpb_NoSub, 12, kUpb_FieldMode_Array | kUpb_LabelFlags_IsAlternate | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_DescriptorProto_msg_init = { |
||||
&google_protobuf_DescriptorProto_submsgs[0], |
||||
&google_protobuf_DescriptorProto__fields[0], |
||||
UPB_SIZE(48, 96), 10, kUpb_ExtMode_NonExtendable, 10, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_DescriptorProto_ExtensionRange_submsgs[1] = { |
||||
{.submsg = &google_protobuf_ExtensionRangeOptions_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_DescriptorProto_ExtensionRange__fields[3] = { |
||||
{1, UPB_SIZE(4, 4), UPB_SIZE(1, 1), kUpb_NoSub, 5, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(8, 8), UPB_SIZE(2, 2), kUpb_NoSub, 5, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, |
||||
{3, UPB_SIZE(12, 16), UPB_SIZE(3, 3), 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_DescriptorProto_ExtensionRange_msg_init = { |
||||
&google_protobuf_DescriptorProto_ExtensionRange_submsgs[0], |
||||
&google_protobuf_DescriptorProto_ExtensionRange__fields[0], |
||||
UPB_SIZE(16, 24), 3, kUpb_ExtMode_NonExtendable, 3, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_DescriptorProto_ReservedRange__fields[2] = { |
||||
{1, UPB_SIZE(4, 4), UPB_SIZE(1, 1), kUpb_NoSub, 5, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(8, 8), UPB_SIZE(2, 2), kUpb_NoSub, 5, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_DescriptorProto_ReservedRange_msg_init = { |
||||
NULL, |
||||
&google_protobuf_DescriptorProto_ReservedRange__fields[0], |
||||
UPB_SIZE(16, 16), 2, kUpb_ExtMode_NonExtendable, 2, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_ExtensionRangeOptions_submsgs[1] = { |
||||
{.submsg = &google_protobuf_UninterpretedOption_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_ExtensionRangeOptions__fields[1] = { |
||||
{999, UPB_SIZE(0, 0), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_ExtensionRangeOptions_msg_init = { |
||||
&google_protobuf_ExtensionRangeOptions_submsgs[0], |
||||
&google_protobuf_ExtensionRangeOptions__fields[0], |
||||
UPB_SIZE(8, 8), 1, kUpb_ExtMode_Extendable, 0, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_FieldDescriptorProto_submsgs[3] = { |
||||
{.subenum = &google_protobuf_FieldDescriptorProto_Label_enum_init}, |
||||
{.subenum = &google_protobuf_FieldDescriptorProto_Type_enum_init}, |
||||
{.submsg = &google_protobuf_FieldOptions_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_FieldDescriptorProto__fields[11] = { |
||||
{1, UPB_SIZE(28, 24), UPB_SIZE(1, 1), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(36, 40), UPB_SIZE(2, 2), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{3, UPB_SIZE(4, 4), UPB_SIZE(3, 3), kUpb_NoSub, 5, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, |
||||
{4, UPB_SIZE(8, 8), UPB_SIZE(4, 4), 0, 14, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, |
||||
{5, UPB_SIZE(12, 12), UPB_SIZE(5, 5), 1, 14, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, |
||||
{6, UPB_SIZE(44, 56), UPB_SIZE(6, 6), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{7, UPB_SIZE(52, 72), UPB_SIZE(7, 7), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{8, UPB_SIZE(16, 88), UPB_SIZE(8, 8), 2, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{9, UPB_SIZE(20, 16), UPB_SIZE(9, 9), kUpb_NoSub, 5, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, |
||||
{10, UPB_SIZE(60, 96), UPB_SIZE(10, 10), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{17, UPB_SIZE(24, 20), UPB_SIZE(11, 11), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_FieldDescriptorProto_msg_init = { |
||||
&google_protobuf_FieldDescriptorProto_submsgs[0], |
||||
&google_protobuf_FieldDescriptorProto__fields[0], |
||||
UPB_SIZE(72, 112), 11, kUpb_ExtMode_NonExtendable, 10, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_OneofDescriptorProto_submsgs[1] = { |
||||
{.submsg = &google_protobuf_OneofOptions_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_OneofDescriptorProto__fields[2] = { |
||||
{1, UPB_SIZE(8, 8), UPB_SIZE(1, 1), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(4, 24), UPB_SIZE(2, 2), 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_OneofDescriptorProto_msg_init = { |
||||
&google_protobuf_OneofDescriptorProto_submsgs[0], |
||||
&google_protobuf_OneofDescriptorProto__fields[0], |
||||
UPB_SIZE(16, 32), 2, kUpb_ExtMode_NonExtendable, 2, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_EnumDescriptorProto_submsgs[3] = { |
||||
{.submsg = &google_protobuf_EnumValueDescriptorProto_msg_init}, |
||||
{.submsg = &google_protobuf_EnumOptions_msg_init}, |
||||
{.submsg = &google_protobuf_EnumDescriptorProto_EnumReservedRange_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_EnumDescriptorProto__fields[5] = { |
||||
{1, UPB_SIZE(20, 8), UPB_SIZE(1, 1), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(4, 24), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{3, UPB_SIZE(8, 32), UPB_SIZE(2, 2), 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{4, UPB_SIZE(12, 40), UPB_SIZE(0, 0), 2, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{5, UPB_SIZE(16, 48), UPB_SIZE(0, 0), kUpb_NoSub, 12, kUpb_FieldMode_Array | kUpb_LabelFlags_IsAlternate | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_EnumDescriptorProto_msg_init = { |
||||
&google_protobuf_EnumDescriptorProto_submsgs[0], |
||||
&google_protobuf_EnumDescriptorProto__fields[0], |
||||
UPB_SIZE(32, 56), 5, kUpb_ExtMode_NonExtendable, 5, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_EnumDescriptorProto_EnumReservedRange__fields[2] = { |
||||
{1, UPB_SIZE(4, 4), UPB_SIZE(1, 1), kUpb_NoSub, 5, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(8, 8), UPB_SIZE(2, 2), kUpb_NoSub, 5, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_EnumDescriptorProto_EnumReservedRange_msg_init = { |
||||
NULL, |
||||
&google_protobuf_EnumDescriptorProto_EnumReservedRange__fields[0], |
||||
UPB_SIZE(16, 16), 2, kUpb_ExtMode_NonExtendable, 2, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_EnumValueDescriptorProto_submsgs[1] = { |
||||
{.submsg = &google_protobuf_EnumValueOptions_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_EnumValueDescriptorProto__fields[3] = { |
||||
{1, UPB_SIZE(12, 8), UPB_SIZE(1, 1), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(4, 4), UPB_SIZE(2, 2), kUpb_NoSub, 5, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, |
||||
{3, UPB_SIZE(8, 24), UPB_SIZE(3, 3), 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_EnumValueDescriptorProto_msg_init = { |
||||
&google_protobuf_EnumValueDescriptorProto_submsgs[0], |
||||
&google_protobuf_EnumValueDescriptorProto__fields[0], |
||||
UPB_SIZE(24, 32), 3, kUpb_ExtMode_NonExtendable, 3, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_ServiceDescriptorProto_submsgs[2] = { |
||||
{.submsg = &google_protobuf_MethodDescriptorProto_msg_init}, |
||||
{.submsg = &google_protobuf_ServiceOptions_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_ServiceDescriptorProto__fields[3] = { |
||||
{1, UPB_SIZE(12, 8), UPB_SIZE(1, 1), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(4, 24), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{3, UPB_SIZE(8, 32), UPB_SIZE(2, 2), 1, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_ServiceDescriptorProto_msg_init = { |
||||
&google_protobuf_ServiceDescriptorProto_submsgs[0], |
||||
&google_protobuf_ServiceDescriptorProto__fields[0], |
||||
UPB_SIZE(24, 40), 3, kUpb_ExtMode_NonExtendable, 3, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_MethodDescriptorProto_submsgs[1] = { |
||||
{.submsg = &google_protobuf_MethodOptions_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_MethodDescriptorProto__fields[6] = { |
||||
{1, UPB_SIZE(12, 8), UPB_SIZE(1, 1), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(20, 24), UPB_SIZE(2, 2), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{3, UPB_SIZE(28, 40), UPB_SIZE(3, 3), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{4, UPB_SIZE(4, 56), UPB_SIZE(4, 4), 0, 11, kUpb_FieldMode_Scalar | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{5, UPB_SIZE(8, 1), UPB_SIZE(5, 5), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{6, UPB_SIZE(9, 2), UPB_SIZE(6, 6), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_MethodDescriptorProto_msg_init = { |
||||
&google_protobuf_MethodDescriptorProto_submsgs[0], |
||||
&google_protobuf_MethodDescriptorProto__fields[0], |
||||
UPB_SIZE(40, 64), 6, kUpb_ExtMode_NonExtendable, 6, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_FileOptions_submsgs[2] = { |
||||
{.subenum = &google_protobuf_FileOptions_OptimizeMode_enum_init}, |
||||
{.submsg = &google_protobuf_UninterpretedOption_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_FileOptions__fields[21] = { |
||||
{1, UPB_SIZE(24, 24), UPB_SIZE(1, 1), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{8, UPB_SIZE(32, 40), UPB_SIZE(2, 2), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{9, UPB_SIZE(4, 4), UPB_SIZE(3, 3), 0, 14, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, |
||||
{10, UPB_SIZE(8, 8), UPB_SIZE(4, 4), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{11, UPB_SIZE(40, 56), UPB_SIZE(5, 5), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{16, UPB_SIZE(9, 9), UPB_SIZE(6, 6), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{17, UPB_SIZE(10, 10), UPB_SIZE(7, 7), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{18, UPB_SIZE(11, 11), UPB_SIZE(8, 8), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{20, UPB_SIZE(12, 12), UPB_SIZE(9, 9), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{23, UPB_SIZE(13, 13), UPB_SIZE(10, 10), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{27, UPB_SIZE(14, 14), UPB_SIZE(11, 11), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{31, UPB_SIZE(15, 15), UPB_SIZE(12, 12), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{36, UPB_SIZE(48, 72), UPB_SIZE(13, 13), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{37, UPB_SIZE(56, 88), UPB_SIZE(14, 14), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{39, UPB_SIZE(64, 104), UPB_SIZE(15, 15), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{40, UPB_SIZE(72, 120), UPB_SIZE(16, 16), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{41, UPB_SIZE(80, 136), UPB_SIZE(17, 17), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{42, UPB_SIZE(16, 16), UPB_SIZE(18, 18), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{44, UPB_SIZE(88, 152), UPB_SIZE(19, 19), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{45, UPB_SIZE(96, 168), UPB_SIZE(20, 20), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{999, UPB_SIZE(20, 184), UPB_SIZE(0, 0), 1, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_FileOptions_msg_init = { |
||||
&google_protobuf_FileOptions_submsgs[0], |
||||
&google_protobuf_FileOptions__fields[0], |
||||
UPB_SIZE(104, 192), 21, kUpb_ExtMode_Extendable, 1, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_MessageOptions_submsgs[1] = { |
||||
{.submsg = &google_protobuf_UninterpretedOption_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_MessageOptions__fields[5] = { |
||||
{1, UPB_SIZE(1, 1), UPB_SIZE(1, 1), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(2, 2), UPB_SIZE(2, 2), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{3, UPB_SIZE(3, 3), UPB_SIZE(3, 3), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{7, UPB_SIZE(4, 4), UPB_SIZE(4, 4), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{999, UPB_SIZE(8, 8), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_MessageOptions_msg_init = { |
||||
&google_protobuf_MessageOptions_submsgs[0], |
||||
&google_protobuf_MessageOptions__fields[0], |
||||
UPB_SIZE(16, 16), 5, kUpb_ExtMode_Extendable, 3, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_FieldOptions_submsgs[3] = { |
||||
{.subenum = &google_protobuf_FieldOptions_CType_enum_init}, |
||||
{.subenum = &google_protobuf_FieldOptions_JSType_enum_init}, |
||||
{.submsg = &google_protobuf_UninterpretedOption_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_FieldOptions__fields[8] = { |
||||
{1, UPB_SIZE(4, 4), UPB_SIZE(1, 1), 0, 14, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(8, 8), UPB_SIZE(2, 2), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{3, UPB_SIZE(9, 9), UPB_SIZE(3, 3), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{5, UPB_SIZE(10, 10), UPB_SIZE(4, 4), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{6, UPB_SIZE(12, 12), UPB_SIZE(5, 5), 1, 14, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, |
||||
{10, UPB_SIZE(16, 16), UPB_SIZE(6, 6), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{15, UPB_SIZE(17, 17), UPB_SIZE(7, 7), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{999, UPB_SIZE(20, 24), UPB_SIZE(0, 0), 2, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_FieldOptions_msg_init = { |
||||
&google_protobuf_FieldOptions_submsgs[0], |
||||
&google_protobuf_FieldOptions__fields[0], |
||||
UPB_SIZE(24, 32), 8, kUpb_ExtMode_Extendable, 3, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_OneofOptions_submsgs[1] = { |
||||
{.submsg = &google_protobuf_UninterpretedOption_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_OneofOptions__fields[1] = { |
||||
{999, UPB_SIZE(0, 0), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_OneofOptions_msg_init = { |
||||
&google_protobuf_OneofOptions_submsgs[0], |
||||
&google_protobuf_OneofOptions__fields[0], |
||||
UPB_SIZE(8, 8), 1, kUpb_ExtMode_Extendable, 0, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_EnumOptions_submsgs[1] = { |
||||
{.submsg = &google_protobuf_UninterpretedOption_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_EnumOptions__fields[3] = { |
||||
{2, UPB_SIZE(1, 1), UPB_SIZE(1, 1), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{3, UPB_SIZE(2, 2), UPB_SIZE(2, 2), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{999, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_EnumOptions_msg_init = { |
||||
&google_protobuf_EnumOptions_submsgs[0], |
||||
&google_protobuf_EnumOptions__fields[0], |
||||
UPB_SIZE(8, 16), 3, kUpb_ExtMode_Extendable, 0, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_EnumValueOptions_submsgs[1] = { |
||||
{.submsg = &google_protobuf_UninterpretedOption_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_EnumValueOptions__fields[2] = { |
||||
{1, UPB_SIZE(1, 1), UPB_SIZE(1, 1), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{999, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_EnumValueOptions_msg_init = { |
||||
&google_protobuf_EnumValueOptions_submsgs[0], |
||||
&google_protobuf_EnumValueOptions__fields[0], |
||||
UPB_SIZE(8, 16), 2, kUpb_ExtMode_Extendable, 1, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_ServiceOptions_submsgs[1] = { |
||||
{.submsg = &google_protobuf_UninterpretedOption_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_ServiceOptions__fields[2] = { |
||||
{33, UPB_SIZE(1, 1), UPB_SIZE(1, 1), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{999, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_ServiceOptions_msg_init = { |
||||
&google_protobuf_ServiceOptions_submsgs[0], |
||||
&google_protobuf_ServiceOptions__fields[0], |
||||
UPB_SIZE(8, 16), 2, kUpb_ExtMode_Extendable, 0, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_MethodOptions_submsgs[2] = { |
||||
{.subenum = &google_protobuf_MethodOptions_IdempotencyLevel_enum_init}, |
||||
{.submsg = &google_protobuf_UninterpretedOption_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_MethodOptions__fields[3] = { |
||||
{33, UPB_SIZE(1, 1), UPB_SIZE(1, 1), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
{34, UPB_SIZE(4, 4), UPB_SIZE(2, 2), 0, 14, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, |
||||
{999, UPB_SIZE(8, 8), UPB_SIZE(0, 0), 1, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_MethodOptions_msg_init = { |
||||
&google_protobuf_MethodOptions_submsgs[0], |
||||
&google_protobuf_MethodOptions__fields[0], |
||||
UPB_SIZE(16, 16), 3, kUpb_ExtMode_Extendable, 0, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_UninterpretedOption_submsgs[1] = { |
||||
{.submsg = &google_protobuf_UninterpretedOption_NamePart_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_UninterpretedOption__fields[7] = { |
||||
{2, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{3, UPB_SIZE(8, 16), UPB_SIZE(1, 1), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{4, UPB_SIZE(16, 32), UPB_SIZE(2, 2), kUpb_NoSub, 4, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, |
||||
{5, UPB_SIZE(24, 40), UPB_SIZE(3, 3), kUpb_NoSub, 3, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, |
||||
{6, UPB_SIZE(32, 48), UPB_SIZE(4, 4), kUpb_NoSub, 1, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, |
||||
{7, UPB_SIZE(40, 56), UPB_SIZE(5, 5), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{8, UPB_SIZE(48, 72), UPB_SIZE(6, 6), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_UninterpretedOption_msg_init = { |
||||
&google_protobuf_UninterpretedOption_submsgs[0], |
||||
&google_protobuf_UninterpretedOption__fields[0], |
||||
UPB_SIZE(56, 88), 7, kUpb_ExtMode_NonExtendable, 0, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_UninterpretedOption_NamePart__fields[2] = { |
||||
{1, UPB_SIZE(4, 8), UPB_SIZE(1, 1), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(1, 1), UPB_SIZE(2, 2), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_UninterpretedOption_NamePart_msg_init = { |
||||
NULL, |
||||
&google_protobuf_UninterpretedOption_NamePart__fields[0], |
||||
UPB_SIZE(16, 24), 2, kUpb_ExtMode_NonExtendable, 2, 255, 2, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_SourceCodeInfo_submsgs[1] = { |
||||
{.submsg = &google_protobuf_SourceCodeInfo_Location_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_SourceCodeInfo__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_SourceCodeInfo_msg_init = { |
||||
&google_protobuf_SourceCodeInfo_submsgs[0], |
||||
&google_protobuf_SourceCodeInfo__fields[0], |
||||
UPB_SIZE(8, 8), 1, kUpb_ExtMode_NonExtendable, 1, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_SourceCodeInfo_Location__fields[5] = { |
||||
{1, UPB_SIZE(4, 8), UPB_SIZE(0, 0), kUpb_NoSub, 5, kUpb_FieldMode_Array | kUpb_LabelFlags_IsPacked | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(8, 16), UPB_SIZE(0, 0), kUpb_NoSub, 5, kUpb_FieldMode_Array | kUpb_LabelFlags_IsPacked | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{3, UPB_SIZE(16, 24), UPB_SIZE(1, 1), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{4, UPB_SIZE(24, 40), UPB_SIZE(2, 2), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{6, UPB_SIZE(12, 56), UPB_SIZE(0, 0), kUpb_NoSub, 12, kUpb_FieldMode_Array | kUpb_LabelFlags_IsAlternate | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_SourceCodeInfo_Location_msg_init = { |
||||
NULL, |
||||
&google_protobuf_SourceCodeInfo_Location__fields[0], |
||||
UPB_SIZE(32, 64), 5, kUpb_ExtMode_NonExtendable, 4, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_GeneratedCodeInfo_submsgs[1] = { |
||||
{.submsg = &google_protobuf_GeneratedCodeInfo_Annotation_msg_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_GeneratedCodeInfo__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_GeneratedCodeInfo_msg_init = { |
||||
&google_protobuf_GeneratedCodeInfo_submsgs[0], |
||||
&google_protobuf_GeneratedCodeInfo__fields[0], |
||||
UPB_SIZE(8, 8), 1, kUpb_ExtMode_NonExtendable, 1, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub google_protobuf_GeneratedCodeInfo_Annotation_submsgs[1] = { |
||||
{.subenum = &google_protobuf_GeneratedCodeInfo_Annotation_Semantic_enum_init}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field google_protobuf_GeneratedCodeInfo_Annotation__fields[5] = { |
||||
{1, UPB_SIZE(4, 16), UPB_SIZE(0, 0), kUpb_NoSub, 5, kUpb_FieldMode_Array | kUpb_LabelFlags_IsPacked | (UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(20, 24), UPB_SIZE(1, 1), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | kUpb_LabelFlags_IsAlternate | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{3, UPB_SIZE(8, 4), UPB_SIZE(2, 2), kUpb_NoSub, 5, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, |
||||
{4, UPB_SIZE(12, 8), UPB_SIZE(3, 3), kUpb_NoSub, 5, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, |
||||
{5, UPB_SIZE(16, 12), UPB_SIZE(4, 4), 0, 14, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable google_protobuf_GeneratedCodeInfo_Annotation_msg_init = { |
||||
&google_protobuf_GeneratedCodeInfo_Annotation_submsgs[0], |
||||
&google_protobuf_GeneratedCodeInfo_Annotation__fields[0], |
||||
UPB_SIZE(32, 40), 5, kUpb_ExtMode_NonExtendable, 5, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable *messages_layout[27] = { |
||||
&google_protobuf_FileDescriptorSet_msg_init, |
||||
&google_protobuf_FileDescriptorProto_msg_init, |
||||
&google_protobuf_DescriptorProto_msg_init, |
||||
&google_protobuf_DescriptorProto_ExtensionRange_msg_init, |
||||
&google_protobuf_DescriptorProto_ReservedRange_msg_init, |
||||
&google_protobuf_ExtensionRangeOptions_msg_init, |
||||
&google_protobuf_FieldDescriptorProto_msg_init, |
||||
&google_protobuf_OneofDescriptorProto_msg_init, |
||||
&google_protobuf_EnumDescriptorProto_msg_init, |
||||
&google_protobuf_EnumDescriptorProto_EnumReservedRange_msg_init, |
||||
&google_protobuf_EnumValueDescriptorProto_msg_init, |
||||
&google_protobuf_ServiceDescriptorProto_msg_init, |
||||
&google_protobuf_MethodDescriptorProto_msg_init, |
||||
&google_protobuf_FileOptions_msg_init, |
||||
&google_protobuf_MessageOptions_msg_init, |
||||
&google_protobuf_FieldOptions_msg_init, |
||||
&google_protobuf_OneofOptions_msg_init, |
||||
&google_protobuf_EnumOptions_msg_init, |
||||
&google_protobuf_EnumValueOptions_msg_init, |
||||
&google_protobuf_ServiceOptions_msg_init, |
||||
&google_protobuf_MethodOptions_msg_init, |
||||
&google_protobuf_UninterpretedOption_msg_init, |
||||
&google_protobuf_UninterpretedOption_NamePart_msg_init, |
||||
&google_protobuf_SourceCodeInfo_msg_init, |
||||
&google_protobuf_SourceCodeInfo_Location_msg_init, |
||||
&google_protobuf_GeneratedCodeInfo_msg_init, |
||||
&google_protobuf_GeneratedCodeInfo_Annotation_msg_init, |
||||
}; |
||||
|
||||
const upb_MiniTable_Enum google_protobuf_FieldDescriptorProto_Type_enum_init = { |
||||
64, |
||||
0, |
||||
{ |
||||
0x7fffe, |
||||
0x0, |
||||
}, |
||||
}; |
||||
|
||||
const upb_MiniTable_Enum google_protobuf_FieldDescriptorProto_Label_enum_init = { |
||||
64, |
||||
0, |
||||
{ |
||||
0xe, |
||||
0x0, |
||||
}, |
||||
}; |
||||
|
||||
const upb_MiniTable_Enum google_protobuf_FileOptions_OptimizeMode_enum_init = { |
||||
64, |
||||
0, |
||||
{ |
||||
0xe, |
||||
0x0, |
||||
}, |
||||
}; |
||||
|
||||
const upb_MiniTable_Enum google_protobuf_FieldOptions_CType_enum_init = { |
||||
64, |
||||
0, |
||||
{ |
||||
0x7, |
||||
0x0, |
||||
}, |
||||
}; |
||||
|
||||
const upb_MiniTable_Enum google_protobuf_FieldOptions_JSType_enum_init = { |
||||
64, |
||||
0, |
||||
{ |
||||
0x7, |
||||
0x0, |
||||
}, |
||||
}; |
||||
|
||||
const upb_MiniTable_Enum google_protobuf_MethodOptions_IdempotencyLevel_enum_init = { |
||||
64, |
||||
0, |
||||
{ |
||||
0x7, |
||||
0x0, |
||||
}, |
||||
}; |
||||
|
||||
const upb_MiniTable_Enum google_protobuf_GeneratedCodeInfo_Annotation_Semantic_enum_init = { |
||||
64, |
||||
0, |
||||
{ |
||||
0x7, |
||||
0x0, |
||||
}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Enum *enums_layout[7] = { |
||||
&google_protobuf_FieldDescriptorProto_Type_enum_init, |
||||
&google_protobuf_FieldDescriptorProto_Label_enum_init, |
||||
&google_protobuf_FileOptions_OptimizeMode_enum_init, |
||||
&google_protobuf_FieldOptions_CType_enum_init, |
||||
&google_protobuf_FieldOptions_JSType_enum_init, |
||||
&google_protobuf_MethodOptions_IdempotencyLevel_enum_init, |
||||
&google_protobuf_GeneratedCodeInfo_Annotation_Semantic_enum_init, |
||||
}; |
||||
|
||||
const upb_MiniTable_File google_protobuf_descriptor_proto_upb_file_layout = { |
||||
messages_layout, |
||||
enums_layout, |
||||
NULL, |
||||
27, |
||||
7, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue