@google-cloud/spanner 8.6.0 → 8.7.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.
- package/README.md +2 -0
- package/build/protos/google/spanner/executor/v1/cloud_executor.proto +88 -4
- package/build/protos/google/spanner/v1/change_stream.proto +1 -1
- package/build/protos/google/spanner/v1/commit_response.proto +1 -1
- package/build/protos/google/spanner/v1/keys.proto +1 -1
- package/build/protos/google/spanner/v1/location.proto +1 -1
- package/build/protos/google/spanner/v1/mutation.proto +1 -1
- package/build/protos/google/spanner/v1/query_plan.proto +1 -1
- package/build/protos/google/spanner/v1/result_set.proto +9 -1
- package/build/protos/google/spanner/v1/spanner.proto +17 -10
- package/build/protos/google/spanner/v1/transaction.proto +1 -1
- package/build/protos/google/spanner/v1/type.proto +1 -1
- package/build/protos/protos.d.ts +322 -2
- package/build/protos/protos.js +1099 -5
- package/build/protos/protos.json +143 -4
- package/build/src/database.d.ts +1 -0
- package/build/src/metrics/interceptor.js +1 -3
- package/build/src/v1/spanner_client.d.ts +7 -6
- package/package.json +29 -8
package/build/protos/protos.js
CHANGED
|
@@ -50959,6 +50959,7 @@
|
|
|
50959
50959
|
* @property {google.spanner.executor.v1.IExecutePartitionAction|null} [executePartition] SpannerAction executePartition
|
|
50960
50960
|
* @property {google.spanner.executor.v1.IExecuteChangeStreamQuery|null} [executeChangeStreamQuery] SpannerAction executeChangeStreamQuery
|
|
50961
50961
|
* @property {google.spanner.executor.v1.IQueryCancellationAction|null} [queryCancellation] SpannerAction queryCancellation
|
|
50962
|
+
* @property {google.spanner.executor.v1.IAdaptMessageAction|null} [adaptMessage] SpannerAction adaptMessage
|
|
50962
50963
|
*/
|
|
50963
50964
|
|
|
50964
50965
|
/**
|
|
@@ -51128,17 +51129,25 @@
|
|
|
51128
51129
|
*/
|
|
51129
51130
|
SpannerAction.prototype.queryCancellation = null;
|
|
51130
51131
|
|
|
51132
|
+
/**
|
|
51133
|
+
* SpannerAction adaptMessage.
|
|
51134
|
+
* @member {google.spanner.executor.v1.IAdaptMessageAction|null|undefined} adaptMessage
|
|
51135
|
+
* @memberof google.spanner.executor.v1.SpannerAction
|
|
51136
|
+
* @instance
|
|
51137
|
+
*/
|
|
51138
|
+
SpannerAction.prototype.adaptMessage = null;
|
|
51139
|
+
|
|
51131
51140
|
// OneOf field names bound to virtual getters and setters
|
|
51132
51141
|
var $oneOfFields;
|
|
51133
51142
|
|
|
51134
51143
|
/**
|
|
51135
51144
|
* SpannerAction action.
|
|
51136
|
-
* @member {"start"|"finish"|"read"|"query"|"mutation"|"dml"|"batchDml"|"write"|"partitionedUpdate"|"admin"|"startBatchTxn"|"closeBatchTxn"|"generateDbPartitionsRead"|"generateDbPartitionsQuery"|"executePartition"|"executeChangeStreamQuery"|"queryCancellation"|undefined} action
|
|
51145
|
+
* @member {"start"|"finish"|"read"|"query"|"mutation"|"dml"|"batchDml"|"write"|"partitionedUpdate"|"admin"|"startBatchTxn"|"closeBatchTxn"|"generateDbPartitionsRead"|"generateDbPartitionsQuery"|"executePartition"|"executeChangeStreamQuery"|"queryCancellation"|"adaptMessage"|undefined} action
|
|
51137
51146
|
* @memberof google.spanner.executor.v1.SpannerAction
|
|
51138
51147
|
* @instance
|
|
51139
51148
|
*/
|
|
51140
51149
|
Object.defineProperty(SpannerAction.prototype, "action", {
|
|
51141
|
-
get: $util.oneOfGetter($oneOfFields = ["start", "finish", "read", "query", "mutation", "dml", "batchDml", "write", "partitionedUpdate", "admin", "startBatchTxn", "closeBatchTxn", "generateDbPartitionsRead", "generateDbPartitionsQuery", "executePartition", "executeChangeStreamQuery", "queryCancellation"]),
|
|
51150
|
+
get: $util.oneOfGetter($oneOfFields = ["start", "finish", "read", "query", "mutation", "dml", "batchDml", "write", "partitionedUpdate", "admin", "startBatchTxn", "closeBatchTxn", "generateDbPartitionsRead", "generateDbPartitionsQuery", "executePartition", "executeChangeStreamQuery", "queryCancellation", "adaptMessage"]),
|
|
51142
51151
|
set: $util.oneOfSetter($oneOfFields)
|
|
51143
51152
|
});
|
|
51144
51153
|
|
|
@@ -51204,6 +51213,8 @@
|
|
|
51204
51213
|
$root.google.spanner.executor.v1.ExecuteChangeStreamQuery.encode(message.executeChangeStreamQuery, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim();
|
|
51205
51214
|
if (message.queryCancellation != null && Object.hasOwnProperty.call(message, "queryCancellation"))
|
|
51206
51215
|
$root.google.spanner.executor.v1.QueryCancellationAction.encode(message.queryCancellation, writer.uint32(/* id 51, wireType 2 =*/410).fork()).ldelim();
|
|
51216
|
+
if (message.adaptMessage != null && Object.hasOwnProperty.call(message, "adaptMessage"))
|
|
51217
|
+
$root.google.spanner.executor.v1.AdaptMessageAction.encode(message.adaptMessage, writer.uint32(/* id 52, wireType 2 =*/418).fork()).ldelim();
|
|
51207
51218
|
return writer;
|
|
51208
51219
|
};
|
|
51209
51220
|
|
|
@@ -51316,6 +51327,10 @@
|
|
|
51316
51327
|
message.queryCancellation = $root.google.spanner.executor.v1.QueryCancellationAction.decode(reader, reader.uint32());
|
|
51317
51328
|
break;
|
|
51318
51329
|
}
|
|
51330
|
+
case 52: {
|
|
51331
|
+
message.adaptMessage = $root.google.spanner.executor.v1.AdaptMessageAction.decode(reader, reader.uint32());
|
|
51332
|
+
break;
|
|
51333
|
+
}
|
|
51319
51334
|
default:
|
|
51320
51335
|
reader.skipType(tag & 7);
|
|
51321
51336
|
break;
|
|
@@ -51528,6 +51543,16 @@
|
|
|
51528
51543
|
return "queryCancellation." + error;
|
|
51529
51544
|
}
|
|
51530
51545
|
}
|
|
51546
|
+
if (message.adaptMessage != null && message.hasOwnProperty("adaptMessage")) {
|
|
51547
|
+
if (properties.action === 1)
|
|
51548
|
+
return "action: multiple values";
|
|
51549
|
+
properties.action = 1;
|
|
51550
|
+
{
|
|
51551
|
+
var error = $root.google.spanner.executor.v1.AdaptMessageAction.verify(message.adaptMessage);
|
|
51552
|
+
if (error)
|
|
51553
|
+
return "adaptMessage." + error;
|
|
51554
|
+
}
|
|
51555
|
+
}
|
|
51531
51556
|
return null;
|
|
51532
51557
|
};
|
|
51533
51558
|
|
|
@@ -51635,6 +51660,11 @@
|
|
|
51635
51660
|
throw TypeError(".google.spanner.executor.v1.SpannerAction.queryCancellation: object expected");
|
|
51636
51661
|
message.queryCancellation = $root.google.spanner.executor.v1.QueryCancellationAction.fromObject(object.queryCancellation);
|
|
51637
51662
|
}
|
|
51663
|
+
if (object.adaptMessage != null) {
|
|
51664
|
+
if (typeof object.adaptMessage !== "object")
|
|
51665
|
+
throw TypeError(".google.spanner.executor.v1.SpannerAction.adaptMessage: object expected");
|
|
51666
|
+
message.adaptMessage = $root.google.spanner.executor.v1.AdaptMessageAction.fromObject(object.adaptMessage);
|
|
51667
|
+
}
|
|
51638
51668
|
return message;
|
|
51639
51669
|
};
|
|
51640
51670
|
|
|
@@ -51744,6 +51774,11 @@
|
|
|
51744
51774
|
if (options.oneofs)
|
|
51745
51775
|
object.action = "queryCancellation";
|
|
51746
51776
|
}
|
|
51777
|
+
if (message.adaptMessage != null && message.hasOwnProperty("adaptMessage")) {
|
|
51778
|
+
object.adaptMessage = $root.google.spanner.executor.v1.AdaptMessageAction.toObject(message.adaptMessage, options);
|
|
51779
|
+
if (options.oneofs)
|
|
51780
|
+
object.action = "adaptMessage";
|
|
51781
|
+
}
|
|
51747
51782
|
return object;
|
|
51748
51783
|
};
|
|
51749
51784
|
|
|
@@ -52630,6 +52665,7 @@
|
|
|
52630
52665
|
* @interface IDmlAction
|
|
52631
52666
|
* @property {google.spanner.executor.v1.IQueryAction|null} [update] DmlAction update
|
|
52632
52667
|
* @property {boolean|null} [autocommitIfSupported] DmlAction autocommitIfSupported
|
|
52668
|
+
* @property {boolean|null} [lastStatement] DmlAction lastStatement
|
|
52633
52669
|
*/
|
|
52634
52670
|
|
|
52635
52671
|
/**
|
|
@@ -52663,6 +52699,14 @@
|
|
|
52663
52699
|
*/
|
|
52664
52700
|
DmlAction.prototype.autocommitIfSupported = null;
|
|
52665
52701
|
|
|
52702
|
+
/**
|
|
52703
|
+
* DmlAction lastStatement.
|
|
52704
|
+
* @member {boolean|null|undefined} lastStatement
|
|
52705
|
+
* @memberof google.spanner.executor.v1.DmlAction
|
|
52706
|
+
* @instance
|
|
52707
|
+
*/
|
|
52708
|
+
DmlAction.prototype.lastStatement = null;
|
|
52709
|
+
|
|
52666
52710
|
// OneOf field names bound to virtual getters and setters
|
|
52667
52711
|
var $oneOfFields;
|
|
52668
52712
|
|
|
@@ -52672,6 +52716,12 @@
|
|
|
52672
52716
|
set: $util.oneOfSetter($oneOfFields)
|
|
52673
52717
|
});
|
|
52674
52718
|
|
|
52719
|
+
// Virtual OneOf for proto3 optional field
|
|
52720
|
+
Object.defineProperty(DmlAction.prototype, "_lastStatement", {
|
|
52721
|
+
get: $util.oneOfGetter($oneOfFields = ["lastStatement"]),
|
|
52722
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
52723
|
+
});
|
|
52724
|
+
|
|
52675
52725
|
/**
|
|
52676
52726
|
* Creates a new DmlAction instance using the specified properties.
|
|
52677
52727
|
* @function create
|
|
@@ -52700,6 +52750,8 @@
|
|
|
52700
52750
|
$root.google.spanner.executor.v1.QueryAction.encode(message.update, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
52701
52751
|
if (message.autocommitIfSupported != null && Object.hasOwnProperty.call(message, "autocommitIfSupported"))
|
|
52702
52752
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.autocommitIfSupported);
|
|
52753
|
+
if (message.lastStatement != null && Object.hasOwnProperty.call(message, "lastStatement"))
|
|
52754
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.lastStatement);
|
|
52703
52755
|
return writer;
|
|
52704
52756
|
};
|
|
52705
52757
|
|
|
@@ -52744,6 +52796,10 @@
|
|
|
52744
52796
|
message.autocommitIfSupported = reader.bool();
|
|
52745
52797
|
break;
|
|
52746
52798
|
}
|
|
52799
|
+
case 3: {
|
|
52800
|
+
message.lastStatement = reader.bool();
|
|
52801
|
+
break;
|
|
52802
|
+
}
|
|
52747
52803
|
default:
|
|
52748
52804
|
reader.skipType(tag & 7);
|
|
52749
52805
|
break;
|
|
@@ -52790,6 +52846,11 @@
|
|
|
52790
52846
|
if (typeof message.autocommitIfSupported !== "boolean")
|
|
52791
52847
|
return "autocommitIfSupported: boolean expected";
|
|
52792
52848
|
}
|
|
52849
|
+
if (message.lastStatement != null && message.hasOwnProperty("lastStatement")) {
|
|
52850
|
+
properties._lastStatement = 1;
|
|
52851
|
+
if (typeof message.lastStatement !== "boolean")
|
|
52852
|
+
return "lastStatement: boolean expected";
|
|
52853
|
+
}
|
|
52793
52854
|
return null;
|
|
52794
52855
|
};
|
|
52795
52856
|
|
|
@@ -52812,6 +52873,8 @@
|
|
|
52812
52873
|
}
|
|
52813
52874
|
if (object.autocommitIfSupported != null)
|
|
52814
52875
|
message.autocommitIfSupported = Boolean(object.autocommitIfSupported);
|
|
52876
|
+
if (object.lastStatement != null)
|
|
52877
|
+
message.lastStatement = Boolean(object.lastStatement);
|
|
52815
52878
|
return message;
|
|
52816
52879
|
};
|
|
52817
52880
|
|
|
@@ -52837,6 +52900,11 @@
|
|
|
52837
52900
|
if (options.oneofs)
|
|
52838
52901
|
object._autocommitIfSupported = "autocommitIfSupported";
|
|
52839
52902
|
}
|
|
52903
|
+
if (message.lastStatement != null && message.hasOwnProperty("lastStatement")) {
|
|
52904
|
+
object.lastStatement = message.lastStatement;
|
|
52905
|
+
if (options.oneofs)
|
|
52906
|
+
object._lastStatement = "lastStatement";
|
|
52907
|
+
}
|
|
52840
52908
|
return object;
|
|
52841
52909
|
};
|
|
52842
52910
|
|
|
@@ -52876,6 +52944,7 @@
|
|
|
52876
52944
|
* @memberof google.spanner.executor.v1
|
|
52877
52945
|
* @interface IBatchDmlAction
|
|
52878
52946
|
* @property {Array.<google.spanner.executor.v1.IQueryAction>|null} [updates] BatchDmlAction updates
|
|
52947
|
+
* @property {boolean|null} [lastStatements] BatchDmlAction lastStatements
|
|
52879
52948
|
*/
|
|
52880
52949
|
|
|
52881
52950
|
/**
|
|
@@ -52902,6 +52971,23 @@
|
|
|
52902
52971
|
*/
|
|
52903
52972
|
BatchDmlAction.prototype.updates = $util.emptyArray;
|
|
52904
52973
|
|
|
52974
|
+
/**
|
|
52975
|
+
* BatchDmlAction lastStatements.
|
|
52976
|
+
* @member {boolean|null|undefined} lastStatements
|
|
52977
|
+
* @memberof google.spanner.executor.v1.BatchDmlAction
|
|
52978
|
+
* @instance
|
|
52979
|
+
*/
|
|
52980
|
+
BatchDmlAction.prototype.lastStatements = null;
|
|
52981
|
+
|
|
52982
|
+
// OneOf field names bound to virtual getters and setters
|
|
52983
|
+
var $oneOfFields;
|
|
52984
|
+
|
|
52985
|
+
// Virtual OneOf for proto3 optional field
|
|
52986
|
+
Object.defineProperty(BatchDmlAction.prototype, "_lastStatements", {
|
|
52987
|
+
get: $util.oneOfGetter($oneOfFields = ["lastStatements"]),
|
|
52988
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
52989
|
+
});
|
|
52990
|
+
|
|
52905
52991
|
/**
|
|
52906
52992
|
* Creates a new BatchDmlAction instance using the specified properties.
|
|
52907
52993
|
* @function create
|
|
@@ -52929,6 +53015,8 @@
|
|
|
52929
53015
|
if (message.updates != null && message.updates.length)
|
|
52930
53016
|
for (var i = 0; i < message.updates.length; ++i)
|
|
52931
53017
|
$root.google.spanner.executor.v1.QueryAction.encode(message.updates[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
53018
|
+
if (message.lastStatements != null && Object.hasOwnProperty.call(message, "lastStatements"))
|
|
53019
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.lastStatements);
|
|
52932
53020
|
return writer;
|
|
52933
53021
|
};
|
|
52934
53022
|
|
|
@@ -52971,6 +53059,10 @@
|
|
|
52971
53059
|
message.updates.push($root.google.spanner.executor.v1.QueryAction.decode(reader, reader.uint32()));
|
|
52972
53060
|
break;
|
|
52973
53061
|
}
|
|
53062
|
+
case 2: {
|
|
53063
|
+
message.lastStatements = reader.bool();
|
|
53064
|
+
break;
|
|
53065
|
+
}
|
|
52974
53066
|
default:
|
|
52975
53067
|
reader.skipType(tag & 7);
|
|
52976
53068
|
break;
|
|
@@ -53006,6 +53098,7 @@
|
|
|
53006
53098
|
BatchDmlAction.verify = function verify(message) {
|
|
53007
53099
|
if (typeof message !== "object" || message === null)
|
|
53008
53100
|
return "object expected";
|
|
53101
|
+
var properties = {};
|
|
53009
53102
|
if (message.updates != null && message.hasOwnProperty("updates")) {
|
|
53010
53103
|
if (!Array.isArray(message.updates))
|
|
53011
53104
|
return "updates: array expected";
|
|
@@ -53015,6 +53108,11 @@
|
|
|
53015
53108
|
return "updates." + error;
|
|
53016
53109
|
}
|
|
53017
53110
|
}
|
|
53111
|
+
if (message.lastStatements != null && message.hasOwnProperty("lastStatements")) {
|
|
53112
|
+
properties._lastStatements = 1;
|
|
53113
|
+
if (typeof message.lastStatements !== "boolean")
|
|
53114
|
+
return "lastStatements: boolean expected";
|
|
53115
|
+
}
|
|
53018
53116
|
return null;
|
|
53019
53117
|
};
|
|
53020
53118
|
|
|
@@ -53040,6 +53138,8 @@
|
|
|
53040
53138
|
message.updates[i] = $root.google.spanner.executor.v1.QueryAction.fromObject(object.updates[i]);
|
|
53041
53139
|
}
|
|
53042
53140
|
}
|
|
53141
|
+
if (object.lastStatements != null)
|
|
53142
|
+
message.lastStatements = Boolean(object.lastStatements);
|
|
53043
53143
|
return message;
|
|
53044
53144
|
};
|
|
53045
53145
|
|
|
@@ -53063,6 +53163,11 @@
|
|
|
53063
53163
|
for (var j = 0; j < message.updates.length; ++j)
|
|
53064
53164
|
object.updates[j] = $root.google.spanner.executor.v1.QueryAction.toObject(message.updates[j], options);
|
|
53065
53165
|
}
|
|
53166
|
+
if (message.lastStatements != null && message.hasOwnProperty("lastStatements")) {
|
|
53167
|
+
object.lastStatements = message.lastStatements;
|
|
53168
|
+
if (options.oneofs)
|
|
53169
|
+
object._lastStatements = "lastStatements";
|
|
53170
|
+
}
|
|
53066
53171
|
return object;
|
|
53067
53172
|
};
|
|
53068
53173
|
|
|
@@ -57805,6 +57910,11 @@
|
|
|
57805
57910
|
* @memberof google.spanner.executor.v1
|
|
57806
57911
|
* @interface ITransactionExecutionOptions
|
|
57807
57912
|
* @property {boolean|null} [optimistic] TransactionExecutionOptions optimistic
|
|
57913
|
+
* @property {boolean|null} [excludeFromChangeStreams] TransactionExecutionOptions excludeFromChangeStreams
|
|
57914
|
+
* @property {boolean|null} [serializableOptimistic] TransactionExecutionOptions serializableOptimistic
|
|
57915
|
+
* @property {boolean|null} [snapshotIsolationOptimistic] TransactionExecutionOptions snapshotIsolationOptimistic
|
|
57916
|
+
* @property {boolean|null} [snapshotIsolationPessimistic] TransactionExecutionOptions snapshotIsolationPessimistic
|
|
57917
|
+
* @property {boolean|null} [excludeTxnFromChangeStreams] TransactionExecutionOptions excludeTxnFromChangeStreams
|
|
57808
57918
|
*/
|
|
57809
57919
|
|
|
57810
57920
|
/**
|
|
@@ -57830,6 +57940,46 @@
|
|
|
57830
57940
|
*/
|
|
57831
57941
|
TransactionExecutionOptions.prototype.optimistic = false;
|
|
57832
57942
|
|
|
57943
|
+
/**
|
|
57944
|
+
* TransactionExecutionOptions excludeFromChangeStreams.
|
|
57945
|
+
* @member {boolean} excludeFromChangeStreams
|
|
57946
|
+
* @memberof google.spanner.executor.v1.TransactionExecutionOptions
|
|
57947
|
+
* @instance
|
|
57948
|
+
*/
|
|
57949
|
+
TransactionExecutionOptions.prototype.excludeFromChangeStreams = false;
|
|
57950
|
+
|
|
57951
|
+
/**
|
|
57952
|
+
* TransactionExecutionOptions serializableOptimistic.
|
|
57953
|
+
* @member {boolean} serializableOptimistic
|
|
57954
|
+
* @memberof google.spanner.executor.v1.TransactionExecutionOptions
|
|
57955
|
+
* @instance
|
|
57956
|
+
*/
|
|
57957
|
+
TransactionExecutionOptions.prototype.serializableOptimistic = false;
|
|
57958
|
+
|
|
57959
|
+
/**
|
|
57960
|
+
* TransactionExecutionOptions snapshotIsolationOptimistic.
|
|
57961
|
+
* @member {boolean} snapshotIsolationOptimistic
|
|
57962
|
+
* @memberof google.spanner.executor.v1.TransactionExecutionOptions
|
|
57963
|
+
* @instance
|
|
57964
|
+
*/
|
|
57965
|
+
TransactionExecutionOptions.prototype.snapshotIsolationOptimistic = false;
|
|
57966
|
+
|
|
57967
|
+
/**
|
|
57968
|
+
* TransactionExecutionOptions snapshotIsolationPessimistic.
|
|
57969
|
+
* @member {boolean} snapshotIsolationPessimistic
|
|
57970
|
+
* @memberof google.spanner.executor.v1.TransactionExecutionOptions
|
|
57971
|
+
* @instance
|
|
57972
|
+
*/
|
|
57973
|
+
TransactionExecutionOptions.prototype.snapshotIsolationPessimistic = false;
|
|
57974
|
+
|
|
57975
|
+
/**
|
|
57976
|
+
* TransactionExecutionOptions excludeTxnFromChangeStreams.
|
|
57977
|
+
* @member {boolean} excludeTxnFromChangeStreams
|
|
57978
|
+
* @memberof google.spanner.executor.v1.TransactionExecutionOptions
|
|
57979
|
+
* @instance
|
|
57980
|
+
*/
|
|
57981
|
+
TransactionExecutionOptions.prototype.excludeTxnFromChangeStreams = false;
|
|
57982
|
+
|
|
57833
57983
|
/**
|
|
57834
57984
|
* Creates a new TransactionExecutionOptions instance using the specified properties.
|
|
57835
57985
|
* @function create
|
|
@@ -57856,6 +58006,16 @@
|
|
|
57856
58006
|
writer = $Writer.create();
|
|
57857
58007
|
if (message.optimistic != null && Object.hasOwnProperty.call(message, "optimistic"))
|
|
57858
58008
|
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.optimistic);
|
|
58009
|
+
if (message.excludeFromChangeStreams != null && Object.hasOwnProperty.call(message, "excludeFromChangeStreams"))
|
|
58010
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.excludeFromChangeStreams);
|
|
58011
|
+
if (message.serializableOptimistic != null && Object.hasOwnProperty.call(message, "serializableOptimistic"))
|
|
58012
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.serializableOptimistic);
|
|
58013
|
+
if (message.snapshotIsolationOptimistic != null && Object.hasOwnProperty.call(message, "snapshotIsolationOptimistic"))
|
|
58014
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.snapshotIsolationOptimistic);
|
|
58015
|
+
if (message.snapshotIsolationPessimistic != null && Object.hasOwnProperty.call(message, "snapshotIsolationPessimistic"))
|
|
58016
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.snapshotIsolationPessimistic);
|
|
58017
|
+
if (message.excludeTxnFromChangeStreams != null && Object.hasOwnProperty.call(message, "excludeTxnFromChangeStreams"))
|
|
58018
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.excludeTxnFromChangeStreams);
|
|
57859
58019
|
return writer;
|
|
57860
58020
|
};
|
|
57861
58021
|
|
|
@@ -57896,6 +58056,26 @@
|
|
|
57896
58056
|
message.optimistic = reader.bool();
|
|
57897
58057
|
break;
|
|
57898
58058
|
}
|
|
58059
|
+
case 2: {
|
|
58060
|
+
message.excludeFromChangeStreams = reader.bool();
|
|
58061
|
+
break;
|
|
58062
|
+
}
|
|
58063
|
+
case 3: {
|
|
58064
|
+
message.serializableOptimistic = reader.bool();
|
|
58065
|
+
break;
|
|
58066
|
+
}
|
|
58067
|
+
case 4: {
|
|
58068
|
+
message.snapshotIsolationOptimistic = reader.bool();
|
|
58069
|
+
break;
|
|
58070
|
+
}
|
|
58071
|
+
case 5: {
|
|
58072
|
+
message.snapshotIsolationPessimistic = reader.bool();
|
|
58073
|
+
break;
|
|
58074
|
+
}
|
|
58075
|
+
case 6: {
|
|
58076
|
+
message.excludeTxnFromChangeStreams = reader.bool();
|
|
58077
|
+
break;
|
|
58078
|
+
}
|
|
57899
58079
|
default:
|
|
57900
58080
|
reader.skipType(tag & 7);
|
|
57901
58081
|
break;
|
|
@@ -57934,6 +58114,21 @@
|
|
|
57934
58114
|
if (message.optimistic != null && message.hasOwnProperty("optimistic"))
|
|
57935
58115
|
if (typeof message.optimistic !== "boolean")
|
|
57936
58116
|
return "optimistic: boolean expected";
|
|
58117
|
+
if (message.excludeFromChangeStreams != null && message.hasOwnProperty("excludeFromChangeStreams"))
|
|
58118
|
+
if (typeof message.excludeFromChangeStreams !== "boolean")
|
|
58119
|
+
return "excludeFromChangeStreams: boolean expected";
|
|
58120
|
+
if (message.serializableOptimistic != null && message.hasOwnProperty("serializableOptimistic"))
|
|
58121
|
+
if (typeof message.serializableOptimistic !== "boolean")
|
|
58122
|
+
return "serializableOptimistic: boolean expected";
|
|
58123
|
+
if (message.snapshotIsolationOptimistic != null && message.hasOwnProperty("snapshotIsolationOptimistic"))
|
|
58124
|
+
if (typeof message.snapshotIsolationOptimistic !== "boolean")
|
|
58125
|
+
return "snapshotIsolationOptimistic: boolean expected";
|
|
58126
|
+
if (message.snapshotIsolationPessimistic != null && message.hasOwnProperty("snapshotIsolationPessimistic"))
|
|
58127
|
+
if (typeof message.snapshotIsolationPessimistic !== "boolean")
|
|
58128
|
+
return "snapshotIsolationPessimistic: boolean expected";
|
|
58129
|
+
if (message.excludeTxnFromChangeStreams != null && message.hasOwnProperty("excludeTxnFromChangeStreams"))
|
|
58130
|
+
if (typeof message.excludeTxnFromChangeStreams !== "boolean")
|
|
58131
|
+
return "excludeTxnFromChangeStreams: boolean expected";
|
|
57937
58132
|
return null;
|
|
57938
58133
|
};
|
|
57939
58134
|
|
|
@@ -57951,6 +58146,16 @@
|
|
|
57951
58146
|
var message = new $root.google.spanner.executor.v1.TransactionExecutionOptions();
|
|
57952
58147
|
if (object.optimistic != null)
|
|
57953
58148
|
message.optimistic = Boolean(object.optimistic);
|
|
58149
|
+
if (object.excludeFromChangeStreams != null)
|
|
58150
|
+
message.excludeFromChangeStreams = Boolean(object.excludeFromChangeStreams);
|
|
58151
|
+
if (object.serializableOptimistic != null)
|
|
58152
|
+
message.serializableOptimistic = Boolean(object.serializableOptimistic);
|
|
58153
|
+
if (object.snapshotIsolationOptimistic != null)
|
|
58154
|
+
message.snapshotIsolationOptimistic = Boolean(object.snapshotIsolationOptimistic);
|
|
58155
|
+
if (object.snapshotIsolationPessimistic != null)
|
|
58156
|
+
message.snapshotIsolationPessimistic = Boolean(object.snapshotIsolationPessimistic);
|
|
58157
|
+
if (object.excludeTxnFromChangeStreams != null)
|
|
58158
|
+
message.excludeTxnFromChangeStreams = Boolean(object.excludeTxnFromChangeStreams);
|
|
57954
58159
|
return message;
|
|
57955
58160
|
};
|
|
57956
58161
|
|
|
@@ -57967,10 +58172,26 @@
|
|
|
57967
58172
|
if (!options)
|
|
57968
58173
|
options = {};
|
|
57969
58174
|
var object = {};
|
|
57970
|
-
if (options.defaults)
|
|
58175
|
+
if (options.defaults) {
|
|
57971
58176
|
object.optimistic = false;
|
|
58177
|
+
object.excludeFromChangeStreams = false;
|
|
58178
|
+
object.serializableOptimistic = false;
|
|
58179
|
+
object.snapshotIsolationOptimistic = false;
|
|
58180
|
+
object.snapshotIsolationPessimistic = false;
|
|
58181
|
+
object.excludeTxnFromChangeStreams = false;
|
|
58182
|
+
}
|
|
57972
58183
|
if (message.optimistic != null && message.hasOwnProperty("optimistic"))
|
|
57973
58184
|
object.optimistic = message.optimistic;
|
|
58185
|
+
if (message.excludeFromChangeStreams != null && message.hasOwnProperty("excludeFromChangeStreams"))
|
|
58186
|
+
object.excludeFromChangeStreams = message.excludeFromChangeStreams;
|
|
58187
|
+
if (message.serializableOptimistic != null && message.hasOwnProperty("serializableOptimistic"))
|
|
58188
|
+
object.serializableOptimistic = message.serializableOptimistic;
|
|
58189
|
+
if (message.snapshotIsolationOptimistic != null && message.hasOwnProperty("snapshotIsolationOptimistic"))
|
|
58190
|
+
object.snapshotIsolationOptimistic = message.snapshotIsolationOptimistic;
|
|
58191
|
+
if (message.snapshotIsolationPessimistic != null && message.hasOwnProperty("snapshotIsolationPessimistic"))
|
|
58192
|
+
object.snapshotIsolationPessimistic = message.snapshotIsolationPessimistic;
|
|
58193
|
+
if (message.excludeTxnFromChangeStreams != null && message.hasOwnProperty("excludeTxnFromChangeStreams"))
|
|
58194
|
+
object.excludeTxnFromChangeStreams = message.excludeTxnFromChangeStreams;
|
|
57974
58195
|
return object;
|
|
57975
58196
|
};
|
|
57976
58197
|
|
|
@@ -58282,6 +58503,7 @@
|
|
|
58282
58503
|
* @property {google.spanner.executor.v1.IGetOperationAction|null} [getOperation] AdminAction getOperation
|
|
58283
58504
|
* @property {google.spanner.executor.v1.ICancelOperationAction|null} [cancelOperation] AdminAction cancelOperation
|
|
58284
58505
|
* @property {google.spanner.executor.v1.IChangeQuorumCloudDatabaseAction|null} [changeQuorumCloudDatabase] AdminAction changeQuorumCloudDatabase
|
|
58506
|
+
* @property {google.spanner.executor.v1.IAddSplitPointsAction|null} [addSplitPoints] AdminAction addSplitPoints
|
|
58285
58507
|
*/
|
|
58286
58508
|
|
|
58287
58509
|
/**
|
|
@@ -58523,17 +58745,25 @@
|
|
|
58523
58745
|
*/
|
|
58524
58746
|
AdminAction.prototype.changeQuorumCloudDatabase = null;
|
|
58525
58747
|
|
|
58748
|
+
/**
|
|
58749
|
+
* AdminAction addSplitPoints.
|
|
58750
|
+
* @member {google.spanner.executor.v1.IAddSplitPointsAction|null|undefined} addSplitPoints
|
|
58751
|
+
* @memberof google.spanner.executor.v1.AdminAction
|
|
58752
|
+
* @instance
|
|
58753
|
+
*/
|
|
58754
|
+
AdminAction.prototype.addSplitPoints = null;
|
|
58755
|
+
|
|
58526
58756
|
// OneOf field names bound to virtual getters and setters
|
|
58527
58757
|
var $oneOfFields;
|
|
58528
58758
|
|
|
58529
58759
|
/**
|
|
58530
58760
|
* AdminAction action.
|
|
58531
|
-
* @member {"createUserInstanceConfig"|"updateUserInstanceConfig"|"deleteUserInstanceConfig"|"getCloudInstanceConfig"|"listInstanceConfigs"|"createCloudInstance"|"updateCloudInstance"|"deleteCloudInstance"|"listCloudInstances"|"getCloudInstance"|"createCloudDatabase"|"updateCloudDatabaseDdl"|"updateCloudDatabase"|"dropCloudDatabase"|"listCloudDatabases"|"listCloudDatabaseOperations"|"restoreCloudDatabase"|"getCloudDatabase"|"createCloudBackup"|"copyCloudBackup"|"getCloudBackup"|"updateCloudBackup"|"deleteCloudBackup"|"listCloudBackups"|"listCloudBackupOperations"|"getOperation"|"cancelOperation"|"changeQuorumCloudDatabase"|undefined} action
|
|
58761
|
+
* @member {"createUserInstanceConfig"|"updateUserInstanceConfig"|"deleteUserInstanceConfig"|"getCloudInstanceConfig"|"listInstanceConfigs"|"createCloudInstance"|"updateCloudInstance"|"deleteCloudInstance"|"listCloudInstances"|"getCloudInstance"|"createCloudDatabase"|"updateCloudDatabaseDdl"|"updateCloudDatabase"|"dropCloudDatabase"|"listCloudDatabases"|"listCloudDatabaseOperations"|"restoreCloudDatabase"|"getCloudDatabase"|"createCloudBackup"|"copyCloudBackup"|"getCloudBackup"|"updateCloudBackup"|"deleteCloudBackup"|"listCloudBackups"|"listCloudBackupOperations"|"getOperation"|"cancelOperation"|"changeQuorumCloudDatabase"|"addSplitPoints"|undefined} action
|
|
58532
58762
|
* @memberof google.spanner.executor.v1.AdminAction
|
|
58533
58763
|
* @instance
|
|
58534
58764
|
*/
|
|
58535
58765
|
Object.defineProperty(AdminAction.prototype, "action", {
|
|
58536
|
-
get: $util.oneOfGetter($oneOfFields = ["createUserInstanceConfig", "updateUserInstanceConfig", "deleteUserInstanceConfig", "getCloudInstanceConfig", "listInstanceConfigs", "createCloudInstance", "updateCloudInstance", "deleteCloudInstance", "listCloudInstances", "getCloudInstance", "createCloudDatabase", "updateCloudDatabaseDdl", "updateCloudDatabase", "dropCloudDatabase", "listCloudDatabases", "listCloudDatabaseOperations", "restoreCloudDatabase", "getCloudDatabase", "createCloudBackup", "copyCloudBackup", "getCloudBackup", "updateCloudBackup", "deleteCloudBackup", "listCloudBackups", "listCloudBackupOperations", "getOperation", "cancelOperation", "changeQuorumCloudDatabase"]),
|
|
58766
|
+
get: $util.oneOfGetter($oneOfFields = ["createUserInstanceConfig", "updateUserInstanceConfig", "deleteUserInstanceConfig", "getCloudInstanceConfig", "listInstanceConfigs", "createCloudInstance", "updateCloudInstance", "deleteCloudInstance", "listCloudInstances", "getCloudInstance", "createCloudDatabase", "updateCloudDatabaseDdl", "updateCloudDatabase", "dropCloudDatabase", "listCloudDatabases", "listCloudDatabaseOperations", "restoreCloudDatabase", "getCloudDatabase", "createCloudBackup", "copyCloudBackup", "getCloudBackup", "updateCloudBackup", "deleteCloudBackup", "listCloudBackups", "listCloudBackupOperations", "getOperation", "cancelOperation", "changeQuorumCloudDatabase", "addSplitPoints"]),
|
|
58537
58767
|
set: $util.oneOfSetter($oneOfFields)
|
|
58538
58768
|
});
|
|
58539
58769
|
|
|
@@ -58617,6 +58847,8 @@
|
|
|
58617
58847
|
$root.google.spanner.executor.v1.UpdateCloudDatabaseAction.encode(message.updateCloudDatabase, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
|
|
58618
58848
|
if (message.changeQuorumCloudDatabase != null && Object.hasOwnProperty.call(message, "changeQuorumCloudDatabase"))
|
|
58619
58849
|
$root.google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction.encode(message.changeQuorumCloudDatabase, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
|
|
58850
|
+
if (message.addSplitPoints != null && Object.hasOwnProperty.call(message, "addSplitPoints"))
|
|
58851
|
+
$root.google.spanner.executor.v1.AddSplitPointsAction.encode(message.addSplitPoints, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim();
|
|
58620
58852
|
return writer;
|
|
58621
58853
|
};
|
|
58622
58854
|
|
|
@@ -58765,6 +58997,10 @@
|
|
|
58765
58997
|
message.changeQuorumCloudDatabase = $root.google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction.decode(reader, reader.uint32());
|
|
58766
58998
|
break;
|
|
58767
58999
|
}
|
|
59000
|
+
case 29: {
|
|
59001
|
+
message.addSplitPoints = $root.google.spanner.executor.v1.AddSplitPointsAction.decode(reader, reader.uint32());
|
|
59002
|
+
break;
|
|
59003
|
+
}
|
|
58768
59004
|
default:
|
|
58769
59005
|
reader.skipType(tag & 7);
|
|
58770
59006
|
break;
|
|
@@ -59079,6 +59315,16 @@
|
|
|
59079
59315
|
return "changeQuorumCloudDatabase." + error;
|
|
59080
59316
|
}
|
|
59081
59317
|
}
|
|
59318
|
+
if (message.addSplitPoints != null && message.hasOwnProperty("addSplitPoints")) {
|
|
59319
|
+
if (properties.action === 1)
|
|
59320
|
+
return "action: multiple values";
|
|
59321
|
+
properties.action = 1;
|
|
59322
|
+
{
|
|
59323
|
+
var error = $root.google.spanner.executor.v1.AddSplitPointsAction.verify(message.addSplitPoints);
|
|
59324
|
+
if (error)
|
|
59325
|
+
return "addSplitPoints." + error;
|
|
59326
|
+
}
|
|
59327
|
+
}
|
|
59082
59328
|
return null;
|
|
59083
59329
|
};
|
|
59084
59330
|
|
|
@@ -59234,6 +59480,11 @@
|
|
|
59234
59480
|
throw TypeError(".google.spanner.executor.v1.AdminAction.changeQuorumCloudDatabase: object expected");
|
|
59235
59481
|
message.changeQuorumCloudDatabase = $root.google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction.fromObject(object.changeQuorumCloudDatabase);
|
|
59236
59482
|
}
|
|
59483
|
+
if (object.addSplitPoints != null) {
|
|
59484
|
+
if (typeof object.addSplitPoints !== "object")
|
|
59485
|
+
throw TypeError(".google.spanner.executor.v1.AdminAction.addSplitPoints: object expected");
|
|
59486
|
+
message.addSplitPoints = $root.google.spanner.executor.v1.AddSplitPointsAction.fromObject(object.addSplitPoints);
|
|
59487
|
+
}
|
|
59237
59488
|
return message;
|
|
59238
59489
|
};
|
|
59239
59490
|
|
|
@@ -59390,6 +59641,11 @@
|
|
|
59390
59641
|
if (options.oneofs)
|
|
59391
59642
|
object.action = "changeQuorumCloudDatabase";
|
|
59392
59643
|
}
|
|
59644
|
+
if (message.addSplitPoints != null && message.hasOwnProperty("addSplitPoints")) {
|
|
59645
|
+
object.addSplitPoints = $root.google.spanner.executor.v1.AddSplitPointsAction.toObject(message.addSplitPoints, options);
|
|
59646
|
+
if (options.oneofs)
|
|
59647
|
+
object.action = "addSplitPoints";
|
|
59648
|
+
}
|
|
59393
59649
|
return object;
|
|
59394
59650
|
};
|
|
59395
59651
|
|
|
@@ -60790,6 +61046,7 @@
|
|
|
60790
61046
|
* @property {number|null} [processingUnits] CreateCloudInstanceAction processingUnits
|
|
60791
61047
|
* @property {google.spanner.admin.instance.v1.IAutoscalingConfig|null} [autoscalingConfig] CreateCloudInstanceAction autoscalingConfig
|
|
60792
61048
|
* @property {Object.<string,string>|null} [labels] CreateCloudInstanceAction labels
|
|
61049
|
+
* @property {google.spanner.admin.instance.v1.Instance.Edition|null} [edition] CreateCloudInstanceAction edition
|
|
60793
61050
|
*/
|
|
60794
61051
|
|
|
60795
61052
|
/**
|
|
@@ -60864,6 +61121,14 @@
|
|
|
60864
61121
|
*/
|
|
60865
61122
|
CreateCloudInstanceAction.prototype.labels = $util.emptyObject;
|
|
60866
61123
|
|
|
61124
|
+
/**
|
|
61125
|
+
* CreateCloudInstanceAction edition.
|
|
61126
|
+
* @member {google.spanner.admin.instance.v1.Instance.Edition} edition
|
|
61127
|
+
* @memberof google.spanner.executor.v1.CreateCloudInstanceAction
|
|
61128
|
+
* @instance
|
|
61129
|
+
*/
|
|
61130
|
+
CreateCloudInstanceAction.prototype.edition = 0;
|
|
61131
|
+
|
|
60867
61132
|
// OneOf field names bound to virtual getters and setters
|
|
60868
61133
|
var $oneOfFields;
|
|
60869
61134
|
|
|
@@ -60924,6 +61189,8 @@
|
|
|
60924
61189
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.processingUnits);
|
|
60925
61190
|
if (message.autoscalingConfig != null && Object.hasOwnProperty.call(message, "autoscalingConfig"))
|
|
60926
61191
|
$root.google.spanner.admin.instance.v1.AutoscalingConfig.encode(message.autoscalingConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
61192
|
+
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
61193
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.edition);
|
|
60927
61194
|
return writer;
|
|
60928
61195
|
};
|
|
60929
61196
|
|
|
@@ -61007,6 +61274,10 @@
|
|
|
61007
61274
|
message.labels[key] = value;
|
|
61008
61275
|
break;
|
|
61009
61276
|
}
|
|
61277
|
+
case 8: {
|
|
61278
|
+
message.edition = reader.int32();
|
|
61279
|
+
break;
|
|
61280
|
+
}
|
|
61010
61281
|
default:
|
|
61011
61282
|
reader.skipType(tag & 7);
|
|
61012
61283
|
break;
|
|
@@ -61078,6 +61349,16 @@
|
|
|
61078
61349
|
if (!$util.isString(message.labels[key[i]]))
|
|
61079
61350
|
return "labels: string{k:string} expected";
|
|
61080
61351
|
}
|
|
61352
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
61353
|
+
switch (message.edition) {
|
|
61354
|
+
default:
|
|
61355
|
+
return "edition: enum value expected";
|
|
61356
|
+
case 0:
|
|
61357
|
+
case 1:
|
|
61358
|
+
case 2:
|
|
61359
|
+
case 3:
|
|
61360
|
+
break;
|
|
61361
|
+
}
|
|
61081
61362
|
return null;
|
|
61082
61363
|
};
|
|
61083
61364
|
|
|
@@ -61115,6 +61396,30 @@
|
|
|
61115
61396
|
for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i)
|
|
61116
61397
|
message.labels[keys[i]] = String(object.labels[keys[i]]);
|
|
61117
61398
|
}
|
|
61399
|
+
switch (object.edition) {
|
|
61400
|
+
default:
|
|
61401
|
+
if (typeof object.edition === "number") {
|
|
61402
|
+
message.edition = object.edition;
|
|
61403
|
+
break;
|
|
61404
|
+
}
|
|
61405
|
+
break;
|
|
61406
|
+
case "EDITION_UNSPECIFIED":
|
|
61407
|
+
case 0:
|
|
61408
|
+
message.edition = 0;
|
|
61409
|
+
break;
|
|
61410
|
+
case "STANDARD":
|
|
61411
|
+
case 1:
|
|
61412
|
+
message.edition = 1;
|
|
61413
|
+
break;
|
|
61414
|
+
case "ENTERPRISE":
|
|
61415
|
+
case 2:
|
|
61416
|
+
message.edition = 2;
|
|
61417
|
+
break;
|
|
61418
|
+
case "ENTERPRISE_PLUS":
|
|
61419
|
+
case 3:
|
|
61420
|
+
message.edition = 3;
|
|
61421
|
+
break;
|
|
61422
|
+
}
|
|
61118
61423
|
return message;
|
|
61119
61424
|
};
|
|
61120
61425
|
|
|
@@ -61137,6 +61442,7 @@
|
|
|
61137
61442
|
object.instanceId = "";
|
|
61138
61443
|
object.projectId = "";
|
|
61139
61444
|
object.instanceConfigId = "";
|
|
61445
|
+
object.edition = options.enums === String ? "EDITION_UNSPECIFIED" : 0;
|
|
61140
61446
|
}
|
|
61141
61447
|
if (message.instanceId != null && message.hasOwnProperty("instanceId"))
|
|
61142
61448
|
object.instanceId = message.instanceId;
|
|
@@ -61165,6 +61471,8 @@
|
|
|
61165
61471
|
if (options.oneofs)
|
|
61166
61472
|
object._autoscalingConfig = "autoscalingConfig";
|
|
61167
61473
|
}
|
|
61474
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
61475
|
+
object.edition = options.enums === String ? $root.google.spanner.admin.instance.v1.Instance.Edition[message.edition] === undefined ? message.edition : $root.google.spanner.admin.instance.v1.Instance.Edition[message.edition] : message.edition;
|
|
61168
61476
|
return object;
|
|
61169
61477
|
};
|
|
61170
61478
|
|
|
@@ -61210,6 +61518,7 @@
|
|
|
61210
61518
|
* @property {number|null} [processingUnits] UpdateCloudInstanceAction processingUnits
|
|
61211
61519
|
* @property {google.spanner.admin.instance.v1.IAutoscalingConfig|null} [autoscalingConfig] UpdateCloudInstanceAction autoscalingConfig
|
|
61212
61520
|
* @property {Object.<string,string>|null} [labels] UpdateCloudInstanceAction labels
|
|
61521
|
+
* @property {google.spanner.admin.instance.v1.Instance.Edition|null} [edition] UpdateCloudInstanceAction edition
|
|
61213
61522
|
*/
|
|
61214
61523
|
|
|
61215
61524
|
/**
|
|
@@ -61284,6 +61593,14 @@
|
|
|
61284
61593
|
*/
|
|
61285
61594
|
UpdateCloudInstanceAction.prototype.labels = $util.emptyObject;
|
|
61286
61595
|
|
|
61596
|
+
/**
|
|
61597
|
+
* UpdateCloudInstanceAction edition.
|
|
61598
|
+
* @member {google.spanner.admin.instance.v1.Instance.Edition} edition
|
|
61599
|
+
* @memberof google.spanner.executor.v1.UpdateCloudInstanceAction
|
|
61600
|
+
* @instance
|
|
61601
|
+
*/
|
|
61602
|
+
UpdateCloudInstanceAction.prototype.edition = 0;
|
|
61603
|
+
|
|
61287
61604
|
// OneOf field names bound to virtual getters and setters
|
|
61288
61605
|
var $oneOfFields;
|
|
61289
61606
|
|
|
@@ -61350,6 +61667,8 @@
|
|
|
61350
61667
|
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
|
|
61351
61668
|
if (message.autoscalingConfig != null && Object.hasOwnProperty.call(message, "autoscalingConfig"))
|
|
61352
61669
|
$root.google.spanner.admin.instance.v1.AutoscalingConfig.encode(message.autoscalingConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
61670
|
+
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
61671
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.edition);
|
|
61353
61672
|
return writer;
|
|
61354
61673
|
};
|
|
61355
61674
|
|
|
@@ -61433,6 +61752,10 @@
|
|
|
61433
61752
|
message.labels[key] = value;
|
|
61434
61753
|
break;
|
|
61435
61754
|
}
|
|
61755
|
+
case 8: {
|
|
61756
|
+
message.edition = reader.int32();
|
|
61757
|
+
break;
|
|
61758
|
+
}
|
|
61436
61759
|
default:
|
|
61437
61760
|
reader.skipType(tag & 7);
|
|
61438
61761
|
break;
|
|
@@ -61506,6 +61829,16 @@
|
|
|
61506
61829
|
if (!$util.isString(message.labels[key[i]]))
|
|
61507
61830
|
return "labels: string{k:string} expected";
|
|
61508
61831
|
}
|
|
61832
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
61833
|
+
switch (message.edition) {
|
|
61834
|
+
default:
|
|
61835
|
+
return "edition: enum value expected";
|
|
61836
|
+
case 0:
|
|
61837
|
+
case 1:
|
|
61838
|
+
case 2:
|
|
61839
|
+
case 3:
|
|
61840
|
+
break;
|
|
61841
|
+
}
|
|
61509
61842
|
return null;
|
|
61510
61843
|
};
|
|
61511
61844
|
|
|
@@ -61543,6 +61876,30 @@
|
|
|
61543
61876
|
for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i)
|
|
61544
61877
|
message.labels[keys[i]] = String(object.labels[keys[i]]);
|
|
61545
61878
|
}
|
|
61879
|
+
switch (object.edition) {
|
|
61880
|
+
default:
|
|
61881
|
+
if (typeof object.edition === "number") {
|
|
61882
|
+
message.edition = object.edition;
|
|
61883
|
+
break;
|
|
61884
|
+
}
|
|
61885
|
+
break;
|
|
61886
|
+
case "EDITION_UNSPECIFIED":
|
|
61887
|
+
case 0:
|
|
61888
|
+
message.edition = 0;
|
|
61889
|
+
break;
|
|
61890
|
+
case "STANDARD":
|
|
61891
|
+
case 1:
|
|
61892
|
+
message.edition = 1;
|
|
61893
|
+
break;
|
|
61894
|
+
case "ENTERPRISE":
|
|
61895
|
+
case 2:
|
|
61896
|
+
message.edition = 2;
|
|
61897
|
+
break;
|
|
61898
|
+
case "ENTERPRISE_PLUS":
|
|
61899
|
+
case 3:
|
|
61900
|
+
message.edition = 3;
|
|
61901
|
+
break;
|
|
61902
|
+
}
|
|
61546
61903
|
return message;
|
|
61547
61904
|
};
|
|
61548
61905
|
|
|
@@ -61564,6 +61921,7 @@
|
|
|
61564
61921
|
if (options.defaults) {
|
|
61565
61922
|
object.instanceId = "";
|
|
61566
61923
|
object.projectId = "";
|
|
61924
|
+
object.edition = options.enums === String ? "EDITION_UNSPECIFIED" : 0;
|
|
61567
61925
|
}
|
|
61568
61926
|
if (message.instanceId != null && message.hasOwnProperty("instanceId"))
|
|
61569
61927
|
object.instanceId = message.instanceId;
|
|
@@ -61595,6 +61953,8 @@
|
|
|
61595
61953
|
if (options.oneofs)
|
|
61596
61954
|
object._autoscalingConfig = "autoscalingConfig";
|
|
61597
61955
|
}
|
|
61956
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
61957
|
+
object.edition = options.enums === String ? $root.google.spanner.admin.instance.v1.Instance.Edition[message.edition] === undefined ? message.edition : $root.google.spanner.admin.instance.v1.Instance.Edition[message.edition] : message.edition;
|
|
61598
61958
|
return object;
|
|
61599
61959
|
};
|
|
61600
61960
|
|
|
@@ -63389,6 +63749,372 @@
|
|
|
63389
63749
|
return ChangeQuorumCloudDatabaseAction;
|
|
63390
63750
|
})();
|
|
63391
63751
|
|
|
63752
|
+
v1.AdaptMessageAction = (function() {
|
|
63753
|
+
|
|
63754
|
+
/**
|
|
63755
|
+
* Properties of an AdaptMessageAction.
|
|
63756
|
+
* @memberof google.spanner.executor.v1
|
|
63757
|
+
* @interface IAdaptMessageAction
|
|
63758
|
+
* @property {string|null} [databaseUri] AdaptMessageAction databaseUri
|
|
63759
|
+
* @property {string|null} [protocol] AdaptMessageAction protocol
|
|
63760
|
+
* @property {Uint8Array|null} [payload] AdaptMessageAction payload
|
|
63761
|
+
* @property {Object.<string,string>|null} [attachments] AdaptMessageAction attachments
|
|
63762
|
+
* @property {string|null} [query] AdaptMessageAction query
|
|
63763
|
+
* @property {boolean|null} [prepareThenExecute] AdaptMessageAction prepareThenExecute
|
|
63764
|
+
*/
|
|
63765
|
+
|
|
63766
|
+
/**
|
|
63767
|
+
* Constructs a new AdaptMessageAction.
|
|
63768
|
+
* @memberof google.spanner.executor.v1
|
|
63769
|
+
* @classdesc Represents an AdaptMessageAction.
|
|
63770
|
+
* @implements IAdaptMessageAction
|
|
63771
|
+
* @constructor
|
|
63772
|
+
* @param {google.spanner.executor.v1.IAdaptMessageAction=} [properties] Properties to set
|
|
63773
|
+
*/
|
|
63774
|
+
function AdaptMessageAction(properties) {
|
|
63775
|
+
this.attachments = {};
|
|
63776
|
+
if (properties)
|
|
63777
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
63778
|
+
if (properties[keys[i]] != null)
|
|
63779
|
+
this[keys[i]] = properties[keys[i]];
|
|
63780
|
+
}
|
|
63781
|
+
|
|
63782
|
+
/**
|
|
63783
|
+
* AdaptMessageAction databaseUri.
|
|
63784
|
+
* @member {string} databaseUri
|
|
63785
|
+
* @memberof google.spanner.executor.v1.AdaptMessageAction
|
|
63786
|
+
* @instance
|
|
63787
|
+
*/
|
|
63788
|
+
AdaptMessageAction.prototype.databaseUri = "";
|
|
63789
|
+
|
|
63790
|
+
/**
|
|
63791
|
+
* AdaptMessageAction protocol.
|
|
63792
|
+
* @member {string} protocol
|
|
63793
|
+
* @memberof google.spanner.executor.v1.AdaptMessageAction
|
|
63794
|
+
* @instance
|
|
63795
|
+
*/
|
|
63796
|
+
AdaptMessageAction.prototype.protocol = "";
|
|
63797
|
+
|
|
63798
|
+
/**
|
|
63799
|
+
* AdaptMessageAction payload.
|
|
63800
|
+
* @member {Uint8Array} payload
|
|
63801
|
+
* @memberof google.spanner.executor.v1.AdaptMessageAction
|
|
63802
|
+
* @instance
|
|
63803
|
+
*/
|
|
63804
|
+
AdaptMessageAction.prototype.payload = $util.newBuffer([]);
|
|
63805
|
+
|
|
63806
|
+
/**
|
|
63807
|
+
* AdaptMessageAction attachments.
|
|
63808
|
+
* @member {Object.<string,string>} attachments
|
|
63809
|
+
* @memberof google.spanner.executor.v1.AdaptMessageAction
|
|
63810
|
+
* @instance
|
|
63811
|
+
*/
|
|
63812
|
+
AdaptMessageAction.prototype.attachments = $util.emptyObject;
|
|
63813
|
+
|
|
63814
|
+
/**
|
|
63815
|
+
* AdaptMessageAction query.
|
|
63816
|
+
* @member {string} query
|
|
63817
|
+
* @memberof google.spanner.executor.v1.AdaptMessageAction
|
|
63818
|
+
* @instance
|
|
63819
|
+
*/
|
|
63820
|
+
AdaptMessageAction.prototype.query = "";
|
|
63821
|
+
|
|
63822
|
+
/**
|
|
63823
|
+
* AdaptMessageAction prepareThenExecute.
|
|
63824
|
+
* @member {boolean} prepareThenExecute
|
|
63825
|
+
* @memberof google.spanner.executor.v1.AdaptMessageAction
|
|
63826
|
+
* @instance
|
|
63827
|
+
*/
|
|
63828
|
+
AdaptMessageAction.prototype.prepareThenExecute = false;
|
|
63829
|
+
|
|
63830
|
+
/**
|
|
63831
|
+
* Creates a new AdaptMessageAction instance using the specified properties.
|
|
63832
|
+
* @function create
|
|
63833
|
+
* @memberof google.spanner.executor.v1.AdaptMessageAction
|
|
63834
|
+
* @static
|
|
63835
|
+
* @param {google.spanner.executor.v1.IAdaptMessageAction=} [properties] Properties to set
|
|
63836
|
+
* @returns {google.spanner.executor.v1.AdaptMessageAction} AdaptMessageAction instance
|
|
63837
|
+
*/
|
|
63838
|
+
AdaptMessageAction.create = function create(properties) {
|
|
63839
|
+
return new AdaptMessageAction(properties);
|
|
63840
|
+
};
|
|
63841
|
+
|
|
63842
|
+
/**
|
|
63843
|
+
* Encodes the specified AdaptMessageAction message. Does not implicitly {@link google.spanner.executor.v1.AdaptMessageAction.verify|verify} messages.
|
|
63844
|
+
* @function encode
|
|
63845
|
+
* @memberof google.spanner.executor.v1.AdaptMessageAction
|
|
63846
|
+
* @static
|
|
63847
|
+
* @param {google.spanner.executor.v1.IAdaptMessageAction} message AdaptMessageAction message or plain object to encode
|
|
63848
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
63849
|
+
* @returns {$protobuf.Writer} Writer
|
|
63850
|
+
*/
|
|
63851
|
+
AdaptMessageAction.encode = function encode(message, writer) {
|
|
63852
|
+
if (!writer)
|
|
63853
|
+
writer = $Writer.create();
|
|
63854
|
+
if (message.databaseUri != null && Object.hasOwnProperty.call(message, "databaseUri"))
|
|
63855
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.databaseUri);
|
|
63856
|
+
if (message.protocol != null && Object.hasOwnProperty.call(message, "protocol"))
|
|
63857
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.protocol);
|
|
63858
|
+
if (message.payload != null && Object.hasOwnProperty.call(message, "payload"))
|
|
63859
|
+
writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.payload);
|
|
63860
|
+
if (message.attachments != null && Object.hasOwnProperty.call(message, "attachments"))
|
|
63861
|
+
for (var keys = Object.keys(message.attachments), i = 0; i < keys.length; ++i)
|
|
63862
|
+
writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.attachments[keys[i]]).ldelim();
|
|
63863
|
+
if (message.query != null && Object.hasOwnProperty.call(message, "query"))
|
|
63864
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.query);
|
|
63865
|
+
if (message.prepareThenExecute != null && Object.hasOwnProperty.call(message, "prepareThenExecute"))
|
|
63866
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.prepareThenExecute);
|
|
63867
|
+
return writer;
|
|
63868
|
+
};
|
|
63869
|
+
|
|
63870
|
+
/**
|
|
63871
|
+
* Encodes the specified AdaptMessageAction message, length delimited. Does not implicitly {@link google.spanner.executor.v1.AdaptMessageAction.verify|verify} messages.
|
|
63872
|
+
* @function encodeDelimited
|
|
63873
|
+
* @memberof google.spanner.executor.v1.AdaptMessageAction
|
|
63874
|
+
* @static
|
|
63875
|
+
* @param {google.spanner.executor.v1.IAdaptMessageAction} message AdaptMessageAction message or plain object to encode
|
|
63876
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
63877
|
+
* @returns {$protobuf.Writer} Writer
|
|
63878
|
+
*/
|
|
63879
|
+
AdaptMessageAction.encodeDelimited = function encodeDelimited(message, writer) {
|
|
63880
|
+
return this.encode(message, writer).ldelim();
|
|
63881
|
+
};
|
|
63882
|
+
|
|
63883
|
+
/**
|
|
63884
|
+
* Decodes an AdaptMessageAction message from the specified reader or buffer.
|
|
63885
|
+
* @function decode
|
|
63886
|
+
* @memberof google.spanner.executor.v1.AdaptMessageAction
|
|
63887
|
+
* @static
|
|
63888
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
63889
|
+
* @param {number} [length] Message length if known beforehand
|
|
63890
|
+
* @returns {google.spanner.executor.v1.AdaptMessageAction} AdaptMessageAction
|
|
63891
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
63892
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
63893
|
+
*/
|
|
63894
|
+
AdaptMessageAction.decode = function decode(reader, length, error) {
|
|
63895
|
+
if (!(reader instanceof $Reader))
|
|
63896
|
+
reader = $Reader.create(reader);
|
|
63897
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.executor.v1.AdaptMessageAction(), key, value;
|
|
63898
|
+
while (reader.pos < end) {
|
|
63899
|
+
var tag = reader.uint32();
|
|
63900
|
+
if (tag === error)
|
|
63901
|
+
break;
|
|
63902
|
+
switch (tag >>> 3) {
|
|
63903
|
+
case 1: {
|
|
63904
|
+
message.databaseUri = reader.string();
|
|
63905
|
+
break;
|
|
63906
|
+
}
|
|
63907
|
+
case 2: {
|
|
63908
|
+
message.protocol = reader.string();
|
|
63909
|
+
break;
|
|
63910
|
+
}
|
|
63911
|
+
case 3: {
|
|
63912
|
+
message.payload = reader.bytes();
|
|
63913
|
+
break;
|
|
63914
|
+
}
|
|
63915
|
+
case 4: {
|
|
63916
|
+
if (message.attachments === $util.emptyObject)
|
|
63917
|
+
message.attachments = {};
|
|
63918
|
+
var end2 = reader.uint32() + reader.pos;
|
|
63919
|
+
key = "";
|
|
63920
|
+
value = "";
|
|
63921
|
+
while (reader.pos < end2) {
|
|
63922
|
+
var tag2 = reader.uint32();
|
|
63923
|
+
switch (tag2 >>> 3) {
|
|
63924
|
+
case 1:
|
|
63925
|
+
key = reader.string();
|
|
63926
|
+
break;
|
|
63927
|
+
case 2:
|
|
63928
|
+
value = reader.string();
|
|
63929
|
+
break;
|
|
63930
|
+
default:
|
|
63931
|
+
reader.skipType(tag2 & 7);
|
|
63932
|
+
break;
|
|
63933
|
+
}
|
|
63934
|
+
}
|
|
63935
|
+
message.attachments[key] = value;
|
|
63936
|
+
break;
|
|
63937
|
+
}
|
|
63938
|
+
case 5: {
|
|
63939
|
+
message.query = reader.string();
|
|
63940
|
+
break;
|
|
63941
|
+
}
|
|
63942
|
+
case 6: {
|
|
63943
|
+
message.prepareThenExecute = reader.bool();
|
|
63944
|
+
break;
|
|
63945
|
+
}
|
|
63946
|
+
default:
|
|
63947
|
+
reader.skipType(tag & 7);
|
|
63948
|
+
break;
|
|
63949
|
+
}
|
|
63950
|
+
}
|
|
63951
|
+
return message;
|
|
63952
|
+
};
|
|
63953
|
+
|
|
63954
|
+
/**
|
|
63955
|
+
* Decodes an AdaptMessageAction message from the specified reader or buffer, length delimited.
|
|
63956
|
+
* @function decodeDelimited
|
|
63957
|
+
* @memberof google.spanner.executor.v1.AdaptMessageAction
|
|
63958
|
+
* @static
|
|
63959
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
63960
|
+
* @returns {google.spanner.executor.v1.AdaptMessageAction} AdaptMessageAction
|
|
63961
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
63962
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
63963
|
+
*/
|
|
63964
|
+
AdaptMessageAction.decodeDelimited = function decodeDelimited(reader) {
|
|
63965
|
+
if (!(reader instanceof $Reader))
|
|
63966
|
+
reader = new $Reader(reader);
|
|
63967
|
+
return this.decode(reader, reader.uint32());
|
|
63968
|
+
};
|
|
63969
|
+
|
|
63970
|
+
/**
|
|
63971
|
+
* Verifies an AdaptMessageAction message.
|
|
63972
|
+
* @function verify
|
|
63973
|
+
* @memberof google.spanner.executor.v1.AdaptMessageAction
|
|
63974
|
+
* @static
|
|
63975
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
63976
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
63977
|
+
*/
|
|
63978
|
+
AdaptMessageAction.verify = function verify(message) {
|
|
63979
|
+
if (typeof message !== "object" || message === null)
|
|
63980
|
+
return "object expected";
|
|
63981
|
+
if (message.databaseUri != null && message.hasOwnProperty("databaseUri"))
|
|
63982
|
+
if (!$util.isString(message.databaseUri))
|
|
63983
|
+
return "databaseUri: string expected";
|
|
63984
|
+
if (message.protocol != null && message.hasOwnProperty("protocol"))
|
|
63985
|
+
if (!$util.isString(message.protocol))
|
|
63986
|
+
return "protocol: string expected";
|
|
63987
|
+
if (message.payload != null && message.hasOwnProperty("payload"))
|
|
63988
|
+
if (!(message.payload && typeof message.payload.length === "number" || $util.isString(message.payload)))
|
|
63989
|
+
return "payload: buffer expected";
|
|
63990
|
+
if (message.attachments != null && message.hasOwnProperty("attachments")) {
|
|
63991
|
+
if (!$util.isObject(message.attachments))
|
|
63992
|
+
return "attachments: object expected";
|
|
63993
|
+
var key = Object.keys(message.attachments);
|
|
63994
|
+
for (var i = 0; i < key.length; ++i)
|
|
63995
|
+
if (!$util.isString(message.attachments[key[i]]))
|
|
63996
|
+
return "attachments: string{k:string} expected";
|
|
63997
|
+
}
|
|
63998
|
+
if (message.query != null && message.hasOwnProperty("query"))
|
|
63999
|
+
if (!$util.isString(message.query))
|
|
64000
|
+
return "query: string expected";
|
|
64001
|
+
if (message.prepareThenExecute != null && message.hasOwnProperty("prepareThenExecute"))
|
|
64002
|
+
if (typeof message.prepareThenExecute !== "boolean")
|
|
64003
|
+
return "prepareThenExecute: boolean expected";
|
|
64004
|
+
return null;
|
|
64005
|
+
};
|
|
64006
|
+
|
|
64007
|
+
/**
|
|
64008
|
+
* Creates an AdaptMessageAction message from a plain object. Also converts values to their respective internal types.
|
|
64009
|
+
* @function fromObject
|
|
64010
|
+
* @memberof google.spanner.executor.v1.AdaptMessageAction
|
|
64011
|
+
* @static
|
|
64012
|
+
* @param {Object.<string,*>} object Plain object
|
|
64013
|
+
* @returns {google.spanner.executor.v1.AdaptMessageAction} AdaptMessageAction
|
|
64014
|
+
*/
|
|
64015
|
+
AdaptMessageAction.fromObject = function fromObject(object) {
|
|
64016
|
+
if (object instanceof $root.google.spanner.executor.v1.AdaptMessageAction)
|
|
64017
|
+
return object;
|
|
64018
|
+
var message = new $root.google.spanner.executor.v1.AdaptMessageAction();
|
|
64019
|
+
if (object.databaseUri != null)
|
|
64020
|
+
message.databaseUri = String(object.databaseUri);
|
|
64021
|
+
if (object.protocol != null)
|
|
64022
|
+
message.protocol = String(object.protocol);
|
|
64023
|
+
if (object.payload != null)
|
|
64024
|
+
if (typeof object.payload === "string")
|
|
64025
|
+
$util.base64.decode(object.payload, message.payload = $util.newBuffer($util.base64.length(object.payload)), 0);
|
|
64026
|
+
else if (object.payload.length >= 0)
|
|
64027
|
+
message.payload = object.payload;
|
|
64028
|
+
if (object.attachments) {
|
|
64029
|
+
if (typeof object.attachments !== "object")
|
|
64030
|
+
throw TypeError(".google.spanner.executor.v1.AdaptMessageAction.attachments: object expected");
|
|
64031
|
+
message.attachments = {};
|
|
64032
|
+
for (var keys = Object.keys(object.attachments), i = 0; i < keys.length; ++i)
|
|
64033
|
+
message.attachments[keys[i]] = String(object.attachments[keys[i]]);
|
|
64034
|
+
}
|
|
64035
|
+
if (object.query != null)
|
|
64036
|
+
message.query = String(object.query);
|
|
64037
|
+
if (object.prepareThenExecute != null)
|
|
64038
|
+
message.prepareThenExecute = Boolean(object.prepareThenExecute);
|
|
64039
|
+
return message;
|
|
64040
|
+
};
|
|
64041
|
+
|
|
64042
|
+
/**
|
|
64043
|
+
* Creates a plain object from an AdaptMessageAction message. Also converts values to other types if specified.
|
|
64044
|
+
* @function toObject
|
|
64045
|
+
* @memberof google.spanner.executor.v1.AdaptMessageAction
|
|
64046
|
+
* @static
|
|
64047
|
+
* @param {google.spanner.executor.v1.AdaptMessageAction} message AdaptMessageAction
|
|
64048
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
64049
|
+
* @returns {Object.<string,*>} Plain object
|
|
64050
|
+
*/
|
|
64051
|
+
AdaptMessageAction.toObject = function toObject(message, options) {
|
|
64052
|
+
if (!options)
|
|
64053
|
+
options = {};
|
|
64054
|
+
var object = {};
|
|
64055
|
+
if (options.objects || options.defaults)
|
|
64056
|
+
object.attachments = {};
|
|
64057
|
+
if (options.defaults) {
|
|
64058
|
+
object.databaseUri = "";
|
|
64059
|
+
object.protocol = "";
|
|
64060
|
+
if (options.bytes === String)
|
|
64061
|
+
object.payload = "";
|
|
64062
|
+
else {
|
|
64063
|
+
object.payload = [];
|
|
64064
|
+
if (options.bytes !== Array)
|
|
64065
|
+
object.payload = $util.newBuffer(object.payload);
|
|
64066
|
+
}
|
|
64067
|
+
object.query = "";
|
|
64068
|
+
object.prepareThenExecute = false;
|
|
64069
|
+
}
|
|
64070
|
+
if (message.databaseUri != null && message.hasOwnProperty("databaseUri"))
|
|
64071
|
+
object.databaseUri = message.databaseUri;
|
|
64072
|
+
if (message.protocol != null && message.hasOwnProperty("protocol"))
|
|
64073
|
+
object.protocol = message.protocol;
|
|
64074
|
+
if (message.payload != null && message.hasOwnProperty("payload"))
|
|
64075
|
+
object.payload = options.bytes === String ? $util.base64.encode(message.payload, 0, message.payload.length) : options.bytes === Array ? Array.prototype.slice.call(message.payload) : message.payload;
|
|
64076
|
+
var keys2;
|
|
64077
|
+
if (message.attachments && (keys2 = Object.keys(message.attachments)).length) {
|
|
64078
|
+
object.attachments = {};
|
|
64079
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
64080
|
+
object.attachments[keys2[j]] = message.attachments[keys2[j]];
|
|
64081
|
+
}
|
|
64082
|
+
if (message.query != null && message.hasOwnProperty("query"))
|
|
64083
|
+
object.query = message.query;
|
|
64084
|
+
if (message.prepareThenExecute != null && message.hasOwnProperty("prepareThenExecute"))
|
|
64085
|
+
object.prepareThenExecute = message.prepareThenExecute;
|
|
64086
|
+
return object;
|
|
64087
|
+
};
|
|
64088
|
+
|
|
64089
|
+
/**
|
|
64090
|
+
* Converts this AdaptMessageAction to JSON.
|
|
64091
|
+
* @function toJSON
|
|
64092
|
+
* @memberof google.spanner.executor.v1.AdaptMessageAction
|
|
64093
|
+
* @instance
|
|
64094
|
+
* @returns {Object.<string,*>} JSON object
|
|
64095
|
+
*/
|
|
64096
|
+
AdaptMessageAction.prototype.toJSON = function toJSON() {
|
|
64097
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
64098
|
+
};
|
|
64099
|
+
|
|
64100
|
+
/**
|
|
64101
|
+
* Gets the default type url for AdaptMessageAction
|
|
64102
|
+
* @function getTypeUrl
|
|
64103
|
+
* @memberof google.spanner.executor.v1.AdaptMessageAction
|
|
64104
|
+
* @static
|
|
64105
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
64106
|
+
* @returns {string} The default type url
|
|
64107
|
+
*/
|
|
64108
|
+
AdaptMessageAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
64109
|
+
if (typeUrlPrefix === undefined) {
|
|
64110
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
64111
|
+
}
|
|
64112
|
+
return typeUrlPrefix + "/google.spanner.executor.v1.AdaptMessageAction";
|
|
64113
|
+
};
|
|
64114
|
+
|
|
64115
|
+
return AdaptMessageAction;
|
|
64116
|
+
})();
|
|
64117
|
+
|
|
63392
64118
|
v1.ListCloudDatabasesAction = (function() {
|
|
63393
64119
|
|
|
63394
64120
|
/**
|
|
@@ -67773,6 +68499,303 @@
|
|
|
67773
68499
|
return CancelOperationAction;
|
|
67774
68500
|
})();
|
|
67775
68501
|
|
|
68502
|
+
v1.AddSplitPointsAction = (function() {
|
|
68503
|
+
|
|
68504
|
+
/**
|
|
68505
|
+
* Properties of an AddSplitPointsAction.
|
|
68506
|
+
* @memberof google.spanner.executor.v1
|
|
68507
|
+
* @interface IAddSplitPointsAction
|
|
68508
|
+
* @property {string|null} [projectId] AddSplitPointsAction projectId
|
|
68509
|
+
* @property {string|null} [instanceId] AddSplitPointsAction instanceId
|
|
68510
|
+
* @property {string|null} [databaseId] AddSplitPointsAction databaseId
|
|
68511
|
+
* @property {Array.<google.spanner.admin.database.v1.ISplitPoints>|null} [splitPoints] AddSplitPointsAction splitPoints
|
|
68512
|
+
*/
|
|
68513
|
+
|
|
68514
|
+
/**
|
|
68515
|
+
* Constructs a new AddSplitPointsAction.
|
|
68516
|
+
* @memberof google.spanner.executor.v1
|
|
68517
|
+
* @classdesc Represents an AddSplitPointsAction.
|
|
68518
|
+
* @implements IAddSplitPointsAction
|
|
68519
|
+
* @constructor
|
|
68520
|
+
* @param {google.spanner.executor.v1.IAddSplitPointsAction=} [properties] Properties to set
|
|
68521
|
+
*/
|
|
68522
|
+
function AddSplitPointsAction(properties) {
|
|
68523
|
+
this.splitPoints = [];
|
|
68524
|
+
if (properties)
|
|
68525
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
68526
|
+
if (properties[keys[i]] != null)
|
|
68527
|
+
this[keys[i]] = properties[keys[i]];
|
|
68528
|
+
}
|
|
68529
|
+
|
|
68530
|
+
/**
|
|
68531
|
+
* AddSplitPointsAction projectId.
|
|
68532
|
+
* @member {string} projectId
|
|
68533
|
+
* @memberof google.spanner.executor.v1.AddSplitPointsAction
|
|
68534
|
+
* @instance
|
|
68535
|
+
*/
|
|
68536
|
+
AddSplitPointsAction.prototype.projectId = "";
|
|
68537
|
+
|
|
68538
|
+
/**
|
|
68539
|
+
* AddSplitPointsAction instanceId.
|
|
68540
|
+
* @member {string} instanceId
|
|
68541
|
+
* @memberof google.spanner.executor.v1.AddSplitPointsAction
|
|
68542
|
+
* @instance
|
|
68543
|
+
*/
|
|
68544
|
+
AddSplitPointsAction.prototype.instanceId = "";
|
|
68545
|
+
|
|
68546
|
+
/**
|
|
68547
|
+
* AddSplitPointsAction databaseId.
|
|
68548
|
+
* @member {string} databaseId
|
|
68549
|
+
* @memberof google.spanner.executor.v1.AddSplitPointsAction
|
|
68550
|
+
* @instance
|
|
68551
|
+
*/
|
|
68552
|
+
AddSplitPointsAction.prototype.databaseId = "";
|
|
68553
|
+
|
|
68554
|
+
/**
|
|
68555
|
+
* AddSplitPointsAction splitPoints.
|
|
68556
|
+
* @member {Array.<google.spanner.admin.database.v1.ISplitPoints>} splitPoints
|
|
68557
|
+
* @memberof google.spanner.executor.v1.AddSplitPointsAction
|
|
68558
|
+
* @instance
|
|
68559
|
+
*/
|
|
68560
|
+
AddSplitPointsAction.prototype.splitPoints = $util.emptyArray;
|
|
68561
|
+
|
|
68562
|
+
/**
|
|
68563
|
+
* Creates a new AddSplitPointsAction instance using the specified properties.
|
|
68564
|
+
* @function create
|
|
68565
|
+
* @memberof google.spanner.executor.v1.AddSplitPointsAction
|
|
68566
|
+
* @static
|
|
68567
|
+
* @param {google.spanner.executor.v1.IAddSplitPointsAction=} [properties] Properties to set
|
|
68568
|
+
* @returns {google.spanner.executor.v1.AddSplitPointsAction} AddSplitPointsAction instance
|
|
68569
|
+
*/
|
|
68570
|
+
AddSplitPointsAction.create = function create(properties) {
|
|
68571
|
+
return new AddSplitPointsAction(properties);
|
|
68572
|
+
};
|
|
68573
|
+
|
|
68574
|
+
/**
|
|
68575
|
+
* Encodes the specified AddSplitPointsAction message. Does not implicitly {@link google.spanner.executor.v1.AddSplitPointsAction.verify|verify} messages.
|
|
68576
|
+
* @function encode
|
|
68577
|
+
* @memberof google.spanner.executor.v1.AddSplitPointsAction
|
|
68578
|
+
* @static
|
|
68579
|
+
* @param {google.spanner.executor.v1.IAddSplitPointsAction} message AddSplitPointsAction message or plain object to encode
|
|
68580
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
68581
|
+
* @returns {$protobuf.Writer} Writer
|
|
68582
|
+
*/
|
|
68583
|
+
AddSplitPointsAction.encode = function encode(message, writer) {
|
|
68584
|
+
if (!writer)
|
|
68585
|
+
writer = $Writer.create();
|
|
68586
|
+
if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
|
|
68587
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
|
|
68588
|
+
if (message.instanceId != null && Object.hasOwnProperty.call(message, "instanceId"))
|
|
68589
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.instanceId);
|
|
68590
|
+
if (message.databaseId != null && Object.hasOwnProperty.call(message, "databaseId"))
|
|
68591
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.databaseId);
|
|
68592
|
+
if (message.splitPoints != null && message.splitPoints.length)
|
|
68593
|
+
for (var i = 0; i < message.splitPoints.length; ++i)
|
|
68594
|
+
$root.google.spanner.admin.database.v1.SplitPoints.encode(message.splitPoints[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
68595
|
+
return writer;
|
|
68596
|
+
};
|
|
68597
|
+
|
|
68598
|
+
/**
|
|
68599
|
+
* Encodes the specified AddSplitPointsAction message, length delimited. Does not implicitly {@link google.spanner.executor.v1.AddSplitPointsAction.verify|verify} messages.
|
|
68600
|
+
* @function encodeDelimited
|
|
68601
|
+
* @memberof google.spanner.executor.v1.AddSplitPointsAction
|
|
68602
|
+
* @static
|
|
68603
|
+
* @param {google.spanner.executor.v1.IAddSplitPointsAction} message AddSplitPointsAction message or plain object to encode
|
|
68604
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
68605
|
+
* @returns {$protobuf.Writer} Writer
|
|
68606
|
+
*/
|
|
68607
|
+
AddSplitPointsAction.encodeDelimited = function encodeDelimited(message, writer) {
|
|
68608
|
+
return this.encode(message, writer).ldelim();
|
|
68609
|
+
};
|
|
68610
|
+
|
|
68611
|
+
/**
|
|
68612
|
+
* Decodes an AddSplitPointsAction message from the specified reader or buffer.
|
|
68613
|
+
* @function decode
|
|
68614
|
+
* @memberof google.spanner.executor.v1.AddSplitPointsAction
|
|
68615
|
+
* @static
|
|
68616
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
68617
|
+
* @param {number} [length] Message length if known beforehand
|
|
68618
|
+
* @returns {google.spanner.executor.v1.AddSplitPointsAction} AddSplitPointsAction
|
|
68619
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
68620
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
68621
|
+
*/
|
|
68622
|
+
AddSplitPointsAction.decode = function decode(reader, length, error) {
|
|
68623
|
+
if (!(reader instanceof $Reader))
|
|
68624
|
+
reader = $Reader.create(reader);
|
|
68625
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.executor.v1.AddSplitPointsAction();
|
|
68626
|
+
while (reader.pos < end) {
|
|
68627
|
+
var tag = reader.uint32();
|
|
68628
|
+
if (tag === error)
|
|
68629
|
+
break;
|
|
68630
|
+
switch (tag >>> 3) {
|
|
68631
|
+
case 1: {
|
|
68632
|
+
message.projectId = reader.string();
|
|
68633
|
+
break;
|
|
68634
|
+
}
|
|
68635
|
+
case 2: {
|
|
68636
|
+
message.instanceId = reader.string();
|
|
68637
|
+
break;
|
|
68638
|
+
}
|
|
68639
|
+
case 3: {
|
|
68640
|
+
message.databaseId = reader.string();
|
|
68641
|
+
break;
|
|
68642
|
+
}
|
|
68643
|
+
case 4: {
|
|
68644
|
+
if (!(message.splitPoints && message.splitPoints.length))
|
|
68645
|
+
message.splitPoints = [];
|
|
68646
|
+
message.splitPoints.push($root.google.spanner.admin.database.v1.SplitPoints.decode(reader, reader.uint32()));
|
|
68647
|
+
break;
|
|
68648
|
+
}
|
|
68649
|
+
default:
|
|
68650
|
+
reader.skipType(tag & 7);
|
|
68651
|
+
break;
|
|
68652
|
+
}
|
|
68653
|
+
}
|
|
68654
|
+
return message;
|
|
68655
|
+
};
|
|
68656
|
+
|
|
68657
|
+
/**
|
|
68658
|
+
* Decodes an AddSplitPointsAction message from the specified reader or buffer, length delimited.
|
|
68659
|
+
* @function decodeDelimited
|
|
68660
|
+
* @memberof google.spanner.executor.v1.AddSplitPointsAction
|
|
68661
|
+
* @static
|
|
68662
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
68663
|
+
* @returns {google.spanner.executor.v1.AddSplitPointsAction} AddSplitPointsAction
|
|
68664
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
68665
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
68666
|
+
*/
|
|
68667
|
+
AddSplitPointsAction.decodeDelimited = function decodeDelimited(reader) {
|
|
68668
|
+
if (!(reader instanceof $Reader))
|
|
68669
|
+
reader = new $Reader(reader);
|
|
68670
|
+
return this.decode(reader, reader.uint32());
|
|
68671
|
+
};
|
|
68672
|
+
|
|
68673
|
+
/**
|
|
68674
|
+
* Verifies an AddSplitPointsAction message.
|
|
68675
|
+
* @function verify
|
|
68676
|
+
* @memberof google.spanner.executor.v1.AddSplitPointsAction
|
|
68677
|
+
* @static
|
|
68678
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
68679
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
68680
|
+
*/
|
|
68681
|
+
AddSplitPointsAction.verify = function verify(message) {
|
|
68682
|
+
if (typeof message !== "object" || message === null)
|
|
68683
|
+
return "object expected";
|
|
68684
|
+
if (message.projectId != null && message.hasOwnProperty("projectId"))
|
|
68685
|
+
if (!$util.isString(message.projectId))
|
|
68686
|
+
return "projectId: string expected";
|
|
68687
|
+
if (message.instanceId != null && message.hasOwnProperty("instanceId"))
|
|
68688
|
+
if (!$util.isString(message.instanceId))
|
|
68689
|
+
return "instanceId: string expected";
|
|
68690
|
+
if (message.databaseId != null && message.hasOwnProperty("databaseId"))
|
|
68691
|
+
if (!$util.isString(message.databaseId))
|
|
68692
|
+
return "databaseId: string expected";
|
|
68693
|
+
if (message.splitPoints != null && message.hasOwnProperty("splitPoints")) {
|
|
68694
|
+
if (!Array.isArray(message.splitPoints))
|
|
68695
|
+
return "splitPoints: array expected";
|
|
68696
|
+
for (var i = 0; i < message.splitPoints.length; ++i) {
|
|
68697
|
+
var error = $root.google.spanner.admin.database.v1.SplitPoints.verify(message.splitPoints[i]);
|
|
68698
|
+
if (error)
|
|
68699
|
+
return "splitPoints." + error;
|
|
68700
|
+
}
|
|
68701
|
+
}
|
|
68702
|
+
return null;
|
|
68703
|
+
};
|
|
68704
|
+
|
|
68705
|
+
/**
|
|
68706
|
+
* Creates an AddSplitPointsAction message from a plain object. Also converts values to their respective internal types.
|
|
68707
|
+
* @function fromObject
|
|
68708
|
+
* @memberof google.spanner.executor.v1.AddSplitPointsAction
|
|
68709
|
+
* @static
|
|
68710
|
+
* @param {Object.<string,*>} object Plain object
|
|
68711
|
+
* @returns {google.spanner.executor.v1.AddSplitPointsAction} AddSplitPointsAction
|
|
68712
|
+
*/
|
|
68713
|
+
AddSplitPointsAction.fromObject = function fromObject(object) {
|
|
68714
|
+
if (object instanceof $root.google.spanner.executor.v1.AddSplitPointsAction)
|
|
68715
|
+
return object;
|
|
68716
|
+
var message = new $root.google.spanner.executor.v1.AddSplitPointsAction();
|
|
68717
|
+
if (object.projectId != null)
|
|
68718
|
+
message.projectId = String(object.projectId);
|
|
68719
|
+
if (object.instanceId != null)
|
|
68720
|
+
message.instanceId = String(object.instanceId);
|
|
68721
|
+
if (object.databaseId != null)
|
|
68722
|
+
message.databaseId = String(object.databaseId);
|
|
68723
|
+
if (object.splitPoints) {
|
|
68724
|
+
if (!Array.isArray(object.splitPoints))
|
|
68725
|
+
throw TypeError(".google.spanner.executor.v1.AddSplitPointsAction.splitPoints: array expected");
|
|
68726
|
+
message.splitPoints = [];
|
|
68727
|
+
for (var i = 0; i < object.splitPoints.length; ++i) {
|
|
68728
|
+
if (typeof object.splitPoints[i] !== "object")
|
|
68729
|
+
throw TypeError(".google.spanner.executor.v1.AddSplitPointsAction.splitPoints: object expected");
|
|
68730
|
+
message.splitPoints[i] = $root.google.spanner.admin.database.v1.SplitPoints.fromObject(object.splitPoints[i]);
|
|
68731
|
+
}
|
|
68732
|
+
}
|
|
68733
|
+
return message;
|
|
68734
|
+
};
|
|
68735
|
+
|
|
68736
|
+
/**
|
|
68737
|
+
* Creates a plain object from an AddSplitPointsAction message. Also converts values to other types if specified.
|
|
68738
|
+
* @function toObject
|
|
68739
|
+
* @memberof google.spanner.executor.v1.AddSplitPointsAction
|
|
68740
|
+
* @static
|
|
68741
|
+
* @param {google.spanner.executor.v1.AddSplitPointsAction} message AddSplitPointsAction
|
|
68742
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
68743
|
+
* @returns {Object.<string,*>} Plain object
|
|
68744
|
+
*/
|
|
68745
|
+
AddSplitPointsAction.toObject = function toObject(message, options) {
|
|
68746
|
+
if (!options)
|
|
68747
|
+
options = {};
|
|
68748
|
+
var object = {};
|
|
68749
|
+
if (options.arrays || options.defaults)
|
|
68750
|
+
object.splitPoints = [];
|
|
68751
|
+
if (options.defaults) {
|
|
68752
|
+
object.projectId = "";
|
|
68753
|
+
object.instanceId = "";
|
|
68754
|
+
object.databaseId = "";
|
|
68755
|
+
}
|
|
68756
|
+
if (message.projectId != null && message.hasOwnProperty("projectId"))
|
|
68757
|
+
object.projectId = message.projectId;
|
|
68758
|
+
if (message.instanceId != null && message.hasOwnProperty("instanceId"))
|
|
68759
|
+
object.instanceId = message.instanceId;
|
|
68760
|
+
if (message.databaseId != null && message.hasOwnProperty("databaseId"))
|
|
68761
|
+
object.databaseId = message.databaseId;
|
|
68762
|
+
if (message.splitPoints && message.splitPoints.length) {
|
|
68763
|
+
object.splitPoints = [];
|
|
68764
|
+
for (var j = 0; j < message.splitPoints.length; ++j)
|
|
68765
|
+
object.splitPoints[j] = $root.google.spanner.admin.database.v1.SplitPoints.toObject(message.splitPoints[j], options);
|
|
68766
|
+
}
|
|
68767
|
+
return object;
|
|
68768
|
+
};
|
|
68769
|
+
|
|
68770
|
+
/**
|
|
68771
|
+
* Converts this AddSplitPointsAction to JSON.
|
|
68772
|
+
* @function toJSON
|
|
68773
|
+
* @memberof google.spanner.executor.v1.AddSplitPointsAction
|
|
68774
|
+
* @instance
|
|
68775
|
+
* @returns {Object.<string,*>} JSON object
|
|
68776
|
+
*/
|
|
68777
|
+
AddSplitPointsAction.prototype.toJSON = function toJSON() {
|
|
68778
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
68779
|
+
};
|
|
68780
|
+
|
|
68781
|
+
/**
|
|
68782
|
+
* Gets the default type url for AddSplitPointsAction
|
|
68783
|
+
* @function getTypeUrl
|
|
68784
|
+
* @memberof google.spanner.executor.v1.AddSplitPointsAction
|
|
68785
|
+
* @static
|
|
68786
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
68787
|
+
* @returns {string} The default type url
|
|
68788
|
+
*/
|
|
68789
|
+
AddSplitPointsAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
68790
|
+
if (typeUrlPrefix === undefined) {
|
|
68791
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
68792
|
+
}
|
|
68793
|
+
return typeUrlPrefix + "/google.spanner.executor.v1.AddSplitPointsAction";
|
|
68794
|
+
};
|
|
68795
|
+
|
|
68796
|
+
return AddSplitPointsAction;
|
|
68797
|
+
})();
|
|
68798
|
+
|
|
67776
68799
|
v1.StartBatchTransactionAction = (function() {
|
|
67777
68800
|
|
|
67778
68801
|
/**
|
|
@@ -69867,6 +70890,7 @@
|
|
|
69867
70890
|
* @property {google.spanner.executor.v1.IAdminResult|null} [adminResult] SpannerActionOutcome adminResult
|
|
69868
70891
|
* @property {Array.<number|Long>|null} [dmlRowsModified] SpannerActionOutcome dmlRowsModified
|
|
69869
70892
|
* @property {Array.<google.spanner.executor.v1.IChangeStreamRecord>|null} [changeStreamRecords] SpannerActionOutcome changeStreamRecords
|
|
70893
|
+
* @property {number|Long|null} [snapshotIsolationTxnReadTimestamp] SpannerActionOutcome snapshotIsolationTxnReadTimestamp
|
|
69870
70894
|
*/
|
|
69871
70895
|
|
|
69872
70896
|
/**
|
|
@@ -69967,6 +70991,14 @@
|
|
|
69967
70991
|
*/
|
|
69968
70992
|
SpannerActionOutcome.prototype.changeStreamRecords = $util.emptyArray;
|
|
69969
70993
|
|
|
70994
|
+
/**
|
|
70995
|
+
* SpannerActionOutcome snapshotIsolationTxnReadTimestamp.
|
|
70996
|
+
* @member {number|Long|null|undefined} snapshotIsolationTxnReadTimestamp
|
|
70997
|
+
* @memberof google.spanner.executor.v1.SpannerActionOutcome
|
|
70998
|
+
* @instance
|
|
70999
|
+
*/
|
|
71000
|
+
SpannerActionOutcome.prototype.snapshotIsolationTxnReadTimestamp = null;
|
|
71001
|
+
|
|
69970
71002
|
// OneOf field names bound to virtual getters and setters
|
|
69971
71003
|
var $oneOfFields;
|
|
69972
71004
|
|
|
@@ -70012,6 +71044,12 @@
|
|
|
70012
71044
|
set: $util.oneOfSetter($oneOfFields)
|
|
70013
71045
|
});
|
|
70014
71046
|
|
|
71047
|
+
// Virtual OneOf for proto3 optional field
|
|
71048
|
+
Object.defineProperty(SpannerActionOutcome.prototype, "_snapshotIsolationTxnReadTimestamp", {
|
|
71049
|
+
get: $util.oneOfGetter($oneOfFields = ["snapshotIsolationTxnReadTimestamp"]),
|
|
71050
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
71051
|
+
});
|
|
71052
|
+
|
|
70015
71053
|
/**
|
|
70016
71054
|
* Creates a new SpannerActionOutcome instance using the specified properties.
|
|
70017
71055
|
* @function create
|
|
@@ -70062,6 +71100,8 @@
|
|
|
70062
71100
|
if (message.changeStreamRecords != null && message.changeStreamRecords.length)
|
|
70063
71101
|
for (var i = 0; i < message.changeStreamRecords.length; ++i)
|
|
70064
71102
|
$root.google.spanner.executor.v1.ChangeStreamRecord.encode(message.changeStreamRecords[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
71103
|
+
if (message.snapshotIsolationTxnReadTimestamp != null && Object.hasOwnProperty.call(message, "snapshotIsolationTxnReadTimestamp"))
|
|
71104
|
+
writer.uint32(/* id 11, wireType 0 =*/88).int64(message.snapshotIsolationTxnReadTimestamp);
|
|
70065
71105
|
return writer;
|
|
70066
71106
|
};
|
|
70067
71107
|
|
|
@@ -70149,6 +71189,10 @@
|
|
|
70149
71189
|
message.changeStreamRecords.push($root.google.spanner.executor.v1.ChangeStreamRecord.decode(reader, reader.uint32()));
|
|
70150
71190
|
break;
|
|
70151
71191
|
}
|
|
71192
|
+
case 11: {
|
|
71193
|
+
message.snapshotIsolationTxnReadTimestamp = reader.int64();
|
|
71194
|
+
break;
|
|
71195
|
+
}
|
|
70152
71196
|
default:
|
|
70153
71197
|
reader.skipType(tag & 7);
|
|
70154
71198
|
break;
|
|
@@ -70260,6 +71304,11 @@
|
|
|
70260
71304
|
return "changeStreamRecords." + error;
|
|
70261
71305
|
}
|
|
70262
71306
|
}
|
|
71307
|
+
if (message.snapshotIsolationTxnReadTimestamp != null && message.hasOwnProperty("snapshotIsolationTxnReadTimestamp")) {
|
|
71308
|
+
properties._snapshotIsolationTxnReadTimestamp = 1;
|
|
71309
|
+
if (!$util.isInteger(message.snapshotIsolationTxnReadTimestamp) && !(message.snapshotIsolationTxnReadTimestamp && $util.isInteger(message.snapshotIsolationTxnReadTimestamp.low) && $util.isInteger(message.snapshotIsolationTxnReadTimestamp.high)))
|
|
71310
|
+
return "snapshotIsolationTxnReadTimestamp: integer|Long expected";
|
|
71311
|
+
}
|
|
70263
71312
|
return null;
|
|
70264
71313
|
};
|
|
70265
71314
|
|
|
@@ -70341,6 +71390,15 @@
|
|
|
70341
71390
|
message.changeStreamRecords[i] = $root.google.spanner.executor.v1.ChangeStreamRecord.fromObject(object.changeStreamRecords[i]);
|
|
70342
71391
|
}
|
|
70343
71392
|
}
|
|
71393
|
+
if (object.snapshotIsolationTxnReadTimestamp != null)
|
|
71394
|
+
if ($util.Long)
|
|
71395
|
+
(message.snapshotIsolationTxnReadTimestamp = $util.Long.fromValue(object.snapshotIsolationTxnReadTimestamp)).unsigned = false;
|
|
71396
|
+
else if (typeof object.snapshotIsolationTxnReadTimestamp === "string")
|
|
71397
|
+
message.snapshotIsolationTxnReadTimestamp = parseInt(object.snapshotIsolationTxnReadTimestamp, 10);
|
|
71398
|
+
else if (typeof object.snapshotIsolationTxnReadTimestamp === "number")
|
|
71399
|
+
message.snapshotIsolationTxnReadTimestamp = object.snapshotIsolationTxnReadTimestamp;
|
|
71400
|
+
else if (typeof object.snapshotIsolationTxnReadTimestamp === "object")
|
|
71401
|
+
message.snapshotIsolationTxnReadTimestamp = new $util.LongBits(object.snapshotIsolationTxnReadTimestamp.low >>> 0, object.snapshotIsolationTxnReadTimestamp.high >>> 0).toNumber();
|
|
70344
71402
|
return message;
|
|
70345
71403
|
};
|
|
70346
71404
|
|
|
@@ -70415,6 +71473,14 @@
|
|
|
70415
71473
|
for (var j = 0; j < message.changeStreamRecords.length; ++j)
|
|
70416
71474
|
object.changeStreamRecords[j] = $root.google.spanner.executor.v1.ChangeStreamRecord.toObject(message.changeStreamRecords[j], options);
|
|
70417
71475
|
}
|
|
71476
|
+
if (message.snapshotIsolationTxnReadTimestamp != null && message.hasOwnProperty("snapshotIsolationTxnReadTimestamp")) {
|
|
71477
|
+
if (typeof message.snapshotIsolationTxnReadTimestamp === "number")
|
|
71478
|
+
object.snapshotIsolationTxnReadTimestamp = options.longs === String ? String(message.snapshotIsolationTxnReadTimestamp) : message.snapshotIsolationTxnReadTimestamp;
|
|
71479
|
+
else
|
|
71480
|
+
object.snapshotIsolationTxnReadTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.snapshotIsolationTxnReadTimestamp) : options.longs === Number ? new $util.LongBits(message.snapshotIsolationTxnReadTimestamp.low >>> 0, message.snapshotIsolationTxnReadTimestamp.high >>> 0).toNumber() : message.snapshotIsolationTxnReadTimestamp;
|
|
71481
|
+
if (options.oneofs)
|
|
71482
|
+
object._snapshotIsolationTxnReadTimestamp = "snapshotIsolationTxnReadTimestamp";
|
|
71483
|
+
}
|
|
70418
71484
|
return object;
|
|
70419
71485
|
};
|
|
70420
71486
|
|
|
@@ -94419,6 +95485,7 @@
|
|
|
94419
95485
|
* @property {Array.<google.protobuf.IListValue>|null} [rows] ResultSet rows
|
|
94420
95486
|
* @property {google.spanner.v1.IResultSetStats|null} [stats] ResultSet stats
|
|
94421
95487
|
* @property {google.spanner.v1.IMultiplexedSessionPrecommitToken|null} [precommitToken] ResultSet precommitToken
|
|
95488
|
+
* @property {google.spanner.v1.ICacheUpdate|null} [cacheUpdate] ResultSet cacheUpdate
|
|
94422
95489
|
*/
|
|
94423
95490
|
|
|
94424
95491
|
/**
|
|
@@ -94469,6 +95536,14 @@
|
|
|
94469
95536
|
*/
|
|
94470
95537
|
ResultSet.prototype.precommitToken = null;
|
|
94471
95538
|
|
|
95539
|
+
/**
|
|
95540
|
+
* ResultSet cacheUpdate.
|
|
95541
|
+
* @member {google.spanner.v1.ICacheUpdate|null|undefined} cacheUpdate
|
|
95542
|
+
* @memberof google.spanner.v1.ResultSet
|
|
95543
|
+
* @instance
|
|
95544
|
+
*/
|
|
95545
|
+
ResultSet.prototype.cacheUpdate = null;
|
|
95546
|
+
|
|
94472
95547
|
/**
|
|
94473
95548
|
* Creates a new ResultSet instance using the specified properties.
|
|
94474
95549
|
* @function create
|
|
@@ -94502,6 +95577,8 @@
|
|
|
94502
95577
|
$root.google.spanner.v1.ResultSetStats.encode(message.stats, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
94503
95578
|
if (message.precommitToken != null && Object.hasOwnProperty.call(message, "precommitToken"))
|
|
94504
95579
|
$root.google.spanner.v1.MultiplexedSessionPrecommitToken.encode(message.precommitToken, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
95580
|
+
if (message.cacheUpdate != null && Object.hasOwnProperty.call(message, "cacheUpdate"))
|
|
95581
|
+
$root.google.spanner.v1.CacheUpdate.encode(message.cacheUpdate, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
94505
95582
|
return writer;
|
|
94506
95583
|
};
|
|
94507
95584
|
|
|
@@ -94556,6 +95633,10 @@
|
|
|
94556
95633
|
message.precommitToken = $root.google.spanner.v1.MultiplexedSessionPrecommitToken.decode(reader, reader.uint32());
|
|
94557
95634
|
break;
|
|
94558
95635
|
}
|
|
95636
|
+
case 6: {
|
|
95637
|
+
message.cacheUpdate = $root.google.spanner.v1.CacheUpdate.decode(reader, reader.uint32());
|
|
95638
|
+
break;
|
|
95639
|
+
}
|
|
94559
95640
|
default:
|
|
94560
95641
|
reader.skipType(tag & 7);
|
|
94561
95642
|
break;
|
|
@@ -94615,6 +95696,11 @@
|
|
|
94615
95696
|
if (error)
|
|
94616
95697
|
return "precommitToken." + error;
|
|
94617
95698
|
}
|
|
95699
|
+
if (message.cacheUpdate != null && message.hasOwnProperty("cacheUpdate")) {
|
|
95700
|
+
var error = $root.google.spanner.v1.CacheUpdate.verify(message.cacheUpdate);
|
|
95701
|
+
if (error)
|
|
95702
|
+
return "cacheUpdate." + error;
|
|
95703
|
+
}
|
|
94618
95704
|
return null;
|
|
94619
95705
|
};
|
|
94620
95706
|
|
|
@@ -94655,6 +95741,11 @@
|
|
|
94655
95741
|
throw TypeError(".google.spanner.v1.ResultSet.precommitToken: object expected");
|
|
94656
95742
|
message.precommitToken = $root.google.spanner.v1.MultiplexedSessionPrecommitToken.fromObject(object.precommitToken);
|
|
94657
95743
|
}
|
|
95744
|
+
if (object.cacheUpdate != null) {
|
|
95745
|
+
if (typeof object.cacheUpdate !== "object")
|
|
95746
|
+
throw TypeError(".google.spanner.v1.ResultSet.cacheUpdate: object expected");
|
|
95747
|
+
message.cacheUpdate = $root.google.spanner.v1.CacheUpdate.fromObject(object.cacheUpdate);
|
|
95748
|
+
}
|
|
94658
95749
|
return message;
|
|
94659
95750
|
};
|
|
94660
95751
|
|
|
@@ -94677,6 +95768,7 @@
|
|
|
94677
95768
|
object.metadata = null;
|
|
94678
95769
|
object.stats = null;
|
|
94679
95770
|
object.precommitToken = null;
|
|
95771
|
+
object.cacheUpdate = null;
|
|
94680
95772
|
}
|
|
94681
95773
|
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
94682
95774
|
object.metadata = $root.google.spanner.v1.ResultSetMetadata.toObject(message.metadata, options);
|
|
@@ -94689,6 +95781,8 @@
|
|
|
94689
95781
|
object.stats = $root.google.spanner.v1.ResultSetStats.toObject(message.stats, options);
|
|
94690
95782
|
if (message.precommitToken != null && message.hasOwnProperty("precommitToken"))
|
|
94691
95783
|
object.precommitToken = $root.google.spanner.v1.MultiplexedSessionPrecommitToken.toObject(message.precommitToken, options);
|
|
95784
|
+
if (message.cacheUpdate != null && message.hasOwnProperty("cacheUpdate"))
|
|
95785
|
+
object.cacheUpdate = $root.google.spanner.v1.CacheUpdate.toObject(message.cacheUpdate, options);
|
|
94692
95786
|
return object;
|
|
94693
95787
|
};
|
|
94694
95788
|
|