@google-cloud/spanner 8.3.1 → 8.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4704,7 +4704,14 @@
4704
4704
  "type": "int32",
4705
4705
  "id": 1,
4706
4706
  "options": {
4707
- "(google.api.field_behavior)": "REQUIRED"
4707
+ "(google.api.field_behavior)": "OPTIONAL"
4708
+ }
4709
+ },
4710
+ "totalCpuUtilizationPercent": {
4711
+ "type": "int32",
4712
+ "id": 4,
4713
+ "options": {
4714
+ "(google.api.field_behavior)": "OPTIONAL"
4708
4715
  }
4709
4716
  },
4710
4717
  "storageUtilizationPercent": {
@@ -4749,6 +4756,27 @@
4749
4756
  "options": {
4750
4757
  "(google.api.field_behavior)": "OPTIONAL"
4751
4758
  }
4759
+ },
4760
+ "autoscalingTargetTotalCpuUtilizationPercent": {
4761
+ "type": "int32",
4762
+ "id": 4,
4763
+ "options": {
4764
+ "(google.api.field_behavior)": "OPTIONAL"
4765
+ }
4766
+ },
4767
+ "disableHighPriorityCpuAutoscaling": {
4768
+ "type": "bool",
4769
+ "id": 5,
4770
+ "options": {
4771
+ "(google.api.field_behavior)": "OPTIONAL"
4772
+ }
4773
+ },
4774
+ "disableTotalCpuAutoscaling": {
4775
+ "type": "bool",
4776
+ "id": 6,
4777
+ "options": {
4778
+ "(google.api.field_behavior)": "OPTIONAL"
4779
+ }
4752
4780
  }
4753
4781
  }
4754
4782
  }
@@ -8395,6 +8423,13 @@
8395
8423
  "transactionTag": {
8396
8424
  "type": "string",
8397
8425
  "id": 3
8426
+ },
8427
+ "clientContext": {
8428
+ "type": "ClientContext",
8429
+ "id": 4,
8430
+ "options": {
8431
+ "(google.api.field_behavior)": "OPTIONAL"
8432
+ }
8398
8433
  }
8399
8434
  },
8400
8435
  "nested": {
@@ -8405,6 +8440,18 @@
8405
8440
  "PRIORITY_MEDIUM": 2,
8406
8441
  "PRIORITY_HIGH": 3
8407
8442
  }
8443
+ },
8444
+ "ClientContext": {
8445
+ "fields": {
8446
+ "secureContext": {
8447
+ "keyType": "string",
8448
+ "type": "google.protobuf.Value",
8449
+ "id": 1,
8450
+ "options": {
8451
+ "(google.api.field_behavior)": "OPTIONAL"
8452
+ }
8453
+ }
8454
+ }
8408
8455
  }
8409
8456
  }
8410
8457
  },
@@ -8541,6 +8588,13 @@
8541
8588
  "options": {
8542
8589
  "(google.api.field_behavior)": "OPTIONAL"
8543
8590
  }
8591
+ },
8592
+ "routingHint": {
8593
+ "type": "RoutingHint",
8594
+ "id": 18,
8595
+ "options": {
8596
+ "(google.api.field_behavior)": "OPTIONAL"
8597
+ }
8544
8598
  }
8545
8599
  },
8546
8600
  "nested": {
@@ -8843,6 +8897,13 @@
8843
8897
  "options": {
8844
8898
  "(google.api.field_behavior)": "OPTIONAL"
8845
8899
  }
8900
+ },
8901
+ "routingHint": {
8902
+ "type": "RoutingHint",
8903
+ "id": 18,
8904
+ "options": {
8905
+ "(google.api.field_behavior)": "OPTIONAL"
8906
+ }
8846
8907
  }
8847
8908
  },
8848
8909
  "nested": {
@@ -9278,6 +9339,360 @@
9278
9339
  }
9279
9340
  }
9280
9341
  },
