/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/common/common_types.pb.cc
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: yb/common/common_types.proto |
3 | | |
4 | | #include "yb/common/common_types.pb.h" |
5 | | |
6 | | #include <algorithm> |
7 | | |
8 | | #include <google/protobuf/stubs/common.h> |
9 | | #include <google/protobuf/stubs/port.h> |
10 | | #include <google/protobuf/stubs/once.h> |
11 | | #include <google/protobuf/io/coded_stream.h> |
12 | | #include <google/protobuf/wire_format_lite_inl.h> |
13 | | #include <google/protobuf/descriptor.h> |
14 | | #include <google/protobuf/generated_message_reflection.h> |
15 | | #include <google/protobuf/reflection_ops.h> |
16 | | #include <google/protobuf/wire_format.h> |
17 | | // This is a temporary google only hack |
18 | | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
19 | | #include "third_party/protobuf/version.h" |
20 | | #endif |
21 | | #include "yb/util/protobuf-annotations.h" |
22 | | // @@protoc_insertion_point(includes) |
23 | | namespace yb { |
24 | | } // namespace yb |
25 | | namespace protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto { |
26 | | const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[9]; |
27 | | const ::google::protobuf::uint32 TableStruct::offsets[1] = {}; |
28 | | static const ::google::protobuf::internal::MigrationSchema* schemas = NULL; |
29 | | static const ::google::protobuf::Message* const* file_default_instances = NULL; |
30 | | |
31 | 9.88k | void protobuf_AssignDescriptors() { |
32 | 9.88k | AddDescriptors(); |
33 | 9.88k | ::google::protobuf::MessageFactory* factory = NULL; |
34 | 9.88k | AssignDescriptors( |
35 | 9.88k | "yb/common/common_types.proto", schemas, file_default_instances, TableStruct::offsets, factory, |
36 | 9.88k | NULL, file_level_enum_descriptors, NULL); |
37 | 9.88k | } |
38 | | |
39 | 3.74M | void protobuf_AssignDescriptorsOnce() { |
40 | 3.74M | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
41 | 3.74M | ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); |
42 | 3.74M | } |
43 | | |
44 | | void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; |
45 | 0 | void protobuf_RegisterTypes(const ::std::string&) { |
46 | 0 | protobuf_AssignDescriptorsOnce(); |
47 | 0 | } |
48 | | |
49 | 17.1k | void AddDescriptorsImpl() { |
50 | 17.1k | InitDefaults(); |
51 | 17.1k | static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
52 | 17.1k | "\n\034yb/common/common_types.proto\022\002yb*S\n\014Re" |
53 | 17.1k | "sourceType\022\021\n\rALL_KEYSPACES\020\001\022\014\n\010KEYSPAC" |
54 | 17.1k | "E\020\002\022\t\n\005TABLE\020\003\022\r\n\tALL_ROLES\020\004\022\010\n\004ROLE\020\005*" |
55 | 17.1k | "\313\001\n\016PermissionType\022\024\n\020ALTER_PERMISSION\020\000" |
56 | 17.1k | "\022\025\n\021CREATE_PERMISSION\020\001\022\023\n\017DROP_PERMISSI" |
57 | 17.1k | "ON\020\002\022\025\n\021SELECT_PERMISSION\020\003\022\025\n\021MODIFY_PE" |
58 | 17.1k | "RMISSION\020\004\022\030\n\024AUTHORIZE_PERMISSION\020\005\022\027\n\023" |
59 | 17.1k | "DESCRIBE_PERMISSION\020\006\022\026\n\016ALL_PERMISSION\020" |
60 | 17.1k | "\377\223\353\334\003*\242\002\n\020IndexPermissions\022\032\n\026INDEX_PERM" |
61 | 17.1k | "_DELETE_ONLY\020\000\022\037\n\033INDEX_PERM_WRITE_AND_D" |
62 | 17.1k | "ELETE\020\002\022\032\n\026INDEX_PERM_DO_BACKFILL\020\004\022$\n I" |
63 | 17.1k | "NDEX_PERM_READ_WRITE_AND_DELETE\020\006\022.\n*IND" |
64 | 17.1k | "EX_PERM_WRITE_AND_DELETE_WHILE_REMOVING\020" |
65 | 17.1k | "\010\022)\n%INDEX_PERM_DELETE_ONLY_WHILE_REMOVI" |
66 | 17.1k | "NG\020\n\022\033\n\027INDEX_PERM_INDEX_UNUSED\020\014\022\027\n\023IND" |
67 | 17.1k | "EX_PERM_NOT_USED\020\016*m\n\013YQLDatabase\022\030\n\024YQL" |
68 | 17.1k | "_DATABASE_UNKNOWN\020\001\022\024\n\020YQL_DATABASE_CQL\020" |
69 | 17.1k | "\002\022\026\n\022YQL_DATABASE_PGSQL\020\003\022\026\n\022YQL_DATABAS" |
70 | 17.1k | "E_REDIS\020\004*\212\001\n\tTableType\022\022\n\016YQL_TABLE_TYP" |
71 | 17.1k | "E\020\002\022\024\n\020REDIS_TABLE_TYPE\020\003\022\024\n\020PGSQL_TABLE" |
72 | 17.1k | "_TYPE\020\004\022!\n\035TRANSACTION_STATUS_TABLE_TYPE" |
73 | 17.1k | "\020\005\022\026\n\022DEFAULT_TABLE_TYPE\020\002\032\002\020\001*0\n\016JsonOp" |
74 | 17.1k | "eratorPB\022\017\n\013JSON_OBJECT\020\000\022\r\n\tJSON_TEXT\020\001" |
75 | 17.1k | "*J\n\022YBConsistencyLevel\022\n\n\006STRONG\020\001\022\025\n\021CO" |
76 | 17.1k | "NSISTENT_PREFIX\020\002\022\021\n\rUSER_ENFORCED\020\003*J\n\010" |
77 | 17.1k | "QLClient\022\022\n\016YQL_CLIENT_CQL\020\001\022\024\n\020YQL_CLIE" |
78 | 17.1k | "NT_PGSQL\020\002\022\024\n\020YQL_CLIENT_REDIS\020\003*j\n\010Peer" |
79 | 17.1k | "Role\022\014\n\010FOLLOWER\020\000\022\n\n\006LEADER\020\001\022\013\n\007LEARNE" |
80 | 17.1k | "R\020\002\022\023\n\017NON_PARTICIPANT\020\003\022\020\n\014READ_REPLICA" |
81 | 17.1k | "\020\004\022\020\n\014UNKNOWN_ROLE\020\007B\010\n\006org.yb" |
82 | 17.1k | }; |
83 | 17.1k | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
84 | 17.1k | descriptor, 1190); |
85 | 17.1k | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
86 | 17.1k | "yb/common/common_types.proto", &protobuf_RegisterTypes); |
87 | 17.1k | } |
88 | | |
89 | 269k | void AddDescriptors() { |
90 | 269k | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
91 | 269k | ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); |
92 | 269k | } |
93 | | // Force AddDescriptors() to be called at dynamic initialization time. |
94 | | struct StaticDescriptorInitializer { |
95 | 17.1k | StaticDescriptorInitializer() { |
96 | 17.1k | AddDescriptors(); |
97 | 17.1k | } |
98 | | } static_descriptor_initializer; |
99 | | } // namespace protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto |
100 | | namespace yb { |
101 | 3.23k | const ::google::protobuf::EnumDescriptor* ResourceType_descriptor() { |
102 | 3.23k | protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
103 | 3.23k | return protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::file_level_enum_descriptors[0]; |
104 | 3.23k | } |
105 | 4.43k | bool ResourceType_IsValid(int value) { |
106 | 4.43k | switch (value) { |
107 | 464 | case 1: |
108 | 2.19k | case 2: |
109 | 3.15k | case 3: |
110 | 3.37k | case 4: |
111 | 4.43k | case 5: |
112 | 4.43k | return true; |
113 | 0 | default: |
114 | 0 | return false; |
115 | 4.43k | } |
116 | 4.43k | } |
117 | | |
118 | 0 | const ::google::protobuf::EnumDescriptor* PermissionType_descriptor() { |
119 | 0 | protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
120 | 0 | return protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::file_level_enum_descriptors[1]; |
121 | 0 | } |
122 | 11.9k | bool PermissionType_IsValid(int value) { |
123 | 11.9k | switch (value) { |
124 | 2.31k | case 0: |
125 | 3.70k | case 1: |
126 | 6.16k | case 2: |
127 | 7.73k | case 3: |
128 | 9.30k | case 4: |
129 | 11.6k | case 5: |
130 | 11.7k | case 6: |
131 | 11.9k | case 999999999: |
132 | 11.9k | return true; |
133 | 0 | default: |
134 | 0 | return false; |
135 | 11.9k | } |
136 | 11.9k | } |
137 | | |
138 | 3 | const ::google::protobuf::EnumDescriptor* IndexPermissions_descriptor() { |
139 | 3 | protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
140 | 3 | return protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::file_level_enum_descriptors[2]; |
141 | 3 | } |
142 | 250k | bool IndexPermissions_IsValid(int value) { |
143 | 250k | switch (value) { |
144 | 22.7k | case 0: |
145 | 51.4k | case 2: |
146 | 93.0k | case 4: |
147 | 225k | case 6: |
148 | 234k | case 8: |
149 | 242k | case 10: |
150 | 250k | case 12: |
151 | 250k | case 14: |
152 | 250k | return true; |
153 | 0 | default: |
154 | 0 | return false; |
155 | 250k | } |
156 | 250k | } |
157 | | |
158 | 0 | const ::google::protobuf::EnumDescriptor* YQLDatabase_descriptor() { |
159 | 0 | protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
160 | 0 | return protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::file_level_enum_descriptors[3]; |
161 | 0 | } |
162 | 340k | bool YQLDatabase_IsValid(int value) { |
163 | 340k | switch (value) { |
164 | 0 | case 1: |
165 | 304k | case 2: |
166 | 339k | case 3: |
167 | 340k | case 4: |
168 | 340k | return true; |
169 | 0 | default: |
170 | 0 | return false; |
171 | 340k | } |
172 | 340k | } |
173 | | |
174 | 3.18k | const ::google::protobuf::EnumDescriptor* TableType_descriptor() { |
175 | 3.18k | protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
176 | 3.18k | return protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::file_level_enum_descriptors[4]; |
177 | 3.18k | } |
178 | 143M | bool TableType_IsValid(int value) { |
179 | 143M | switch (value) { |
180 | 1.52M | case 2: |
181 | 1.54M | case 3: |
182 | 142M | case 4: |
183 | 143M | case 5: |
184 | 143M | return true; |
185 | 0 | default: |
186 | 0 | return false; |
187 | 143M | } |
188 | 143M | } |
189 | | |
190 | 0 | const ::google::protobuf::EnumDescriptor* JsonOperatorPB_descriptor() { |
191 | 0 | protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
192 | 0 | return protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::file_level_enum_descriptors[5]; |
193 | 0 | } |
194 | 23.1k | bool JsonOperatorPB_IsValid(int value) { |
195 | 23.1k | switch (value) { |
196 | 9.95k | case 0: |
197 | 23.1k | case 1: |
198 | 23.1k | return true; |
199 | 0 | default: |
200 | 0 | return false; |
201 | 23.1k | } |
202 | 23.1k | } |
203 | | |
204 | 0 | const ::google::protobuf::EnumDescriptor* YBConsistencyLevel_descriptor() { |
205 | 0 | protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
206 | 0 | return protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::file_level_enum_descriptors[6]; |
207 | 0 | } |
208 | 149M | bool YBConsistencyLevel_IsValid(int value) { |
209 | 149M | switch (value) { |
210 | 149M | case 1: |
211 | 149M | case 2: |
212 | 149M | case 3: |
213 | 149M | return true; |
214 | 0 | default: |
215 | 0 | return false; |
216 | 149M | } |
217 | 149M | } |
218 | | |
219 | 0 | const ::google::protobuf::EnumDescriptor* QLClient_descriptor() { |
220 | 0 | protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
221 | 0 | return protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::file_level_enum_descriptors[7]; |
222 | 0 | } |
223 | 27.9M | bool QLClient_IsValid(int value) { |
224 | 27.9M | switch (value) { |
225 | 11.4M | case 1: |
226 | 27.9M | case 2: |
227 | 27.9M | case 3: |
228 | 27.9M | return true; |
229 | 0 | default: |
230 | 0 | return false; |
231 | 27.9M | } |
232 | 27.9M | } |
233 | | |
234 | 3.73M | const ::google::protobuf::EnumDescriptor* PeerRole_descriptor() { |
235 | 3.73M | protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::protobuf_AssignDescriptorsOnce(); |
236 | 3.73M | return protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::file_level_enum_descriptors[8]; |
237 | 3.73M | } |
238 | 18.4M | bool PeerRole_IsValid(int value) { |
239 | 18.4M | switch (value) { |
240 | 15.9M | case 0: |
241 | 18.4M | case 1: |
242 | 18.4M | case 2: |
243 | 18.4M | case 3: |
244 | 18.4M | case 4: |
245 | 18.4M | case 7: |
246 | 18.4M | return true; |
247 | 0 | default: |
248 | 0 | return false; |
249 | 18.4M | } |
250 | 18.4M | } |
251 | | |
252 | | |
253 | | // @@protoc_insertion_point(namespace_scope) |
254 | | } // namespace yb |
255 | | |
256 | | // @@protoc_insertion_point(global_scope) |