OLD | NEW |
(Empty) | |
| 1 syntax = "proto2"; |
| 2 |
| 3 package appengine.datastore.v3; |
| 4 |
| 5 message Action{} |
| 6 |
| 7 message PropertyValue { |
| 8 optional int64 int64Value = 1; |
| 9 optional bool booleanValue = 2; |
| 10 optional bytes bytesValue = 3; |
| 11 optional double doubleValue = 4; |
| 12 |
| 13 optional group PointValue = 5 { |
| 14 required double x = 6; |
| 15 required double y = 7; |
| 16 } |
| 17 |
| 18 optional group UserValue = 8 { |
| 19 required string email = 9; |
| 20 required string auth_domain = 10; |
| 21 optional string nickname = 11; |
| 22 optional string federated_identity = 21; |
| 23 optional string federated_provider = 22; |
| 24 } |
| 25 |
| 26 optional group ReferenceValue = 12 { |
| 27 required string app = 13; |
| 28 optional string name_space = 20; |
| 29 repeated group PathElement = 14 { |
| 30 required string type = 15; |
| 31 optional int64 id = 16; |
| 32 optional string name = 17; |
| 33 } |
| 34 } |
| 35 } |
| 36 |
| 37 message Property { |
| 38 enum Meaning { |
| 39 NO_MEANING = 0; |
| 40 BLOB = 14; |
| 41 TEXT = 15; |
| 42 BYTESTRING = 16; |
| 43 |
| 44 ATOM_CATEGORY = 1; |
| 45 ATOM_LINK = 2; |
| 46 ATOM_TITLE = 3; |
| 47 ATOM_CONTENT = 4; |
| 48 ATOM_SUMMARY = 5; |
| 49 ATOM_AUTHOR = 6; |
| 50 |
| 51 GD_WHEN = 7; |
| 52 GD_EMAIL = 8; |
| 53 GEORSS_POINT = 9; |
| 54 GD_IM = 10; |
| 55 |
| 56 GD_PHONENUMBER = 11; |
| 57 GD_POSTALADDRESS = 12; |
| 58 |
| 59 GD_RATING = 13; |
| 60 |
| 61 BLOBKEY = 17; |
| 62 ENTITY_PROTO = 19; |
| 63 |
| 64 INDEX_VALUE = 18; |
| 65 }; |
| 66 |
| 67 optional Meaning meaning = 1 [default = NO_MEANING]; |
| 68 optional string meaning_uri = 2; |
| 69 |
| 70 required string name = 3; |
| 71 |
| 72 required PropertyValue value = 5; |
| 73 |
| 74 required bool multiple = 4; |
| 75 |
| 76 optional bool searchable = 6 [default=false]; |
| 77 |
| 78 enum FtsTokenizationOption { |
| 79 HTML = 1; |
| 80 ATOM = 2; |
| 81 } |
| 82 |
| 83 optional FtsTokenizationOption fts_tokenization_option = 8; |
| 84 |
| 85 optional string locale = 9 [default = "en"]; |
| 86 } |
| 87 |
| 88 message Path { |
| 89 repeated group Element = 1 { |
| 90 required string type = 2; |
| 91 optional int64 id = 3; |
| 92 optional string name = 4; |
| 93 } |
| 94 } |
| 95 |
| 96 message Reference { |
| 97 required string app = 13; |
| 98 optional string name_space = 20; |
| 99 required Path path = 14; |
| 100 } |
| 101 |
| 102 message User { |
| 103 required string email = 1; |
| 104 required string auth_domain = 2; |
| 105 optional string nickname = 3; |
| 106 optional string federated_identity = 6; |
| 107 optional string federated_provider = 7; |
| 108 } |
| 109 |
| 110 message EntityProto { |
| 111 required Reference key = 13; |
| 112 required Path entity_group = 16; |
| 113 optional User owner = 17; |
| 114 |
| 115 enum Kind { |
| 116 GD_CONTACT = 1; |
| 117 GD_EVENT = 2; |
| 118 GD_MESSAGE = 3; |
| 119 } |
| 120 optional Kind kind = 4; |
| 121 optional string kind_uri = 5; |
| 122 |
| 123 repeated Property property = 14; |
| 124 repeated Property raw_property = 15; |
| 125 |
| 126 optional int32 rank = 18; |
| 127 } |
| 128 |
| 129 message CompositeProperty { |
| 130 required int64 index_id = 1; |
| 131 repeated string value = 2; |
| 132 } |
| 133 |
| 134 message Index { |
| 135 required string entity_type = 1; |
| 136 required bool ancestor = 5; |
| 137 repeated group Property = 2 { |
| 138 required string name = 3; |
| 139 enum Direction { |
| 140 ASCENDING = 1; |
| 141 DESCENDING = 2; |
| 142 } |
| 143 optional Direction direction = 4 [default = ASCENDING]; |
| 144 } |
| 145 } |
| 146 |
| 147 message CompositeIndex { |
| 148 required string app_id = 1; |
| 149 required int64 id = 2; |
| 150 required Index definition = 3; |
| 151 |
| 152 enum State { |
| 153 WRITE_ONLY = 1; |
| 154 READ_WRITE = 2; |
| 155 DELETED = 3; |
| 156 ERROR = 4; |
| 157 } |
| 158 required State state = 4; |
| 159 |
| 160 optional bool only_use_if_required = 6 [default = false]; |
| 161 } |
| 162 |
| 163 message IndexPostfix { |
| 164 message IndexValue { |
| 165 required string property_name = 1; |
| 166 required PropertyValue value = 2; |
| 167 } |
| 168 |
| 169 repeated IndexValue index_value = 1; |
| 170 |
| 171 optional Reference key = 2; |
| 172 |
| 173 optional bool before = 3 [default=true]; |
| 174 } |
| 175 |
| 176 message IndexPosition { |
| 177 optional string key = 1; |
| 178 |
| 179 optional bool before = 2 [default=true]; |
| 180 } |
| 181 |
| 182 message Snapshot { |
| 183 enum Status { |
| 184 INACTIVE = 0; |
| 185 ACTIVE = 1; |
| 186 } |
| 187 |
| 188 required int64 ts = 1; |
| 189 } |
| 190 |
| 191 message InternalHeader { |
| 192 optional string qos = 1; |
| 193 } |
| 194 |
| 195 message Transaction { |
| 196 optional InternalHeader header = 4; |
| 197 required fixed64 handle = 1; |
| 198 required string app = 2; |
| 199 optional bool mark_changes = 3 [default = false]; |
| 200 } |
| 201 |
| 202 message Query { |
| 203 optional InternalHeader header = 39; |
| 204 |
| 205 required string app = 1; |
| 206 optional string name_space = 29; |
| 207 |
| 208 optional string kind = 3; |
| 209 optional Reference ancestor = 17; |
| 210 |
| 211 repeated group Filter = 4 { |
| 212 enum Operator { |
| 213 LESS_THAN = 1; |
| 214 LESS_THAN_OR_EQUAL = 2; |
| 215 GREATER_THAN = 3; |
| 216 GREATER_THAN_OR_EQUAL = 4; |
| 217 EQUAL = 5; |
| 218 IN = 6; |
| 219 EXISTS = 7; |
| 220 } |
| 221 |
| 222 required Operator op = 6; |
| 223 repeated Property property = 14; |
| 224 } |
| 225 |
| 226 optional string search_query = 8; |
| 227 |
| 228 repeated group Order = 9 { |
| 229 enum Direction { |
| 230 ASCENDING = 1; |
| 231 DESCENDING = 2; |
| 232 } |
| 233 |
| 234 required string property = 10; |
| 235 optional Direction direction = 11 [default = ASCENDING]; |
| 236 } |
| 237 |
| 238 enum Hint { |
| 239 ORDER_FIRST = 1; |
| 240 ANCESTOR_FIRST = 2; |
| 241 FILTER_FIRST = 3; |
| 242 } |
| 243 optional Hint hint = 18; |
| 244 |
| 245 optional int32 count = 23; |
| 246 |
| 247 optional int32 offset = 12 [default = 0]; |
| 248 |
| 249 optional int32 limit = 16; |
| 250 |
| 251 optional CompiledCursor compiled_cursor = 30; |
| 252 optional CompiledCursor end_compiled_cursor = 31; |
| 253 |
| 254 repeated CompositeIndex composite_index = 19; |
| 255 |
| 256 optional bool require_perfect_plan = 20 [default = false]; |
| 257 |
| 258 optional bool keys_only = 21 [default = false]; |
| 259 |
| 260 optional Transaction transaction = 22; |
| 261 |
| 262 optional bool compile = 25 [default = false]; |
| 263 |
| 264 optional int64 failover_ms = 26; |
| 265 |
| 266 optional bool strong = 32; |
| 267 |
| 268 repeated string property_name = 33; |
| 269 |
| 270 repeated string group_by_property_name = 34; |
| 271 |
| 272 optional bool distinct = 24; |
| 273 |
| 274 optional int64 min_safe_time_seconds = 35; |
| 275 |
| 276 repeated string safe_replica_name = 36; |
| 277 |
| 278 optional bool persist_offset = 37 [default=false]; |
| 279 } |
| 280 |
| 281 message CompiledQuery { |
| 282 required group PrimaryScan = 1 { |
| 283 optional string index_name = 2; |
| 284 |
| 285 optional string start_key = 3; |
| 286 optional bool start_inclusive = 4; |
| 287 optional string end_key = 5; |
| 288 optional bool end_inclusive = 6; |
| 289 |
| 290 repeated string start_postfix_value = 22; |
| 291 repeated string end_postfix_value = 23; |
| 292 |
| 293 optional int64 end_unapplied_log_timestamp_us = 19; |
| 294 } |
| 295 |
| 296 repeated group MergeJoinScan = 7 { |
| 297 required string index_name = 8; |
| 298 |
| 299 repeated string prefix_value = 9; |
| 300 |
| 301 optional bool value_prefix = 20 [default=false]; |
| 302 } |
| 303 |
| 304 optional Index index_def = 21; |
| 305 |
| 306 optional int32 offset = 10 [default = 0]; |
| 307 |
| 308 optional int32 limit = 11; |
| 309 |
| 310 required bool keys_only = 12; |
| 311 |
| 312 repeated string property_name = 24; |
| 313 |
| 314 optional int32 distinct_infix_size = 25; |
| 315 |
| 316 optional group EntityFilter = 13 { |
| 317 optional bool distinct = 14 [default=false]; |
| 318 |
| 319 optional string kind = 17; |
| 320 optional Reference ancestor = 18; |
| 321 } |
| 322 } |
| 323 |
| 324 message CompiledCursor { |
| 325 optional group Position = 2 { |
| 326 optional string start_key = 27; |
| 327 |
| 328 repeated group IndexValue = 29 { |
| 329 optional string property = 30; |
| 330 required PropertyValue value = 31; |
| 331 } |
| 332 |
| 333 optional Reference key = 32; |
| 334 |
| 335 optional bool start_inclusive = 28 [default=true]; |
| 336 } |
| 337 } |
| 338 |
| 339 message Cursor { |
| 340 required fixed64 cursor = 1; |
| 341 |
| 342 optional string app = 2; |
| 343 } |
| 344 |
| 345 message Error { |
| 346 enum ErrorCode { |
| 347 BAD_REQUEST = 1; |
| 348 CONCURRENT_TRANSACTION = 2; |
| 349 INTERNAL_ERROR = 3; |
| 350 NEED_INDEX = 4; |
| 351 TIMEOUT = 5; |
| 352 PERMISSION_DENIED = 6; |
| 353 BIGTABLE_ERROR = 7; |
| 354 COMMITTED_BUT_STILL_APPLYING = 8; |
| 355 CAPABILITY_DISABLED = 9; |
| 356 TRY_ALTERNATE_BACKEND = 10; |
| 357 SAFE_TIME_TOO_OLD = 11; |
| 358 } |
| 359 } |
| 360 |
| 361 message Cost { |
| 362 optional int32 index_writes = 1; |
| 363 optional int32 index_write_bytes = 2; |
| 364 optional int32 entity_writes = 3; |
| 365 optional int32 entity_write_bytes = 4; |
| 366 optional group CommitCost = 5 { |
| 367 optional int32 requested_entity_puts = 6; |
| 368 optional int32 requested_entity_deletes = 7; |
| 369 }; |
| 370 optional int32 approximate_storage_delta = 8; |
| 371 optional int32 id_sequence_updates = 9; |
| 372 } |
| 373 |
| 374 message GetRequest { |
| 375 optional InternalHeader header = 6; |
| 376 |
| 377 repeated Reference key = 1; |
| 378 optional Transaction transaction = 2; |
| 379 |
| 380 optional int64 failover_ms = 3; |
| 381 |
| 382 optional bool strong = 4; |
| 383 |
| 384 optional bool allow_deferred = 5 [default=false]; |
| 385 } |
| 386 |
| 387 message GetResponse { |
| 388 repeated group Entity = 1 { |
| 389 optional EntityProto entity = 2; |
| 390 optional Reference key = 4; |
| 391 |
| 392 optional int64 version = 3; |
| 393 } |
| 394 |
| 395 repeated Reference deferred = 5; |
| 396 |
| 397 optional bool in_order = 6 [default=true]; |
| 398 } |
| 399 |
| 400 message PutRequest { |
| 401 optional InternalHeader header = 11; |
| 402 |
| 403 repeated EntityProto entity = 1; |
| 404 optional Transaction transaction = 2; |
| 405 repeated CompositeIndex composite_index = 3; |
| 406 |
| 407 optional bool trusted = 4 [default = false]; |
| 408 |
| 409 optional bool force = 7 [default = false]; |
| 410 |
| 411 optional bool mark_changes = 8 [default = false]; |
| 412 repeated Snapshot snapshot = 9; |
| 413 |
| 414 enum AutoIdPolicy { |
| 415 CURRENT = 0; |
| 416 SEQUENTIAL = 1; |
| 417 } |
| 418 optional AutoIdPolicy auto_id_policy = 10 [default = CURRENT]; |
| 419 } |
| 420 |
| 421 message PutResponse { |
| 422 repeated Reference key = 1; |
| 423 optional Cost cost = 2; |
| 424 repeated int64 version = 3; |
| 425 } |
| 426 |
| 427 message TouchRequest { |
| 428 optional InternalHeader header = 10; |
| 429 |
| 430 repeated Reference key = 1; |
| 431 repeated CompositeIndex composite_index = 2; |
| 432 optional bool force = 3 [default = false]; |
| 433 repeated Snapshot snapshot = 9; |
| 434 } |
| 435 |
| 436 message TouchResponse { |
| 437 optional Cost cost = 1; |
| 438 } |
| 439 |
| 440 message DeleteRequest { |
| 441 optional InternalHeader header = 10; |
| 442 |
| 443 repeated Reference key = 6; |
| 444 optional Transaction transaction = 5; |
| 445 |
| 446 optional bool trusted = 4 [default = false]; |
| 447 |
| 448 optional bool force = 7 [default = false]; |
| 449 |
| 450 optional bool mark_changes = 8 [default = false]; |
| 451 repeated Snapshot snapshot = 9; |
| 452 } |
| 453 |
| 454 message DeleteResponse { |
| 455 optional Cost cost = 1; |
| 456 repeated int64 version = 3; |
| 457 } |
| 458 |
| 459 message NextRequest { |
| 460 optional InternalHeader header = 5; |
| 461 |
| 462 required Cursor cursor = 1; |
| 463 optional int32 count = 2; |
| 464 |
| 465 optional int32 offset = 4 [default = 0]; |
| 466 |
| 467 optional bool compile = 3 [default = false]; |
| 468 } |
| 469 |
| 470 message QueryResult { |
| 471 optional Cursor cursor = 1; |
| 472 |
| 473 repeated EntityProto result = 2; |
| 474 |
| 475 optional int32 skipped_results = 7; |
| 476 |
| 477 required bool more_results = 3; |
| 478 |
| 479 optional bool keys_only = 4; |
| 480 |
| 481 optional bool index_only = 9; |
| 482 |
| 483 optional bool small_ops = 10; |
| 484 |
| 485 optional CompiledQuery compiled_query = 5; |
| 486 |
| 487 optional CompiledCursor compiled_cursor = 6; |
| 488 |
| 489 repeated CompositeIndex index = 8; |
| 490 |
| 491 repeated int64 version = 11; |
| 492 } |
| 493 |
| 494 message AllocateIdsRequest { |
| 495 optional InternalHeader header = 4; |
| 496 |
| 497 optional Reference model_key = 1; |
| 498 |
| 499 optional int64 size = 2; |
| 500 |
| 501 optional int64 max = 3; |
| 502 |
| 503 repeated Reference reserve = 5; |
| 504 } |
| 505 |
| 506 message AllocateIdsResponse { |
| 507 required int64 start = 1; |
| 508 required int64 end = 2; |
| 509 optional Cost cost = 3; |
| 510 } |
| 511 |
| 512 message CompositeIndices { |
| 513 repeated CompositeIndex index = 1; |
| 514 } |
| 515 |
| 516 message AddActionsRequest { |
| 517 optional InternalHeader header = 3; |
| 518 |
| 519 required Transaction transaction = 1; |
| 520 repeated Action action = 2; |
| 521 } |
| 522 |
| 523 message AddActionsResponse { |
| 524 } |
| 525 |
| 526 message BeginTransactionRequest { |
| 527 optional InternalHeader header = 3; |
| 528 |
| 529 required string app = 1; |
| 530 optional bool allow_multiple_eg = 2 [default = false]; |
| 531 } |
| 532 |
| 533 message CommitResponse { |
| 534 optional Cost cost = 1; |
| 535 |
| 536 repeated group Version = 3 { |
| 537 required Reference root_entity_key = 4; |
| 538 required int64 version = 5; |
| 539 } |
| 540 } |
OLD | NEW |