9342
+ "Range": {
9343
+ "fields": {
9344
+ "startKey": {
9345
+ "type": "bytes",
9346
+ "id": 1
9347
+ },
9348
+ "limitKey": {
9349
+ "type": "bytes",
9350
+ "id": 2
9351
+ },
9352
+ "groupUid": {
9353
+ "type": "uint64",
9354
+ "id": 3
9355
+ },
9356
+ "splitId": {
9357
+ "type": "uint64",
9358
+ "id": 4
9359
+ },
9360
+ "generation": {
9361
+ "type": "bytes",
9362
+ "id": 5
9363
+ }
9364
+ }
9365
+ },
9366
+ "Tablet": {
9367
+ "fields": {
9368
+ "tabletUid": {
9369
+ "type": "uint64",
9370
+ "id": 1
9371
+ },
9372
+ "serverAddress": {
9373
+ "type": "string",
9374
+ "id": 2
9375
+ },
9376
+ "location": {
9377
+ "type": "string",
9378
+ "id": 3
9379
+ },
9380
+ "role": {
9381
+ "type": "Role",
9382
+ "id": 4
9383
+ },
9384
+ "incarnation": {
9385
+ "type": "bytes",
9386
+ "id": 5
9387
+ },
9388
+ "distance": {
9389
+ "type": "uint32",
9390
+ "id": 6
9391
+ },
9392
+ "skip": {
9393
+ "type": "bool",
9394
+ "id": 7
9395
+ }
9396
+ },
9397
+ "nested": {
9398
+ "Role": {
9399
+ "values": {
9400
+ "ROLE_UNSPECIFIED": 0,
9401
+ "READ_WRITE": 1,
9402
+ "READ_ONLY": 2
9403
+ }
9404
+ }
9405
+ }
9406
+ },
9407
+ "Group": {
9408
+ "fields": {
9409
+ "groupUid": {
9410
+ "type": "uint64",
9411
+ "id": 1
9412
+ },
9413
+ "tablets": {
9414
+ "rule": "repeated",
9415
+ "type": "Tablet",
9416
+ "id": 2
9417
+ },
9418
+ "leaderIndex": {
9419
+ "type": "int32",
9420
+ "id": 3
9421
+ },
9422
+ "generation": {
9423
+ "type": "bytes",
9424
+ "id": 4
9425
+ }
9426
+ }
9427
+ },
9428
+ "KeyRecipe": {
9429
+ "oneofs": {
9430
+ "target": {
9431
+ "oneof": [
9432
+ "tableName",
9433
+ "indexName",
9434
+ "operationUid"
9435
+ ]
9436
+ }
9437
+ },
9438
+ "fields": {
9439
+ "tableName": {
9440
+ "type": "string",
9441
+ "id": 1
9442
+ },
9443
+ "indexName": {
9444
+ "type": "string",
9445
+ "id": 2
9446
+ },
9447
+ "operationUid": {
9448
+ "type": "uint64",
9449
+ "id": 3
9450
+ },
9451
+ "part": {
9452
+ "rule": "repeated",
9453
+ "type": "Part",
9454
+ "id": 4
9455
+ }
9456
+ },
9457
+ "nested": {
9458
+ "Part": {
9459
+ "oneofs": {
9460
+ "valueType": {
9461
+ "oneof": [
9462
+ "identifier",
9463
+ "value",
9464
+ "random"
9465
+ ]
9466
+ }
9467
+ },
9468
+ "fields": {
9469
+ "tag": {
9470
+ "type": "uint32",
9471
+ "id": 1
9472
+ },
9473
+ "order": {
9474
+ "type": "Order",
9475
+ "id": 2
9476
+ },
9477
+ "nullOrder": {
9478
+ "type": "NullOrder",
9479
+ "id": 3
9480
+ },
9481
+ "type": {
9482
+ "type": "Type",
9483
+ "id": 4
9484
+ },
9485
+ "identifier": {
9486
+ "type": "string",
9487
+ "id": 5
9488
+ },
9489
+ "value": {
9490
+ "type": "google.protobuf.Value",
9491
+ "id": 6
9492
+ },
9493
+ "random": {
9494
+ "type": "bool",
9495
+ "id": 8
9496
+ },
9497
+ "structIdentifiers": {
9498
+ "rule": "repeated",
9499
+ "type": "int32",
9500
+ "id": 7
9501
+ }
9502
+ },
9503
+ "nested": {
9504
+ "Order": {
9505
+ "values": {
9506
+ "ORDER_UNSPECIFIED": 0,
9507
+ "ASCENDING": 1,
9508
+ "DESCENDING": 2
9509
+ }
9510
+ },
9511
+ "NullOrder": {
9512
+ "values": {
9513
+ "NULL_ORDER_UNSPECIFIED": 0,
9514
+ "NULLS_FIRST": 1,
9515
+ "NULLS_LAST": 2,
9516
+ "NOT_NULL": 3
9517
+ }
9518
+ }
9519
+ }
9520
+ }
9521
+ }
9522
+ },
9523
+ "RecipeList": {
9524
+ "fields": {
9525
+ "schemaGeneration": {
9526
+ "type": "bytes",
9527
+ "id": 1
9528
+ },
9529
+ "recipe": {
9530
+ "rule": "repeated",
9531
+ "type": "KeyRecipe",
9532
+ "id": 3
9533
+ }
9534
+ }
9535
+ },
9536
+ "CacheUpdate": {
9537
+ "fields": {
9538
+ "databaseId": {
9539
+ "type": "uint64",
9540
+ "id": 1
9541
+ },
9542
+ "range": {
9543
+ "rule": "repeated",
9544
+ "type": "Range",
9545
+ "id": 2
9546
+ },
9547
+ "group": {
9548
+ "rule": "repeated",
9549
+ "type": "Group",
9550
+ "id": 3
9551
+ },
9552
+ "keyRecipes": {
9553
+ "type": "RecipeList",
9554
+ "id": 5
9555
+ }
9556
+ }
9557
+ },
9558
+ "RoutingHint": {
9559
+ "fields": {
9560
+ "operationUid": {
9561
+ "type": "uint64",
9562
+ "id": 1
9563
+ },
9564
+ "databaseId": {
9565
+ "type": "uint64",
9566
+ "id": 2
9567
+ },
9568
+ "schemaGeneration": {
9569
+ "type": "bytes",
9570
+ "id": 3
9571
+ },
9572
+ "key": {
9573
+ "type": "bytes",
9574
+ "id": 4
9575
+ },
9576
+ "limitKey": {
9577
+ "type": "bytes",
9578
+ "id": 5
9579
+ },
9580
+ "groupUid": {
9581
+ "type": "uint64",
9582
+ "id": 6
9583
+ },
9584
+ "splitId": {
9585
+ "type": "uint64",
9586
+ "id": 7
9587
+ },
9588
+ "tabletUid": {
9589
+ "type": "uint64",
9590
+ "id": 8
9591
+ },
9592
+ "skippedTabletUid": {
9593
+ "rule": "repeated",
9594
+ "type": "SkippedTablet",
9595
+ "id": 9
9596
+ },
9597
+ "clientLocation": {
9598
+ "type": "string",
9599
+ "id": 10
9600
+ }
9601
+ },
9602
+ "nested": {
9603
+ "SkippedTablet": {
9604
+ "fields": {
9605
+ "tabletUid": {
9606
+ "type": "uint64",
9607
+ "id": 1
9608
+ },
9609
+ "incarnation": {
9610
+ "type": "bytes",
9611
+ "id": 2
9612
+ }
9613
+ }
9614
+ }
9615
+ }
9616
+ },
9617
+ "Type": {
9618
+ "fields": {
9619
+ "code": {
9620
+ "type": "TypeCode",
9621
+ "id": 1,
9622
+ "options": {
9623
+ "(google.api.field_behavior)": "REQUIRED"
9624
+ }
9625
+ },
9626
+ "arrayElementType": {
9627
+ "type": "Type",
9628
+ "id": 2
9629
+ },
9630
+ "structType": {
9631
+ "type": "StructType",
9632
+ "id": 3
9633
+ },
9634
+ "typeAnnotation": {
9635
+ "type": "TypeAnnotationCode",
9636
+ "id": 4
9637
+ },
9638
+ "protoTypeFqn": {
9639
+ "type": "string",
9640
+ "id": 5
9641
+ }
9642
+ }
9643
+ },
9644
+ "StructType": {
9645
+ "fields": {
9646
+ "fields": {
9647
+ "rule": "repeated",
9648
+ "type": "Field",
9649
+ "id": 1
9650
+ }
9651
+ },
9652
+ "nested": {
9653
+ "Field": {
9654
+ "fields": {
9655
+ "name": {
9656
+ "type": "string",
9657
+ "id": 1
9658
+ },
9659
+ "type": {
9660
+ "type": "Type",
9661
+ "id": 2
9662
+ }
9663
+ }
9664
+ }
9665
+ }
9666
+ },
9667
+ "TypeCode": {
9668
+ "values": {
9669
+ "TYPE_CODE_UNSPECIFIED": 0,
9670
+ "BOOL": 1,
9671
+ "INT64": 2,
9672
+ "FLOAT64": 3,
9673
+ "FLOAT32": 15,
9674
+ "TIMESTAMP": 4,
9675
+ "DATE": 5,
9676
+ "STRING": 6,
9677
+ "BYTES": 7,
9678
+ "ARRAY": 8,
9679
+ "STRUCT": 9,
9680
+ "NUMERIC": 10,
9681
+ "JSON": 11,
9682
+ "PROTO": 13,
9683
+ "ENUM": 14,
9684
+ "INTERVAL": 16,
9685
+ "UUID": 17
9686
+ }
9687
+ },
9688
+ "TypeAnnotationCode": {
9689
+ "values": {
9690
+ "TYPE_ANNOTATION_CODE_UNSPECIFIED": 0,
9691
+ "PG_NUMERIC": 2,
9692
+ "PG_JSONB": 3,
9693
+ "PG_OID": 4
9694
+ }
9695
+ },
9281
9696
  "Mutation": {
9282
9697
  "oneofs": {
9283
9698
  "operation": {
@@ -9286,7 +9701,9 @@
9286
9701
  "update",
9287
9702
  "insertOrUpdate",
9288
9703
  "replace",
9289
- "delete"
9704
+ "delete",
9705
+ "send",
9706
+ "ack"
9290
9707
  ]
9291
9708
  }
9292
9709
  },
