diff --git a/protos/protos.d.ts b/protos/protos.d.ts index a1f42c3c3..cd998e336 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -18879,9 +18879,6 @@ export namespace google { /** ReadAction limit. */ public limit: number; - /** ReadAction _index. */ - public _index?: "index"; - /** * Creates a new ReadAction instance using the specified properties. * @param [properties] Properties to set @@ -19200,9 +19197,6 @@ export namespace google { /** DmlAction autocommitIfSupported. */ public autocommitIfSupported?: (boolean|null); - /** DmlAction _autocommitIfSupported. */ - public _autocommitIfSupported?: "autocommitIfSupported"; - /** * Creates a new DmlAction instance using the specified properties. * @param [properties] Properties to set @@ -19466,9 +19460,6 @@ export namespace google { /** Value valueType. */ public valueType?: ("isNull"|"intValue"|"boolValue"|"doubleValue"|"bytesValue"|"stringValue"|"structValue"|"timestampValue"|"dateDaysValue"|"isCommitTimestamp"|"arrayValue"); - /** Value _arrayType. */ - public _arrayType?: "arrayType"; - /** * Creates a new Value instance using the specified properties. * @param [properties] Properties to set @@ -19578,9 +19569,6 @@ export namespace google { /** KeyRange type. */ public type?: (google.spanner.executor.v1.KeyRange.Type|keyof typeof google.spanner.executor.v1.KeyRange.Type|null); - /** KeyRange _type. */ - public _type?: "type"; - /** * Creates a new KeyRange instance using the specified properties. * @param [properties] Properties to set @@ -20444,9 +20432,6 @@ export namespace google { /** PartitionedUpdateAction update. */ public update?: (google.spanner.executor.v1.IQueryAction|null); - /** PartitionedUpdateAction _options. */ - public _options?: "options"; - /** * Creates a new PartitionedUpdateAction instance using the specified properties. * @param [properties] Properties to set @@ -20552,12 +20537,6 @@ export namespace google { /** ExecutePartitionedUpdateOptions tag. */ public tag?: (string|null); - /** ExecutePartitionedUpdateOptions _rpcPriority. */ - public _rpcPriority?: "rpcPriority"; - - /** ExecutePartitionedUpdateOptions _tag. */ - public _tag?: "tag"; - /** * Creates a new ExecutePartitionedUpdateOptions instance using the specified properties. * @param [properties] Properties to set @@ -20674,12 +20653,6 @@ export namespace google { /** StartTransactionAction executionOptions. */ public executionOptions?: (google.spanner.executor.v1.ITransactionExecutionOptions|null); - /** StartTransactionAction _concurrency. */ - public _concurrency?: "concurrency"; - - /** StartTransactionAction _executionOptions. */ - public _executionOptions?: "executionOptions"; - /** * Creates a new StartTransactionAction instance using the specified properties. * @param [properties] Properties to set @@ -21736,9 +21709,6 @@ export namespace google { /** UpdateUserInstanceConfigAction labels. */ public labels: { [k: string]: string }; - /** UpdateUserInstanceConfigAction _displayName. */ - public _displayName?: "displayName"; - /** * Creates a new UpdateUserInstanceConfigAction instance using the specified properties. * @param [properties] Properties to set @@ -22054,12 +22024,6 @@ export namespace google { /** ListCloudInstanceConfigsAction pageToken. */ public pageToken?: (string|null); - /** ListCloudInstanceConfigsAction _pageSize. */ - public _pageSize?: "pageSize"; - - /** ListCloudInstanceConfigsAction _pageToken. */ - public _pageToken?: "pageToken"; - /** * Creates a new ListCloudInstanceConfigsAction instance using the specified properties. * @param [properties] Properties to set @@ -22193,15 +22157,6 @@ export namespace google { /** CreateCloudInstanceAction labels. */ public labels: { [k: string]: string }; - /** CreateCloudInstanceAction _nodeCount. */ - public _nodeCount?: "nodeCount"; - - /** CreateCloudInstanceAction _processingUnits. */ - public _processingUnits?: "processingUnits"; - - /** CreateCloudInstanceAction _autoscalingConfig. */ - public _autoscalingConfig?: "autoscalingConfig"; - /** * Creates a new CreateCloudInstanceAction instance using the specified properties. * @param [properties] Properties to set @@ -22335,18 +22290,6 @@ export namespace google { /** UpdateCloudInstanceAction labels. */ public labels: { [k: string]: string }; - /** UpdateCloudInstanceAction _displayName. */ - public _displayName?: "displayName"; - - /** UpdateCloudInstanceAction _nodeCount. */ - public _nodeCount?: "nodeCount"; - - /** UpdateCloudInstanceAction _processingUnits. */ - public _processingUnits?: "processingUnits"; - - /** UpdateCloudInstanceAction _autoscalingConfig. */ - public _autoscalingConfig?: "autoscalingConfig"; - /** * Creates a new UpdateCloudInstanceAction instance using the specified properties. * @param [properties] Properties to set @@ -22583,12 +22526,6 @@ export namespace google { /** CreateCloudDatabaseAction protoDescriptors. */ public protoDescriptors?: (Uint8Array|string|null); - /** CreateCloudDatabaseAction _dialect. */ - public _dialect?: "dialect"; - - /** CreateCloudDatabaseAction _protoDescriptors. */ - public _protoDescriptors?: "protoDescriptors"; - /** * Creates a new CreateCloudDatabaseAction instance using the specified properties. * @param [properties] Properties to set @@ -22716,9 +22653,6 @@ export namespace google { /** UpdateCloudDatabaseDdlAction protoDescriptors. */ public protoDescriptors?: (Uint8Array|string|null); - /** UpdateCloudDatabaseDdlAction _protoDescriptors. */ - public _protoDescriptors?: "protoDescriptors"; - /** * Creates a new UpdateCloudDatabaseDdlAction instance using the specified properties. * @param [properties] Properties to set @@ -23046,9 +22980,6 @@ export namespace google { /** ChangeQuorumCloudDatabaseAction servingLocations. */ public servingLocations: string[]; - /** ChangeQuorumCloudDatabaseAction _databaseUri. */ - public _databaseUri?: "databaseUri"; - /** * Creates a new ChangeQuorumCloudDatabaseAction instance using the specified properties. * @param [properties] Properties to set @@ -23279,15 +23210,6 @@ export namespace google { /** ListCloudInstancesAction pageToken. */ public pageToken?: (string|null); - /** ListCloudInstancesAction _filter. */ - public _filter?: "filter"; - - /** ListCloudInstancesAction _pageSize. */ - public _pageSize?: "pageSize"; - - /** ListCloudInstancesAction _pageToken. */ - public _pageToken?: "pageToken"; - /** * Creates a new ListCloudInstancesAction instance using the specified properties. * @param [properties] Properties to set @@ -23881,9 +23803,6 @@ export namespace google { /** CreateCloudBackupAction encryptionConfig. */ public encryptionConfig?: (google.spanner.admin.database.v1.IEncryptionConfig|null); - /** CreateCloudBackupAction _versionTime. */ - public _versionTime?: "versionTime"; - /** * Creates a new CreateCloudBackupAction instance using the specified properties. * @param [properties] Properties to set @@ -25201,12 +25120,6 @@ export namespace google { /** GenerateDbPartitionsForReadAction maxPartitionCount. */ public maxPartitionCount?: (number|Long|string|null); - /** GenerateDbPartitionsForReadAction _desiredBytesPerPartition. */ - public _desiredBytesPerPartition?: "desiredBytesPerPartition"; - - /** GenerateDbPartitionsForReadAction _maxPartitionCount. */ - public _maxPartitionCount?: "maxPartitionCount"; - /** * Creates a new GenerateDbPartitionsForReadAction instance using the specified properties. * @param [properties] Properties to set @@ -25310,9 +25223,6 @@ export namespace google { /** GenerateDbPartitionsForQueryAction desiredBytesPerPartition. */ public desiredBytesPerPartition?: (number|Long|string|null); - /** GenerateDbPartitionsForQueryAction _desiredBytesPerPartition. */ - public _desiredBytesPerPartition?: "desiredBytesPerPartition"; - /** * Creates a new GenerateDbPartitionsForQueryAction instance using the specified properties. * @param [properties] Properties to set @@ -25428,12 +25338,6 @@ export namespace google { /** BatchPartition index. */ public index?: (string|null); - /** BatchPartition _table. */ - public _table?: "table"; - - /** BatchPartition _index. */ - public _index?: "index"; - /** * Creates a new BatchPartition instance using the specified properties. * @param [properties] Properties to set @@ -25670,21 +25574,6 @@ export namespace google { /** ExecuteChangeStreamQuery cloudDatabaseRole. */ public cloudDatabaseRole?: (string|null); - /** ExecuteChangeStreamQuery _endTime. */ - public _endTime?: "endTime"; - - /** ExecuteChangeStreamQuery _partitionToken. */ - public _partitionToken?: "partitionToken"; - - /** ExecuteChangeStreamQuery _heartbeatMilliseconds. */ - public _heartbeatMilliseconds?: "heartbeatMilliseconds"; - - /** ExecuteChangeStreamQuery _deadlineSeconds. */ - public _deadlineSeconds?: "deadlineSeconds"; - - /** ExecuteChangeStreamQuery _cloudDatabaseRole. */ - public _cloudDatabaseRole?: "cloudDatabaseRole"; - /** * Creates a new ExecuteChangeStreamQuery instance using the specified properties. * @param [properties] Properties to set @@ -25836,27 +25725,6 @@ export namespace google { /** SpannerActionOutcome changeStreamRecords. */ public changeStreamRecords: google.spanner.executor.v1.IChangeStreamRecord[]; - /** SpannerActionOutcome _status. */ - public _status?: "status"; - - /** SpannerActionOutcome _commitTime. */ - public _commitTime?: "commitTime"; - - /** SpannerActionOutcome _readResult. */ - public _readResult?: "readResult"; - - /** SpannerActionOutcome _queryResult. */ - public _queryResult?: "queryResult"; - - /** SpannerActionOutcome _transactionRestarted. */ - public _transactionRestarted?: "transactionRestarted"; - - /** SpannerActionOutcome _batchTxnId. */ - public _batchTxnId?: "batchTxnId"; - - /** SpannerActionOutcome _adminResult. */ - public _adminResult?: "adminResult"; - /** * Creates a new SpannerActionOutcome instance using the specified properties. * @param [properties] Properties to set @@ -26656,15 +26524,6 @@ export namespace google { /** ReadResult rowType. */ public rowType?: (google.spanner.v1.IStructType|null); - /** ReadResult _index. */ - public _index?: "index"; - - /** ReadResult _requestIndex. */ - public _requestIndex?: "requestIndex"; - - /** ReadResult _rowType. */ - public _rowType?: "rowType"; - /** * Creates a new ReadResult instance using the specified properties. * @param [properties] Properties to set @@ -26768,9 +26627,6 @@ export namespace google { /** QueryResult rowType. */ public rowType?: (google.spanner.v1.IStructType|null); - /** QueryResult _rowType. */ - public _rowType?: "rowType"; - /** * Creates a new QueryResult instance using the specified properties. * @param [properties] Properties to set diff --git a/protos/protos.js b/protos/protos.js index cab98f413..11a95c1c7 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -47740,12 +47740,7 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * ReadAction _index. - * @member {"index"|undefined} _index - * @memberof google.spanner.executor.v1.ReadAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(ReadAction.prototype, "_index", { get: $util.oneOfGetter($oneOfFields = ["index"]), set: $util.oneOfSetter($oneOfFields) @@ -48557,12 +48552,7 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * DmlAction _autocommitIfSupported. - * @member {"autocommitIfSupported"|undefined} _autocommitIfSupported - * @memberof google.spanner.executor.v1.DmlAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(DmlAction.prototype, "_autocommitIfSupported", { get: $util.oneOfGetter($oneOfFields = ["autocommitIfSupported"]), set: $util.oneOfSetter($oneOfFields) @@ -49132,12 +49122,7 @@ set: $util.oneOfSetter($oneOfFields) }); - /** - * Value _arrayType. - * @member {"arrayType"|undefined} _arrayType - * @memberof google.spanner.executor.v1.Value - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(Value.prototype, "_arrayType", { get: $util.oneOfGetter($oneOfFields = ["arrayType"]), set: $util.oneOfSetter($oneOfFields) @@ -49626,12 +49611,7 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * KeyRange _type. - * @member {"type"|undefined} _type - * @memberof google.spanner.executor.v1.KeyRange - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(KeyRange.prototype, "_type", { get: $util.oneOfGetter($oneOfFields = ["type"]), set: $util.oneOfSetter($oneOfFields) @@ -51859,12 +51839,7 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * PartitionedUpdateAction _options. - * @member {"options"|undefined} _options - * @memberof google.spanner.executor.v1.PartitionedUpdateAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(PartitionedUpdateAction.prototype, "_options", { get: $util.oneOfGetter($oneOfFields = ["options"]), set: $util.oneOfSetter($oneOfFields) @@ -52112,23 +52087,13 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * ExecutePartitionedUpdateOptions _rpcPriority. - * @member {"rpcPriority"|undefined} _rpcPriority - * @memberof google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(ExecutePartitionedUpdateOptions.prototype, "_rpcPriority", { get: $util.oneOfGetter($oneOfFields = ["rpcPriority"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * ExecutePartitionedUpdateOptions _tag. - * @member {"tag"|undefined} _tag - * @memberof google.spanner.executor.v1.PartitionedUpdateAction.ExecutePartitionedUpdateOptions - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(ExecutePartitionedUpdateOptions.prototype, "_tag", { get: $util.oneOfGetter($oneOfFields = ["tag"]), set: $util.oneOfSetter($oneOfFields) @@ -52422,23 +52387,13 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * StartTransactionAction _concurrency. - * @member {"concurrency"|undefined} _concurrency - * @memberof google.spanner.executor.v1.StartTransactionAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(StartTransactionAction.prototype, "_concurrency", { get: $util.oneOfGetter($oneOfFields = ["concurrency"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * StartTransactionAction _executionOptions. - * @member {"executionOptions"|undefined} _executionOptions - * @memberof google.spanner.executor.v1.StartTransactionAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(StartTransactionAction.prototype, "_executionOptions", { get: $util.oneOfGetter($oneOfFields = ["executionOptions"]), set: $util.oneOfSetter($oneOfFields) @@ -55671,12 +55626,7 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * UpdateUserInstanceConfigAction _displayName. - * @member {"displayName"|undefined} _displayName - * @memberof google.spanner.executor.v1.UpdateUserInstanceConfigAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(UpdateUserInstanceConfigAction.prototype, "_displayName", { get: $util.oneOfGetter($oneOfFields = ["displayName"]), set: $util.oneOfSetter($oneOfFields) @@ -56443,23 +56393,13 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * ListCloudInstanceConfigsAction _pageSize. - * @member {"pageSize"|undefined} _pageSize - * @memberof google.spanner.executor.v1.ListCloudInstanceConfigsAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(ListCloudInstanceConfigsAction.prototype, "_pageSize", { get: $util.oneOfGetter($oneOfFields = ["pageSize"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * ListCloudInstanceConfigsAction _pageToken. - * @member {"pageToken"|undefined} _pageToken - * @memberof google.spanner.executor.v1.ListCloudInstanceConfigsAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(ListCloudInstanceConfigsAction.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) @@ -56763,34 +56703,19 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * CreateCloudInstanceAction _nodeCount. - * @member {"nodeCount"|undefined} _nodeCount - * @memberof google.spanner.executor.v1.CreateCloudInstanceAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(CreateCloudInstanceAction.prototype, "_nodeCount", { get: $util.oneOfGetter($oneOfFields = ["nodeCount"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * CreateCloudInstanceAction _processingUnits. - * @member {"processingUnits"|undefined} _processingUnits - * @memberof google.spanner.executor.v1.CreateCloudInstanceAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(CreateCloudInstanceAction.prototype, "_processingUnits", { get: $util.oneOfGetter($oneOfFields = ["processingUnits"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * CreateCloudInstanceAction _autoscalingConfig. - * @member {"autoscalingConfig"|undefined} _autoscalingConfig - * @memberof google.spanner.executor.v1.CreateCloudInstanceAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(CreateCloudInstanceAction.prototype, "_autoscalingConfig", { get: $util.oneOfGetter($oneOfFields = ["autoscalingConfig"]), set: $util.oneOfSetter($oneOfFields) @@ -57196,45 +57121,25 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * UpdateCloudInstanceAction _displayName. - * @member {"displayName"|undefined} _displayName - * @memberof google.spanner.executor.v1.UpdateCloudInstanceAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(UpdateCloudInstanceAction.prototype, "_displayName", { get: $util.oneOfGetter($oneOfFields = ["displayName"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * UpdateCloudInstanceAction _nodeCount. - * @member {"nodeCount"|undefined} _nodeCount - * @memberof google.spanner.executor.v1.UpdateCloudInstanceAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(UpdateCloudInstanceAction.prototype, "_nodeCount", { get: $util.oneOfGetter($oneOfFields = ["nodeCount"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * UpdateCloudInstanceAction _processingUnits. - * @member {"processingUnits"|undefined} _processingUnits - * @memberof google.spanner.executor.v1.UpdateCloudInstanceAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(UpdateCloudInstanceAction.prototype, "_processingUnits", { get: $util.oneOfGetter($oneOfFields = ["processingUnits"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * UpdateCloudInstanceAction _autoscalingConfig. - * @member {"autoscalingConfig"|undefined} _autoscalingConfig - * @memberof google.spanner.executor.v1.UpdateCloudInstanceAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(UpdateCloudInstanceAction.prototype, "_autoscalingConfig", { get: $util.oneOfGetter($oneOfFields = ["autoscalingConfig"]), set: $util.oneOfSetter($oneOfFields) @@ -57871,23 +57776,13 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * CreateCloudDatabaseAction _dialect. - * @member {"dialect"|undefined} _dialect - * @memberof google.spanner.executor.v1.CreateCloudDatabaseAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(CreateCloudDatabaseAction.prototype, "_dialect", { get: $util.oneOfGetter($oneOfFields = ["dialect"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * CreateCloudDatabaseAction _protoDescriptors. - * @member {"protoDescriptors"|undefined} _protoDescriptors - * @memberof google.spanner.executor.v1.CreateCloudDatabaseAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(CreateCloudDatabaseAction.prototype, "_protoDescriptors", { get: $util.oneOfGetter($oneOfFields = ["protoDescriptors"]), set: $util.oneOfSetter($oneOfFields) @@ -58263,12 +58158,7 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * UpdateCloudDatabaseDdlAction _protoDescriptors. - * @member {"protoDescriptors"|undefined} _protoDescriptors - * @memberof google.spanner.executor.v1.UpdateCloudDatabaseDdlAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(UpdateCloudDatabaseDdlAction.prototype, "_protoDescriptors", { get: $util.oneOfGetter($oneOfFields = ["protoDescriptors"]), set: $util.oneOfSetter($oneOfFields) @@ -59108,12 +58998,7 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * ChangeQuorumCloudDatabaseAction _databaseUri. - * @member {"databaseUri"|undefined} _databaseUri - * @memberof google.spanner.executor.v1.ChangeQuorumCloudDatabaseAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(ChangeQuorumCloudDatabaseAction.prototype, "_databaseUri", { get: $util.oneOfGetter($oneOfFields = ["databaseUri"]), set: $util.oneOfSetter($oneOfFields) @@ -59659,34 +59544,19 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * ListCloudInstancesAction _filter. - * @member {"filter"|undefined} _filter - * @memberof google.spanner.executor.v1.ListCloudInstancesAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(ListCloudInstancesAction.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * ListCloudInstancesAction _pageSize. - * @member {"pageSize"|undefined} _pageSize - * @memberof google.spanner.executor.v1.ListCloudInstancesAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(ListCloudInstancesAction.prototype, "_pageSize", { get: $util.oneOfGetter($oneOfFields = ["pageSize"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * ListCloudInstancesAction _pageToken. - * @member {"pageToken"|undefined} _pageToken - * @memberof google.spanner.executor.v1.ListCloudInstancesAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(ListCloudInstancesAction.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) @@ -61104,12 +60974,7 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * CreateCloudBackupAction _versionTime. - * @member {"versionTime"|undefined} _versionTime - * @memberof google.spanner.executor.v1.CreateCloudBackupAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(CreateCloudBackupAction.prototype, "_versionTime", { get: $util.oneOfGetter($oneOfFields = ["versionTime"]), set: $util.oneOfSetter($oneOfFields) @@ -64245,23 +64110,13 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * GenerateDbPartitionsForReadAction _desiredBytesPerPartition. - * @member {"desiredBytesPerPartition"|undefined} _desiredBytesPerPartition - * @memberof google.spanner.executor.v1.GenerateDbPartitionsForReadAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(GenerateDbPartitionsForReadAction.prototype, "_desiredBytesPerPartition", { get: $util.oneOfGetter($oneOfFields = ["desiredBytesPerPartition"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * GenerateDbPartitionsForReadAction _maxPartitionCount. - * @member {"maxPartitionCount"|undefined} _maxPartitionCount - * @memberof google.spanner.executor.v1.GenerateDbPartitionsForReadAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(GenerateDbPartitionsForReadAction.prototype, "_maxPartitionCount", { get: $util.oneOfGetter($oneOfFields = ["maxPartitionCount"]), set: $util.oneOfSetter($oneOfFields) @@ -64579,12 +64434,7 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * GenerateDbPartitionsForQueryAction _desiredBytesPerPartition. - * @member {"desiredBytesPerPartition"|undefined} _desiredBytesPerPartition - * @memberof google.spanner.executor.v1.GenerateDbPartitionsForQueryAction - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(GenerateDbPartitionsForQueryAction.prototype, "_desiredBytesPerPartition", { get: $util.oneOfGetter($oneOfFields = ["desiredBytesPerPartition"]), set: $util.oneOfSetter($oneOfFields) @@ -64857,23 +64707,13 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * BatchPartition _table. - * @member {"table"|undefined} _table - * @memberof google.spanner.executor.v1.BatchPartition - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(BatchPartition.prototype, "_table", { get: $util.oneOfGetter($oneOfFields = ["table"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * BatchPartition _index. - * @member {"index"|undefined} _index - * @memberof google.spanner.executor.v1.BatchPartition - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(BatchPartition.prototype, "_index", { get: $util.oneOfGetter($oneOfFields = ["index"]), set: $util.oneOfSetter($oneOfFields) @@ -65427,56 +65267,31 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * ExecuteChangeStreamQuery _endTime. - * @member {"endTime"|undefined} _endTime - * @memberof google.spanner.executor.v1.ExecuteChangeStreamQuery - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(ExecuteChangeStreamQuery.prototype, "_endTime", { get: $util.oneOfGetter($oneOfFields = ["endTime"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * ExecuteChangeStreamQuery _partitionToken. - * @member {"partitionToken"|undefined} _partitionToken - * @memberof google.spanner.executor.v1.ExecuteChangeStreamQuery - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(ExecuteChangeStreamQuery.prototype, "_partitionToken", { get: $util.oneOfGetter($oneOfFields = ["partitionToken"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * ExecuteChangeStreamQuery _heartbeatMilliseconds. - * @member {"heartbeatMilliseconds"|undefined} _heartbeatMilliseconds - * @memberof google.spanner.executor.v1.ExecuteChangeStreamQuery - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(ExecuteChangeStreamQuery.prototype, "_heartbeatMilliseconds", { get: $util.oneOfGetter($oneOfFields = ["heartbeatMilliseconds"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * ExecuteChangeStreamQuery _deadlineSeconds. - * @member {"deadlineSeconds"|undefined} _deadlineSeconds - * @memberof google.spanner.executor.v1.ExecuteChangeStreamQuery - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(ExecuteChangeStreamQuery.prototype, "_deadlineSeconds", { get: $util.oneOfGetter($oneOfFields = ["deadlineSeconds"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * ExecuteChangeStreamQuery _cloudDatabaseRole. - * @member {"cloudDatabaseRole"|undefined} _cloudDatabaseRole - * @memberof google.spanner.executor.v1.ExecuteChangeStreamQuery - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(ExecuteChangeStreamQuery.prototype, "_cloudDatabaseRole", { get: $util.oneOfGetter($oneOfFields = ["cloudDatabaseRole"]), set: $util.oneOfSetter($oneOfFields) @@ -65929,78 +65744,43 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * SpannerActionOutcome _status. - * @member {"status"|undefined} _status - * @memberof google.spanner.executor.v1.SpannerActionOutcome - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(SpannerActionOutcome.prototype, "_status", { get: $util.oneOfGetter($oneOfFields = ["status"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * SpannerActionOutcome _commitTime. - * @member {"commitTime"|undefined} _commitTime - * @memberof google.spanner.executor.v1.SpannerActionOutcome - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(SpannerActionOutcome.prototype, "_commitTime", { get: $util.oneOfGetter($oneOfFields = ["commitTime"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * SpannerActionOutcome _readResult. - * @member {"readResult"|undefined} _readResult - * @memberof google.spanner.executor.v1.SpannerActionOutcome - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(SpannerActionOutcome.prototype, "_readResult", { get: $util.oneOfGetter($oneOfFields = ["readResult"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * SpannerActionOutcome _queryResult. - * @member {"queryResult"|undefined} _queryResult - * @memberof google.spanner.executor.v1.SpannerActionOutcome - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(SpannerActionOutcome.prototype, "_queryResult", { get: $util.oneOfGetter($oneOfFields = ["queryResult"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * SpannerActionOutcome _transactionRestarted. - * @member {"transactionRestarted"|undefined} _transactionRestarted - * @memberof google.spanner.executor.v1.SpannerActionOutcome - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(SpannerActionOutcome.prototype, "_transactionRestarted", { get: $util.oneOfGetter($oneOfFields = ["transactionRestarted"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * SpannerActionOutcome _batchTxnId. - * @member {"batchTxnId"|undefined} _batchTxnId - * @memberof google.spanner.executor.v1.SpannerActionOutcome - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(SpannerActionOutcome.prototype, "_batchTxnId", { get: $util.oneOfGetter($oneOfFields = ["batchTxnId"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * SpannerActionOutcome _adminResult. - * @member {"adminResult"|undefined} _adminResult - * @memberof google.spanner.executor.v1.SpannerActionOutcome - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(SpannerActionOutcome.prototype, "_adminResult", { get: $util.oneOfGetter($oneOfFields = ["adminResult"]), set: $util.oneOfSetter($oneOfFields) @@ -68307,34 +68087,19 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * ReadResult _index. - * @member {"index"|undefined} _index - * @memberof google.spanner.executor.v1.ReadResult - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(ReadResult.prototype, "_index", { get: $util.oneOfGetter($oneOfFields = ["index"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * ReadResult _requestIndex. - * @member {"requestIndex"|undefined} _requestIndex - * @memberof google.spanner.executor.v1.ReadResult - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(ReadResult.prototype, "_requestIndex", { get: $util.oneOfGetter($oneOfFields = ["requestIndex"]), set: $util.oneOfSetter($oneOfFields) }); - /** - * ReadResult _rowType. - * @member {"rowType"|undefined} _rowType - * @memberof google.spanner.executor.v1.ReadResult - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(ReadResult.prototype, "_rowType", { get: $util.oneOfGetter($oneOfFields = ["rowType"]), set: $util.oneOfSetter($oneOfFields) @@ -68652,12 +68417,7 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; - /** - * QueryResult _rowType. - * @member {"rowType"|undefined} _rowType - * @memberof google.spanner.executor.v1.QueryResult - * @instance - */ + // Virtual OneOf for proto3 optional field Object.defineProperty(QueryResult.prototype, "_rowType", { get: $util.oneOfGetter($oneOfFields = ["rowType"]), set: $util.oneOfSetter($oneOfFields) diff --git a/protos/protos.json b/protos/protos.json index 315af76cd..aa5a29c92 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -1,4 +1,7 @@ { + "options": { + "syntax": "proto3" + }, "nested": { "google": { "nested": { diff --git a/src/request_id_header.ts b/src/request_id_header.ts index 16b538ebd..0806e7be2 100644 --- a/src/request_id_header.ts +++ b/src/request_id_header.ts @@ -1,4 +1,4 @@ -/*! +/** * Copyright 2025 Google LLC. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -21,7 +21,7 @@ const randIdForProcess = randomBytes(8).readBigUint64LE(0).toString(); const X_GOOG_SPANNER_REQUEST_ID_HEADER = 'x-goog-spanner-request-id'; class AtomicCounter { - private backingBuffer: Uint32Array; + private readonly backingBuffer: Uint32Array; constructor(initialValue?: number) { this.backingBuffer = new Uint32Array( @@ -53,13 +53,15 @@ class AtomicCounter { } } +const REQUEST_HEADER_VERSION = 1; + function craftRequestId( nthClientId: number, channelId: number, nthRequest: number, attempt: number ) { - return `1.${randIdForProcess}.${nthClientId}.${channelId}.${nthRequest}.${attempt}`; + return `${REQUEST_HEADER_VERSION}.${randIdForProcess}.${nthClientId}.${channelId}.${nthRequest}.${attempt}`; } const nthClientId = new AtomicCounter(); @@ -162,7 +164,6 @@ class XGoogRequestHeaderInterceptor { const prefixesToIgnore: string[] = this.prefixesToIgnore || []; for (i = 0; i < prefixesToIgnore.length; i++) { const prefix = prefixesToIgnore[i]; - // console.log(`prefix: ${prefix}\nmethod: ${method}`); if (method.startsWith(prefix)) { next(metadata); return;