YugabyteDB (2.13.1.0-b60, 21121d69985fbf76aa6958d8f04a9bfa936293b5)

Coverage Report

Created: 2022-03-22 16:43

/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
14.7k
void protobuf_AssignDescriptors() {
32
14.7k
  AddDescriptors();
33
14.7k
  ::google::protobuf::MessageFactory* factory = NULL;
34
14.7k
  AssignDescriptors(
35
14.7k
      "yb/common/common_types.proto", schemas, file_default_instances, TableStruct::offsets, factory,
36
14.7k
      NULL, file_level_enum_descriptors, NULL);
37
14.7k
}
38
39
12.7M
void protobuf_AssignDescriptorsOnce() {
40
12.7M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
41
12.7M
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
42
12.7M
}
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
28.1k
void AddDescriptorsImpl() {
50
28.1k
  InitDefaults();
51
28.1k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
52
28.1k
      "\n\034yb/common/common_types.proto\022\002yb*S\n\014Re"
53
28.1k
      "sourceType\022\021\n\rALL_KEYSPACES\020\001\022\014\n\010KEYSPAC"
54
28.1k
      "E\020\002\022\t\n\005TABLE\020\003\022\r\n\tALL_ROLES\020\004\022\010\n\004ROLE\020\005*"
55
28.1k
      "\313\001\n\016PermissionType\022\024\n\020ALTER_PERMISSION\020\000"
56
28.1k
      "\022\025\n\021CREATE_PERMISSION\020\001\022\023\n\017DROP_PERMISSI"
57
28.1k
      "ON\020\002\022\025\n\021SELECT_PERMISSION\020\003\022\025\n\021MODIFY_PE"
58
28.1k
      "RMISSION\020\004\022\030\n\024AUTHORIZE_PERMISSION\020\005\022\027\n\023"
59
28.1k
      "DESCRIBE_PERMISSION\020\006\022\026\n\016ALL_PERMISSION\020"
60
28.1k
      "\377\223\353\334\003*\242\002\n\020IndexPermissions\022\032\n\026INDEX_PERM"
61
28.1k
      "_DELETE_ONLY\020\000\022\037\n\033INDEX_PERM_WRITE_AND_D"
62
28.1k
      "ELETE\020\002\022\032\n\026INDEX_PERM_DO_BACKFILL\020\004\022$\n I"
63
28.1k
      "NDEX_PERM_READ_WRITE_AND_DELETE\020\006\022.\n*IND"
64
28.1k
      "EX_PERM_WRITE_AND_DELETE_WHILE_REMOVING\020"
65
28.1k
      "\010\022)\n%INDEX_PERM_DELETE_ONLY_WHILE_REMOVI"
66
28.1k
      "NG\020\n\022\033\n\027INDEX_PERM_INDEX_UNUSED\020\014\022\027\n\023IND"
67
28.1k
      "EX_PERM_NOT_USED\020\016*m\n\013YQLDatabase\022\030\n\024YQL"
68
28.1k
      "_DATABASE_UNKNOWN\020\001\022\024\n\020YQL_DATABASE_CQL\020"
69
28.1k
      "\002\022\026\n\022YQL_DATABASE_PGSQL\020\003\022\026\n\022YQL_DATABAS"
70
28.1k
      "E_REDIS\020\004*\212\001\n\tTableType\022\022\n\016YQL_TABLE_TYP"
71
28.1k
      "E\020\002\022\024\n\020REDIS_TABLE_TYPE\020\003\022\024\n\020PGSQL_TABLE"
72
28.1k
      "_TYPE\020\004\022!\n\035TRANSACTION_STATUS_TABLE_TYPE"
73
28.1k
      "\020\005\022\026\n\022DEFAULT_TABLE_TYPE\020\002\032\002\020\001*0\n\016JsonOp"
74
28.1k
      "eratorPB\022\017\n\013JSON_OBJECT\020\000\022\r\n\tJSON_TEXT\020\001"
75
28.1k
      "*J\n\022YBConsistencyLevel\022\n\n\006STRONG\020\001\022\025\n\021CO"
76
28.1k
      "NSISTENT_PREFIX\020\002\022\021\n\rUSER_ENFORCED\020\003*J\n\010"
77
28.1k
      "QLClient\022\022\n\016YQL_CLIENT_CQL\020\001\022\024\n\020YQL_CLIE"
78
28.1k
      "NT_PGSQL\020\002\022\024\n\020YQL_CLIENT_REDIS\020\003*j\n\010Peer"
79
28.1k
      "Role\022\014\n\010FOLLOWER\020\000\022\n\n\006LEADER\020\001\022\013\n\007LEARNE"
80
28.1k
      "R\020\002\022\023\n\017NON_PARTICIPANT\020\003\022\020\n\014READ_REPLICA"
81
28.1k
      "\020\004\022\020\n\014UNKNOWN_ROLE\020\007B\010\n\006org.yb"
82
28.1k
  };