@@ -9310,6 +9727,14 @@
9310
9727
  "delete": {
9311
9728
  "type": "Delete",
9312
9729
  "id": 5
9730
+ },
9731
+ "send": {
9732
+ "type": "Send",
9733
+ "id": 6
9734
+ },
9735
+ "ack": {
9736
+ "type": "Ack",
9737
+ "id": 7
9313
9738
  }
9314
9739
  },
9315
9740
  "nested": {
@@ -9351,6 +9776,54 @@
9351
9776
  }
9352
9777
  }
9353
9778
  }
9779
+ },
9780
+ "Send": {
9781
+ "fields": {
9782
+ "queue": {
9783
+ "type": "string",
9784
+ "id": 1,
9785
+ "options": {
9786
+ "(google.api.field_behavior)": "REQUIRED"
9787
+ }
9788
+ },
9789
+ "key": {
9790
+ "type": "google.protobuf.ListValue",
9791
+ "id": 2,
9792
+ "options": {
9793
+ "(google.api.field_behavior)": "REQUIRED"
9794
+ }
9795
+ },
9796
+ "deliverTime": {
9797
+ "type": "google.protobuf.Timestamp",
9798
+ "id": 3
9799
+ },
9800
+ "payload": {
9801
+ "type": "google.protobuf.Value",
9802
+ "id": 4
9803
+ }
9804
+ }
9805
+ },
9806
+ "Ack": {
9807
+ "fields": {
9808
+ "queue": {
9809
+ "type": "string",
9810
+ "id": 1,
9811
+ "options": {
9812
+ "(google.api.field_behavior)": "REQUIRED"
9813
+ }
9814
+ },
9815
+ "key": {
9816
+ "type": "google.protobuf.ListValue",
9817
+ "id": 2,
9818
+ "options": {
9819
+ "(google.api.field_behavior)": "REQUIRED"
9820
+ }
9821
+ },
9822
+ "ignoreNotFound": {
9823
+ "type": "bool",
9824
+ "id": 3
9825
+ }
9826
+ }
9354
9827
  }
