| 1 | package Voldemort::ProtoBuff::Spec2; | ||
| 2 | ## | ||
| 3 | ## This file was generated by Google::ProtocolBuffers (0.08) | ||
| 4 | ## on Wed Apr 28 16:11:35 2010 | ||
| 5 | ## | ||
| 6 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 2 | ▶ | use Google::ProtocolBuffers; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | { | ||
| 10 | |||
| 11 | unless ( Voldemort::ProtoBuff::Spec2::RequestType->can('_pb_fields_list') ) | ||
| 12 | { | ||
| 13 | Google::ProtocolBuffers->create_enum( | ||
| 14 | 'Voldemort::ProtoBuff::Spec2::RequestType', | ||
| 15 | [ | ||
| 16 | [ 'GET', 0 ], | ||
| 17 | [ 'GET_ALL', 1 ], | ||
| 18 | [ 'PUT', 2 ], | ||
| 19 | [ 'DELETE', 3 ], | ||
| 20 | [ 'GET_VERSION', 4 ], | ||
| 21 | |||
| 22 | ] | ||
| 23 | ); | ||
| 24 | } | ||
| 25 | |||
| 26 | unless ( Voldemort::ProtoBuff::Spec2::GetRequest->can('_pb_fields_list') ) { | ||
| 27 | Google::ProtocolBuffers->create_message( | ||
| 28 | 'Voldemort::ProtoBuff::Spec2::GetRequest', | ||
| 29 | [ | ||
| 30 | [ | ||
| 31 | Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), | ||
| 32 | Google::ProtocolBuffers::Constants::TYPE_BYTES(), | ||
| 33 | 'key', | ||
| 34 | 1, | ||
| 35 | undef | ||
| 36 | ], | ||
| 37 | |||
| 38 | ], | ||
| 39 | { 'create_accessors' => 1, } | ||
| 40 | ); | ||
| 41 | } | ||
| 42 | |||
| 43 | unless ( Voldemort::ProtoBuff::Spec2::ClockEntry->can('_pb_fields_list') ) { | ||
| 44 | Google::ProtocolBuffers->create_message( | ||
| 45 | 'Voldemort::ProtoBuff::Spec2::ClockEntry', | ||
| 46 | [ | ||
| 47 | [ | ||
| 48 | Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), | ||
| 49 | Google::ProtocolBuffers::Constants::TYPE_INT32(), | ||
| 50 | 'node_id', | ||
| 51 | 1, | ||
| 52 | undef | ||
| 53 | ], | ||
| 54 | [ | ||
| 55 | Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), | ||
| 56 | Google::ProtocolBuffers::Constants::TYPE_INT64(), | ||
| 57 | 'version', | ||
| 58 | 2, | ||
| 59 | undef | ||
| 60 | ], | ||
| 61 | |||
| 62 | ], | ||
| 63 | { 'create_accessors' => 1, } | ||
| 64 | ); | ||
| 65 | } | ||
| 66 | |||
| 67 | unless ( | ||
| 68 | Voldemort::ProtoBuff::Spec2::KeyedVersions->can('_pb_fields_list') ) | ||
| 69 | { | ||
| 70 | Google::ProtocolBuffers->create_message( | ||
| 71 | 'Voldemort::ProtoBuff::Spec2::KeyedVersions', | ||
| 72 | [ | ||
| 73 | [ | ||
| 74 | Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), | ||
| 75 | Google::ProtocolBuffers::Constants::TYPE_BYTES(), | ||
| 76 | 'key', | ||
| 77 | 1, | ||
| 78 | undef | ||
| 79 | ], | ||
| 80 | [ | ||
| 81 | Google::ProtocolBuffers::Constants::LABEL_REPEATED(), | ||
| 82 | 'Voldemort::ProtoBuff::Spec2::Versioned', | ||
| 83 | 'versions', | ||
| 84 | 2, | ||
| 85 | undef | ||
| 86 | ], | ||
| 87 | |||
| 88 | ], | ||
| 89 | { 'create_accessors' => 1, } | ||
| 90 | ); | ||
| 91 | } | ||
| 92 | |||
| 93 | unless ( Voldemort::ProtoBuff::Spec2::PutRequest->can('_pb_fields_list') ) { | ||
| 94 | Google::ProtocolBuffers->create_message( | ||
| 95 | 'Voldemort::ProtoBuff::Spec2::PutRequest', | ||
| 96 | [ | ||
| 97 | [ | ||
| 98 | Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), | ||
| 99 | Google::ProtocolBuffers::Constants::TYPE_BYTES(), | ||
| 100 | 'key', | ||
| 101 | 1, | ||
| 102 | undef | ||
| 103 | ], | ||
| 104 | [ | ||
| 105 | Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), | ||
| 106 | 'Voldemort::ProtoBuff::Spec2::Versioned', | ||
| 107 | 'versioned', | ||
| 108 | 2, | ||
| 109 | undef | ||
| 110 | ], | ||
| 111 | |||
| 112 | ], | ||
| 113 | { 'create_accessors' => 1, } | ||
| 114 | ); | ||
| 115 | } | ||
| 116 | |||
| 117 | unless ( | ||
| 118 | Voldemort::ProtoBuff::Spec2::GetAllRequest->can('_pb_fields_list') ) | ||
| 119 | { | ||
| 120 | Google::ProtocolBuffers->create_message( | ||
| 121 | 'Voldemort::ProtoBuff::Spec2::GetAllRequest', | ||
| 122 | [ | ||
| 123 | [ | ||
| 124 | Google::ProtocolBuffers::Constants::LABEL_REPEATED(), | ||
| 125 | Google::ProtocolBuffers::Constants::TYPE_BYTES(), | ||
| 126 | 'keys', | ||
| 127 | 1, | ||
| 128 | undef | ||
| 129 | ], | ||
| 130 | |||
| 131 | ], | ||
| 132 | { 'create_accessors' => 1, } | ||
| 133 | ); | ||
| 134 | } | ||
| 135 | |||
| 136 | unless ( | ||
| 137 | Voldemort::ProtoBuff::Spec2::DeleteRequest->can('_pb_fields_list') ) | ||
| 138 | { | ||
| 139 | Google::ProtocolBuffers->create_message( | ||
| 140 | 'Voldemort::ProtoBuff::Spec2::DeleteRequest', | ||
| 141 | [ | ||
| 142 | [ | ||
| 143 | Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), | ||
| 144 | Google::ProtocolBuffers::Constants::TYPE_BYTES(), | ||
| 145 | 'key', | ||
| 146 | 1, | ||
| 147 | undef | ||
| 148 | ], | ||
| 149 | [ | ||
| 150 | Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), | ||
| 151 | 'Voldemort::ProtoBuff::Spec2::VectorClock', | ||
| 152 | 'version', | ||
| 153 | 2, | ||
| 154 | undef | ||
| 155 | ], | ||
| 156 | |||
| 157 | ], | ||
| 158 | { 'create_accessors' => 1, } | ||
| 159 | ); | ||
| 160 | } | ||
| 161 | |||
| 162 | unless ( Voldemort::ProtoBuff::Spec2::GetResponse->can('_pb_fields_list') ) | ||
| 163 | { | ||
| 164 | Google::ProtocolBuffers->create_message( | ||
| 165 | 'Voldemort::ProtoBuff::Spec2::GetResponse', | ||
| 166 | [ | ||
| 167 | [ | ||
| 168 | Google::ProtocolBuffers::Constants::LABEL_REPEATED(), | ||
| 169 | 'Voldemort::ProtoBuff::Spec2::Versioned', | ||
| 170 | 'versioned', | ||
| 171 | 1, | ||
| 172 | undef | ||
| 173 | ], | ||
| 174 | [ | ||
| 175 | Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), | ||
| 176 | 'Voldemort::ProtoBuff::Spec2::Error', | ||
| 177 | 'error', 2, undef | ||
| 178 | ], | ||
| 179 | |||
| 180 | ], | ||
| 181 | { 'create_accessors' => 1, } | ||
| 182 | ); | ||
| 183 | } | ||
| 184 | |||
| 185 | unless ( Voldemort::ProtoBuff::Spec2::Error->can('_pb_fields_list') ) { | ||
| 186 | Google::ProtocolBuffers->create_message( | ||
| 187 | 'Voldemort::ProtoBuff::Spec2::Error', | ||
| 188 | [ | ||
| 189 | [ | ||
| 190 | Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), | ||
| 191 | Google::ProtocolBuffers::Constants::TYPE_INT32(), | ||
| 192 | 'error_code', | ||
| 193 | 1, | ||
| 194 | undef | ||
| 195 | ], | ||
| 196 | [ | ||
| 197 | Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), | ||
| 198 | Google::ProtocolBuffers::Constants::TYPE_STRING(), | ||
| 199 | 'error_message', | ||
| 200 | 2, | ||
| 201 | undef | ||
| 202 | ], | ||
| 203 | |||
| 204 | ], | ||
| 205 | { 'create_accessors' => 1, } | ||
| 206 | ); | ||
| 207 | } | ||
| 208 | |||
| 209 | unless ( | ||
| 210 | Voldemort::ProtoBuff::Spec2::GetAllResponse->can('_pb_fields_list') ) | ||
| 211 | { | ||
| 212 | Google::ProtocolBuffers->create_message( | ||
| 213 | 'Voldemort::ProtoBuff::Spec2::GetAllResponse', | ||
| 214 | [ | ||
| 215 | [ | ||
| 216 | Google::ProtocolBuffers::Constants::LABEL_REPEATED(), | ||
| 217 | 'Voldemort::ProtoBuff::Spec2::KeyedVersions', | ||
| 218 | 'values', | ||
| 219 | 1, | ||
| 220 | undef | ||
| 221 | ], | ||
| 222 | [ | ||
| 223 | Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), | ||
| 224 | 'Voldemort::ProtoBuff::Spec2::Error', | ||
| 225 | 'error', 2, undef | ||
| 226 | ], | ||
| 227 | |||
| 228 | ], | ||
| 229 | { 'create_accessors' => 1, } | ||
| 230 | ); | ||
| 231 | } | ||
| 232 | |||
| 233 | unless ( | ||
| 234 | Voldemort::ProtoBuff::Spec2::GetVersionResponse->can('_pb_fields_list') | ||
| 235 | ) | ||
| 236 | { | ||
| 237 | Google::ProtocolBuffers->create_message( | ||
| 238 | 'Voldemort::ProtoBuff::Spec2::GetVersionResponse', | ||
| 239 | [ | ||
| 240 | [ | ||
| 241 | Google::ProtocolBuffers::Constants::LABEL_REPEATED(), | ||
| 242 | 'Voldemort::ProtoBuff::Spec2::VectorClock', | ||
| 243 | 'versions', | ||
| 244 | 1, | ||
| 245 | undef | ||
| 246 | ], | ||
| 247 | [ | ||
| 248 | Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), | ||
| 249 | 'Voldemort::ProtoBuff::Spec2::Error', | ||
| 250 | 'error', 2, undef | ||
| 251 | ], | ||
| 252 | |||
| 253 | ], | ||
| 254 | { 'create_accessors' => 1, } | ||
| 255 | ); | ||
| 256 | } | ||
| 257 | |||
| 258 | unless ( | ||
| 259 | Voldemort::ProtoBuff::Spec2::VoldemortRequest->can('_pb_fields_list') ) | ||
| 260 | { | ||
| 261 | Google::ProtocolBuffers->create_message( | ||
| 262 | 'Voldemort::ProtoBuff::Spec2::VoldemortRequest', | ||
| 263 | [ | ||
| 264 | [ | ||
| 265 | Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), | ||
| 266 | 'Voldemort::ProtoBuff::Spec2::RequestType', | ||
| 267 | 'type', 1, undef | ||
| 268 | ], | ||
| 269 | [ | ||
| 270 | Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), | ||
| 271 | Google::ProtocolBuffers::Constants::TYPE_BOOL(), | ||
| 272 | 'should_route', | ||
| 273 | 2, | ||
| 274 | 0 | ||
| 275 | ], | ||
| 276 | [ | ||
| 277 | Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), | ||
| 278 | Google::ProtocolBuffers::Constants::TYPE_STRING(), | ||
| 279 | 'store', | ||
| 280 | 3, | ||
| 281 | undef | ||
| 282 | ], | ||
| 283 | [ | ||
| 284 | Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), | ||
| 285 | 'Voldemort::ProtoBuff::Spec2::GetRequest', | ||
| 286 | 'get', 4, undef | ||
| 287 | ], | ||
| 288 | [ | ||
| 289 | Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), | ||
| 290 | 'Voldemort::ProtoBuff::Spec2::GetAllRequest', | ||
| 291 | 'getAll', | ||
| 292 | 5, | ||
| 293 | undef | ||
| 294 | ], | ||
| 295 | [ | ||
| 296 | Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), | ||
| 297 | 'Voldemort::ProtoBuff::Spec2::PutRequest', | ||
| 298 | 'put', 6, undef | ||
| 299 | ], | ||
| 300 | [ | ||
| 301 | Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), | ||
| 302 | 'Voldemort::ProtoBuff::Spec2::DeleteRequest', | ||
| 303 | 'delete', | ||
| 304 | 7, | ||
| 305 | undef | ||
| 306 | ], | ||
| 307 | [ | ||
| 308 | Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), | ||
| 309 | Google::ProtocolBuffers::Constants::TYPE_INT32(), | ||
| 310 | 'requestRouteType', | ||
| 311 | 8, | ||
| 312 | undef | ||
| 313 | ], | ||
| 314 | |||
| 315 | ], | ||
| 316 | { 'create_accessors' => 1, } | ||
| 317 | ); | ||
| 318 | } | ||
| 319 | |||
| 320 | unless ( | ||
| 321 | Voldemort::ProtoBuff::Spec2::DeleteResponse->can('_pb_fields_list') ) | ||
| 322 | { | ||
| 323 | Google::ProtocolBuffers->create_message( | ||
| 324 | 'Voldemort::ProtoBuff::Spec2::DeleteResponse', | ||
| 325 | [ | ||
| 326 | [ | ||
| 327 | Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), | ||
| 328 | Google::ProtocolBuffers::Constants::TYPE_BOOL(), | ||
| 329 | 'success', | ||
| 330 | 1, | ||
| 331 | undef | ||
| 332 | ], | ||
| 333 | [ | ||
| 334 | Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), | ||
| 335 | 'Voldemort::ProtoBuff::Spec2::Error', | ||
| 336 | 'error', 2, undef | ||
| 337 | ], | ||
| 338 | |||
| 339 | ], | ||
| 340 | { 'create_accessors' => 1, } | ||
| 341 | ); | ||
| 342 | } | ||
| 343 | |||
| 344 | unless ( Voldemort::ProtoBuff::Spec2::VectorClock->can('_pb_fields_list') ) | ||
| 345 | { | ||
| 346 | Google::ProtocolBuffers->create_message( | ||
| 347 | 'Voldemort::ProtoBuff::Spec2::VectorClock', | ||
| 348 | [ | ||
| 349 | [ | ||
| 350 | Google::ProtocolBuffers::Constants::LABEL_REPEATED(), | ||
| 351 | 'Voldemort::ProtoBuff::Spec2::ClockEntry', | ||
| 352 | 'entries', | ||
| 353 | 1, | ||
| 354 | undef | ||
| 355 | ], | ||
| 356 | [ | ||
| 357 | Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), | ||
| 358 | Google::ProtocolBuffers::Constants::TYPE_INT64(), | ||
| 359 | 'timestamp', | ||
| 360 | 2, | ||
| 361 | undef | ||
| 362 | ], | ||
| 363 | |||
| 364 | ], | ||
| 365 | { 'create_accessors' => 1, } | ||
| 366 | ); | ||
| 367 | } | ||
| 368 | |||
| 369 | unless ( Voldemort::ProtoBuff::Spec2::PutResponse->can('_pb_fields_list') ) | ||
| 370 | { | ||
| 371 | Google::ProtocolBuffers->create_message( | ||
| 372 | 'Voldemort::ProtoBuff::Spec2::PutResponse', | ||
| 373 | [ | ||
| 374 | [ | ||
| 375 | Google::ProtocolBuffers::Constants::LABEL_OPTIONAL(), | ||
| 376 | 'Voldemort::ProtoBuff::Spec2::Error', | ||
| 377 | 'error', 1, undef | ||
| 378 | ], | ||
| 379 | |||
| 380 | ], | ||
| 381 | { 'create_accessors' => 1, } | ||
| 382 | ); | ||
| 383 | } | ||
| 384 | |||
| 385 | unless ( Voldemort::ProtoBuff::Spec2::Versioned->can('_pb_fields_list') ) { | ||
| 386 | Google::ProtocolBuffers->create_message( | ||
| 387 | 'Voldemort::ProtoBuff::Spec2::Versioned', | ||
| 388 | [ | ||
| 389 | [ | ||
| 390 | Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), | ||
| 391 | Google::ProtocolBuffers::Constants::TYPE_BYTES(), | ||
| 392 | 'value', | ||
| 393 | 1, | ||
| 394 | undef | ||
| 395 | ], | ||
| 396 | [ | ||
| 397 | Google::ProtocolBuffers::Constants::LABEL_REQUIRED(), | ||
| 398 | 'Voldemort::ProtoBuff::Spec2::VectorClock', | ||
| 399 | 'version', | ||
| 400 | 2, | ||
| 401 | undef | ||
| 402 | ], | ||
| 403 | |||
| 404 | ], | ||
| 405 | { 'create_accessors' => 1, } | ||
| 406 | ); | ||
| 407 | } | ||
| 408 | |||
| 409 | } | ||
| 410 | 1; | ||