83
28.1k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
84
28.1k
      descriptor, 1190);
85
28.1k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
86
28.1k
    "yb/common/common_types.proto", &protobuf_RegisterTypes);
87
28.1k
}
88
89
450k
void AddDescriptors() {
90
450k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
91
450k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
92
450k
}
93
// Force AddDescriptors() to be called at dynamic initialization time.
94
struct StaticDescriptorInitializer {
95
28.1k
  StaticDescriptorInitializer() {
96
28.1k
    AddDescriptors();
97
28.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
367k
bool IndexPermissions_IsValid(int value) {
143
367k
  switch (value) {
144
23.0k
    case 0:
145
90.4k
    case 2:
146
130k
    case 4:
147
341k
    case 6:
148
351k
    case 8:
149
359k
    case 10:
150
367k
    case 12:
151
367k
    case 14:
152
367k
      return true;
153
0
    default:
154
0
      return false;
155
367k
  }
156
367k
}
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
508k
bool YQLDatabase_IsValid(int value) {
163
508k
  switch (value) {
164
0
    case 1:
165
318k
    case 2:
166
504k
    case 3:
167
508k
    case 4:
168
508k
      return true;
169
0
    default:
170
0
      return false;
171
508k
  }
172
508k
}
173
174
6.98k
const ::google::protobuf::EnumDescriptor* TableType_descriptor() {
175
6.98k
  protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::protobuf_AssignDescriptorsOnce();
176
6.98k
  return protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::file_level_enum_descriptors[4];
177
6.98k
}
178
306M
bool TableType_IsValid(int value) {
179
306M
  switch (value) {
180
2.12M
    case 2:
181
2.20M
    case 3:
182
306M
    case 4:
183
306M
    case 5:
184
306M
      return true;
185
0
    default:
186
0
      return false;
187
306M
  }
188
306M
}
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.6k
bool JsonOperatorPB_IsValid(int value) {
195
23.6k
  switch (value) {
196
10.1k
    case 0:
197
23.6k
    case 1:
198
23.6k
      return true;
199
0
    default:
200
0
      return false;
201
23.6k
  }
202
23.6k
}
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
319M
bool YBConsistencyLevel_IsValid(int value) {
209
319M
  switch (value) {
210
319M
    case 1:
211
319M
    case 2:
212
319M
    case 3:
213
319M
      return true;
214
0
    default:
215
0
      return false;
216
319M
  }
217
319M
}
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
70.2M
bool QLClient_IsValid(int value) {
224
70.2M
  switch (value) {
225
16.8M
    case 1:
226
70.2M
    case 2:
227
70.2M
    case 3:
228
70.2M
      return true;
229
0
    default:
230
0
      return false;
231
70.2M
  }
232
70.2M
}
233
234
12.7M
const ::google::protobuf::EnumDescriptor* PeerRole_descriptor() {
235
12.7M
  protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::protobuf_AssignDescriptorsOnce();
236
12.7M
  return protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::file_level_enum_descriptors[8];
237
12.7M
}
238
124M
bool PeerRole_IsValid(int value) {
239
124M
  switch (value) {
240
121M
    case 0:
241
125M
    case 1:
242
125M
    case 2:
243
125M
    case 3:
244
125M
    case 4:
245
125M
    case 7:
246
125M
      return true;
247
0
    default:
248
0
      return false;
249
124M
  }
250
124M
}
251
252
253
// @@protoc_insertion_point(namespace_scope)
254
}  // namespace yb
255
256
// @@protoc_insertion_point(global_scope)