9355
9828
  }
9356
9829
  },
@@ -9414,6 +9887,13 @@
9414
9887
  "options": {
9415
9888
  "(google.api.field_behavior)": "OPTIONAL"
9416
9889
  }
9890
+ },
9891
+ "cacheUpdate": {
9892
+ "type": "CacheUpdate",
9893
+ "id": 10,
9894
+ "options": {
9895
+ "(google.api.field_behavior)": "OPTIONAL"
9896
+ }
9417
9897
  }
9418
9898
  }
9419
9899
  },
@@ -9532,92 +10012,53 @@
9532
10012
  }
9533
10013
  }
9534
10014
  },
9535
- "QueryPlan": {
10015
+ "QueryAdvisorResult": {
9536
10016
  "fields": {
9537
- "planNodes": {
10017
+ "indexAdvice": {
9538
10018
  "rule": "repeated",
9539
- "type": "PlanNode",
9540
- "id": 1
9541
- }
9542
- }
9543
- },
9544
- "Type": {
9545
- "fields": {
9546
- "code": {
9547
- "type": "TypeCode",
10019
+ "type": "IndexAdvice",
9548
10020
  "id": 1,
9549
10021
  "options": {
9550
- "(google.api.field_behavior)": "REQUIRED"
10022
+ "(google.api.field_behavior)": "OPTIONAL"
9551
10023
  }
9552
- },
9553
- "arrayElementType": {
9554
- "type": "Type",
9555
- "id": 2
9556
- },
9557
- "structType": {
9558
- "type": "StructType",
9559
- "id": 3
9560
- },
9561
- "typeAnnotation": {
9562
- "type": "TypeAnnotationCode",
9563
- "id": 4
9564
- },
9565
- "protoTypeFqn": {
9566
- "type": "string",
9567
- "id": 5
9568
- }
9569
- }
9570
- },
9571
- "StructType": {
9572
- "fields": {
9573
- "fields": {
9574
- "rule": "repeated",
9575
- "type": "Field",
9576
- "id": 1
9577
10024
  }
9578
10025
  },
9579
10026
  "nested": {
9580
- "Field": {
10027
+ "IndexAdvice": {
9581
10028
  "fields": {
9582
- "name": {
10029
+ "ddl": {
10030
+ "rule": "repeated",
9583
10031
  "type": "string",
9584
- "id": 1
10032
+ "id": 1,
10033
+ "options": {
10034
+ "(google.api.field_behavior)": "OPTIONAL"
10035
+ }
9585
10036
  },
9586
- "type": {
9587
- "type": "Type",
9588
- "id": 2
10037
+ "improvementFactor": {
10038
+ "type": "double",
10039
+ "id": 2,
10040
+ "options": {
10041
+ "(google.api.field_behavior)": "OPTIONAL"
10042
+ }
9589
10043
  }
9590
10044
  }
9591
10045
  }
9592
10046
  }
9593
10047
  },
9594
- "TypeCode": {
9595
- "values": {
9596
- "TYPE_CODE_UNSPECIFIED": 0,
9597
- "BOOL": 1,
9598
- "INT64": 2,
9599
- "FLOAT64": 3,
9600
- "FLOAT32": 15,
9601
- "TIMESTAMP": 4,
9602
- "DATE": 5,
9603
- "STRING": 6,
9604
- "BYTES": 7,
9605
- "ARRAY": 8,
9606
- "STRUCT": 9,
9607
- "NUMERIC": 10,
9608
- "JSON": 11,
9609
- "PROTO": 13,
9610
- "ENUM": 14,
9611
- "INTERVAL": 16,
9612
- "UUID": 17
9613
- }
9614
- },
9615
- "TypeAnnotationCode": {
9616
- "values": {
9617
- "TYPE_ANNOTATION_CODE_UNSPECIFIED": 0,
9618
- "PG_NUMERIC": 2,
9619
- "PG_JSONB": 3,
9620
- "PG_OID": 4
10048
+ "QueryPlan": {
10049
+ "fields": {
10050
+ "planNodes": {
10051
+ "rule": "repeated",
10052
+ "type": "PlanNode",
10053
+ "id": 1
10054
+ },
10055
+ "queryAdvice": {
10056
+ "type": "QueryAdvisorResult",
10057
+ "id": 2,
10058
+ "options": {
10059
+ "(google.api.field_behavior)": "OPTIONAL"
10060
+ }
10061
+ }
9621
10062
  }
9622
10063
  },
9623
10064
  "ChangeStreamRecord": {
@@ -351,6 +351,7 @@ interface FieldType extends Type {
351
351
  /**
352
352
  * @typedef {object} ParamType
353
353
  * @property {string} type The param type. Must be one of the following:
354
+ * - uuid
354
355
  * - float32
355
356
  * - float64
356
357
  * - int64