From 8acacb0dc7bc2f241990d0ee30403c17721a14c7 Mon Sep 17 00:00:00 2001 From: luzhan <513964121@qq.com> Date: Sat, 6 Jul 2024 22:23:42 +0800 Subject: [PATCH 01/15] style:extract common logic in most interfaces --- courgette.log | 0 samples/Apache.IoTDB.Samples/Program.cs | 16 +- src/Apache.IoTDB/SessionPool.cs | 1722 +++++------------------ 3 files changed, 397 insertions(+), 1341 deletions(-) delete mode 100644 courgette.log diff --git a/courgette.log b/courgette.log deleted file mode 100644 index e69de29..0000000 diff --git a/samples/Apache.IoTDB.Samples/Program.cs b/samples/Apache.IoTDB.Samples/Program.cs index 2a431ef..b6ceebf 100644 --- a/samples/Apache.IoTDB.Samples/Program.cs +++ b/samples/Apache.IoTDB.Samples/Program.cs @@ -3,14 +3,14 @@ using System; using System.Threading.Tasks; -namespace Apache.IoTDB.Samples -{ - public static class Program +namespace Apache.IoTDB.Samples +{ + public static class Program { public static async Task Main(string[] args) - { - var sessionPoolTest = new SessionPoolTest("iotdb"); - await sessionPoolTest.Test() ; + { + var sessionPoolTest = new SessionPoolTest("iotdb"); + await sessionPoolTest.Test(); } public static void OpenDebugMode(this SessionPool session) @@ -20,6 +20,6 @@ public static void OpenDebugMode(this SessionPool session) builder.AddConsole(); builder.AddNLog(); }); - } - } + } + } } \ No newline at end of file diff --git a/src/Apache.IoTDB/SessionPool.cs b/src/Apache.IoTDB/SessionPool.cs index 5621836..bed6310 100644 --- a/src/Apache.IoTDB/SessionPool.cs +++ b/src/Apache.IoTDB/SessionPool.cs @@ -27,7 +27,9 @@ public class SessionPool : IDisposable private bool _enableRpcCompression; private string _zoneId; private readonly string _host; + private readonly List _hosts; private readonly int _port; + private readonly List _ports; private readonly int _fetchSize; private readonly int _timeout; private readonly int _poolSize = 4; @@ -36,6 +38,8 @@ public class SessionPool : IDisposable private bool _isClose = true; private ConcurrentClientQueue _clients; private ILogger _logger; + public delegate Task AsyncOperation(Client client); + public SessionPool(string host, int port, int poolSize) : this(host, port, "root", "root", 1024, "UTC+08:00", poolSize, true, 60) @@ -69,6 +73,40 @@ public SessionPool(string host, int port, string username, string password, int _enableRpcCompression = enableRpcCompression; _timeout = timeout; } + public async Task ExecuteClientOperationAsync(AsyncOperation operation, string errMsg, bool retryOnFailure = true) + { + Client client = _clients.Take(); + try + { + var resp = await operation(client); + return resp; + } + catch (TException ex) + { + if (retryOnFailure) + { + await Open(_enableRpcCompression); + client = _clients.Take(); + try + { + var resp = await operation(client); + return resp; + } + catch (TException retryEx) + { + throw new TException(errMsg, retryEx); + } + } + else + { + throw new TException("Error occurs when executing operation", ex); + } + } + finally + { + _clients.Add(client); + } + } /// /// Gets or sets the amount of time a Session will wait for a send operation to complete successfully. @@ -238,28 +276,10 @@ private async Task CreateAndOpen(bool enableRpcCompression, int timeout, throw; } } - public async Task SetStorageGroup(string groupName) { - var client = _clients.Take(); - - try - { - var status = await client.ServiceClient.setStorageGroupAsync(client.SessionId, groupName); - - if (_debugMode) - { - _logger.LogInformation("set storage group {0} successfully, server message is {1}", groupName, status.Message); - } - - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - } - catch (TException e) - { - // try to reconnect - await Open(_enableRpcCompression); - client = _clients.Take(); - try + return await ExecuteClientOperationAsync( + async client => { var status = await client.ServiceClient.setStorageGroupAsync(client.SessionId, groupName); if (_debugMode) @@ -267,70 +287,38 @@ public async Task SetStorageGroup(string groupName) _logger.LogInformation("set storage group {0} successfully, server message is {1}", groupName, status.Message); } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - } - catch (TException ex) - { - throw new TException("Error occurs when setting storage group", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when setting storage group" + ); } - public async Task CreateTimeSeries( string tsPath, TSDataType dataType, TSEncoding encoding, Compressor compressor) { - var client = _clients.Take(); - var req = new TSCreateTimeseriesReq( - client.SessionId, - tsPath, - (int)dataType, - (int)encoding, - (int)compressor); - try - { - var status = await client.ServiceClient.createTimeseriesAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("creating time series {0} successfully, server message is {1}", tsPath, status.Message); - } - - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + var req = new TSCreateTimeseriesReq( + client.SessionId, + tsPath, + (int)dataType, + (int)encoding, + (int)compressor); - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.createTimeseriesAsync(req); + if (_debugMode) { _logger.LogInformation("creating time series {0} successfully, server message is {1}", tsPath, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when creating time series", ex); - } - } - finally - { - _clients.Add(client); - } + return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + }, + errMsg: "Error occurs when creating time series" + ); } - public async Task CreateAlignedTimeseriesAsync( string prefixPath, List measurements, @@ -338,223 +326,99 @@ public async Task CreateAlignedTimeseriesAsync( List encodingLst, List compressorLst) { - var client = _clients.Take(); - var dataTypes = dataTypeLst.ConvertAll(x => (int)x); - var encodings = encodingLst.ConvertAll(x => (int)x); - var compressors = compressorLst.ConvertAll(x => (int)x); - - var req = new TSCreateAlignedTimeseriesReq( - client.SessionId, - prefixPath, - measurements, - dataTypes, - encodings, - compressors); - try - { - var status = await client.ServiceClient.createAlignedTimeseriesAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("creating aligned time series {0} successfully, server message is {1}", prefixPath, status.Message); - } + var dataTypes = dataTypeLst.ConvertAll(x => (int)x); + var encodings = encodingLst.ConvertAll(x => (int)x); + var compressors = compressorLst.ConvertAll(x => (int)x); - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + var req = new TSCreateAlignedTimeseriesReq( + client.SessionId, + prefixPath, + measurements, + dataTypes, + encodings, + compressors); - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.createAlignedTimeseriesAsync(req); + if (_debugMode) { _logger.LogInformation("creating aligned time series {0} successfully, server message is {1}", prefixPath, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - } - catch (TException ex) - { - throw new TException("Error occurs when creating aligned time series", ex); - } - } - finally - { - _clients.Add(client); - } + return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + }, + errMsg: "Error occurs when creating aligned time series" + ); } - public async Task DeleteStorageGroupAsync(string groupName) { - var client = _clients.Take(); - try - { - var status = await client.ServiceClient.deleteStorageGroupsAsync( - client.SessionId, - new List { groupName }); - - if (_debugMode) - { - _logger.LogInformation($"delete storage group {groupName} successfully, server message is {status?.Message}"); - } - - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - try + return await ExecuteClientOperationAsync( + async client => { - var status = await client.ServiceClient.deleteStorageGroupsAsync( - client.SessionId, - new List { groupName }); + var status = await client.ServiceClient.deleteStorageGroupsAsync(client.SessionId, new List { groupName }); if (_debugMode) { - _logger.LogInformation($"delete storage group {groupName} successfully, server message is {status?.Message}"); + _logger.LogInformation("delete storage group {0} successfully, server message is {1}", groupName, status.Message); } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when deleting storage group", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when deleting storage group" + ); } - public async Task DeleteStorageGroupsAsync(List groupNames) { - var client = _clients.Take(); - - try - { - var status = await client.ServiceClient.deleteStorageGroupsAsync(client.SessionId, groupNames); - - if (_debugMode) - { - _logger.LogInformation( - "delete storage group(s) {0} successfully, server message is {1}", - groupNames, - status.Message); - } - - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - try + return await ExecuteClientOperationAsync( + async client => { var status = await client.ServiceClient.deleteStorageGroupsAsync(client.SessionId, groupNames); if (_debugMode) { - _logger.LogInformation( - "delete storage group(s) {0} successfully, server message is {1}", - groupNames, - status.Message); + _logger.LogInformation("delete storage group(s) {0} successfully, server message is {1}", groupNames, status.Message); } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when deleting storage group(s)", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when deleting storage group(s)" + ); } - + // use ExecuteClientOperationAsync to create multi public async Task CreateMultiTimeSeriesAsync( List tsPathLst, List dataTypeLst, List encodingLst, List compressorLst) { - var client = _clients.Take(); - var dataTypes = dataTypeLst.ConvertAll(x => (int)x); - var encodings = encodingLst.ConvertAll(x => (int)x); - var compressors = compressorLst.ConvertAll(x => (int)x); - - var req = new TSCreateMultiTimeseriesReq(client.SessionId, tsPathLst, dataTypes, encodings, compressors); - - try - { - var status = await client.ServiceClient.createMultiTimeseriesAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("creating multiple time series {0}, server message is {1}", tsPathLst, status.Message); - } + var dataTypes = dataTypeLst.ConvertAll(x => (int)x); + var encodings = encodingLst.ConvertAll(x => (int)x); + var compressors = compressorLst.ConvertAll(x => (int)x); - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + var req = new TSCreateMultiTimeseriesReq(client.SessionId, tsPathLst, dataTypes, encodings, compressors); - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.createMultiTimeseriesAsync(req); + if (_debugMode) { _logger.LogInformation("creating multiple time series {0}, server message is {1}", tsPathLst, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - } - catch (TException ex) - { - throw new TException("Error occurs when creating multiple time series", ex); - } - } - finally - { - _clients.Add(client); - } + return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + }, + errMsg: "Error occurs when creating multiple time series" + ); } - public async Task DeleteTimeSeriesAsync(List pathList) { - var client = _clients.Take(); - - try - { - var status = await client.ServiceClient.deleteTimeseriesAsync(client.SessionId, pathList); - - if (_debugMode) - { - _logger.LogInformation("deleting multiple time series {0}, server message is {1}", pathList, status.Message); - } - - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - try + return await ExecuteClientOperationAsync( + async client => { var status = await client.ServiceClient.deleteTimeseriesAsync(client.SessionId, pathList); @@ -564,17 +428,9 @@ public async Task DeleteTimeSeriesAsync(List pathList) } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when deleting multiple time series", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when deleting multiple time series" + ); } public async Task DeleteTimeSeriesAsync(string tsPath) @@ -596,34 +452,13 @@ public async Task CheckTimeSeriesExistsAsync(string tsPath) throw new TException("could not check if certain time series exists", e); } } - public async Task DeleteDataAsync(List tsPathLst, long startTime, long endTime) { - var client = _clients.Take(); - var req = new TSDeleteDataReq(client.SessionId, tsPathLst, startTime, endTime); - - try - { - var status = await client.ServiceClient.deleteDataAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation( - "delete data from {0}, server message is {1}", - tsPathLst, - status.Message); - } - - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + var req = new TSDeleteDataReq(client.SessionId, tsPathLst, startTime, endTime); - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.deleteDataAsync(req); if (_debugMode) @@ -635,43 +470,18 @@ public async Task DeleteDataAsync(List tsPathLst, long startTime, l } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when deleting data", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when deleting data" + ); } - + // use ExecuteClientOperationAsync to insert record public async Task InsertRecordAsync(string deviceId, RowRecord record) { - // TBD by Luzhan - var client = _clients.Take(); - var req = new TSInsertRecordReq(client.SessionId, deviceId, record.Measurements, record.ToBytes(), - record.Timestamps); - try - { - var status = await client.ServiceClient.insertRecordAsync(req); - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("insert one record to device {0}, server message: {1}", deviceId, status.Message); - } - - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + var req = new TSInsertRecordReq(client.SessionId, deviceId, record.Measurements, record.ToBytes(), record.Timestamps); - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.insertRecordAsync(req); if (_debugMode) @@ -680,45 +490,21 @@ public async Task InsertRecordAsync(string deviceId, RowRecord record) } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) + }, + errMsg: "Error occurs when inserting record" + ); + } + // use ExecuteClientOperationAsync to insert record + public async Task InsertAlignedRecordAsync(string deviceId, RowRecord record) + { + return await ExecuteClientOperationAsync( + async client => { - throw new TException("Error occurs when inserting record", ex); - } - } - finally - { - _clients.Add(client); - } - } - public async Task InsertAlignedRecordAsync(string deviceId, RowRecord record) - { - var client = _clients.Take(); - var req = new TSInsertRecordReq(client.SessionId, deviceId, record.Measurements, record.ToBytes(), - record.Timestamps); - req.IsAligned = true; - // ASSERT that the insert plan is aligned - System.Diagnostics.Debug.Assert(req.IsAligned == true); - try - { - var status = await client.ServiceClient.insertRecordAsync(req); - - if (_debugMode) - { - _logger.LogInformation("insert one record to device {0}, server message: {1}", deviceId, status.Message); - } - - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + var req = new TSInsertRecordReq(client.SessionId, deviceId, record.Measurements, record.ToBytes(), record.Timestamps); + req.IsAligned = true; + // ASSERT that the insert plan is aligned + System.Diagnostics.Debug.Assert(req.IsAligned == true); - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.insertRecordAsync(req); if (_debugMode) @@ -727,17 +513,9 @@ public async Task InsertAlignedRecordAsync(string deviceId, RowRecord recor } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when inserting record", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when inserting record" + ); } public TSInsertStringRecordReq GenInsertStrRecordReq(string deviceId, List measurements, @@ -776,74 +554,36 @@ public TSInsertRecordsReq GenInsertRecordsReq(List deviceId, List InsertStringRecordAsync(string deviceId, List measurements, List values, long timestamp) { - var client = _clients.Take(); - var req = GenInsertStrRecordReq(deviceId, measurements, values, timestamp, client.SessionId); - try - { - var status = await client.ServiceClient.insertStringRecordAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("insert one string record to device {0}, server message: {1}", deviceId, status.Message); - } - - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + var req = GenInsertStrRecordReq(deviceId, measurements, values, timestamp, client.SessionId); - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.insertStringRecordAsync(req); if (_debugMode) { - _logger.LogInformation("insert one record to device {0}, server message: {1}", deviceId, status.Message); + _logger.LogInformation("insert one string record to device {0}, server message: {1}", deviceId, status.Message); } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when inserting a string record", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when inserting a string record" + ); } + // use ExecuteClientOperationAsync to insert record public async Task InsertAlignedStringRecordAsync(string deviceId, List measurements, List values, long timestamp) { - var client = _clients.Take(); - var req = GenInsertStrRecordReq(deviceId, measurements, values, timestamp, client.SessionId, true); - try - { - var status = await client.ServiceClient.insertStringRecordAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("insert one record to device {0}, server message: {1}", deviceId, status.Message); - } + var req = GenInsertStrRecordReq(deviceId, measurements, values, timestamp, client.SessionId, true); - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.insertStringRecordAsync(req); if (_debugMode) @@ -852,43 +592,19 @@ public async Task InsertAlignedStringRecordAsync(string deviceId, List InsertStringRecordsAsync(List deviceIds, List> measurements, List> values, List timestamps) { - var client = _clients.Take(); - var req = GenInsertStringRecordsReq(deviceIds, measurements, values, timestamps, client.SessionId); - try - { - var status = await client.ServiceClient.insertStringRecordsAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("insert string records to devices {0}, server message: {1}", deviceIds, status.Message); - } - - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - + var req = GenInsertStringRecordsReq(deviceIds, measurements, values, timestamps, client.SessionId); - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.insertStringRecordsAsync(req); if (_debugMode) @@ -897,44 +613,19 @@ public async Task InsertStringRecordsAsync(List deviceIds, List InsertAlignedStringRecordsAsync(List deviceIds, List> measurements, List> values, List timestamps) { - var client = _clients.Take(); - var req = GenInsertStringRecordsReq(deviceIds, measurements, values, timestamps, client.SessionId, true); - try - { - var status = await client.ServiceClient.insertStringRecordsAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("insert string records to devices {0}, server message: {1}", deviceIds, status.Message); - } + var req = GenInsertStringRecordsReq(deviceIds, measurements, values, timestamps, client.SessionId, true); - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.insertStringRecordsAsync(req); if (_debugMode) @@ -943,46 +634,19 @@ public async Task InsertAlignedStringRecordsAsync(List deviceIds, L } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - - } - catch (TException ex) - { - throw new TException("Error occurs when inserting string records", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when inserting string records" + ); } - + // use ExecuteClientOperationAsync to insert record public async Task InsertRecordsAsync(List deviceId, List rowRecords) { - var client = _clients.Take(); - - var request = GenInsertRecordsReq(deviceId, rowRecords, client.SessionId); - - try - { - var status = await client.ServiceClient.insertRecordsAsync(request); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("insert multiple records to devices {0}, server message: {1}", deviceId, status.Message); - } - - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + var req = GenInsertRecordsReq(deviceId, rowRecords, client.SessionId); - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - request.SessionId = client.SessionId; - try - { - var status = await client.ServiceClient.insertRecordsAsync(request); + var status = await client.ServiceClient.insertRecordsAsync(req); if (_debugMode) { @@ -990,47 +654,22 @@ public async Task InsertRecordsAsync(List deviceId, List } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when inserting records", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when inserting records" + ); } + // use ExecuteClientOperationAsync to insert record public async Task InsertAlignedRecordsAsync(List deviceId, List rowRecords) { - var client = _clients.Take(); - - var request = GenInsertRecordsReq(deviceId, rowRecords, client.SessionId); - request.IsAligned = true; - // ASSERT that the insert plan is aligned - System.Diagnostics.Debug.Assert(request.IsAligned == true); - - try - { - var status = await client.ServiceClient.insertRecordsAsync(request); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("insert multiple records to devices {0}, server message: {1}", deviceId, status.Message); - } + var req = GenInsertRecordsReq(deviceId, rowRecords, client.SessionId); + req.IsAligned = true; + // ASSERT that the insert plan is aligned + System.Diagnostics.Debug.Assert(req.IsAligned == true); - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - request.SessionId = client.SessionId; - try - { - var status = await client.ServiceClient.insertRecordsAsync(request); + var status = await client.ServiceClient.insertRecordsAsync(req); if (_debugMode) { @@ -1038,17 +677,9 @@ public async Task InsertAlignedRecordsAsync(List deviceId, List InsertTabletAsync(Tablet tablet) { - var client = _clients.Take(); - var req = GenInsertTabletReq(tablet, client.SessionId); - - try - { - var status = await client.ServiceClient.insertTabletAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("insert one tablet to device {0}, server message: {1}", tablet.DeviceId, status.Message); - } - - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + var req = GenInsertTabletReq(tablet, client.SessionId); - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.insertTabletAsync(req); if (_debugMode) @@ -1094,43 +708,19 @@ public async Task InsertTabletAsync(Tablet tablet) } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when inserting tablet", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when inserting tablet" + ); } + // use ExecuteClientOperationAsync to insert tablet public async Task InsertAlignedTabletAsync(Tablet tablet) { - var client = _clients.Take(); - var req = GenInsertTabletReq(tablet, client.SessionId); - req.IsAligned = true; - - try - { - var status = await client.ServiceClient.insertTabletAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("insert one aligned tablet to device {0}, server message: {1}", tablet.DeviceId, status.Message); - } + var req = GenInsertTabletReq(tablet, client.SessionId); + req.IsAligned = true; - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.insertTabletAsync(req); if (_debugMode) @@ -1139,20 +729,11 @@ public async Task InsertAlignedTabletAsync(Tablet tablet) } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when inserting tablet", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when inserting aligned tablet" + ); } - public TSInsertTabletsReq GenInsertTabletsReq(List tabletLst, long sessionId) { var deviceIdLst = new List(); @@ -1182,31 +763,15 @@ public TSInsertTabletsReq GenInsertTabletsReq(List tabletLst, long sessi typeLst, sizeLst); } + // use ExecuteClientOperationAsync to insert tablets public async Task InsertTabletsAsync(List tabletLst) { - var client = _clients.Take(); - var req = GenInsertTabletsReq(tabletLst, client.SessionId); - - try - { - var status = await client.ServiceClient.insertTabletsAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("insert multiple tablets, message: {0}", status.Message); - } + var req = GenInsertTabletsReq(tabletLst, client.SessionId); - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.insertTabletsAsync(req); if (_debugMode) @@ -1215,44 +780,19 @@ public async Task InsertTabletsAsync(List tabletLst) } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + }, + errMsg: "Error occurs when inserting tablets" + ); + } + // use ExecuteClientOperationAsync to insert tablets + public async Task InsertAlignedTabletsAsync(List tabletLst) + { + return await ExecuteClientOperationAsync( + async client => + { + var req = GenInsertTabletsReq(tabletLst, client.SessionId); + req.IsAligned = true; - } - catch (TException ex) - { - throw new TException("Error occurs when inserting tablets", ex); - } - } - finally - { - _clients.Add(client); - } - } - - public async Task InsertAlignedTabletsAsync(List tabletLst) - { - var client = _clients.Take(); - var req = GenInsertTabletsReq(tabletLst, client.SessionId); - req.IsAligned = true; - - try - { - var status = await client.ServiceClient.insertTabletsAsync(req); - - if (_debugMode) - { - _logger.LogInformation("insert multiple aligned tablets, message: {0}", status.Message); - } - - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.insertTabletsAsync(req); if (_debugMode) @@ -1261,17 +801,9 @@ public async Task InsertAlignedTabletsAsync(List tabletLst) } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when inserting tablets", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when inserting aligned tablets" + ); } public async Task InsertRecordsOfOneDeviceAsync(string deviceId, List rowRecords) @@ -1310,36 +842,20 @@ public async Task InsertAlignedStringRecordsOfOneDeviceAsync(string deviceI return await InsertStringRecordsOfOneDeviceSortedAsync(deviceId, sortedTimestamps, sortedMeasurementsList, sortedValuesList, true); } + // use ExecuteClientOperationAsync to InsertStringRecordsOfOneDeviceSortedAsync public async Task InsertStringRecordsOfOneDeviceSortedAsync(string deviceId, List timestamps, List> measurementsList, List> valuesList, bool isAligned) { - var client = _clients.Take(); - - if (!_utilFunctions.IsSorted(timestamps)) - { - throw new TException("insert string records of one device error: timestamp not sorted", null); - } - - var req = GenInsertStringRecordsOfOneDeviceReq(deviceId, timestamps, measurementsList, valuesList, client.SessionId, isAligned); - try - { - var status = await client.ServiceClient.insertStringRecordsOfOneDeviceAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("insert string records of one device, message: {0}", status.Message); - } + if (!_utilFunctions.IsSorted(timestamps)) + { + throw new TException("insert string records of one device error: timestamp not sorted", null); + } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + var req = GenInsertStringRecordsOfOneDeviceReq(deviceId, timestamps, measurementsList, valuesList, client.SessionId, isAligned); - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.insertStringRecordsOfOneDeviceAsync(req); if (_debugMode) @@ -1348,18 +864,9 @@ public async Task InsertStringRecordsOfOneDeviceSortedAsync(string deviceId } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when inserting string records of one device", ex); - } - } - finally - { - _clients.Add(client); - - } + }, + errMsg: "Error occurs when inserting string records of one device" + ); } private TSInsertStringRecordsOfOneDeviceReq GenInsertStringRecordsOfOneDeviceReq(string deviceId, List timestamps, List> measurementsList, List> valuesList, @@ -1391,39 +898,21 @@ private TSInsertRecordsOfOneDeviceReq GenInsertRecordsOfOneDeviceRequest( values.ToList(), timestampLst); } - + // use ExecuteClientOperationAsync to InsertRecordsOfOneDeviceSortedAsync public async Task InsertRecordsOfOneDeviceSortedAsync(string deviceId, List rowRecords) { - var client = _clients.Take(); - - var timestampLst = rowRecords.Select(x => x.Timestamps).ToList(); - - if (!_utilFunctions.IsSorted(timestampLst)) - { - throw new TException("insert records of one device error: timestamp not sorted", null); - } - - var req = GenInsertRecordsOfOneDeviceRequest(deviceId, rowRecords, client.SessionId); - - try - { - var status = await client.ServiceClient.insertRecordsOfOneDeviceAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("insert records of one device, message: {0}", status.Message); - } + var timestampLst = rowRecords.Select(x => x.Timestamps).ToList(); - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + if (!_utilFunctions.IsSorted(timestampLst)) + { + throw new TException("insert records of one device error: timestamp not sorted", null); + } + + var req = GenInsertRecordsOfOneDeviceRequest(deviceId, rowRecords, client.SessionId); - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.insertRecordsOfOneDeviceAsync(req); if (_debugMode) @@ -1432,51 +921,26 @@ public async Task InsertRecordsOfOneDeviceSortedAsync(string deviceId, List } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when inserting records of one device", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when inserting records of one device" + ); } + // use ExecuteClientOperationAsync to InsertAlignedRecordsOfOneDeviceSortedAsync public async Task InsertAlignedRecordsOfOneDeviceSortedAsync(string deviceId, List rowRecords) { - var client = _clients.Take(); - - var timestampLst = rowRecords.Select(x => x.Timestamps).ToList(); - - if (!_utilFunctions.IsSorted(timestampLst)) - { - throw new TException("insert records of one device error: timestamp not sorted", null); - } - - var req = GenInsertRecordsOfOneDeviceRequest(deviceId, rowRecords, client.SessionId); - req.IsAligned = true; - - try - { - var status = await client.ServiceClient.insertRecordsOfOneDeviceAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("insert aligned records of one device, message: {0}", status.Message); - } + var timestampLst = rowRecords.Select(x => x.Timestamps).ToList(); - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + if (!_utilFunctions.IsSorted(timestampLst)) + { + throw new TException("insert records of one device error: timestamp not sorted", null); + } + + var req = GenInsertRecordsOfOneDeviceRequest(deviceId, rowRecords, client.SessionId); + req.IsAligned = true; - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.insertRecordsOfOneDeviceAsync(req); if (_debugMode) @@ -1485,49 +949,23 @@ public async Task InsertAlignedRecordsOfOneDeviceSortedAsync(string deviceI } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when inserting aligned records of one device", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when inserting aligned records of one device" + ); } - + // use ExecuteClientOperationAsync to TestInsertRecordAsync public async Task TestInsertRecordAsync(string deviceId, RowRecord record) { - var client = _clients.Take(); - - var req = new TSInsertRecordReq( - client.SessionId, - deviceId, - record.Measurements, - record.ToBytes(), - record.Timestamps); - - try - { - var status = await client.ServiceClient.testInsertRecordAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("insert one record to device {0}, server message: {1}", deviceId, status.Message); - } - - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + var req = new TSInsertRecordReq( + client.SessionId, + deviceId, + record.Measurements, + record.ToBytes(), + record.Timestamps); - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.testInsertRecordAsync(req); if (_debugMode) @@ -1536,43 +974,18 @@ public async Task TestInsertRecordAsync(string deviceId, RowRecord record) } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when test inserting one record", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when test inserting one record" + ); } - + // use ExecuteClientOperationAsync to TestInsertRecordsAsync public async Task TestInsertRecordsAsync(List deviceId, List rowRecords) { - var client = _clients.Take(); - var req = GenInsertRecordsReq(deviceId, rowRecords, client.SessionId); - - try - { - var status = await client.ServiceClient.testInsertRecordsAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("insert multiple records to devices {0}, server message: {1}", deviceId, status.Message); - } + var req = GenInsertRecordsReq(deviceId, rowRecords, client.SessionId); - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.testInsertRecordsAsync(req); if (_debugMode) @@ -1581,92 +994,38 @@ public async Task TestInsertRecordsAsync(List deviceId, List TestInsertTabletAsync(Tablet tablet) { - var client = _clients.Take(); - - var req = GenInsertTabletReq(tablet, client.SessionId); - - try - { - var status = await client.ServiceClient.testInsertTabletAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("insert one tablet to device {0}, server message: {1}", tablet.DeviceId, - status.Message); - } - - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + var req = GenInsertTabletReq(tablet, client.SessionId); - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.testInsertTabletAsync(req); if (_debugMode) { - _logger.LogInformation("insert one tablet to device {0}, server message: {1}", tablet.DeviceId, - status.Message); + _logger.LogInformation("insert one tablet to device {0}, server message: {1}", tablet.DeviceId, status.Message); } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when test inserting one tablet", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when test inserting one tablet" + ); } - + // use ExecuteClientOperationAsync to TestInsertTabletsAsync public async Task TestInsertTabletsAsync(List tabletLst) { - var client = _clients.Take(); - - var req = GenInsertTabletsReq(tabletLst, client.SessionId); - - try - { - var status = await client.ServiceClient.testInsertTabletsAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("insert multiple tablets, message: {0}", status.Message); - } + var req = GenInsertTabletsReq(tabletLst, client.SessionId); - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.testInsertTabletsAsync(req); if (_debugMode) @@ -1675,17 +1034,9 @@ public async Task TestInsertTabletsAsync(List tabletLst) } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when test inserting multiple tablets", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when test inserting multiple tablets" + ); } public async Task ExecuteQueryStatementAsync(string sql) @@ -1788,35 +1139,16 @@ public async Task ExecuteStatementAsync(string sql) return sessionDataset; } - + // use ExecuteClientOperationAsync to ExecuteNonQueryStatementAsync public async Task ExecuteNonQueryStatementAsync(string sql) { - var client = _clients.Take(); - var req = new TSExecuteStatementReq(client.SessionId, sql, client.StatementId); - - try - { - var resp = await client.ServiceClient.executeUpdateStatementAsync(req); - var status = resp.Status; - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("execute non-query statement {0} message: {1}", sql, status.Message); - } + var req = new TSExecuteStatementReq(client.SessionId, sql, client.StatementId); - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - req.StatementId = client.StatementId; - try - { - var resp = await client.ServiceClient.executeUpdateStatementAsync(req); - var status = resp.Status; + var resp = await client.ServiceClient.executeUpdateStatementAsync(req); + var status = resp.Status; if (_debugMode) { @@ -1824,17 +1156,9 @@ public async Task ExecuteNonQueryStatementAsync(string sql) } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when executing non-query statement", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when executing non-query statement" + ); } public async Task ExecuteRawDataQuery(List paths, long startTime, long endTime) { @@ -1938,30 +1262,14 @@ public async Task ExecuteLastDataQueryAsync(List paths, return sessionDataset; } - + // use ExecuteClientOperationAsync to CreateSchemaTemplateAsync public async Task CreateSchemaTemplateAsync(Template template) { - var client = _clients.Take(); - var req = new TSCreateSchemaTemplateReq(client.SessionId, template.Name, template.ToBytes()); - try - { - var status = await client.ServiceClient.createSchemaTemplateAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("create schema template {0} message: {1}", template.Name, status.Message); - } + var req = new TSCreateSchemaTemplateReq(client.SessionId, template.Name, template.ToBytes()); - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.createSchemaTemplateAsync(req); if (_debugMode) @@ -1970,42 +1278,18 @@ public async Task CreateSchemaTemplateAsync(Template template) } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when creating schema template", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when creating schema template" + ); } - + // use ExecuteClientOperationAsync to DropSchemaTemplateAsync public async Task DropSchemaTemplateAsync(string templateName) { - var client = _clients.Take(); - var req = new TSDropSchemaTemplateReq(client.SessionId, templateName); - try - { - var status = await client.ServiceClient.dropSchemaTemplateAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("drop schema template {0} message: {1}", templateName, status.Message); - } - - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + var req = new TSDropSchemaTemplateReq(client.SessionId, templateName); - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.dropSchemaTemplateAsync(req); if (_debugMode) @@ -2014,42 +1298,18 @@ public async Task DropSchemaTemplateAsync(string templateName) } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when dropping schema template", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when dropping schema template" + ); } - + // use ExecuteClientOperationAsync to SetSchemaTemplateAsync public async Task SetSchemaTemplateAsync(string templateName, string prefixPath) { - var client = _clients.Take(); - var req = new TSSetSchemaTemplateReq(client.SessionId, templateName, prefixPath); - try - { - var status = await client.ServiceClient.setSchemaTemplateAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("set schema template {0} message: {1}", templateName, status.Message); - } - - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + var req = new TSSetSchemaTemplateReq(client.SessionId, templateName, prefixPath); - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.setSchemaTemplateAsync(req); if (_debugMode) @@ -2058,42 +1318,18 @@ public async Task SetSchemaTemplateAsync(string templateName, string prefix } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when setting schema template", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when setting schema template" + ); } - + // use ExecuteClientOperationAsync to UnsetSchemaTemplateAsync public async Task UnsetSchemaTemplateAsync(string prefixPath, string templateName) { - var client = _clients.Take(); - var req = new TSUnsetSchemaTemplateReq(client.SessionId, prefixPath, templateName); - try - { - var status = await client.ServiceClient.unsetSchemaTemplateAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("unset schema template {0} message: {1}", templateName, status.Message); - } - - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + var req = new TSUnsetSchemaTemplateReq(client.SessionId, prefixPath, templateName); - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.unsetSchemaTemplateAsync(req); if (_debugMode) @@ -2102,42 +1338,18 @@ public async Task UnsetSchemaTemplateAsync(string prefixPath, string templa } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when unsetting schema template", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when unsetting schema template" + ); } - + // use ExecuteClientOperationAsync to DeleteNodeInTemplateAsync public async Task DeleteNodeInTemplateAsync(string templateName, string path) { - var client = _clients.Take(); - var req = new TSPruneSchemaTemplateReq(client.SessionId, templateName, path); - try - { - var status = await client.ServiceClient.pruneSchemaTemplateAsync(req); - - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("delete node in template {0} message: {1}", templateName, status.Message); - } + var req = new TSPruneSchemaTemplateReq(client.SessionId, templateName, path); - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var status = await client.ServiceClient.pruneSchemaTemplateAsync(req); if (_debugMode) @@ -2146,44 +1358,21 @@ public async Task DeleteNodeInTemplateAsync(string templateName, string pat } return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - - } - catch (TException ex) - { - throw new TException("Error occurs when deleting node in template", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when deleting node in template" + ); } - + // use ExecuteClientOperationAsync to CountMeasurementsInTemplateAsync public async Task CountMeasurementsInTemplateAsync(string name) { - var client = _clients.Take(); - var req = new TSQueryTemplateReq(client.SessionId, name, (int)TemplateQueryType.COUNT_MEASUREMENTS); - try - { - var resp = await client.ServiceClient.querySchemaTemplateAsync(req); - var status = resp.Status; - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("count measurements in template {0} message: {1}", name, status.Message); - } + var req = new TSQueryTemplateReq(client.SessionId, name, (int)TemplateQueryType.COUNT_MEASUREMENTS); - _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - return resp.Count; - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var resp = await client.ServiceClient.querySchemaTemplateAsync(req); var status = resp.Status; + if (_debugMode) { _logger.LogInformation("count measurements in template {0} message: {1}", name, status.Message); @@ -2191,43 +1380,22 @@ public async Task CountMeasurementsInTemplateAsync(string name) _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); return resp.Count; - } - catch (TException ex) - { - throw new TException("Error occurs when counting measurements in template", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when counting measurements in template" + ); } + // use ExecuteClientOperationAsync to IsMeasurementInTemplateAsync public async Task IsMeasurementInTemplateAsync(string templateName, string path) { - var client = _clients.Take(); - var req = new TSQueryTemplateReq(client.SessionId, templateName, (int)TemplateQueryType.IS_MEASUREMENT); - req.Measurement = path; - try - { - var resp = await client.ServiceClient.querySchemaTemplateAsync(req); - var status = resp.Status; - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("is measurement in template {0} message: {1}", templateName, status.Message); - } + var req = new TSQueryTemplateReq(client.SessionId, templateName, (int)TemplateQueryType.IS_MEASUREMENT); + req.Measurement = path; - _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - return resp.Result; - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var resp = await client.ServiceClient.querySchemaTemplateAsync(req); var status = resp.Status; + if (_debugMode) { _logger.LogInformation("is measurement in template {0} message: {1}", templateName, status.Message); @@ -2235,44 +1403,22 @@ public async Task IsMeasurementInTemplateAsync(string templateName, string _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); return resp.Result; - } - catch (TException ex) - { - throw new TException("Error occurs when checking measurement in template", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when checking measurement in template" + ); } - - public async Task IsPathExistInTemplate(string templateName, string path) + // use ExecuteClientOperationAsync to IsPathExistInTemplateAsync + public async Task IsPathExistInTemplateAsync(string templateName, string path) { - var client = _clients.Take(); - var req = new TSQueryTemplateReq(client.SessionId, templateName, (int)TemplateQueryType.PATH_EXIST); - req.Measurement = path; - try - { - var resp = await client.ServiceClient.querySchemaTemplateAsync(req); - var status = resp.Status; - if (_debugMode) + return await ExecuteClientOperationAsync( + async client => { - _logger.LogInformation("is path exist in template {0} message: {1}", templateName, status.Message); - } + var req = new TSQueryTemplateReq(client.SessionId, templateName, (int)TemplateQueryType.PATH_EXIST); + req.Measurement = path; - _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - return resp.Result; - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var resp = await client.ServiceClient.querySchemaTemplateAsync(req); var status = resp.Status; + if (_debugMode) { _logger.LogInformation("is path exist in template {0} message: {1}", templateName, status.Message); @@ -2280,44 +1426,22 @@ public async Task IsPathExistInTemplate(string templateName, string path) _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); return resp.Result; - } - catch (TException ex) - { - throw new TException("Error occurs when checking path exist in template", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when checking path exist in template" + ); } - + // use ExecuteClientOperationAsync to ShowMeasurementsInTemplateAsync public async Task> ShowMeasurementsInTemplateAsync(string templateName, string pattern = "") { - var client = _clients.Take(); - var req = new TSQueryTemplateReq(client.SessionId, templateName, (int)TemplateQueryType.SHOW_MEASUREMENTS); - req.Measurement = pattern; - try - { - var resp = await client.ServiceClient.querySchemaTemplateAsync(req); - var status = resp.Status; - if (_debugMode) + return await ExecuteClientOperationAsync>( + async client => { - _logger.LogInformation("get measurements in template {0} message: {1}", templateName, status.Message); - } + var req = new TSQueryTemplateReq(client.SessionId, templateName, (int)TemplateQueryType.SHOW_MEASUREMENTS); + req.Measurement = pattern; - _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - return resp.Measurements; - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var resp = await client.ServiceClient.querySchemaTemplateAsync(req); var status = resp.Status; + if (_debugMode) { _logger.LogInformation("get measurements in template {0} message: {1}", templateName, status.Message); @@ -2325,42 +1449,22 @@ public async Task> ShowMeasurementsInTemplateAsync(string templateN _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); return resp.Measurements; - } - catch (TException ex) - { - throw new TException("Error occurs when getting measurements in template", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when showing measurements in template" + ); } + + // use ExecuteClientOperationAsync to ShowAllTemplatesAsync public async Task> ShowAllTemplatesAsync() { - var client = _clients.Take(); - var req = new TSQueryTemplateReq(client.SessionId, "", (int)TemplateQueryType.SHOW_TEMPLATES); - try - { - var resp = await client.ServiceClient.querySchemaTemplateAsync(req); - var status = resp.Status; - if (_debugMode) + return await ExecuteClientOperationAsync>( + async client => { - _logger.LogInformation("get all templates message: {0}", status.Message); - } + var req = new TSQueryTemplateReq(client.SessionId, "", (int)TemplateQueryType.SHOW_TEMPLATES); - _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - return resp.Measurements; - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var resp = await client.ServiceClient.querySchemaTemplateAsync(req); var status = resp.Status; + if (_debugMode) { _logger.LogInformation("get all templates message: {0}", status.Message); @@ -2368,42 +1472,22 @@ public async Task> ShowAllTemplatesAsync() _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); return resp.Measurements; - } - catch (TException ex) - { - throw new TException("Error occurs when getting all templates", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when getting all templates" + ); } + + // use ExecuteClientOperationAsync to ShowPathsTemplateSetOnAsync public async Task> ShowPathsTemplateSetOnAsync(string templateName) { - var client = _clients.Take(); - var req = new TSQueryTemplateReq(client.SessionId, templateName, (int)TemplateQueryType.SHOW_SET_TEMPLATES); - try - { - var resp = await client.ServiceClient.querySchemaTemplateAsync(req); - var status = resp.Status; - if (_debugMode) + return await ExecuteClientOperationAsync>( + async client => { - _logger.LogInformation("get paths template set on {0} message: {1}", templateName, status.Message); - } + var req = new TSQueryTemplateReq(client.SessionId, templateName, (int)TemplateQueryType.SHOW_SET_TEMPLATES); - _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - return resp.Measurements; - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var resp = await client.ServiceClient.querySchemaTemplateAsync(req); var status = resp.Status; + if (_debugMode) { _logger.LogInformation("get paths template set on {0} message: {1}", templateName, status.Message); @@ -2411,42 +1495,21 @@ public async Task> ShowPathsTemplateSetOnAsync(string templateName) _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); return resp.Measurements; - } - catch (TException ex) - { - throw new TException("Error occurs when getting paths template set on", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when getting paths template set on" + ); } + // use ExecuteClientOperationAsync to ShowPathsTemplateUsingOnAsync public async Task> ShowPathsTemplateUsingOnAsync(string templateName) { - var client = _clients.Take(); - var req = new TSQueryTemplateReq(client.SessionId, templateName, (int)TemplateQueryType.SHOW_USING_TEMPLATES); - try - { - var resp = await client.ServiceClient.querySchemaTemplateAsync(req); - var status = resp.Status; - if (_debugMode) + return await ExecuteClientOperationAsync>( + async client => { - _logger.LogInformation("get paths template using on {0} message: {1}", templateName, status.Message); - } + var req = new TSQueryTemplateReq(client.SessionId, templateName, (int)TemplateQueryType.SHOW_USING_TEMPLATES); - _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); - return resp.Measurements; - } - catch (TException e) - { - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - try - { var resp = await client.ServiceClient.querySchemaTemplateAsync(req); var status = resp.Status; + if (_debugMode) { _logger.LogInformation("get paths template using on {0} message: {1}", templateName, status.Message); @@ -2454,16 +1517,9 @@ public async Task> ShowPathsTemplateUsingOnAsync(string templateNam _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); return resp.Measurements; - } - catch (TException ex) - { - throw new TException("Error occurs when getting paths template using on", ex); - } - } - finally - { - _clients.Add(client); - } + }, + errMsg: "Error occurs when getting paths template using on" + ); } protected virtual void Dispose(bool disposing) From b0c53c0d90b95c2984695d67e5bc8a8b96b3db6d Mon Sep 17 00:00:00 2001 From: luzhan <513964121@qq.com> Date: Sat, 6 Jul 2024 23:22:54 +0800 Subject: [PATCH 02/15] feat:update thrift rpc code --- .../Rpc/Generated/IClientRPCService.cs | 28246 ++++++++-------- .../Rpc/Generated/ServerProperties.cs | 427 +- .../Rpc/Generated/TAggregationType.cs | 33 + .../Rpc/Generated/TConfigNodeLocation.cs | 87 +- .../Rpc/Generated/TConsensusGroupId.cs | 30 +- .../Rpc/Generated/TConsensusGroupType.cs | 7 +- ...TCreateTimeseriesUsingSchemaTemplateReq.cs | 184 + .../Rpc/Generated/TDataNodeConfiguration.cs | 84 +- .../Rpc/Generated/TDataNodeLocation.cs | 180 +- src/Apache.IoTDB/Rpc/Generated/TEndPoint.cs | 56 +- src/Apache.IoTDB/Rpc/Generated/TFile.cs | 84 +- src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs | 104 +- src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs | 76 +- src/Apache.IoTDB/Rpc/Generated/TLicense.cs | 341 + .../Rpc/Generated/TNodeLocations.cs | 236 + .../Rpc/Generated/TNodeResource.cs | 28 +- .../Rpc/Generated/TPipeSubscribeReq.cs | 215 + .../Rpc/Generated/TPipeSubscribeResp.cs | 262 + .../Rpc/Generated/TPipeTransferReq.cs | 196 + .../Rpc/Generated/TPipeTransferResp.cs | 187 + .../Generated/TRegionMaintainTaskStatus.cs | 14 + .../Rpc/Generated/TRegionMigrateFailedType.cs | 6 +- .../Rpc/Generated/TRegionReplicaSet.cs | 104 +- .../Rpc/Generated/TSAggregationQueryReq.cs | 559 + .../Generated/TSAppendSchemaTemplateReq.cs | 255 +- .../Generated/TSBackupConfigurationResp.cs | 94 +- .../Rpc/Generated/TSCancelOperationReq.cs | 28 +- .../Rpc/Generated/TSCloseOperationReq.cs | 51 +- .../Rpc/Generated/TSCloseSessionReq.cs | 25 +- .../Rpc/Generated/TSConnectionInfo.cs | 92 +- .../Rpc/Generated/TSConnectionInfoResp.cs | 73 +- .../Rpc/Generated/TSConnectionType.cs | 6 +- .../Generated/TSCreateAlignedTimeseriesReq.cs | 385 +- .../Generated/TSCreateMultiTimeseriesReq.cs | 405 +- .../Generated/TSCreateSchemaTemplateReq.cs | 87 +- .../Rpc/Generated/TSCreateTimeseriesReq.cs | 191 +- .../Rpc/Generated/TSDeleteDataReq.cs | 80 +- .../Rpc/Generated/TSDropSchemaTemplateReq.cs | 56 +- .../Generated/TSExecuteBatchStatementReq.cs | 74 +- .../Rpc/Generated/TSExecuteStatementReq.cs | 111 +- .../Rpc/Generated/TSExecuteStatementResp.cs | 344 +- .../TSFastLastDataQueryForOneDeviceReq.cs | 487 + .../Rpc/Generated/TSFetchMetadataReq.cs | 71 +- .../Rpc/Generated/TSFetchMetadataResp.cs | 114 +- .../Rpc/Generated/TSFetchResultsReq.cs | 78 +- .../Rpc/Generated/TSFetchResultsResp.cs | 133 +- .../Rpc/Generated/TSGetOperationStatusReq.cs | 28 +- .../Rpc/Generated/TSGetTimeZoneResp.cs | 84 +- .../Generated/TSGroupByQueryIntervalReq.cs | 545 + .../Rpc/Generated/TSInsertRecordReq.cs | 152 +- .../TSInsertRecordsOfOneDeviceReq.cs | 232 +- .../Rpc/Generated/TSInsertRecordsReq.cs | 250 +- .../Rpc/Generated/TSInsertStringRecordReq.cs | 183 +- .../TSInsertStringRecordsOfOneDeviceReq.cs | 248 +- .../Rpc/Generated/TSInsertStringRecordsReq.cs | 266 +- .../Rpc/Generated/TSInsertTabletReq.cs | 232 +- .../Rpc/Generated/TSInsertTabletsReq.cs | 364 +- .../Rpc/Generated/TSLastDataQueryReq.cs | 176 +- .../Rpc/Generated/TSOpenSessionReq.cs | 141 +- .../Rpc/Generated/TSOpenSessionResp.cs | 108 +- .../Rpc/Generated/TSProtocolVersion.cs | 5 +- .../Rpc/Generated/TSPruneSchemaTemplateReq.cs | 87 +- .../Rpc/Generated/TSQueryDataSet.cs | 151 +- .../Rpc/Generated/TSQueryNonAlignDataSet.cs | 120 +- .../Rpc/Generated/TSQueryTemplateReq.cs | 74 +- .../Rpc/Generated/TSQueryTemplateResp.cs | 113 +- .../Rpc/Generated/TSRawDataQueryReq.cs | 179 +- .../Rpc/Generated/TSSetSchemaTemplateReq.cs | 87 +- .../Rpc/Generated/TSSetTimeZoneReq.cs | 56 +- src/Apache.IoTDB/Rpc/Generated/TSStatus.cs | 132 +- .../Rpc/Generated/TSTracingInfo.cs | 237 +- .../Rpc/Generated/TSUnsetSchemaTemplateReq.cs | 87 +- src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs | 56 +- src/Apache.IoTDB/Rpc/Generated/TSender.cs | 202 + .../Rpc/Generated/TSeriesPartitionSlot.cs | 25 +- .../Rpc/Generated/TServiceProvider.cs | 172 + .../Rpc/Generated/TServiceType.cs | 14 + .../Rpc/Generated/TSetConfigurationReq.cs | 187 + .../Rpc/Generated/TSetSpaceQuotaReq.cs | 185 + src/Apache.IoTDB/Rpc/Generated/TSetTTLReq.cs | 119 +- .../Rpc/Generated/TSetThrottleQuotaReq.cs | 168 + src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs | 155 + .../Rpc/Generated/TShowConfigurationResp.cs | 168 + .../TShowConfigurationTemplateResp.cs | 168 + src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs | 155 + src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs | 244 + .../Rpc/Generated/TSyncIdentityInfo.cs | 118 +- .../Rpc/Generated/TSyncTransportMetaInfo.cs | 56 +- .../Rpc/Generated/TTestConnectionResp.cs | 186 + .../Rpc/Generated/TTestConnectionResult.cs | 246 + .../Rpc/Generated/TThrottleQuota.cs | 265 + .../Rpc/Generated/TTimePartitionSlot.cs | 25 +- src/Apache.IoTDB/Rpc/Generated/TTimedQuota.cs | 167 + .../Rpc/Generated/ThrottleType.cs | 16 + .../Rpc/Generated/client.Extensions.cs | 349 - .../Rpc/Generated/common.Extensions.cs | 133 - 96 files changed, 23678 insertions(+), 19224 deletions(-) create mode 100644 src/Apache.IoTDB/Rpc/Generated/TAggregationType.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TCreateTimeseriesUsingSchemaTemplateReq.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TLicense.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TNodeLocations.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeReq.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeResp.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TPipeTransferReq.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TPipeTransferResp.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TRegionMaintainTaskStatus.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TSAggregationQueryReq.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOneDeviceReq.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TSGroupByQueryIntervalReq.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TSender.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TServiceProvider.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TServiceType.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TSetConfigurationReq.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TSetSpaceQuotaReq.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TSetThrottleQuotaReq.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TShowConfigurationResp.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TShowConfigurationTemplateResp.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TTestConnectionResp.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TTestConnectionResult.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TThrottleQuota.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TTimedQuota.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/ThrottleType.cs delete mode 100644 src/Apache.IoTDB/Rpc/Generated/client.Extensions.cs delete mode 100644 src/Apache.IoTDB/Rpc/Generated/common.Extensions.cs diff --git a/src/Apache.IoTDB/Rpc/Generated/IClientRPCService.cs b/src/Apache.IoTDB/Rpc/Generated/IClientRPCService.cs index b0cdf09..33235c7 100644 --- a/src/Apache.IoTDB/Rpc/Generated/IClientRPCService.cs +++ b/src/Apache.IoTDB/Rpc/Generated/IClientRPCService.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,124 +23,144 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class IClientRPCService { public interface IAsync { - global::System.Threading.Tasks.Task executeQueryStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default); + Task executeQueryStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)); + + Task executeUpdateStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)); + + Task executeStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)); + + Task executeRawDataQueryV2Async(TSRawDataQueryReq req, CancellationToken cancellationToken = default(CancellationToken)); + + Task executeLastDataQueryV2Async(TSLastDataQueryReq req, CancellationToken cancellationToken = default(CancellationToken)); + + Task executeFastLastDataQueryForOneDeviceV2Async(TSFastLastDataQueryForOneDeviceReq req, CancellationToken cancellationToken = default(CancellationToken)); + + Task executeAggregationQueryV2Async(TSAggregationQueryReq req, CancellationToken cancellationToken = default(CancellationToken)); + + Task executeGroupByQueryIntervalQueryAsync(TSGroupByQueryIntervalReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task executeUpdateStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default); + Task fetchResultsV2Async(TSFetchResultsReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task executeStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default); + Task openSessionAsync(TSOpenSessionReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task executeRawDataQueryV2Async(TSRawDataQueryReq req, CancellationToken cancellationToken = default); + Task closeSessionAsync(TSCloseSessionReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task executeLastDataQueryV2Async(TSLastDataQueryReq req, CancellationToken cancellationToken = default); + Task executeStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task fetchResultsV2Async(TSFetchResultsReq req, CancellationToken cancellationToken = default); + Task executeBatchStatementAsync(TSExecuteBatchStatementReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task openSessionAsync(TSOpenSessionReq req, CancellationToken cancellationToken = default); + Task executeQueryStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task closeSessionAsync(TSCloseSessionReq req, CancellationToken cancellationToken = default); + Task executeUpdateStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task executeStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default); + Task fetchResultsAsync(TSFetchResultsReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task executeBatchStatementAsync(TSExecuteBatchStatementReq req, CancellationToken cancellationToken = default); + Task fetchMetadataAsync(TSFetchMetadataReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task executeQueryStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default); + Task cancelOperationAsync(TSCancelOperationReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task executeUpdateStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default); + Task closeOperationAsync(TSCloseOperationReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task fetchResultsAsync(TSFetchResultsReq req, CancellationToken cancellationToken = default); + Task getTimeZoneAsync(long sessionId, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task fetchMetadataAsync(TSFetchMetadataReq req, CancellationToken cancellationToken = default); + Task setTimeZoneAsync(TSSetTimeZoneReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task cancelOperationAsync(TSCancelOperationReq req, CancellationToken cancellationToken = default); + Task getPropertiesAsync(CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task closeOperationAsync(TSCloseOperationReq req, CancellationToken cancellationToken = default); + Task setStorageGroupAsync(long sessionId, string storageGroup, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task getTimeZoneAsync(long sessionId, CancellationToken cancellationToken = default); + Task createTimeseriesAsync(TSCreateTimeseriesReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task setTimeZoneAsync(TSSetTimeZoneReq req, CancellationToken cancellationToken = default); + Task createAlignedTimeseriesAsync(TSCreateAlignedTimeseriesReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task getPropertiesAsync(CancellationToken cancellationToken = default); + Task createMultiTimeseriesAsync(TSCreateMultiTimeseriesReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task setStorageGroupAsync(long sessionId, string storageGroup, CancellationToken cancellationToken = default); + Task deleteTimeseriesAsync(long sessionId, List path, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task createTimeseriesAsync(TSCreateTimeseriesReq req, CancellationToken cancellationToken = default); + Task deleteStorageGroupsAsync(long sessionId, List storageGroup, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task createAlignedTimeseriesAsync(TSCreateAlignedTimeseriesReq req, CancellationToken cancellationToken = default); + Task insertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task createMultiTimeseriesAsync(TSCreateMultiTimeseriesReq req, CancellationToken cancellationToken = default); + Task insertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task deleteTimeseriesAsync(long sessionId, List path, CancellationToken cancellationToken = default); + Task insertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task deleteStorageGroupsAsync(long sessionId, List storageGroup, CancellationToken cancellationToken = default); + Task insertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task insertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default); + Task insertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task insertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default); + Task insertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task insertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default); + Task insertStringRecordsOfOneDeviceAsync(TSInsertStringRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task insertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default); + Task insertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task insertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default); + Task testInsertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task insertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default); + Task testInsertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task insertStringRecordsOfOneDeviceAsync(TSInsertStringRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default); + Task testInsertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task insertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default); + Task testInsertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task testInsertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default); + Task testInsertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task testInsertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default); + Task testInsertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task testInsertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default); + Task testInsertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task testInsertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default); + Task deleteDataAsync(TSDeleteDataReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task testInsertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default); + Task executeRawDataQueryAsync(TSRawDataQueryReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task testInsertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default); + Task executeLastDataQueryAsync(TSLastDataQueryReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task testInsertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default); + Task executeAggregationQueryAsync(TSAggregationQueryReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task deleteDataAsync(TSDeleteDataReq req, CancellationToken cancellationToken = default); + Task requestStatementIdAsync(long sessionId, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task executeRawDataQueryAsync(TSRawDataQueryReq req, CancellationToken cancellationToken = default); + Task createSchemaTemplateAsync(TSCreateSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task executeLastDataQueryAsync(TSLastDataQueryReq req, CancellationToken cancellationToken = default); + Task appendSchemaTemplateAsync(TSAppendSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task requestStatementIdAsync(long sessionId, CancellationToken cancellationToken = default); + Task pruneSchemaTemplateAsync(TSPruneSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task createSchemaTemplateAsync(TSCreateSchemaTemplateReq req, CancellationToken cancellationToken = default); + Task querySchemaTemplateAsync(TSQueryTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task appendSchemaTemplateAsync(TSAppendSchemaTemplateReq req, CancellationToken cancellationToken = default); + Task showConfigurationTemplateAsync(CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task pruneSchemaTemplateAsync(TSPruneSchemaTemplateReq req, CancellationToken cancellationToken = default); + Task showConfigurationAsync(int nodeId, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task querySchemaTemplateAsync(TSQueryTemplateReq req, CancellationToken cancellationToken = default); + Task setSchemaTemplateAsync(TSSetSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task setSchemaTemplateAsync(TSSetSchemaTemplateReq req, CancellationToken cancellationToken = default); + Task unsetSchemaTemplateAsync(TSUnsetSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task unsetSchemaTemplateAsync(TSUnsetSchemaTemplateReq req, CancellationToken cancellationToken = default); + Task dropSchemaTemplateAsync(TSDropSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task dropSchemaTemplateAsync(TSDropSchemaTemplateReq req, CancellationToken cancellationToken = default); + Task createTimeseriesUsingSchemaTemplateAsync(TCreateTimeseriesUsingSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task handshakeAsync(TSyncIdentityInfo info, CancellationToken cancellationToken = default); + Task handshakeAsync(TSyncIdentityInfo info, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task sendPipeDataAsync(byte[] buff, CancellationToken cancellationToken = default); + Task sendPipeDataAsync(byte[] buff, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task sendFileAsync(TSyncTransportMetaInfo metaInfo, byte[] buff, CancellationToken cancellationToken = default); + Task sendFileAsync(TSyncTransportMetaInfo metaInfo, byte[] buff, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task getBackupConfigurationAsync(CancellationToken cancellationToken = default); + Task pipeTransferAsync(TPipeTransferReq req, CancellationToken cancellationToken = default(CancellationToken)); - global::System.Threading.Tasks.Task fetchAllConnectionsInfoAsync(CancellationToken cancellationToken = default); + Task pipeSubscribeAsync(TPipeSubscribeReq req, CancellationToken cancellationToken = default(CancellationToken)); + + Task getBackupConfigurationAsync(CancellationToken cancellationToken = default(CancellationToken)); + + Task fetchAllConnectionsInfoAsync(CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// For other node's call + /// + Task testConnectionEmptyRPCAsync(CancellationToken cancellationToken = default(CancellationToken)); } @@ -155,13 +173,12 @@ public Client(TProtocol protocol) : this(protocol, protocol) public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputProtocol, outputProtocol) { } - public async global::System.Threading.Tasks.Task executeQueryStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default) + public async Task executeQueryStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeQueryStatementV2", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeQueryStatementV2Args() { - Req = req, - }; + var args = new executeQueryStatementV2Args(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -175,7 +192,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.executeQueryStatementV2Result(); + var result = new executeQueryStatementV2Result(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -185,13 +202,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeQueryStatementV2 failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeUpdateStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default) + public async Task executeUpdateStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeUpdateStatementV2", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeUpdateStatementV2Args() { - Req = req, - }; + var args = new executeUpdateStatementV2Args(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -205,7 +221,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.executeUpdateStatementV2Result(); + var result = new executeUpdateStatementV2Result(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -215,13 +231,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeUpdateStatementV2 failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default) + public async Task executeStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeStatementV2", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeStatementV2Args() { - Req = req, - }; + var args = new executeStatementV2Args(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -235,7 +250,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.executeStatementV2Result(); + var result = new executeStatementV2Result(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -245,13 +260,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeStatementV2 failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeRawDataQueryV2Async(TSRawDataQueryReq req, CancellationToken cancellationToken = default) + public async Task executeRawDataQueryV2Async(TSRawDataQueryReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeRawDataQueryV2", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeRawDataQueryV2Args() { - Req = req, - }; + var args = new executeRawDataQueryV2Args(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -265,7 +279,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.executeRawDataQueryV2Result(); + var result = new executeRawDataQueryV2Result(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -275,13 +289,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeRawDataQueryV2 failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeLastDataQueryV2Async(TSLastDataQueryReq req, CancellationToken cancellationToken = default) + public async Task executeLastDataQueryV2Async(TSLastDataQueryReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeLastDataQueryV2", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeLastDataQueryV2Args() { - Req = req, - }; + var args = new executeLastDataQueryV2Args(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -295,7 +308,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.executeLastDataQueryV2Result(); + var result = new executeLastDataQueryV2Result(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -305,13 +318,99 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeLastDataQueryV2 failed: unknown result"); } - public async global::System.Threading.Tasks.Task fetchResultsV2Async(TSFetchResultsReq req, CancellationToken cancellationToken = default) + public async Task executeFastLastDataQueryForOneDeviceV2Async(TSFastLastDataQueryForOneDeviceReq req, CancellationToken cancellationToken = default(CancellationToken)) + { + await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeFastLastDataQueryForOneDeviceV2", TMessageType.Call, SeqId), cancellationToken); + + var args = new executeFastLastDataQueryForOneDeviceV2Args(); + args.Req = req; + + await args.WriteAsync(OutputProtocol, cancellationToken); + await OutputProtocol.WriteMessageEndAsync(cancellationToken); + await OutputProtocol.Transport.FlushAsync(cancellationToken); + + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) + { + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + throw x; + } + + var result = new executeFastLastDataQueryForOneDeviceV2Result(); + await result.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + if (result.__isset.success) + { + return result.Success; + } + throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeFastLastDataQueryForOneDeviceV2 failed: unknown result"); + } + + public async Task executeAggregationQueryV2Async(TSAggregationQueryReq req, CancellationToken cancellationToken = default(CancellationToken)) + { + await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeAggregationQueryV2", TMessageType.Call, SeqId), cancellationToken); + + var args = new executeAggregationQueryV2Args(); + args.Req = req; + + await args.WriteAsync(OutputProtocol, cancellationToken); + await OutputProtocol.WriteMessageEndAsync(cancellationToken); + await OutputProtocol.Transport.FlushAsync(cancellationToken); + + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) + { + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + throw x; + } + + var result = new executeAggregationQueryV2Result(); + await result.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + if (result.__isset.success) + { + return result.Success; + } + throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeAggregationQueryV2 failed: unknown result"); + } + + public async Task executeGroupByQueryIntervalQueryAsync(TSGroupByQueryIntervalReq req, CancellationToken cancellationToken = default(CancellationToken)) + { + await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeGroupByQueryIntervalQuery", TMessageType.Call, SeqId), cancellationToken); + + var args = new executeGroupByQueryIntervalQueryArgs(); + args.Req = req; + + await args.WriteAsync(OutputProtocol, cancellationToken); + await OutputProtocol.WriteMessageEndAsync(cancellationToken); + await OutputProtocol.Transport.FlushAsync(cancellationToken); + + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) + { + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + throw x; + } + + var result = new executeGroupByQueryIntervalQueryResult(); + await result.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + if (result.__isset.success) + { + return result.Success; + } + throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeGroupByQueryIntervalQuery failed: unknown result"); + } + + public async Task fetchResultsV2Async(TSFetchResultsReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("fetchResultsV2", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.fetchResultsV2Args() { - Req = req, - }; + var args = new fetchResultsV2Args(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -325,7 +424,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.fetchResultsV2Result(); + var result = new fetchResultsV2Result(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -335,13 +434,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "fetchResultsV2 failed: unknown result"); } - public async global::System.Threading.Tasks.Task openSessionAsync(TSOpenSessionReq req, CancellationToken cancellationToken = default) + public async Task openSessionAsync(TSOpenSessionReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("openSession", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.openSessionArgs() { - Req = req, - }; + var args = new openSessionArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -355,7 +453,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.openSessionResult(); + var result = new openSessionResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -365,13 +463,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "openSession failed: unknown result"); } - public async global::System.Threading.Tasks.Task closeSessionAsync(TSCloseSessionReq req, CancellationToken cancellationToken = default) + public async Task closeSessionAsync(TSCloseSessionReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("closeSession", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.closeSessionArgs() { - Req = req, - }; + var args = new closeSessionArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -385,7 +482,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.closeSessionResult(); + var result = new closeSessionResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -395,13 +492,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "closeSession failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default) + public async Task executeStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeStatement", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeStatementArgs() { - Req = req, - }; + var args = new executeStatementArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -415,7 +511,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.executeStatementResult(); + var result = new executeStatementResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -425,13 +521,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeStatement failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeBatchStatementAsync(TSExecuteBatchStatementReq req, CancellationToken cancellationToken = default) + public async Task executeBatchStatementAsync(TSExecuteBatchStatementReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeBatchStatement", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeBatchStatementArgs() { - Req = req, - }; + var args = new executeBatchStatementArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -445,7 +540,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.executeBatchStatementResult(); + var result = new executeBatchStatementResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -455,13 +550,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeBatchStatement failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeQueryStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default) + public async Task executeQueryStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeQueryStatement", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeQueryStatementArgs() { - Req = req, - }; + var args = new executeQueryStatementArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -475,7 +569,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.executeQueryStatementResult(); + var result = new executeQueryStatementResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -485,13 +579,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeQueryStatement failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeUpdateStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default) + public async Task executeUpdateStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeUpdateStatement", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeUpdateStatementArgs() { - Req = req, - }; + var args = new executeUpdateStatementArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -505,7 +598,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.executeUpdateStatementResult(); + var result = new executeUpdateStatementResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -515,13 +608,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeUpdateStatement failed: unknown result"); } - public async global::System.Threading.Tasks.Task fetchResultsAsync(TSFetchResultsReq req, CancellationToken cancellationToken = default) + public async Task fetchResultsAsync(TSFetchResultsReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("fetchResults", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.fetchResultsArgs() { - Req = req, - }; + var args = new fetchResultsArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -535,7 +627,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.fetchResultsResult(); + var result = new fetchResultsResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -545,13 +637,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "fetchResults failed: unknown result"); } - public async global::System.Threading.Tasks.Task fetchMetadataAsync(TSFetchMetadataReq req, CancellationToken cancellationToken = default) + public async Task fetchMetadataAsync(TSFetchMetadataReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("fetchMetadata", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.fetchMetadataArgs() { - Req = req, - }; + var args = new fetchMetadataArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -565,7 +656,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.fetchMetadataResult(); + var result = new fetchMetadataResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -575,13 +666,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "fetchMetadata failed: unknown result"); } - public async global::System.Threading.Tasks.Task cancelOperationAsync(TSCancelOperationReq req, CancellationToken cancellationToken = default) + public async Task cancelOperationAsync(TSCancelOperationReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("cancelOperation", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.cancelOperationArgs() { - Req = req, - }; + var args = new cancelOperationArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -595,7 +685,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.cancelOperationResult(); + var result = new cancelOperationResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -605,13 +695,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "cancelOperation failed: unknown result"); } - public async global::System.Threading.Tasks.Task closeOperationAsync(TSCloseOperationReq req, CancellationToken cancellationToken = default) + public async Task closeOperationAsync(TSCloseOperationReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("closeOperation", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.closeOperationArgs() { - Req = req, - }; + var args = new closeOperationArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -625,7 +714,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.closeOperationResult(); + var result = new closeOperationResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -635,13 +724,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "closeOperation failed: unknown result"); } - public async global::System.Threading.Tasks.Task getTimeZoneAsync(long sessionId, CancellationToken cancellationToken = default) + public async Task getTimeZoneAsync(long sessionId, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("getTimeZone", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.getTimeZoneArgs() { - SessionId = sessionId, - }; + var args = new getTimeZoneArgs(); + args.SessionId = sessionId; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -655,7 +743,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.getTimeZoneResult(); + var result = new getTimeZoneResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -665,13 +753,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getTimeZone failed: unknown result"); } - public async global::System.Threading.Tasks.Task setTimeZoneAsync(TSSetTimeZoneReq req, CancellationToken cancellationToken = default) + public async Task setTimeZoneAsync(TSSetTimeZoneReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("setTimeZone", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.setTimeZoneArgs() { - Req = req, - }; + var args = new setTimeZoneArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -685,7 +772,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.setTimeZoneResult(); + var result = new setTimeZoneResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -695,12 +782,11 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "setTimeZone failed: unknown result"); } - public async global::System.Threading.Tasks.Task getPropertiesAsync(CancellationToken cancellationToken = default) + public async Task getPropertiesAsync(CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("getProperties", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.getPropertiesArgs() { - }; + var args = new getPropertiesArgs(); await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -714,7 +800,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.getPropertiesResult(); + var result = new getPropertiesResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -724,14 +810,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getProperties failed: unknown result"); } - public async global::System.Threading.Tasks.Task setStorageGroupAsync(long sessionId, string storageGroup, CancellationToken cancellationToken = default) + public async Task setStorageGroupAsync(long sessionId, string storageGroup, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("setStorageGroup", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.setStorageGroupArgs() { - SessionId = sessionId, - StorageGroup = storageGroup, - }; + var args = new setStorageGroupArgs(); + args.SessionId = sessionId; + args.StorageGroup = storageGroup; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -745,7 +830,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.setStorageGroupResult(); + var result = new setStorageGroupResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -755,13 +840,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "setStorageGroup failed: unknown result"); } - public async global::System.Threading.Tasks.Task createTimeseriesAsync(TSCreateTimeseriesReq req, CancellationToken cancellationToken = default) + public async Task createTimeseriesAsync(TSCreateTimeseriesReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("createTimeseries", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.createTimeseriesArgs() { - Req = req, - }; + var args = new createTimeseriesArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -775,7 +859,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.createTimeseriesResult(); + var result = new createTimeseriesResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -785,13 +869,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "createTimeseries failed: unknown result"); } - public async global::System.Threading.Tasks.Task createAlignedTimeseriesAsync(TSCreateAlignedTimeseriesReq req, CancellationToken cancellationToken = default) + public async Task createAlignedTimeseriesAsync(TSCreateAlignedTimeseriesReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("createAlignedTimeseries", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.createAlignedTimeseriesArgs() { - Req = req, - }; + var args = new createAlignedTimeseriesArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -805,7 +888,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.createAlignedTimeseriesResult(); + var result = new createAlignedTimeseriesResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -815,13 +898,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "createAlignedTimeseries failed: unknown result"); } - public async global::System.Threading.Tasks.Task createMultiTimeseriesAsync(TSCreateMultiTimeseriesReq req, CancellationToken cancellationToken = default) + public async Task createMultiTimeseriesAsync(TSCreateMultiTimeseriesReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("createMultiTimeseries", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.createMultiTimeseriesArgs() { - Req = req, - }; + var args = new createMultiTimeseriesArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -835,7 +917,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.createMultiTimeseriesResult(); + var result = new createMultiTimeseriesResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -845,14 +927,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "createMultiTimeseries failed: unknown result"); } - public async global::System.Threading.Tasks.Task deleteTimeseriesAsync(long sessionId, List path, CancellationToken cancellationToken = default) + public async Task deleteTimeseriesAsync(long sessionId, List path, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("deleteTimeseries", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.deleteTimeseriesArgs() { - SessionId = sessionId, - Path = path, - }; + var args = new deleteTimeseriesArgs(); + args.SessionId = sessionId; + args.Path = path; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -866,7 +947,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.deleteTimeseriesResult(); + var result = new deleteTimeseriesResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -876,14 +957,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "deleteTimeseries failed: unknown result"); } - public async global::System.Threading.Tasks.Task deleteStorageGroupsAsync(long sessionId, List storageGroup, CancellationToken cancellationToken = default) + public async Task deleteStorageGroupsAsync(long sessionId, List storageGroup, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("deleteStorageGroups", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.deleteStorageGroupsArgs() { - SessionId = sessionId, - StorageGroup = storageGroup, - }; + var args = new deleteStorageGroupsArgs(); + args.SessionId = sessionId; + args.StorageGroup = storageGroup; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -897,7 +977,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.deleteStorageGroupsResult(); + var result = new deleteStorageGroupsResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -907,13 +987,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "deleteStorageGroups failed: unknown result"); } - public async global::System.Threading.Tasks.Task insertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default) + public async Task insertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertRecord", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.insertRecordArgs() { - Req = req, - }; + var args = new insertRecordArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -927,7 +1006,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.insertRecordResult(); + var result = new insertRecordResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -937,13 +1016,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertRecord failed: unknown result"); } - public async global::System.Threading.Tasks.Task insertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default) + public async Task insertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertStringRecord", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.insertStringRecordArgs() { - Req = req, - }; + var args = new insertStringRecordArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -957,7 +1035,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.insertStringRecordResult(); + var result = new insertStringRecordResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -967,13 +1045,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertStringRecord failed: unknown result"); } - public async global::System.Threading.Tasks.Task insertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default) + public async Task insertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertTablet", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.insertTabletArgs() { - Req = req, - }; + var args = new insertTabletArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -987,7 +1064,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.insertTabletResult(); + var result = new insertTabletResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -997,13 +1074,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertTablet failed: unknown result"); } - public async global::System.Threading.Tasks.Task insertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default) + public async Task insertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertTablets", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.insertTabletsArgs() { - Req = req, - }; + var args = new insertTabletsArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1017,7 +1093,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.insertTabletsResult(); + var result = new insertTabletsResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1027,13 +1103,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertTablets failed: unknown result"); } - public async global::System.Threading.Tasks.Task insertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default) + public async Task insertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertRecords", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.insertRecordsArgs() { - Req = req, - }; + var args = new insertRecordsArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1047,7 +1122,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.insertRecordsResult(); + var result = new insertRecordsResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1057,13 +1132,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertRecords failed: unknown result"); } - public async global::System.Threading.Tasks.Task insertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) + public async Task insertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertRecordsOfOneDevice", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.insertRecordsOfOneDeviceArgs() { - Req = req, - }; + var args = new insertRecordsOfOneDeviceArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1077,7 +1151,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.insertRecordsOfOneDeviceResult(); + var result = new insertRecordsOfOneDeviceResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1087,13 +1161,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertRecordsOfOneDevice failed: unknown result"); } - public async global::System.Threading.Tasks.Task insertStringRecordsOfOneDeviceAsync(TSInsertStringRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) + public async Task insertStringRecordsOfOneDeviceAsync(TSInsertStringRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertStringRecordsOfOneDevice", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.insertStringRecordsOfOneDeviceArgs() { - Req = req, - }; + var args = new insertStringRecordsOfOneDeviceArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1107,7 +1180,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.insertStringRecordsOfOneDeviceResult(); + var result = new insertStringRecordsOfOneDeviceResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1117,13 +1190,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertStringRecordsOfOneDevice failed: unknown result"); } - public async global::System.Threading.Tasks.Task insertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default) + public async Task insertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertStringRecords", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.insertStringRecordsArgs() { - Req = req, - }; + var args = new insertStringRecordsArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1137,7 +1209,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.insertStringRecordsResult(); + var result = new insertStringRecordsResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1147,13 +1219,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertStringRecords failed: unknown result"); } - public async global::System.Threading.Tasks.Task testInsertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default) + public async Task testInsertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertTablet", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.testInsertTabletArgs() { - Req = req, - }; + var args = new testInsertTabletArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1167,7 +1238,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.testInsertTabletResult(); + var result = new testInsertTabletResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1177,13 +1248,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertTablet failed: unknown result"); } - public async global::System.Threading.Tasks.Task testInsertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default) + public async Task testInsertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertTablets", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.testInsertTabletsArgs() { - Req = req, - }; + var args = new testInsertTabletsArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1197,7 +1267,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.testInsertTabletsResult(); + var result = new testInsertTabletsResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1207,13 +1277,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertTablets failed: unknown result"); } - public async global::System.Threading.Tasks.Task testInsertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default) + public async Task testInsertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertRecord", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.testInsertRecordArgs() { - Req = req, - }; + var args = new testInsertRecordArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1227,7 +1296,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.testInsertRecordResult(); + var result = new testInsertRecordResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1237,13 +1306,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertRecord failed: unknown result"); } - public async global::System.Threading.Tasks.Task testInsertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default) + public async Task testInsertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertStringRecord", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.testInsertStringRecordArgs() { - Req = req, - }; + var args = new testInsertStringRecordArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1257,7 +1325,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.testInsertStringRecordResult(); + var result = new testInsertStringRecordResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1267,13 +1335,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertStringRecord failed: unknown result"); } - public async global::System.Threading.Tasks.Task testInsertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default) + public async Task testInsertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertRecords", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.testInsertRecordsArgs() { - Req = req, - }; + var args = new testInsertRecordsArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1287,7 +1354,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.testInsertRecordsResult(); + var result = new testInsertRecordsResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1297,13 +1364,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertRecords failed: unknown result"); } - public async global::System.Threading.Tasks.Task testInsertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) + public async Task testInsertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertRecordsOfOneDevice", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.testInsertRecordsOfOneDeviceArgs() { - Req = req, - }; + var args = new testInsertRecordsOfOneDeviceArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1317,7 +1383,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.testInsertRecordsOfOneDeviceResult(); + var result = new testInsertRecordsOfOneDeviceResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1327,13 +1393,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertRecordsOfOneDevice failed: unknown result"); } - public async global::System.Threading.Tasks.Task testInsertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default) + public async Task testInsertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertStringRecords", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.testInsertStringRecordsArgs() { - Req = req, - }; + var args = new testInsertStringRecordsArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1347,7 +1412,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.testInsertStringRecordsResult(); + var result = new testInsertStringRecordsResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1357,13 +1422,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertStringRecords failed: unknown result"); } - public async global::System.Threading.Tasks.Task deleteDataAsync(TSDeleteDataReq req, CancellationToken cancellationToken = default) + public async Task deleteDataAsync(TSDeleteDataReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("deleteData", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.deleteDataArgs() { - Req = req, - }; + var args = new deleteDataArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1377,7 +1441,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.deleteDataResult(); + var result = new deleteDataResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1387,13 +1451,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "deleteData failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeRawDataQueryAsync(TSRawDataQueryReq req, CancellationToken cancellationToken = default) + public async Task executeRawDataQueryAsync(TSRawDataQueryReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeRawDataQuery", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeRawDataQueryArgs() { - Req = req, - }; + var args = new executeRawDataQueryArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1407,7 +1470,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.executeRawDataQueryResult(); + var result = new executeRawDataQueryResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1417,13 +1480,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeRawDataQuery failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeLastDataQueryAsync(TSLastDataQueryReq req, CancellationToken cancellationToken = default) + public async Task executeLastDataQueryAsync(TSLastDataQueryReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeLastDataQuery", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeLastDataQueryArgs() { - Req = req, - }; + var args = new executeLastDataQueryArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1437,7 +1499,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.executeLastDataQueryResult(); + var result = new executeLastDataQueryResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1447,13 +1509,41 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeLastDataQuery failed: unknown result"); } - public async global::System.Threading.Tasks.Task requestStatementIdAsync(long sessionId, CancellationToken cancellationToken = default) + public async Task executeAggregationQueryAsync(TSAggregationQueryReq req, CancellationToken cancellationToken = default(CancellationToken)) + { + await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeAggregationQuery", TMessageType.Call, SeqId), cancellationToken); + + var args = new executeAggregationQueryArgs(); + args.Req = req; + + await args.WriteAsync(OutputProtocol, cancellationToken); + await OutputProtocol.WriteMessageEndAsync(cancellationToken); + await OutputProtocol.Transport.FlushAsync(cancellationToken); + + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) + { + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + throw x; + } + + var result = new executeAggregationQueryResult(); + await result.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + if (result.__isset.success) + { + return result.Success; + } + throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeAggregationQuery failed: unknown result"); + } + + public async Task requestStatementIdAsync(long sessionId, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("requestStatementId", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.requestStatementIdArgs() { - SessionId = sessionId, - }; + var args = new requestStatementIdArgs(); + args.SessionId = sessionId; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1467,7 +1557,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.requestStatementIdResult(); + var result = new requestStatementIdResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1477,13 +1567,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "requestStatementId failed: unknown result"); } - public async global::System.Threading.Tasks.Task createSchemaTemplateAsync(TSCreateSchemaTemplateReq req, CancellationToken cancellationToken = default) + public async Task createSchemaTemplateAsync(TSCreateSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("createSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.createSchemaTemplateArgs() { - Req = req, - }; + var args = new createSchemaTemplateArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1497,7 +1586,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.createSchemaTemplateResult(); + var result = new createSchemaTemplateResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1507,13 +1596,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "createSchemaTemplate failed: unknown result"); } - public async global::System.Threading.Tasks.Task appendSchemaTemplateAsync(TSAppendSchemaTemplateReq req, CancellationToken cancellationToken = default) + public async Task appendSchemaTemplateAsync(TSAppendSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("appendSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.appendSchemaTemplateArgs() { - Req = req, - }; + var args = new appendSchemaTemplateArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1527,7 +1615,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.appendSchemaTemplateResult(); + var result = new appendSchemaTemplateResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1537,13 +1625,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "appendSchemaTemplate failed: unknown result"); } - public async global::System.Threading.Tasks.Task pruneSchemaTemplateAsync(TSPruneSchemaTemplateReq req, CancellationToken cancellationToken = default) + public async Task pruneSchemaTemplateAsync(TSPruneSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("pruneSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.pruneSchemaTemplateArgs() { - Req = req, - }; + var args = new pruneSchemaTemplateArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1557,7 +1644,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.pruneSchemaTemplateResult(); + var result = new pruneSchemaTemplateResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1567,13 +1654,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "pruneSchemaTemplate failed: unknown result"); } - public async global::System.Threading.Tasks.Task querySchemaTemplateAsync(TSQueryTemplateReq req, CancellationToken cancellationToken = default) + public async Task querySchemaTemplateAsync(TSQueryTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("querySchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.querySchemaTemplateArgs() { - Req = req, - }; + var args = new querySchemaTemplateArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1587,7 +1673,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.querySchemaTemplateResult(); + var result = new querySchemaTemplateResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1597,13 +1683,69 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "querySchemaTemplate failed: unknown result"); } - public async global::System.Threading.Tasks.Task setSchemaTemplateAsync(TSSetSchemaTemplateReq req, CancellationToken cancellationToken = default) + public async Task showConfigurationTemplateAsync(CancellationToken cancellationToken = default(CancellationToken)) + { + await OutputProtocol.WriteMessageBeginAsync(new TMessage("showConfigurationTemplate", TMessageType.Call, SeqId), cancellationToken); + + var args = new showConfigurationTemplateArgs(); + + await args.WriteAsync(OutputProtocol, cancellationToken); + await OutputProtocol.WriteMessageEndAsync(cancellationToken); + await OutputProtocol.Transport.FlushAsync(cancellationToken); + + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) + { + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + throw x; + } + + var result = new showConfigurationTemplateResult(); + await result.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + if (result.__isset.success) + { + return result.Success; + } + throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "showConfigurationTemplate failed: unknown result"); + } + + public async Task showConfigurationAsync(int nodeId, CancellationToken cancellationToken = default(CancellationToken)) + { + await OutputProtocol.WriteMessageBeginAsync(new TMessage("showConfiguration", TMessageType.Call, SeqId), cancellationToken); + + var args = new showConfigurationArgs(); + args.NodeId = nodeId; + + await args.WriteAsync(OutputProtocol, cancellationToken); + await OutputProtocol.WriteMessageEndAsync(cancellationToken); + await OutputProtocol.Transport.FlushAsync(cancellationToken); + + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) + { + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + throw x; + } + + var result = new showConfigurationResult(); + await result.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + if (result.__isset.success) + { + return result.Success; + } + throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "showConfiguration failed: unknown result"); + } + + public async Task setSchemaTemplateAsync(TSSetSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("setSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.setSchemaTemplateArgs() { - Req = req, - }; + var args = new setSchemaTemplateArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1617,7 +1759,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.setSchemaTemplateResult(); + var result = new setSchemaTemplateResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1627,13 +1769,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "setSchemaTemplate failed: unknown result"); } - public async global::System.Threading.Tasks.Task unsetSchemaTemplateAsync(TSUnsetSchemaTemplateReq req, CancellationToken cancellationToken = default) + public async Task unsetSchemaTemplateAsync(TSUnsetSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("unsetSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.unsetSchemaTemplateArgs() { - Req = req, - }; + var args = new unsetSchemaTemplateArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1647,7 +1788,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.unsetSchemaTemplateResult(); + var result = new unsetSchemaTemplateResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1657,13 +1798,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "unsetSchemaTemplate failed: unknown result"); } - public async global::System.Threading.Tasks.Task dropSchemaTemplateAsync(TSDropSchemaTemplateReq req, CancellationToken cancellationToken = default) + public async Task dropSchemaTemplateAsync(TSDropSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("dropSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.dropSchemaTemplateArgs() { - Req = req, - }; + var args = new dropSchemaTemplateArgs(); + args.Req = req; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1677,7 +1817,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.dropSchemaTemplateResult(); + var result = new dropSchemaTemplateResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1687,13 +1827,41 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "dropSchemaTemplate failed: unknown result"); } - public async global::System.Threading.Tasks.Task handshakeAsync(TSyncIdentityInfo info, CancellationToken cancellationToken = default) + public async Task createTimeseriesUsingSchemaTemplateAsync(TCreateTimeseriesUsingSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)) + { + await OutputProtocol.WriteMessageBeginAsync(new TMessage("createTimeseriesUsingSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); + + var args = new createTimeseriesUsingSchemaTemplateArgs(); + args.Req = req; + + await args.WriteAsync(OutputProtocol, cancellationToken); + await OutputProtocol.WriteMessageEndAsync(cancellationToken); + await OutputProtocol.Transport.FlushAsync(cancellationToken); + + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) + { + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + throw x; + } + + var result = new createTimeseriesUsingSchemaTemplateResult(); + await result.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + if (result.__isset.success) + { + return result.Success; + } + throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "createTimeseriesUsingSchemaTemplate failed: unknown result"); + } + + public async Task handshakeAsync(TSyncIdentityInfo info, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("handshake", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.handshakeArgs() { - Info = info, - }; + var args = new handshakeArgs(); + args.Info = info; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1707,7 +1875,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.handshakeResult(); + var result = new handshakeResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1717,13 +1885,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "handshake failed: unknown result"); } - public async global::System.Threading.Tasks.Task sendPipeDataAsync(byte[] buff, CancellationToken cancellationToken = default) + public async Task sendPipeDataAsync(byte[] buff, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("sendPipeData", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.sendPipeDataArgs() { - Buff = buff, - }; + var args = new sendPipeDataArgs(); + args.Buff = buff; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1737,7 +1904,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.sendPipeDataResult(); + var result = new sendPipeDataResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1747,14 +1914,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "sendPipeData failed: unknown result"); } - public async global::System.Threading.Tasks.Task sendFileAsync(TSyncTransportMetaInfo metaInfo, byte[] buff, CancellationToken cancellationToken = default) + public async Task sendFileAsync(TSyncTransportMetaInfo metaInfo, byte[] buff, CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("sendFile", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.sendFileArgs() { - MetaInfo = metaInfo, - Buff = buff, - }; + var args = new sendFileArgs(); + args.MetaInfo = metaInfo; + args.Buff = buff; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1768,7 +1934,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.sendFileResult(); + var result = new sendFileResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1778,12 +1944,69 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "sendFile failed: unknown result"); } - public async global::System.Threading.Tasks.Task getBackupConfigurationAsync(CancellationToken cancellationToken = default) + public async Task pipeTransferAsync(TPipeTransferReq req, CancellationToken cancellationToken = default(CancellationToken)) + { + await OutputProtocol.WriteMessageBeginAsync(new TMessage("pipeTransfer", TMessageType.Call, SeqId), cancellationToken); + + var args = new pipeTransferArgs(); + args.Req = req; + + await args.WriteAsync(OutputProtocol, cancellationToken); + await OutputProtocol.WriteMessageEndAsync(cancellationToken); + await OutputProtocol.Transport.FlushAsync(cancellationToken); + + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) + { + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + throw x; + } + + var result = new pipeTransferResult(); + await result.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + if (result.__isset.success) + { + return result.Success; + } + throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "pipeTransfer failed: unknown result"); + } + + public async Task pipeSubscribeAsync(TPipeSubscribeReq req, CancellationToken cancellationToken = default(CancellationToken)) + { + await OutputProtocol.WriteMessageBeginAsync(new TMessage("pipeSubscribe", TMessageType.Call, SeqId), cancellationToken); + + var args = new pipeSubscribeArgs(); + args.Req = req; + + await args.WriteAsync(OutputProtocol, cancellationToken); + await OutputProtocol.WriteMessageEndAsync(cancellationToken); + await OutputProtocol.Transport.FlushAsync(cancellationToken); + + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) + { + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + throw x; + } + + var result = new pipeSubscribeResult(); + await result.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + if (result.__isset.success) + { + return result.Success; + } + throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "pipeSubscribe failed: unknown result"); + } + + public async Task getBackupConfigurationAsync(CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("getBackupConfiguration", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.getBackupConfigurationArgs() { - }; + var args = new getBackupConfigurationArgs(); await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1797,7 +2020,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.getBackupConfigurationResult(); + var result = new getBackupConfigurationResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1807,12 +2030,11 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getBackupConfiguration failed: unknown result"); } - public async global::System.Threading.Tasks.Task fetchAllConnectionsInfoAsync(CancellationToken cancellationToken = default) + public async Task fetchAllConnectionsInfoAsync(CancellationToken cancellationToken = default(CancellationToken)) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("fetchAllConnectionsInfo", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.fetchAllConnectionsInfoArgs() { - }; + var args = new fetchAllConnectionsInfoArgs(); await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1826,7 +2048,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new InternalStructs.fetchAllConnectionsInfoResult(); + var result = new fetchAllConnectionsInfoResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1836,22 +2058,53 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "fetchAllConnectionsInfo failed: unknown result"); } + public async Task testConnectionEmptyRPCAsync(CancellationToken cancellationToken = default(CancellationToken)) + { + await OutputProtocol.WriteMessageBeginAsync(new TMessage("testConnectionEmptyRPC", TMessageType.Call, SeqId), cancellationToken); + + var args = new testConnectionEmptyRPCArgs(); + + await args.WriteAsync(OutputProtocol, cancellationToken); + await OutputProtocol.WriteMessageEndAsync(cancellationToken); + await OutputProtocol.Transport.FlushAsync(cancellationToken); + + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) + { + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + throw x; + } + + var result = new testConnectionEmptyRPCResult(); + await result.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + if (result.__isset.success) + { + return result.Success; + } + throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testConnectionEmptyRPC failed: unknown result"); + } + } public class AsyncProcessor : ITAsyncProcessor { - private readonly IAsync _iAsync; - private readonly ILogger _logger; + private IAsync _iAsync; - public AsyncProcessor(IAsync iAsync, ILogger logger = default) + public AsyncProcessor(IAsync iAsync) { - _iAsync = iAsync ?? throw new ArgumentNullException(nameof(iAsync)); - _logger = logger; + if (iAsync == null) throw new ArgumentNullException(nameof(iAsync)); + + _iAsync = iAsync; processMap_["executeQueryStatementV2"] = executeQueryStatementV2_ProcessAsync; processMap_["executeUpdateStatementV2"] = executeUpdateStatementV2_ProcessAsync; processMap_["executeStatementV2"] = executeStatementV2_ProcessAsync; processMap_["executeRawDataQueryV2"] = executeRawDataQueryV2_ProcessAsync; processMap_["executeLastDataQueryV2"] = executeLastDataQueryV2_ProcessAsync; + processMap_["executeFastLastDataQueryForOneDeviceV2"] = executeFastLastDataQueryForOneDeviceV2_ProcessAsync; + processMap_["executeAggregationQueryV2"] = executeAggregationQueryV2_ProcessAsync; + processMap_["executeGroupByQueryIntervalQuery"] = executeGroupByQueryIntervalQuery_ProcessAsync; processMap_["fetchResultsV2"] = fetchResultsV2_ProcessAsync; processMap_["openSession"] = openSession_ProcessAsync; processMap_["closeSession"] = closeSession_ProcessAsync; @@ -1890,22 +2143,29 @@ public AsyncProcessor(IAsync iAsync, ILogger logger = default) processMap_["deleteData"] = deleteData_ProcessAsync; processMap_["executeRawDataQuery"] = executeRawDataQuery_ProcessAsync; processMap_["executeLastDataQuery"] = executeLastDataQuery_ProcessAsync; + processMap_["executeAggregationQuery"] = executeAggregationQuery_ProcessAsync; processMap_["requestStatementId"] = requestStatementId_ProcessAsync; processMap_["createSchemaTemplate"] = createSchemaTemplate_ProcessAsync; processMap_["appendSchemaTemplate"] = appendSchemaTemplate_ProcessAsync; processMap_["pruneSchemaTemplate"] = pruneSchemaTemplate_ProcessAsync; processMap_["querySchemaTemplate"] = querySchemaTemplate_ProcessAsync; + processMap_["showConfigurationTemplate"] = showConfigurationTemplate_ProcessAsync; + processMap_["showConfiguration"] = showConfiguration_ProcessAsync; processMap_["setSchemaTemplate"] = setSchemaTemplate_ProcessAsync; processMap_["unsetSchemaTemplate"] = unsetSchemaTemplate_ProcessAsync; processMap_["dropSchemaTemplate"] = dropSchemaTemplate_ProcessAsync; + processMap_["createTimeseriesUsingSchemaTemplate"] = createTimeseriesUsingSchemaTemplate_ProcessAsync; processMap_["handshake"] = handshake_ProcessAsync; processMap_["sendPipeData"] = sendPipeData_ProcessAsync; processMap_["sendFile"] = sendFile_ProcessAsync; + processMap_["pipeTransfer"] = pipeTransfer_ProcessAsync; + processMap_["pipeSubscribe"] = pipeSubscribe_ProcessAsync; processMap_["getBackupConfiguration"] = getBackupConfiguration_ProcessAsync; processMap_["fetchAllConnectionsInfo"] = fetchAllConnectionsInfo_ProcessAsync; + processMap_["testConnectionEmptyRPC"] = testConnectionEmptyRPC_ProcessAsync; } - protected delegate global::System.Threading.Tasks.Task ProcessFunction(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken); + protected delegate Task ProcessFunction(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken); protected Dictionary processMap_ = new Dictionary(); public async Task ProcessAsync(TProtocol iprot, TProtocol oprot) @@ -1919,7 +2179,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat { var msg = await iprot.ReadMessageBeginAsync(cancellationToken); - processMap_.TryGetValue(msg.Name, out ProcessFunction fn); + ProcessFunction fn; + processMap_.TryGetValue(msg.Name, out fn); if (fn == null) { @@ -1944,12 +2205,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat return true; } - public async global::System.Threading.Tasks.Task executeQueryStatementV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task executeQueryStatementV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeQueryStatementV2Args(); + var args = new executeQueryStatementV2Args(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeQueryStatementV2Result(); + var result = new executeQueryStatementV2Result(); try { result.Success = await _iAsync.executeQueryStatementV2Async(args.Req, cancellationToken); @@ -1962,11 +2223,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeQueryStatementV2", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -1975,12 +2233,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task executeUpdateStatementV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task executeUpdateStatementV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeUpdateStatementV2Args(); + var args = new executeUpdateStatementV2Args(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeUpdateStatementV2Result(); + var result = new executeUpdateStatementV2Result(); try { result.Success = await _iAsync.executeUpdateStatementV2Async(args.Req, cancellationToken); @@ -1993,11 +2251,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeUpdateStatementV2", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2006,12 +2261,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task executeStatementV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task executeStatementV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeStatementV2Args(); + var args = new executeStatementV2Args(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeStatementV2Result(); + var result = new executeStatementV2Result(); try { result.Success = await _iAsync.executeStatementV2Async(args.Req, cancellationToken); @@ -2024,11 +2279,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeStatementV2", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2037,12 +2289,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task executeRawDataQueryV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task executeRawDataQueryV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeRawDataQueryV2Args(); + var args = new executeRawDataQueryV2Args(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeRawDataQueryV2Result(); + var result = new executeRawDataQueryV2Result(); try { result.Success = await _iAsync.executeRawDataQueryV2Async(args.Req, cancellationToken); @@ -2055,11 +2307,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeRawDataQueryV2", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2068,12 +2317,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task executeLastDataQueryV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task executeLastDataQueryV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeLastDataQueryV2Args(); + var args = new executeLastDataQueryV2Args(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeLastDataQueryV2Result(); + var result = new executeLastDataQueryV2Result(); try { result.Success = await _iAsync.executeLastDataQueryV2Async(args.Req, cancellationToken); @@ -2086,11 +2335,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeLastDataQueryV2", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2099,16 +2345,16 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task fetchResultsV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task executeFastLastDataQueryForOneDeviceV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.fetchResultsV2Args(); + var args = new executeFastLastDataQueryForOneDeviceV2Args(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.fetchResultsV2Result(); + var result = new executeFastLastDataQueryForOneDeviceV2Result(); try { - result.Success = await _iAsync.fetchResultsV2Async(args.Req, cancellationToken); - await oprot.WriteMessageBeginAsync(new TMessage("fetchResultsV2", TMessageType.Reply, seqid), cancellationToken); + result.Success = await _iAsync.executeFastLastDataQueryForOneDeviceV2Async(args.Req, cancellationToken); + await oprot.WriteMessageBeginAsync(new TMessage("executeFastLastDataQueryForOneDeviceV2", TMessageType.Reply, seqid), cancellationToken); await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) @@ -2117,29 +2363,26 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); - await oprot.WriteMessageBeginAsync(new TMessage("fetchResultsV2", TMessageType.Exception, seqid), cancellationToken); + await oprot.WriteMessageBeginAsync(new TMessage("executeFastLastDataQueryForOneDeviceV2", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task openSession_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task executeAggregationQueryV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.openSessionArgs(); + var args = new executeAggregationQueryV2Args(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.openSessionResult(); + var result = new executeAggregationQueryV2Result(); try { - result.Success = await _iAsync.openSessionAsync(args.Req, cancellationToken); - await oprot.WriteMessageBeginAsync(new TMessage("openSession", TMessageType.Reply, seqid), cancellationToken); + result.Success = await _iAsync.executeAggregationQueryV2Async(args.Req, cancellationToken); + await oprot.WriteMessageBeginAsync(new TMessage("executeAggregationQueryV2", TMessageType.Reply, seqid), cancellationToken); await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) @@ -2148,29 +2391,26 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); - await oprot.WriteMessageBeginAsync(new TMessage("openSession", TMessageType.Exception, seqid), cancellationToken); + await oprot.WriteMessageBeginAsync(new TMessage("executeAggregationQueryV2", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task closeSession_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task executeGroupByQueryIntervalQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.closeSessionArgs(); + var args = new executeGroupByQueryIntervalQueryArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.closeSessionResult(); + var result = new executeGroupByQueryIntervalQueryResult(); try { - result.Success = await _iAsync.closeSessionAsync(args.Req, cancellationToken); - await oprot.WriteMessageBeginAsync(new TMessage("closeSession", TMessageType.Reply, seqid), cancellationToken); + result.Success = await _iAsync.executeGroupByQueryIntervalQueryAsync(args.Req, cancellationToken); + await oprot.WriteMessageBeginAsync(new TMessage("executeGroupByQueryIntervalQuery", TMessageType.Reply, seqid), cancellationToken); await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) @@ -2179,29 +2419,26 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); - await oprot.WriteMessageBeginAsync(new TMessage("closeSession", TMessageType.Exception, seqid), cancellationToken); + await oprot.WriteMessageBeginAsync(new TMessage("executeGroupByQueryIntervalQuery", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task executeStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task fetchResultsV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeStatementArgs(); + var args = new fetchResultsV2Args(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeStatementResult(); + var result = new fetchResultsV2Result(); try { - result.Success = await _iAsync.executeStatementAsync(args.Req, cancellationToken); - await oprot.WriteMessageBeginAsync(new TMessage("executeStatement", TMessageType.Reply, seqid), cancellationToken); + result.Success = await _iAsync.fetchResultsV2Async(args.Req, cancellationToken); + await oprot.WriteMessageBeginAsync(new TMessage("fetchResultsV2", TMessageType.Reply, seqid), cancellationToken); await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) @@ -2210,25 +2447,106 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); - await oprot.WriteMessageBeginAsync(new TMessage("executeStatement", TMessageType.Exception, seqid), cancellationToken); + await oprot.WriteMessageBeginAsync(new TMessage("fetchResultsV2", TMessageType.Exception, seqid), cancellationToken); + await x.WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMessageEndAsync(cancellationToken); + await oprot.Transport.FlushAsync(cancellationToken); + } + + public async Task openSession_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + { + var args = new openSessionArgs(); + await args.ReadAsync(iprot, cancellationToken); + await iprot.ReadMessageEndAsync(cancellationToken); + var result = new openSessionResult(); + try + { + result.Success = await _iAsync.openSessionAsync(args.Req, cancellationToken); + await oprot.WriteMessageBeginAsync(new TMessage("openSession", TMessageType.Reply, seqid), cancellationToken); + await result.WriteAsync(oprot, cancellationToken); + } + catch (TTransportException) + { + throw; + } + catch (Exception ex) + { + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + await oprot.WriteMessageBeginAsync(new TMessage("openSession", TMessageType.Exception, seqid), cancellationToken); + await x.WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMessageEndAsync(cancellationToken); + await oprot.Transport.FlushAsync(cancellationToken); + } + + public async Task closeSession_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + { + var args = new closeSessionArgs(); + await args.ReadAsync(iprot, cancellationToken); + await iprot.ReadMessageEndAsync(cancellationToken); + var result = new closeSessionResult(); + try + { + result.Success = await _iAsync.closeSessionAsync(args.Req, cancellationToken); + await oprot.WriteMessageBeginAsync(new TMessage("closeSession", TMessageType.Reply, seqid), cancellationToken); + await result.WriteAsync(oprot, cancellationToken); + } + catch (TTransportException) + { + throw; + } + catch (Exception ex) + { + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + await oprot.WriteMessageBeginAsync(new TMessage("closeSession", TMessageType.Exception, seqid), cancellationToken); + await x.WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMessageEndAsync(cancellationToken); + await oprot.Transport.FlushAsync(cancellationToken); + } + + public async Task executeStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + { + var args = new executeStatementArgs(); + await args.ReadAsync(iprot, cancellationToken); + await iprot.ReadMessageEndAsync(cancellationToken); + var result = new executeStatementResult(); + try + { + result.Success = await _iAsync.executeStatementAsync(args.Req, cancellationToken); + await oprot.WriteMessageBeginAsync(new TMessage("executeStatement", TMessageType.Reply, seqid), cancellationToken); + await result.WriteAsync(oprot, cancellationToken); + } + catch (TTransportException) + { + throw; + } + catch (Exception ex) + { + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + await oprot.WriteMessageBeginAsync(new TMessage("executeStatement", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task executeBatchStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task executeBatchStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeBatchStatementArgs(); + var args = new executeBatchStatementArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeBatchStatementResult(); + var result = new executeBatchStatementResult(); try { result.Success = await _iAsync.executeBatchStatementAsync(args.Req, cancellationToken); @@ -2241,11 +2559,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeBatchStatement", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2254,12 +2569,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task executeQueryStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task executeQueryStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeQueryStatementArgs(); + var args = new executeQueryStatementArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeQueryStatementResult(); + var result = new executeQueryStatementResult(); try { result.Success = await _iAsync.executeQueryStatementAsync(args.Req, cancellationToken); @@ -2272,11 +2587,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeQueryStatement", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2285,12 +2597,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task executeUpdateStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task executeUpdateStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeUpdateStatementArgs(); + var args = new executeUpdateStatementArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeUpdateStatementResult(); + var result = new executeUpdateStatementResult(); try { result.Success = await _iAsync.executeUpdateStatementAsync(args.Req, cancellationToken); @@ -2303,11 +2615,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeUpdateStatement", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2316,12 +2625,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task fetchResults_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task fetchResults_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.fetchResultsArgs(); + var args = new fetchResultsArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.fetchResultsResult(); + var result = new fetchResultsResult(); try { result.Success = await _iAsync.fetchResultsAsync(args.Req, cancellationToken); @@ -2334,11 +2643,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("fetchResults", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2347,12 +2653,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task fetchMetadata_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task fetchMetadata_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.fetchMetadataArgs(); + var args = new fetchMetadataArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.fetchMetadataResult(); + var result = new fetchMetadataResult(); try { result.Success = await _iAsync.fetchMetadataAsync(args.Req, cancellationToken); @@ -2365,11 +2671,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("fetchMetadata", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2378,12 +2681,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task cancelOperation_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task cancelOperation_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.cancelOperationArgs(); + var args = new cancelOperationArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.cancelOperationResult(); + var result = new cancelOperationResult(); try { result.Success = await _iAsync.cancelOperationAsync(args.Req, cancellationToken); @@ -2396,11 +2699,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("cancelOperation", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2409,12 +2709,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task closeOperation_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task closeOperation_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.closeOperationArgs(); + var args = new closeOperationArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.closeOperationResult(); + var result = new closeOperationResult(); try { result.Success = await _iAsync.closeOperationAsync(args.Req, cancellationToken); @@ -2427,11 +2727,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("closeOperation", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2440,12 +2737,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task getTimeZone_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task getTimeZone_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.getTimeZoneArgs(); + var args = new getTimeZoneArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.getTimeZoneResult(); + var result = new getTimeZoneResult(); try { result.Success = await _iAsync.getTimeZoneAsync(args.SessionId, cancellationToken); @@ -2458,11 +2755,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("getTimeZone", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2471,12 +2765,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task setTimeZone_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task setTimeZone_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.setTimeZoneArgs(); + var args = new setTimeZoneArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.setTimeZoneResult(); + var result = new setTimeZoneResult(); try { result.Success = await _iAsync.setTimeZoneAsync(args.Req, cancellationToken); @@ -2489,11 +2783,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("setTimeZone", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2502,12 +2793,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task getProperties_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task getProperties_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.getPropertiesArgs(); + var args = new getPropertiesArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.getPropertiesResult(); + var result = new getPropertiesResult(); try { result.Success = await _iAsync.getPropertiesAsync(cancellationToken); @@ -2520,11 +2811,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("getProperties", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2533,12 +2821,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task setStorageGroup_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task setStorageGroup_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.setStorageGroupArgs(); + var args = new setStorageGroupArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.setStorageGroupResult(); + var result = new setStorageGroupResult(); try { result.Success = await _iAsync.setStorageGroupAsync(args.SessionId, args.StorageGroup, cancellationToken); @@ -2551,11 +2839,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("setStorageGroup", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2564,12 +2849,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task createTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task createTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.createTimeseriesArgs(); + var args = new createTimeseriesArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.createTimeseriesResult(); + var result = new createTimeseriesResult(); try { result.Success = await _iAsync.createTimeseriesAsync(args.Req, cancellationToken); @@ -2582,11 +2867,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("createTimeseries", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2595,12 +2877,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task createAlignedTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task createAlignedTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.createAlignedTimeseriesArgs(); + var args = new createAlignedTimeseriesArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.createAlignedTimeseriesResult(); + var result = new createAlignedTimeseriesResult(); try { result.Success = await _iAsync.createAlignedTimeseriesAsync(args.Req, cancellationToken); @@ -2613,11 +2895,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("createAlignedTimeseries", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2626,12 +2905,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task createMultiTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task createMultiTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.createMultiTimeseriesArgs(); + var args = new createMultiTimeseriesArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.createMultiTimeseriesResult(); + var result = new createMultiTimeseriesResult(); try { result.Success = await _iAsync.createMultiTimeseriesAsync(args.Req, cancellationToken); @@ -2644,11 +2923,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("createMultiTimeseries", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2657,12 +2933,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task deleteTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task deleteTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.deleteTimeseriesArgs(); + var args = new deleteTimeseriesArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.deleteTimeseriesResult(); + var result = new deleteTimeseriesResult(); try { result.Success = await _iAsync.deleteTimeseriesAsync(args.SessionId, args.Path, cancellationToken); @@ -2675,11 +2951,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("deleteTimeseries", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2688,12 +2961,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task deleteStorageGroups_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task deleteStorageGroups_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.deleteStorageGroupsArgs(); + var args = new deleteStorageGroupsArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.deleteStorageGroupsResult(); + var result = new deleteStorageGroupsResult(); try { result.Success = await _iAsync.deleteStorageGroupsAsync(args.SessionId, args.StorageGroup, cancellationToken); @@ -2706,11 +2979,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("deleteStorageGroups", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2719,12 +2989,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task insertRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task insertRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.insertRecordArgs(); + var args = new insertRecordArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.insertRecordResult(); + var result = new insertRecordResult(); try { result.Success = await _iAsync.insertRecordAsync(args.Req, cancellationToken); @@ -2737,11 +3007,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertRecord", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2750,12 +3017,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task insertStringRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task insertStringRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.insertStringRecordArgs(); + var args = new insertStringRecordArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.insertStringRecordResult(); + var result = new insertStringRecordResult(); try { result.Success = await _iAsync.insertStringRecordAsync(args.Req, cancellationToken); @@ -2768,11 +3035,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertStringRecord", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2781,12 +3045,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task insertTablet_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task insertTablet_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.insertTabletArgs(); + var args = new insertTabletArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.insertTabletResult(); + var result = new insertTabletResult(); try { result.Success = await _iAsync.insertTabletAsync(args.Req, cancellationToken); @@ -2799,11 +3063,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertTablet", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2812,12 +3073,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task insertTablets_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task insertTablets_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.insertTabletsArgs(); + var args = new insertTabletsArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.insertTabletsResult(); + var result = new insertTabletsResult(); try { result.Success = await _iAsync.insertTabletsAsync(args.Req, cancellationToken); @@ -2830,11 +3091,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertTablets", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2843,12 +3101,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task insertRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task insertRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.insertRecordsArgs(); + var args = new insertRecordsArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.insertRecordsResult(); + var result = new insertRecordsResult(); try { result.Success = await _iAsync.insertRecordsAsync(args.Req, cancellationToken); @@ -2861,11 +3119,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertRecords", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2874,12 +3129,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task insertRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task insertRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.insertRecordsOfOneDeviceArgs(); + var args = new insertRecordsOfOneDeviceArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.insertRecordsOfOneDeviceResult(); + var result = new insertRecordsOfOneDeviceResult(); try { result.Success = await _iAsync.insertRecordsOfOneDeviceAsync(args.Req, cancellationToken); @@ -2892,11 +3147,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertRecordsOfOneDevice", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2905,12 +3157,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task insertStringRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task insertStringRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.insertStringRecordsOfOneDeviceArgs(); + var args = new insertStringRecordsOfOneDeviceArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.insertStringRecordsOfOneDeviceResult(); + var result = new insertStringRecordsOfOneDeviceResult(); try { result.Success = await _iAsync.insertStringRecordsOfOneDeviceAsync(args.Req, cancellationToken); @@ -2923,11 +3175,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertStringRecordsOfOneDevice", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2936,12 +3185,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task insertStringRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task insertStringRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.insertStringRecordsArgs(); + var args = new insertStringRecordsArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.insertStringRecordsResult(); + var result = new insertStringRecordsResult(); try { result.Success = await _iAsync.insertStringRecordsAsync(args.Req, cancellationToken); @@ -2954,11 +3203,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertStringRecords", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2967,12 +3213,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task testInsertTablet_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task testInsertTablet_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.testInsertTabletArgs(); + var args = new testInsertTabletArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.testInsertTabletResult(); + var result = new testInsertTabletResult(); try { result.Success = await _iAsync.testInsertTabletAsync(args.Req, cancellationToken); @@ -2985,11 +3231,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertTablet", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2998,12 +3241,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task testInsertTablets_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task testInsertTablets_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.testInsertTabletsArgs(); + var args = new testInsertTabletsArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.testInsertTabletsResult(); + var result = new testInsertTabletsResult(); try { result.Success = await _iAsync.testInsertTabletsAsync(args.Req, cancellationToken); @@ -3016,11 +3259,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertTablets", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3029,12 +3269,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task testInsertRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task testInsertRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.testInsertRecordArgs(); + var args = new testInsertRecordArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.testInsertRecordResult(); + var result = new testInsertRecordResult(); try { result.Success = await _iAsync.testInsertRecordAsync(args.Req, cancellationToken); @@ -3047,11 +3287,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertRecord", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3060,12 +3297,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task testInsertStringRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task testInsertStringRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.testInsertStringRecordArgs(); + var args = new testInsertStringRecordArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.testInsertStringRecordResult(); + var result = new testInsertStringRecordResult(); try { result.Success = await _iAsync.testInsertStringRecordAsync(args.Req, cancellationToken); @@ -3078,11 +3315,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertStringRecord", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3091,12 +3325,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task testInsertRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task testInsertRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.testInsertRecordsArgs(); + var args = new testInsertRecordsArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.testInsertRecordsResult(); + var result = new testInsertRecordsResult(); try { result.Success = await _iAsync.testInsertRecordsAsync(args.Req, cancellationToken); @@ -3109,11 +3343,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertRecords", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3122,12 +3353,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task testInsertRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task testInsertRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.testInsertRecordsOfOneDeviceArgs(); + var args = new testInsertRecordsOfOneDeviceArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.testInsertRecordsOfOneDeviceResult(); + var result = new testInsertRecordsOfOneDeviceResult(); try { result.Success = await _iAsync.testInsertRecordsOfOneDeviceAsync(args.Req, cancellationToken); @@ -3140,11 +3371,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertRecordsOfOneDevice", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3153,12 +3381,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task testInsertStringRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task testInsertStringRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.testInsertStringRecordsArgs(); + var args = new testInsertStringRecordsArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.testInsertStringRecordsResult(); + var result = new testInsertStringRecordsResult(); try { result.Success = await _iAsync.testInsertStringRecordsAsync(args.Req, cancellationToken); @@ -3171,11 +3399,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertStringRecords", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3184,12 +3409,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task deleteData_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task deleteData_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.deleteDataArgs(); + var args = new deleteDataArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.deleteDataResult(); + var result = new deleteDataResult(); try { result.Success = await _iAsync.deleteDataAsync(args.Req, cancellationToken); @@ -3202,11 +3427,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("deleteData", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3215,12 +3437,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task executeRawDataQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task executeRawDataQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeRawDataQueryArgs(); + var args = new executeRawDataQueryArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeRawDataQueryResult(); + var result = new executeRawDataQueryResult(); try { result.Success = await _iAsync.executeRawDataQueryAsync(args.Req, cancellationToken); @@ -3233,11 +3455,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeRawDataQuery", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3246,12 +3465,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task executeLastDataQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task executeLastDataQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeLastDataQueryArgs(); + var args = new executeLastDataQueryArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeLastDataQueryResult(); + var result = new executeLastDataQueryResult(); try { result.Success = await _iAsync.executeLastDataQueryAsync(args.Req, cancellationToken); @@ -3264,11 +3483,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeLastDataQuery", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3277,12 +3493,40 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task requestStatementId_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task executeAggregationQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + { + var args = new executeAggregationQueryArgs(); + await args.ReadAsync(iprot, cancellationToken); + await iprot.ReadMessageEndAsync(cancellationToken); + var result = new executeAggregationQueryResult(); + try + { + result.Success = await _iAsync.executeAggregationQueryAsync(args.Req, cancellationToken); + await oprot.WriteMessageBeginAsync(new TMessage("executeAggregationQuery", TMessageType.Reply, seqid), cancellationToken); + await result.WriteAsync(oprot, cancellationToken); + } + catch (TTransportException) + { + throw; + } + catch (Exception ex) + { + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + await oprot.WriteMessageBeginAsync(new TMessage("executeAggregationQuery", TMessageType.Exception, seqid), cancellationToken); + await x.WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMessageEndAsync(cancellationToken); + await oprot.Transport.FlushAsync(cancellationToken); + } + + public async Task requestStatementId_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.requestStatementIdArgs(); + var args = new requestStatementIdArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.requestStatementIdResult(); + var result = new requestStatementIdResult(); try { result.Success = await _iAsync.requestStatementIdAsync(args.SessionId, cancellationToken); @@ -3295,11 +3539,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("requestStatementId", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3308,12 +3549,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task createSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task createSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.createSchemaTemplateArgs(); + var args = new createSchemaTemplateArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.createSchemaTemplateResult(); + var result = new createSchemaTemplateResult(); try { result.Success = await _iAsync.createSchemaTemplateAsync(args.Req, cancellationToken); @@ -3326,11 +3567,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("createSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3339,12 +3577,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task appendSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task appendSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.appendSchemaTemplateArgs(); + var args = new appendSchemaTemplateArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.appendSchemaTemplateResult(); + var result = new appendSchemaTemplateResult(); try { result.Success = await _iAsync.appendSchemaTemplateAsync(args.Req, cancellationToken); @@ -3357,11 +3595,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("appendSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3370,12 +3605,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task pruneSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task pruneSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.pruneSchemaTemplateArgs(); + var args = new pruneSchemaTemplateArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.pruneSchemaTemplateResult(); + var result = new pruneSchemaTemplateResult(); try { result.Success = await _iAsync.pruneSchemaTemplateAsync(args.Req, cancellationToken); @@ -3388,11 +3623,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("pruneSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3401,12 +3633,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task querySchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task querySchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.querySchemaTemplateArgs(); + var args = new querySchemaTemplateArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.querySchemaTemplateResult(); + var result = new querySchemaTemplateResult(); try { result.Success = await _iAsync.querySchemaTemplateAsync(args.Req, cancellationToken); @@ -3419,11 +3651,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("querySchemaTemplate", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3432,12 +3661,68 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task setSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task showConfigurationTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + { + var args = new showConfigurationTemplateArgs(); + await args.ReadAsync(iprot, cancellationToken); + await iprot.ReadMessageEndAsync(cancellationToken); + var result = new showConfigurationTemplateResult(); + try + { + result.Success = await _iAsync.showConfigurationTemplateAsync(cancellationToken); + await oprot.WriteMessageBeginAsync(new TMessage("showConfigurationTemplate", TMessageType.Reply, seqid), cancellationToken); + await result.WriteAsync(oprot, cancellationToken); + } + catch (TTransportException) + { + throw; + } + catch (Exception ex) + { + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + await oprot.WriteMessageBeginAsync(new TMessage("showConfigurationTemplate", TMessageType.Exception, seqid), cancellationToken); + await x.WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMessageEndAsync(cancellationToken); + await oprot.Transport.FlushAsync(cancellationToken); + } + + public async Task showConfiguration_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + { + var args = new showConfigurationArgs(); + await args.ReadAsync(iprot, cancellationToken); + await iprot.ReadMessageEndAsync(cancellationToken); + var result = new showConfigurationResult(); + try + { + result.Success = await _iAsync.showConfigurationAsync(args.NodeId, cancellationToken); + await oprot.WriteMessageBeginAsync(new TMessage("showConfiguration", TMessageType.Reply, seqid), cancellationToken); + await result.WriteAsync(oprot, cancellationToken); + } + catch (TTransportException) + { + throw; + } + catch (Exception ex) + { + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + await oprot.WriteMessageBeginAsync(new TMessage("showConfiguration", TMessageType.Exception, seqid), cancellationToken); + await x.WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMessageEndAsync(cancellationToken); + await oprot.Transport.FlushAsync(cancellationToken); + } + + public async Task setSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.setSchemaTemplateArgs(); + var args = new setSchemaTemplateArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.setSchemaTemplateResult(); + var result = new setSchemaTemplateResult(); try { result.Success = await _iAsync.setSchemaTemplateAsync(args.Req, cancellationToken); @@ -3450,11 +3735,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("setSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3463,12 +3745,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task unsetSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task unsetSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.unsetSchemaTemplateArgs(); + var args = new unsetSchemaTemplateArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.unsetSchemaTemplateResult(); + var result = new unsetSchemaTemplateResult(); try { result.Success = await _iAsync.unsetSchemaTemplateAsync(args.Req, cancellationToken); @@ -3481,11 +3763,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("unsetSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3494,12 +3773,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task dropSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task dropSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.dropSchemaTemplateArgs(); + var args = new dropSchemaTemplateArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.dropSchemaTemplateResult(); + var result = new dropSchemaTemplateResult(); try { result.Success = await _iAsync.dropSchemaTemplateAsync(args.Req, cancellationToken); @@ -3512,11 +3791,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("dropSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3525,12 +3801,40 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task handshake_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task createTimeseriesUsingSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + { + var args = new createTimeseriesUsingSchemaTemplateArgs(); + await args.ReadAsync(iprot, cancellationToken); + await iprot.ReadMessageEndAsync(cancellationToken); + var result = new createTimeseriesUsingSchemaTemplateResult(); + try + { + result.Success = await _iAsync.createTimeseriesUsingSchemaTemplateAsync(args.Req, cancellationToken); + await oprot.WriteMessageBeginAsync(new TMessage("createTimeseriesUsingSchemaTemplate", TMessageType.Reply, seqid), cancellationToken); + await result.WriteAsync(oprot, cancellationToken); + } + catch (TTransportException) + { + throw; + } + catch (Exception ex) + { + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + await oprot.WriteMessageBeginAsync(new TMessage("createTimeseriesUsingSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); + await x.WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMessageEndAsync(cancellationToken); + await oprot.Transport.FlushAsync(cancellationToken); + } + + public async Task handshake_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.handshakeArgs(); + var args = new handshakeArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.handshakeResult(); + var result = new handshakeResult(); try { result.Success = await _iAsync.handshakeAsync(args.Info, cancellationToken); @@ -3543,11 +3847,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("handshake", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3556,12 +3857,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task sendPipeData_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task sendPipeData_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.sendPipeDataArgs(); + var args = new sendPipeDataArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.sendPipeDataResult(); + var result = new sendPipeDataResult(); try { result.Success = await _iAsync.sendPipeDataAsync(args.Buff, cancellationToken); @@ -3574,11 +3875,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("sendPipeData", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3587,12 +3885,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task sendFile_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task sendFile_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.sendFileArgs(); + var args = new sendFileArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.sendFileResult(); + var result = new sendFileResult(); try { result.Success = await _iAsync.sendFileAsync(args.MetaInfo, args.Buff, cancellationToken); @@ -3605,11 +3903,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("sendFile", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3618,12 +3913,68 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task getBackupConfiguration_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task pipeTransfer_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + { + var args = new pipeTransferArgs(); + await args.ReadAsync(iprot, cancellationToken); + await iprot.ReadMessageEndAsync(cancellationToken); + var result = new pipeTransferResult(); + try + { + result.Success = await _iAsync.pipeTransferAsync(args.Req, cancellationToken); + await oprot.WriteMessageBeginAsync(new TMessage("pipeTransfer", TMessageType.Reply, seqid), cancellationToken); + await result.WriteAsync(oprot, cancellationToken); + } + catch (TTransportException) + { + throw; + } + catch (Exception ex) + { + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + await oprot.WriteMessageBeginAsync(new TMessage("pipeTransfer", TMessageType.Exception, seqid), cancellationToken); + await x.WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMessageEndAsync(cancellationToken); + await oprot.Transport.FlushAsync(cancellationToken); + } + + public async Task pipeSubscribe_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + { + var args = new pipeSubscribeArgs(); + await args.ReadAsync(iprot, cancellationToken); + await iprot.ReadMessageEndAsync(cancellationToken); + var result = new pipeSubscribeResult(); + try + { + result.Success = await _iAsync.pipeSubscribeAsync(args.Req, cancellationToken); + await oprot.WriteMessageBeginAsync(new TMessage("pipeSubscribe", TMessageType.Reply, seqid), cancellationToken); + await result.WriteAsync(oprot, cancellationToken); + } + catch (TTransportException) + { + throw; + } + catch (Exception ex) + { + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + await oprot.WriteMessageBeginAsync(new TMessage("pipeSubscribe", TMessageType.Exception, seqid), cancellationToken); + await x.WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMessageEndAsync(cancellationToken); + await oprot.Transport.FlushAsync(cancellationToken); + } + + public async Task getBackupConfiguration_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.getBackupConfigurationArgs(); + var args = new getBackupConfigurationArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.getBackupConfigurationResult(); + var result = new getBackupConfigurationResult(); try { result.Success = await _iAsync.getBackupConfigurationAsync(cancellationToken); @@ -3636,11 +3987,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("getBackupConfiguration", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3649,12 +3997,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } - public async global::System.Threading.Tasks.Task fetchAllConnectionsInfo_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async Task fetchAllConnectionsInfo_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.fetchAllConnectionsInfoArgs(); + var args = new fetchAllConnectionsInfoArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.fetchAllConnectionsInfoResult(); + var result = new fetchAllConnectionsInfoResult(); try { result.Success = await _iAsync.fetchAllConnectionsInfoAsync(cancellationToken); @@ -3667,11 +4015,8 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat } catch (Exception ex) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; - if(_logger != null) - _logger.LogError(ex, sErr); - else - Console.Error.WriteLine(sErr); + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("fetchAllConnectionsInfo", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3680,16300 +4025,17661 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat await oprot.Transport.FlushAsync(cancellationToken); } + public async Task testConnectionEmptyRPC_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + { + var args = new testConnectionEmptyRPCArgs(); + await args.ReadAsync(iprot, cancellationToken); + await iprot.ReadMessageEndAsync(cancellationToken); + var result = new testConnectionEmptyRPCResult(); + try + { + result.Success = await _iAsync.testConnectionEmptyRPCAsync(cancellationToken); + await oprot.WriteMessageBeginAsync(new TMessage("testConnectionEmptyRPC", TMessageType.Reply, seqid), cancellationToken); + await result.WriteAsync(oprot, cancellationToken); + } + catch (TTransportException) + { + throw; + } + catch (Exception ex) + { + Console.Error.WriteLine("Error occurred in processor:"); + Console.Error.WriteLine(ex.ToString()); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + await oprot.WriteMessageBeginAsync(new TMessage("testConnectionEmptyRPC", TMessageType.Exception, seqid), cancellationToken); + await x.WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMessageEndAsync(cancellationToken); + await oprot.Transport.FlushAsync(cancellationToken); + } + } - public class InternalStructs + + public partial class executeQueryStatementV2Args : TBase { + private TSExecuteStatementReq _req; - public partial class executeQueryStatementV2Args : TBase + public TSExecuteStatementReq Req { - private TSExecuteStatementReq _req; - - public TSExecuteStatementReq Req + get { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + return _req; } - - - public Isset __isset; - public struct Isset + set { - public bool req; + __isset.req = true; + this._req = value; } + } - public executeQueryStatementV2Args() - { - } - public executeQueryStatementV2Args DeepCopy() - { - var tmp435 = new executeQueryStatementV2Args(); - if((Req != null) && __isset.req) - { - tmp435.Req = (TSExecuteStatementReq)this.Req.DeepCopy(); - } - tmp435.__isset.req = this.__isset.req; - return tmp435; - } + public Isset __isset; + public struct Isset + { + public bool req; + } + + public executeQueryStatementV2Args() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSExecuteStatementReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSExecuteStatementReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("executeQueryStatementV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) - { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } + iprot.DecrementRecursionDepth(); } + } - public override bool Equals(object that) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - if (!(that is executeQueryStatementV2Args other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } + var struc = new TStruct("executeQueryStatementV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) + { + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - return hashcode; + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override string ToString() + finally { - var sb = new StringBuilder("executeQueryStatementV2_args("); - int tmp436 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp436++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + oprot.DecrementRecursionDepth(); } } - - public partial class executeQueryStatementV2Result : TBase + public override bool Equals(object that) { - private TSExecuteStatementResp _success; + var other = that as executeQueryStatementV2Args; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public TSExecuteStatementResp Success - { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; + } - - public Isset __isset; - public struct Isset + public override string ToString() + { + var sb = new StringBuilder("executeQueryStatementV2_args("); + bool __first = true; + if (Req != null && __isset.req) { - public bool success; + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class executeQueryStatementV2Result : TBase + { + private TSExecuteStatementResp _success; - public executeQueryStatementV2Result() + public TSExecuteStatementResp Success + { + get { + return _success; } - - public executeQueryStatementV2Result DeepCopy() + set { - var tmp437 = new executeQueryStatementV2Result(); - if((Success != null) && __isset.success) - { - tmp437.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp437.__isset.success = this.__isset.success; - return tmp437; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public executeQueryStatementV2Result() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("executeQueryStatementV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } + iprot.DecrementRecursionDepth(); } + } - public override bool Equals(object that) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - if (!(that is executeQueryStatementV2Result other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } + var struc = new TStruct("executeQueryStatementV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) + if(this.__isset.success) + { + if (Success != null) { - hashcode = (hashcode * 397) + Success.GetHashCode(); + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } } - return hashcode; + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override string ToString() + finally { - var sb = new StringBuilder("executeQueryStatementV2_result("); - int tmp438 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp438++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + oprot.DecrementRecursionDepth(); } } - - public partial class executeUpdateStatementV2Args : TBase + public override bool Equals(object that) { - private TSExecuteStatementReq _req; + var other = that as executeQueryStatementV2Result; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public TSExecuteStatementReq Req - { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; + } - - public Isset __isset; - public struct Isset + public override string ToString() + { + var sb = new StringBuilder("executeQueryStatementV2_result("); + bool __first = true; + if (Success != null && __isset.success) { - public bool req; + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public executeUpdateStatementV2Args() + + public partial class executeUpdateStatementV2Args : TBase + { + private TSExecuteStatementReq _req; + + public TSExecuteStatementReq Req + { + get { + return _req; } - - public executeUpdateStatementV2Args DeepCopy() + set { - var tmp439 = new executeUpdateStatementV2Args(); - if((Req != null) && __isset.req) - { - tmp439.Req = (TSExecuteStatementReq)this.Req.DeepCopy(); - } - tmp439.__isset.req = this.__isset.req; - return tmp439; + __isset.req = true; + this._req = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public executeUpdateStatementV2Args() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSExecuteStatementReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSExecuteStatementReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("executeUpdateStatementV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) - { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + var struc = new TStruct("executeUpdateStatementV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is executeUpdateStatementV2Args other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as executeUpdateStatementV2Args; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("executeUpdateStatementV2_args("); - int tmp440 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp440++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class executeUpdateStatementV2Result : TBase + public override string ToString() { - private TSExecuteStatementResp _success; - - public TSExecuteStatementResp Success + var sb = new StringBuilder("executeUpdateStatementV2_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class executeUpdateStatementV2Result : TBase + { + private TSExecuteStatementResp _success; - public executeUpdateStatementV2Result() + public TSExecuteStatementResp Success + { + get { + return _success; } - - public executeUpdateStatementV2Result DeepCopy() + set { - var tmp441 = new executeUpdateStatementV2Result(); - if((Success != null) && __isset.success) - { - tmp441.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp441.__isset.success = this.__isset.success; - return tmp441; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public executeUpdateStatementV2Result() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); + await iprot.ReadFieldEndAsync(cancellationToken); } - finally - { - iprot.DecrementRecursionDepth(); - } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("executeUpdateStatementV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } + iprot.DecrementRecursionDepth(); } + } - public override bool Equals(object that) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - if (!(that is executeUpdateStatementV2Result other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } + var struc = new TStruct("executeUpdateStatementV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) + if(this.__isset.success) + { + if (Success != null) { - hashcode = (hashcode * 397) + Success.GetHashCode(); + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } } - return hashcode; + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override string ToString() + finally { - var sb = new StringBuilder("executeUpdateStatementV2_result("); - int tmp442 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp442++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + oprot.DecrementRecursionDepth(); } } - - public partial class executeStatementV2Args : TBase + public override bool Equals(object that) { - private TSExecuteStatementReq _req; + var other = that as executeUpdateStatementV2Result; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public TSExecuteStatementReq Req - { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; + } - - public Isset __isset; - public struct Isset + public override string ToString() + { + var sb = new StringBuilder("executeUpdateStatementV2_result("); + bool __first = true; + if (Success != null && __isset.success) { - public bool req; + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } + - public executeStatementV2Args() + public partial class executeStatementV2Args : TBase + { + private TSExecuteStatementReq _req; + + public TSExecuteStatementReq Req + { + get { + return _req; } - - public executeStatementV2Args DeepCopy() + set { - var tmp443 = new executeStatementV2Args(); - if((Req != null) && __isset.req) - { - tmp443.Req = (TSExecuteStatementReq)this.Req.DeepCopy(); - } - tmp443.__isset.req = this.__isset.req; - return tmp443; + __isset.req = true; + this._req = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try - { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) - { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } - - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSExecuteStatementReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - await iprot.ReadFieldEndAsync(cancellationToken); - } + public Isset __isset; + public struct Isset + { + public bool req; + } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); - } - } + public executeStatementV2Args() + { + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - var struc = new TStruct("executeStatementV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + break; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } - } - - public override bool Equals(object that) - { - if (!(that is executeStatementV2Args other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) + switch (field.ID) { - hashcode = (hashcode * 397) + Req.GetHashCode(); + case 1: + if (field.Type == TType.Struct) + { + Req = new TSExecuteStatementReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } + + await iprot.ReadFieldEndAsync(cancellationToken); } - return hashcode; - } - public override string ToString() + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - var sb = new StringBuilder("executeStatementV2_args("); - int tmp444 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp444++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + iprot.DecrementRecursionDepth(); } } - - public partial class executeStatementV2Result : TBase + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - private TSExecuteStatementResp _success; - - public TSExecuteStatementResp Success + oprot.IncrementRecursionDepth(); + try { - get - { - return _success; - } - set + var struc = new TStruct("executeStatementV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - __isset.success = true; - this._success = value; + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } + } + public override bool Equals(object that) + { + var other = that as executeStatementV2Args; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public Isset __isset; - public struct Isset - { - public bool success; + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; + } - public executeStatementV2Result() + public override string ToString() + { + var sb = new StringBuilder("executeStatementV2_args("); + bool __first = true; + if (Req != null && __isset.req) { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class executeStatementV2Result : TBase + { + private TSExecuteStatementResp _success; - public executeStatementV2Result DeepCopy() + public TSExecuteStatementResp Success + { + get { - var tmp445 = new executeStatementV2Result(); - if((Success != null) && __isset.success) - { - tmp445.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp445.__isset.success = this.__isset.success; - return tmp445; + return _success; + } + set + { + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public executeStatementV2Result() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); } + finally + { + iprot.DecrementRecursionDepth(); + } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("executeStatementV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var struc = new TStruct("executeStatementV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); - if(this.__isset.success) + if(this.__isset.success) + { + if (Success != null) { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is executeStatementV2Result other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; + public override bool Equals(object that) + { + var other = that as executeStatementV2Result; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; + } - public override string ToString() + public override string ToString() + { + var sb = new StringBuilder("executeStatementV2_result("); + bool __first = true; + if (Success != null && __isset.success) { - var sb = new StringBuilder("executeStatementV2_result("); - int tmp446 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp446++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); + } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class executeRawDataQueryV2Args : TBase + { + private TSRawDataQueryReq _req; + + public TSRawDataQueryReq Req + { + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; } } - public partial class executeRawDataQueryV2Args : TBase + public Isset __isset; + public struct Isset { - private TSRawDataQueryReq _req; + public bool req; + } + + public executeRawDataQueryV2Args() + { + } - public TSRawDataQueryReq Req + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - get + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - return _req; + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSRawDataQueryReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - set + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeRawDataQueryV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - __isset.req = true; - this._req = value; + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } + finally + { + oprot.DecrementRecursionDepth(); + } + } + public override bool Equals(object that) + { + var other = that as executeRawDataQueryV2Args; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public Isset __isset; - public struct Isset - { - public bool req; + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; + } - public executeRawDataQueryV2Args() + public override string ToString() + { + var sb = new StringBuilder("executeRawDataQueryV2_args("); + bool __first = true; + if (Req != null && __isset.req) { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class executeRawDataQueryV2Result : TBase + { + private TSExecuteStatementResp _success; - public executeRawDataQueryV2Args DeepCopy() + public TSExecuteStatementResp Success + { + get { - var tmp447 = new executeRawDataQueryV2Args(); - if((Req != null) && __isset.req) - { - tmp447.Req = (TSRawDataQueryReq)this.Req.DeepCopy(); - } - tmp447.__isset.req = this.__isset.req; - return tmp447; + return _success; } + set + { + __isset.success = true; + this._success = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public executeRawDataQueryV2Result() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSRawDataQueryReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("executeRawDataQueryV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("executeRawDataQueryV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is executeRawDataQueryV2Args other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as executeRawDataQueryV2Result; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("executeRawDataQueryV2_args("); - int tmp448 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp448++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class executeRawDataQueryV2Result : TBase + public override string ToString() { - private TSExecuteStatementResp _success; - - public TSExecuteStatementResp Success + var sb = new StringBuilder("executeRawDataQueryV2_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class executeLastDataQueryV2Args : TBase + { + private TSLastDataQueryReq _req; - public executeRawDataQueryV2Result() + public TSLastDataQueryReq Req + { + get { + return _req; } - - public executeRawDataQueryV2Result DeepCopy() + set { - var tmp449 = new executeRawDataQueryV2Result(); - if((Success != null) && __isset.success) - { - tmp449.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp449.__isset.success = this.__isset.success; - return tmp449; + __isset.req = true; + this._req = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try - { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) - { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } - - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - await iprot.ReadFieldEndAsync(cancellationToken); - } + public Isset __isset; + public struct Isset + { + public bool req; + } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); - } - } + public executeLastDataQueryV2Args() + { + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - var struc = new TStruct("executeRawDataQueryV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + break; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } - } - - public override bool Equals(object that) - { - if (!(that is executeRawDataQueryV2Result other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) + switch (field.ID) { - hashcode = (hashcode * 397) + Success.GetHashCode(); + case 1: + if (field.Type == TType.Struct) + { + Req = new TSLastDataQueryReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } + + await iprot.ReadFieldEndAsync(cancellationToken); } - return hashcode; - } - public override string ToString() + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - var sb = new StringBuilder("executeRawDataQueryV2_result("); - int tmp450 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp450++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + iprot.DecrementRecursionDepth(); } } - - public partial class executeLastDataQueryV2Args : TBase + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - private TSLastDataQueryReq _req; - - public TSLastDataQueryReq Req + oprot.IncrementRecursionDepth(); + try { - get - { - return _req; - } - set + var struc = new TStruct("executeLastDataQueryV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - __isset.req = true; - this._req = value; + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } + } + public override bool Equals(object that) + { + var other = that as executeLastDataQueryV2Args; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public Isset __isset; - public struct Isset - { - public bool req; + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; + } - public executeLastDataQueryV2Args() + public override string ToString() + { + var sb = new StringBuilder("executeLastDataQueryV2_args("); + bool __first = true; + if (Req != null && __isset.req) { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class executeLastDataQueryV2Result : TBase + { + private TSExecuteStatementResp _success; - public executeLastDataQueryV2Args DeepCopy() + public TSExecuteStatementResp Success + { + get { - var tmp451 = new executeLastDataQueryV2Args(); - if((Req != null) && __isset.req) - { - tmp451.Req = (TSLastDataQueryReq)this.Req.DeepCopy(); - } - tmp451.__isset.req = this.__isset.req; - return tmp451; + return _success; + } + set + { + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public executeLastDataQueryV2Result() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSLastDataQueryReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); } + finally + { + iprot.DecrementRecursionDepth(); + } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("executeLastDataQueryV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("executeLastDataQueryV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is executeLastDataQueryV2Args other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as executeLastDataQueryV2Result; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("executeLastDataQueryV2_args("); - int tmp452 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp452++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class executeLastDataQueryV2Result : TBase + public override string ToString() { - private TSExecuteStatementResp _success; - - public TSExecuteStatementResp Success + var sb = new StringBuilder("executeLastDataQueryV2_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class executeFastLastDataQueryForOneDeviceV2Args : TBase + { + private TSFastLastDataQueryForOneDeviceReq _req; - public executeLastDataQueryV2Result() + public TSFastLastDataQueryForOneDeviceReq Req + { + get { + return _req; } - - public executeLastDataQueryV2Result DeepCopy() + set { - var tmp453 = new executeLastDataQueryV2Result(); - if((Success != null) && __isset.success) - { - tmp453.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp453.__isset.success = this.__isset.success; - return tmp453; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public executeFastLastDataQueryForOneDeviceV2Args() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSFastLastDataQueryForOneDeviceReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("executeLastDataQueryV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeFastLastDataQueryForOneDeviceV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is executeLastDataQueryV2Result other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as executeFastLastDataQueryForOneDeviceV2Args; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("executeLastDataQueryV2_result("); - int tmp454 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp454++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class fetchResultsV2Args : TBase + public override string ToString() { - private TSFetchResultsReq _req; - - public TSFetchResultsReq Req + var sb = new StringBuilder("executeFastLastDataQueryForOneDeviceV2_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class executeFastLastDataQueryForOneDeviceV2Result : TBase + { + private TSExecuteStatementResp _success; - public fetchResultsV2Args() + public TSExecuteStatementResp Success + { + get { + return _success; } - - public fetchResultsV2Args DeepCopy() + set { - var tmp455 = new fetchResultsV2Args(); - if((Req != null) && __isset.req) - { - tmp455.Req = (TSFetchResultsReq)this.Req.DeepCopy(); - } - tmp455.__isset.req = this.__isset.req; - return tmp455; + __isset.success = true; + this._success = value; } + } + - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public Isset __isset; + public struct Isset + { + public bool success; + } + + public executeFastLastDataQueryForOneDeviceV2Result() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSFetchResultsReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("executeFastLastDataQueryForOneDeviceV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("fetchResultsV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is fetchResultsV2Args other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as executeFastLastDataQueryForOneDeviceV2Result; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("fetchResultsV2_args("); - int tmp456 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp456++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class fetchResultsV2Result : TBase + public override string ToString() { - private TSFetchResultsResp _success; - - public TSFetchResultsResp Success + var sb = new StringBuilder("executeFastLastDataQueryForOneDeviceV2_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class executeAggregationQueryV2Args : TBase + { + private TSAggregationQueryReq _req; - public fetchResultsV2Result() + public TSAggregationQueryReq Req + { + get { + return _req; } - - public fetchResultsV2Result DeepCopy() + set { - var tmp457 = new fetchResultsV2Result(); - if((Success != null) && __isset.success) - { - tmp457.Success = (TSFetchResultsResp)this.Success.DeepCopy(); - } - tmp457.__isset.success = this.__isset.success; - return tmp457; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public executeAggregationQueryV2Args() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSFetchResultsResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSAggregationQueryReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("fetchResultsV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeAggregationQueryV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is fetchResultsV2Result other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as executeAggregationQueryV2Args; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("fetchResultsV2_result("); - int tmp458 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp458++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class openSessionArgs : TBase + public override string ToString() { - private TSOpenSessionReq _req; - - public TSOpenSessionReq Req + var sb = new StringBuilder("executeAggregationQueryV2_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class executeAggregationQueryV2Result : TBase + { + private TSExecuteStatementResp _success; - public openSessionArgs() + public TSExecuteStatementResp Success + { + get { + return _success; } - - public openSessionArgs DeepCopy() + set { - var tmp459 = new openSessionArgs(); - if((Req != null) && __isset.req) - { - tmp459.Req = (TSOpenSessionReq)this.Req.DeepCopy(); - } - tmp459.__isset.req = this.__isset.req; - return tmp459; + __isset.success = true; + this._success = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public executeAggregationQueryV2Result() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSOpenSessionReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("executeAggregationQueryV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("openSession_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is openSessionArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as executeAggregationQueryV2Result; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("openSession_args("); - int tmp460 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp460++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class openSessionResult : TBase + public override string ToString() { - private TSOpenSessionResp _success; - - public TSOpenSessionResp Success + var sb = new StringBuilder("executeAggregationQueryV2_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class executeGroupByQueryIntervalQueryArgs : TBase + { + private TSGroupByQueryIntervalReq _req; - public openSessionResult() + public TSGroupByQueryIntervalReq Req + { + get { + return _req; } - - public openSessionResult DeepCopy() + set { - var tmp461 = new openSessionResult(); - if((Success != null) && __isset.success) - { - tmp461.Success = (TSOpenSessionResp)this.Success.DeepCopy(); - } - tmp461.__isset.success = this.__isset.success; - return tmp461; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public executeGroupByQueryIntervalQueryArgs() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSOpenSessionResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSGroupByQueryIntervalReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("openSession_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeGroupByQueryIntervalQuery_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is openSessionResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as executeGroupByQueryIntervalQueryArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("openSession_result("); - int tmp462 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp462++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class closeSessionArgs : TBase + public override string ToString() { - private TSCloseSessionReq _req; - - public TSCloseSessionReq Req + var sb = new StringBuilder("executeGroupByQueryIntervalQuery_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class executeGroupByQueryIntervalQueryResult : TBase + { + private TSExecuteStatementResp _success; - public closeSessionArgs() + public TSExecuteStatementResp Success + { + get { + return _success; } - - public closeSessionArgs DeepCopy() + set { - var tmp463 = new closeSessionArgs(); - if((Req != null) && __isset.req) - { - tmp463.Req = (TSCloseSessionReq)this.Req.DeepCopy(); - } - tmp463.__isset.req = this.__isset.req; - return tmp463; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public executeGroupByQueryIntervalQueryResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSCloseSessionReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); + await iprot.ReadFieldEndAsync(cancellationToken); } - finally - { - iprot.DecrementRecursionDepth(); - } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeGroupByQueryIntervalQuery_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("closeSession_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is closeSessionArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as executeGroupByQueryIntervalQueryResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("closeSession_args("); - int tmp464 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp464++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class closeSessionResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("executeGroupByQueryIntervalQuery_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class fetchResultsV2Args : TBase + { + private TSFetchResultsReq _req; - public closeSessionResult() + public TSFetchResultsReq Req + { + get { + return _req; } - - public closeSessionResult DeepCopy() + set { - var tmp465 = new closeSessionResult(); - if((Success != null) && __isset.success) - { - tmp465.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp465.__isset.success = this.__isset.success; - return tmp465; + __isset.req = true; + this._req = value; } + } + - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public Isset __isset; + public struct Isset + { + public bool req; + } + + public fetchResultsV2Args() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSFetchResultsReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("closeSession_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("fetchResultsV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is closeSessionResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as fetchResultsV2Args; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("closeSession_result("); - int tmp466 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp466++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class executeStatementArgs : TBase + public override string ToString() { - private TSExecuteStatementReq _req; - - public TSExecuteStatementReq Req + var sb = new StringBuilder("fetchResultsV2_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class fetchResultsV2Result : TBase + { + private TSFetchResultsResp _success; - public executeStatementArgs() + public TSFetchResultsResp Success + { + get { + return _success; } - - public executeStatementArgs DeepCopy() + set { - var tmp467 = new executeStatementArgs(); - if((Req != null) && __isset.req) - { - tmp467.Req = (TSExecuteStatementReq)this.Req.DeepCopy(); - } - tmp467.__isset.req = this.__isset.req; - return tmp467; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public fetchResultsV2Result() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSExecuteStatementReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSFetchResultsResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("fetchResultsV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("executeStatement_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is executeStatementArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as fetchResultsV2Result; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("executeStatement_args("); - int tmp468 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp468++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class executeStatementResult : TBase + public override string ToString() { - private TSExecuteStatementResp _success; - - public TSExecuteStatementResp Success + var sb = new StringBuilder("fetchResultsV2_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class openSessionArgs : TBase + { + private TSOpenSessionReq _req; - public executeStatementResult() + public TSOpenSessionReq Req + { + get { + return _req; } - - public executeStatementResult DeepCopy() + set { - var tmp469 = new executeStatementResult(); - if((Success != null) && __isset.success) - { - tmp469.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp469.__isset.success = this.__isset.success; - return tmp469; + __isset.req = true; + this._req = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public openSessionArgs() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSOpenSessionReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("executeStatement_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("openSession_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is executeStatementResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as openSessionArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("executeStatement_result("); - int tmp470 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp470++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class executeBatchStatementArgs : TBase + public override string ToString() { - private TSExecuteBatchStatementReq _req; - - public TSExecuteBatchStatementReq Req + var sb = new StringBuilder("openSession_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class openSessionResult : TBase + { + private TSOpenSessionResp _success; - public executeBatchStatementArgs() + public TSOpenSessionResp Success + { + get { + return _success; } - - public executeBatchStatementArgs DeepCopy() + set { - var tmp471 = new executeBatchStatementArgs(); - if((Req != null) && __isset.req) - { - tmp471.Req = (TSExecuteBatchStatementReq)this.Req.DeepCopy(); - } - tmp471.__isset.req = this.__isset.req; - return tmp471; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public openSessionResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSExecuteBatchStatementReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSOpenSessionResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("openSession_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("executeBatchStatement_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is executeBatchStatementArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as openSessionResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("executeBatchStatement_args("); - int tmp472 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp472++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class executeBatchStatementResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("openSession_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class closeSessionArgs : TBase + { + private TSCloseSessionReq _req; - public executeBatchStatementResult() + public TSCloseSessionReq Req + { + get { + return _req; } - - public executeBatchStatementResult DeepCopy() + set { - var tmp473 = new executeBatchStatementResult(); - if((Success != null) && __isset.success) - { - tmp473.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp473.__isset.success = this.__isset.success; - return tmp473; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public closeSessionArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSCloseSessionReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); + await iprot.ReadFieldEndAsync(cancellationToken); } - finally - { - iprot.DecrementRecursionDepth(); - } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("executeBatchStatement_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("closeSession_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is executeBatchStatementResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as closeSessionArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("executeBatchStatement_result("); - int tmp474 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp474++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class executeQueryStatementArgs : TBase + public override string ToString() { - private TSExecuteStatementReq _req; - - public TSExecuteStatementReq Req + var sb = new StringBuilder("closeSession_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class closeSessionResult : TBase + { + private TSStatus _success; - public executeQueryStatementArgs() + public TSStatus Success + { + get { + return _success; } - - public executeQueryStatementArgs DeepCopy() + set { - var tmp475 = new executeQueryStatementArgs(); - if((Req != null) && __isset.req) - { - tmp475.Req = (TSExecuteStatementReq)this.Req.DeepCopy(); - } - tmp475.__isset.req = this.__isset.req; - return tmp475; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public closeSessionResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSExecuteStatementReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); } + finally + { + iprot.DecrementRecursionDepth(); + } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("closeSession_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("executeQueryStatement_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is executeQueryStatementArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as closeSessionResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("executeQueryStatement_args("); - int tmp476 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp476++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class executeQueryStatementResult : TBase + public override string ToString() { - private TSExecuteStatementResp _success; - - public TSExecuteStatementResp Success + var sb = new StringBuilder("closeSession_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class executeStatementArgs : TBase + { + private TSExecuteStatementReq _req; - public executeQueryStatementResult() + public TSExecuteStatementReq Req + { + get { + return _req; } - - public executeQueryStatementResult DeepCopy() + set { - var tmp477 = new executeQueryStatementResult(); - if((Success != null) && __isset.success) - { - tmp477.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp477.__isset.success = this.__isset.success; - return tmp477; + __isset.req = true; + this._req = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try - { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) - { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } - - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - await iprot.ReadFieldEndAsync(cancellationToken); - } + public Isset __isset; + public struct Isset + { + public bool req; + } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); - } - } + public executeStatementArgs() + { + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - var struc = new TStruct("executeQueryStatement_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + break; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } - } - - public override bool Equals(object that) - { - if (!(that is executeQueryStatementResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) + switch (field.ID) { - hashcode = (hashcode * 397) + Success.GetHashCode(); + case 1: + if (field.Type == TType.Struct) + { + Req = new TSExecuteStatementReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } + + await iprot.ReadFieldEndAsync(cancellationToken); } - return hashcode; - } - public override string ToString() + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - var sb = new StringBuilder("executeQueryStatement_result("); - int tmp478 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp478++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + iprot.DecrementRecursionDepth(); } } - - public partial class executeUpdateStatementArgs : TBase + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - private TSExecuteStatementReq _req; - - public TSExecuteStatementReq Req + oprot.IncrementRecursionDepth(); + try { - get + var struc = new TStruct("executeStatement_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - return _req; - } - set - { - __isset.req = true; - this._req = value; + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } + } + public override bool Equals(object that) + { + var other = that as executeStatementArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public Isset __isset; - public struct Isset - { - public bool req; + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; + } - public executeUpdateStatementArgs() + public override string ToString() + { + var sb = new StringBuilder("executeStatement_args("); + bool __first = true; + if (Req != null && __isset.req) { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public executeUpdateStatementArgs DeepCopy() + + public partial class executeStatementResult : TBase + { + private TSExecuteStatementResp _success; + + public TSExecuteStatementResp Success + { + get { - var tmp479 = new executeUpdateStatementArgs(); - if((Req != null) && __isset.req) - { - tmp479.Req = (TSExecuteStatementReq)this.Req.DeepCopy(); - } - tmp479.__isset.req = this.__isset.req; - return tmp479; + return _success; + } + set + { + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public executeStatementResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSExecuteStatementReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("executeStatement_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("executeUpdateStatement_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is executeUpdateStatementArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as executeStatementResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("executeUpdateStatement_args("); - int tmp480 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp480++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class executeUpdateStatementResult : TBase + public override string ToString() { - private TSExecuteStatementResp _success; - - public TSExecuteStatementResp Success + var sb = new StringBuilder("executeStatement_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class executeBatchStatementArgs : TBase + { + private TSExecuteBatchStatementReq _req; - public executeUpdateStatementResult() + public TSExecuteBatchStatementReq Req + { + get { + return _req; } - - public executeUpdateStatementResult DeepCopy() + set { - var tmp481 = new executeUpdateStatementResult(); - if((Success != null) && __isset.success) - { - tmp481.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp481.__isset.success = this.__isset.success; - return tmp481; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public executeBatchStatementArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSExecuteBatchStatementReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); + await iprot.ReadFieldEndAsync(cancellationToken); } - finally - { - iprot.DecrementRecursionDepth(); - } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("executeUpdateStatement_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeBatchStatement_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is executeUpdateStatementResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as executeBatchStatementArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("executeUpdateStatement_result("); - int tmp482 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp482++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class fetchResultsArgs : TBase + public override string ToString() { - private TSFetchResultsReq _req; - - public TSFetchResultsReq Req + var sb = new StringBuilder("executeBatchStatement_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class executeBatchStatementResult : TBase + { + private TSStatus _success; - public fetchResultsArgs() + public TSStatus Success + { + get { + return _success; } - - public fetchResultsArgs DeepCopy() + set { - var tmp483 = new fetchResultsArgs(); - if((Req != null) && __isset.req) - { - tmp483.Req = (TSFetchResultsReq)this.Req.DeepCopy(); - } - tmp483.__isset.req = this.__isset.req; - return tmp483; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public executeBatchStatementResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSFetchResultsReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); } + finally + { + iprot.DecrementRecursionDepth(); + } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("executeBatchStatement_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("fetchResults_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is fetchResultsArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as executeBatchStatementResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("fetchResults_args("); - int tmp484 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp484++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class fetchResultsResult : TBase + public override string ToString() { - private TSFetchResultsResp _success; - - public TSFetchResultsResp Success + var sb = new StringBuilder("executeBatchStatement_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class executeQueryStatementArgs : TBase + { + private TSExecuteStatementReq _req; - public fetchResultsResult() + public TSExecuteStatementReq Req + { + get { + return _req; } - - public fetchResultsResult DeepCopy() + set { - var tmp485 = new fetchResultsResult(); - if((Success != null) && __isset.success) - { - tmp485.Success = (TSFetchResultsResp)this.Success.DeepCopy(); - } - tmp485.__isset.success = this.__isset.success; - return tmp485; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public executeQueryStatementArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSFetchResultsResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSExecuteStatementReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("fetchResults_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeQueryStatement_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is fetchResultsResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as executeQueryStatementArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("fetchResults_result("); - int tmp486 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp486++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class fetchMetadataArgs : TBase + public override string ToString() { - private TSFetchMetadataReq _req; - - public TSFetchMetadataReq Req + var sb = new StringBuilder("executeQueryStatement_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class executeQueryStatementResult : TBase + { + private TSExecuteStatementResp _success; - public fetchMetadataArgs() + public TSExecuteStatementResp Success + { + get { + return _success; } - - public fetchMetadataArgs DeepCopy() + set { - var tmp487 = new fetchMetadataArgs(); - if((Req != null) && __isset.req) - { - tmp487.Req = (TSFetchMetadataReq)this.Req.DeepCopy(); - } - tmp487.__isset.req = this.__isset.req; - return tmp487; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public executeQueryStatementResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSFetchMetadataReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("executeQueryStatement_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("fetchMetadata_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is fetchMetadataArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as executeQueryStatementResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("fetchMetadata_args("); - int tmp488 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp488++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class fetchMetadataResult : TBase + public override string ToString() { - private TSFetchMetadataResp _success; - - public TSFetchMetadataResp Success + var sb = new StringBuilder("executeQueryStatement_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class executeUpdateStatementArgs : TBase + { + private TSExecuteStatementReq _req; - public fetchMetadataResult() + public TSExecuteStatementReq Req + { + get { + return _req; } - - public fetchMetadataResult DeepCopy() + set { - var tmp489 = new fetchMetadataResult(); - if((Success != null) && __isset.success) - { - tmp489.Success = (TSFetchMetadataResp)this.Success.DeepCopy(); - } - tmp489.__isset.success = this.__isset.success; - return tmp489; + __isset.req = true; + this._req = value; } + } + - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public Isset __isset; + public struct Isset + { + public bool req; + } + + public executeUpdateStatementArgs() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSFetchMetadataResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSExecuteStatementReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("fetchMetadata_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeUpdateStatement_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is fetchMetadataResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as executeUpdateStatementArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("fetchMetadata_result("); - int tmp490 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp490++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class cancelOperationArgs : TBase + public override string ToString() { - private TSCancelOperationReq _req; - - public TSCancelOperationReq Req + var sb = new StringBuilder("executeUpdateStatement_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class executeUpdateStatementResult : TBase + { + private TSExecuteStatementResp _success; - public cancelOperationArgs() + public TSExecuteStatementResp Success + { + get { + return _success; } - - public cancelOperationArgs DeepCopy() + set { - var tmp491 = new cancelOperationArgs(); - if((Req != null) && __isset.req) - { - tmp491.Req = (TSCancelOperationReq)this.Req.DeepCopy(); - } - tmp491.__isset.req = this.__isset.req; - return tmp491; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public executeUpdateStatementResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSCancelOperationReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("executeUpdateStatement_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("cancelOperation_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is cancelOperationArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; + public override bool Equals(object that) + { + var other = that as executeUpdateStatementResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; + } - public override string ToString() + public override string ToString() + { + var sb = new StringBuilder("executeUpdateStatement_result("); + bool __first = true; + if (Success != null && __isset.success) { - var sb = new StringBuilder("cancelOperation_args("); - int tmp492 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp492++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); } + } - public partial class cancelOperationResult : TBase - { - private TSStatus _success; + public partial class fetchResultsArgs : TBase + { + private TSFetchResultsReq _req; - public TSStatus Success + public TSFetchResultsReq Req + { + get { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + return _req; + } + set + { + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + public fetchResultsArgs() + { + } - public Isset __isset; - public struct Isset + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - public bool success; - } + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - public cancelOperationResult() + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSFetchResultsReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { + iprot.DecrementRecursionDepth(); } + } - public cancelOperationResult DeepCopy() + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - var tmp493 = new cancelOperationResult(); - if((Success != null) && __isset.success) + var struc = new TStruct("fetchResults_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - tmp493.Success = (TSStatus)this.Success.DeepCopy(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - tmp493.__isset.success = this.__isset.success; - return tmp493; + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try - { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) - { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } - - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); - } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); - } - } - - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("cancelOperation_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } + oprot.DecrementRecursionDepth(); } + } - public override bool Equals(object that) - { - if (!(that is cancelOperationResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } + public override bool Equals(object that) + { + var other = that as fetchResultsArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; + } - public override string ToString() + public override string ToString() + { + var sb = new StringBuilder("fetchResults_args("); + bool __first = true; + if (Req != null && __isset.req) { - var sb = new StringBuilder("cancelOperation_result("); - int tmp494 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp494++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); } + } - public partial class closeOperationArgs : TBase - { - private TSCloseOperationReq _req; + public partial class fetchResultsResult : TBase + { + private TSFetchResultsResp _success; - public TSCloseOperationReq Req + public TSFetchResultsResp Success + { + get { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + return _success; } - - - public Isset __isset; - public struct Isset + set { - public bool req; + __isset.success = true; + this._success = value; } + } - public closeOperationArgs() - { - } - public closeOperationArgs DeepCopy() - { - var tmp495 = new closeOperationArgs(); - if((Req != null) && __isset.req) - { - tmp495.Req = (TSCloseOperationReq)this.Req.DeepCopy(); - } - tmp495.__isset.req = this.__isset.req; - return tmp495; - } + public Isset __isset; + public struct Isset + { + public bool success; + } + + public fetchResultsResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSCloseOperationReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSFetchResultsResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("fetchResults_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("closeOperation_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is closeOperationArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as fetchResultsResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("closeOperation_args("); - int tmp496 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp496++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class closeOperationResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("fetchResults_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class fetchMetadataArgs : TBase + { + private TSFetchMetadataReq _req; - public closeOperationResult() + public TSFetchMetadataReq Req + { + get { + return _req; } - - public closeOperationResult DeepCopy() + set { - var tmp497 = new closeOperationResult(); - if((Success != null) && __isset.success) - { - tmp497.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp497.__isset.success = this.__isset.success; - return tmp497; + __isset.req = true; + this._req = value; } + } + - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public Isset __isset; + public struct Isset + { + public bool req; + } + + public fetchMetadataArgs() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSFetchMetadataReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("closeOperation_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("fetchMetadata_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is closeOperationResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as fetchMetadataArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("closeOperation_result("); - int tmp498 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp498++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class getTimeZoneArgs : TBase + public override string ToString() { - private long _sessionId; - - public long SessionId + var sb = new StringBuilder("fetchMetadata_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _sessionId; - } - set - { - __isset.sessionId = true; - this._sessionId = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool sessionId; - } + public partial class fetchMetadataResult : TBase + { + private TSFetchMetadataResp _success; - public getTimeZoneArgs() + public TSFetchMetadataResp Success + { + get { + return _success; } - - public getTimeZoneArgs DeepCopy() + set { - var tmp499 = new getTimeZoneArgs(); - if(__isset.sessionId) - { - tmp499.SessionId = this.SessionId; - } - tmp499.__isset.sessionId = this.__isset.sessionId; - return tmp499; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public fetchMetadataResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.I64) - { - SessionId = await iprot.ReadI64Async(cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSFetchMetadataResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("fetchMetadata_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("getTimeZone_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if(__isset.sessionId) + if (Success != null) { - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteI64Async(SessionId, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is getTimeZoneArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.sessionId) - { - hashcode = (hashcode * 397) + SessionId.GetHashCode(); - } - } - return hashcode; + public override bool Equals(object that) + { + var other = that as fetchMetadataResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; + } - public override string ToString() + public override string ToString() + { + var sb = new StringBuilder("fetchMetadata_result("); + bool __first = true; + if (Success != null && __isset.success) { - var sb = new StringBuilder("getTimeZone_args("); - int tmp500 = 0; - if(__isset.sessionId) - { - if(0 < tmp500++) { sb.Append(", "); } - sb.Append("SessionId: "); - SessionId.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); } + } - public partial class getTimeZoneResult : TBase - { - private TSGetTimeZoneResp _success; + public partial class cancelOperationArgs : TBase + { + private TSCancelOperationReq _req; - public TSGetTimeZoneResp Success + public TSCancelOperationReq Req + { + get { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + return _req; } - - - public Isset __isset; - public struct Isset + set { - public bool success; + __isset.req = true; + this._req = value; } + } - public getTimeZoneResult() - { - } - public getTimeZoneResult DeepCopy() - { - var tmp501 = new getTimeZoneResult(); - if((Success != null) && __isset.success) - { - tmp501.Success = (TSGetTimeZoneResp)this.Success.DeepCopy(); - } - tmp501.__isset.success = this.__isset.success; - return tmp501; - } + public Isset __isset; + public struct Isset + { + public bool req; + } + + public cancelOperationArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSGetTimeZoneResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSCancelOperationReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("getTimeZone_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("cancelOperation_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is getTimeZoneResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as cancelOperationArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("getTimeZone_result("); - int tmp502 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp502++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class setTimeZoneArgs : TBase + public override string ToString() { - private TSSetTimeZoneReq _req; - - public TSSetTimeZoneReq Req + var sb = new StringBuilder("cancelOperation_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class cancelOperationResult : TBase + { + private TSStatus _success; - public setTimeZoneArgs() + public TSStatus Success + { + get { + return _success; } - - public setTimeZoneArgs DeepCopy() + set { - var tmp503 = new setTimeZoneArgs(); - if((Req != null) && __isset.req) - { - tmp503.Req = (TSSetTimeZoneReq)this.Req.DeepCopy(); - } - tmp503.__isset.req = this.__isset.req; - return tmp503; + __isset.success = true; + this._success = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public cancelOperationResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSSetTimeZoneReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("cancelOperation_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("setTimeZone_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is setTimeZoneArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as cancelOperationResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("setTimeZone_args("); - int tmp504 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp504++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class setTimeZoneResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("cancelOperation_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class closeOperationArgs : TBase + { + private TSCloseOperationReq _req; - public setTimeZoneResult() + public TSCloseOperationReq Req + { + get { + return _req; } - - public setTimeZoneResult DeepCopy() + set { - var tmp505 = new setTimeZoneResult(); - if((Success != null) && __isset.success) - { - tmp505.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp505.__isset.success = this.__isset.success; - return tmp505; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public closeOperationArgs() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSCloseOperationReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("setTimeZone_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("closeOperation_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is setTimeZoneResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; + public override bool Equals(object that) + { + var other = that as closeOperationArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; + } - public override string ToString() + public override string ToString() + { + var sb = new StringBuilder("closeOperation_args("); + bool __first = true; + if (Req != null && __isset.req) { - var sb = new StringBuilder("setTimeZone_result("); - int tmp506 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp506++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); } + } - public partial class getPropertiesArgs : TBase - { + public partial class closeOperationResult : TBase + { + private TSStatus _success; - public getPropertiesArgs() + public TSStatus Success + { + get { + return _success; } - - public getPropertiesArgs DeepCopy() + set { - var tmp507 = new getPropertiesArgs(); - return tmp507; + __isset.success = true; + this._success = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public closeOperationResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("getProperties_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } + iprot.DecrementRecursionDepth(); } + } - public override bool Equals(object that) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - if (!(that is getPropertiesArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return true; - } + var struc = new TStruct("closeOperation_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); - public override int GetHashCode() { - int hashcode = 157; - unchecked { + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } } - return hashcode; + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override string ToString() + finally { - var sb = new StringBuilder("getProperties_args("); - sb.Append(')'); - return sb.ToString(); + oprot.DecrementRecursionDepth(); } } - - public partial class getPropertiesResult : TBase + public override bool Equals(object that) { - private ServerProperties _success; + var other = that as closeOperationResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public ServerProperties Success - { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; + } - - public Isset __isset; - public struct Isset + public override string ToString() + { + var sb = new StringBuilder("closeOperation_result("); + bool __first = true; + if (Success != null && __isset.success) { - public bool success; + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public getPropertiesResult() - { - } - public getPropertiesResult DeepCopy() + public partial class getTimeZoneArgs : TBase + { + private long _sessionId; + + public long SessionId + { + get { - var tmp509 = new getPropertiesResult(); - if((Success != null) && __isset.success) - { - tmp509.Success = (ServerProperties)this.Success.DeepCopy(); - } - tmp509.__isset.success = this.__isset.success; - return tmp509; + return _sessionId; } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + set { - iprot.IncrementRecursionDepth(); - try - { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) - { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + __isset.sessionId = true; + this._sessionId = value; + } + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new ServerProperties(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - await iprot.ReadFieldEndAsync(cancellationToken); - } + public Isset __isset; + public struct Isset + { + public bool sessionId; + } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); - } - } + public getTimeZoneArgs() + { + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - var struc = new TStruct("getProperties_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + break; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } - } - - public override bool Equals(object that) - { - if (!(that is getPropertiesResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) + switch (field.ID) { - hashcode = (hashcode * 397) + Success.GetHashCode(); + case 1: + if (field.Type == TType.I64) + { + SessionId = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } + + await iprot.ReadFieldEndAsync(cancellationToken); } - return hashcode; - } - public override string ToString() + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - var sb = new StringBuilder("getProperties_result("); - int tmp510 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp510++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + iprot.DecrementRecursionDepth(); } } - - public partial class setStorageGroupArgs : TBase + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - private long _sessionId; - private string _storageGroup; - - public long SessionId + oprot.IncrementRecursionDepth(); + try { - get - { - return _sessionId; - } - set + var struc = new TStruct("getTimeZone_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (__isset.sessionId) { - __isset.sessionId = true; - this._sessionId = value; + field.Name = "sessionId"; + field.Type = TType.I64; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(SessionId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public string StorageGroup + finally { - get - { - return _storageGroup; - } - set - { - __isset.storageGroup = true; - this._storageGroup = value; - } + oprot.DecrementRecursionDepth(); } + } + public override bool Equals(object that) + { + var other = that as getTimeZoneArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))); + } - public Isset __isset; - public struct Isset - { - public bool sessionId; - public bool storageGroup; + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.sessionId) + hashcode = (hashcode * 397) + SessionId.GetHashCode(); } + return hashcode; + } - public setStorageGroupArgs() + public override string ToString() + { + var sb = new StringBuilder("getTimeZone_args("); + bool __first = true; + if (__isset.sessionId) { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("SessionId: "); + sb.Append(SessionId); } + sb.Append(")"); + return sb.ToString(); + } + } + - public setStorageGroupArgs DeepCopy() + public partial class getTimeZoneResult : TBase + { + private TSGetTimeZoneResp _success; + + public TSGetTimeZoneResp Success + { + get { - var tmp511 = new setStorageGroupArgs(); - if(__isset.sessionId) - { - tmp511.SessionId = this.SessionId; - } - tmp511.__isset.sessionId = this.__isset.sessionId; - if((StorageGroup != null) && __isset.storageGroup) - { - tmp511.StorageGroup = this.StorageGroup; - } - tmp511.__isset.storageGroup = this.__isset.storageGroup; - return tmp511; + return _success; } + set + { + __isset.success = true; + this._success = value; + } + } + - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public Isset __isset; + public struct Isset + { + public bool success; + } + + public getTimeZoneResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.I64) - { - SessionId = await iprot.ReadI64Async(cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - case 2: - if (field.Type == TType.String) - { - StorageGroup = await iprot.ReadStringAsync(cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSGetTimeZoneResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("getTimeZone_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("setStorageGroup_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if(__isset.sessionId) - { - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteI64Async(SessionId, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((StorageGroup != null) && __isset.storageGroup) + if (Success != null) { - field.Name = "storageGroup"; - field.Type = TType.String; - field.ID = 2; + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(StorageGroup, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is setStorageGroupArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))) - && ((__isset.storageGroup == other.__isset.storageGroup) && ((!__isset.storageGroup) || (System.Object.Equals(StorageGroup, other.StorageGroup)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.sessionId) - { - hashcode = (hashcode * 397) + SessionId.GetHashCode(); - } - if((StorageGroup != null) && __isset.storageGroup) - { - hashcode = (hashcode * 397) + StorageGroup.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as getTimeZoneResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("setStorageGroup_args("); - int tmp512 = 0; - if(__isset.sessionId) - { - if(0 < tmp512++) { sb.Append(", "); } - sb.Append("SessionId: "); - SessionId.ToString(sb); - } - if((StorageGroup != null) && __isset.storageGroup) - { - if(0 < tmp512++) { sb.Append(", "); } - sb.Append("StorageGroup: "); - StorageGroup.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class setStorageGroupResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("getTimeZone_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class setTimeZoneArgs : TBase + { + private TSSetTimeZoneReq _req; - public setStorageGroupResult() + public TSSetTimeZoneReq Req + { + get { + return _req; } - - public setStorageGroupResult DeepCopy() + set { - var tmp513 = new setStorageGroupResult(); - if((Success != null) && __isset.success) - { - tmp513.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp513.__isset.success = this.__isset.success; - return tmp513; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public setTimeZoneArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSSetTimeZoneReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); + await iprot.ReadFieldEndAsync(cancellationToken); } - finally - { - iprot.DecrementRecursionDepth(); - } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("setStorageGroup_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("setTimeZone_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is setStorageGroupResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as setTimeZoneArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("setStorageGroup_result("); - int tmp514 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp514++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class createTimeseriesArgs : TBase + public override string ToString() { - private TSCreateTimeseriesReq _req; - - public TSCreateTimeseriesReq Req + var sb = new StringBuilder("setTimeZone_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class setTimeZoneResult : TBase + { + private TSStatus _success; - public createTimeseriesArgs() + public TSStatus Success + { + get { + return _success; } - - public createTimeseriesArgs DeepCopy() + set { - var tmp515 = new createTimeseriesArgs(); - if((Req != null) && __isset.req) - { - tmp515.Req = (TSCreateTimeseriesReq)this.Req.DeepCopy(); - } - tmp515.__isset.req = this.__isset.req; - return tmp515; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public setTimeZoneResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSCreateTimeseriesReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); } + finally + { + iprot.DecrementRecursionDepth(); + } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("setTimeZone_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("createTimeseries_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is createTimeseriesArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as setTimeZoneResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("createTimeseries_args("); - int tmp516 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp516++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class createTimeseriesResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("setTimeZone_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class getPropertiesArgs : TBase + { - public createTimeseriesResult() - { - } + public getPropertiesArgs() + { + } - public createTimeseriesResult DeepCopy() + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - var tmp517 = new createTimeseriesResult(); - if((Success != null) && __isset.success) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - tmp517.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp517.__isset.success = this.__isset.success; - return tmp517; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try - { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + switch (field.ID) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); break; - } - - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadStructEndAsync(cancellationToken); + await iprot.ReadFieldEndAsync(cancellationToken); } - finally - { - iprot.DecrementRecursionDepth(); - } - } - - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("createTimeseries_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } + await iprot.ReadStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is createTimeseriesResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + iprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("getProperties_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override string ToString() + finally { - var sb = new StringBuilder("createTimeseries_result("); - int tmp518 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp518++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + oprot.DecrementRecursionDepth(); } } - - public partial class createAlignedTimeseriesArgs : TBase + public override bool Equals(object that) { - private TSCreateAlignedTimeseriesReq _req; + var other = that as getPropertiesArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return true; + } - public TSCreateAlignedTimeseriesReq Req - { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("getProperties_args("); + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class getPropertiesResult : TBase + { + private ServerProperties _success; - public createAlignedTimeseriesArgs() + public ServerProperties Success + { + get { + return _success; } - - public createAlignedTimeseriesArgs DeepCopy() + set { - var tmp519 = new createAlignedTimeseriesArgs(); - if((Req != null) && __isset.req) - { - tmp519.Req = (TSCreateAlignedTimeseriesReq)this.Req.DeepCopy(); - } - tmp519.__isset.req = this.__isset.req; - return tmp519; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public getPropertiesResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSCreateAlignedTimeseriesReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new ServerProperties(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("getProperties_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("createAlignedTimeseries_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is createAlignedTimeseriesArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as getPropertiesResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("createAlignedTimeseries_args("); - int tmp520 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp520++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class createAlignedTimeseriesResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("getProperties_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } + + public partial class setStorageGroupArgs : TBase + { + private long _sessionId; + private string _storageGroup; - public Isset __isset; - public struct Isset + public long SessionId + { + get { - public bool success; + return _sessionId; } - - public createAlignedTimeseriesResult() + set { + __isset.sessionId = true; + this._sessionId = value; } + } - public createAlignedTimeseriesResult DeepCopy() + public string StorageGroup + { + get { - var tmp521 = new createAlignedTimeseriesResult(); - if((Success != null) && __isset.success) - { - tmp521.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp521.__isset.success = this.__isset.success; - return tmp521; + return _storageGroup; } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + set { - iprot.IncrementRecursionDepth(); - try - { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) - { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + __isset.storageGroup = true; + this._storageGroup = value; + } + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - await iprot.ReadFieldEndAsync(cancellationToken); - } + public Isset __isset; + public struct Isset + { + public bool sessionId; + public bool storageGroup; + } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); - } - } + public setStorageGroupArgs() + { + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - var struc = new TStruct("createAlignedTimeseries_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + break; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } - } - - public override bool Equals(object that) - { - if (!(that is createAlignedTimeseriesResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) + switch (field.ID) { - hashcode = (hashcode * 397) + Success.GetHashCode(); + case 1: + if (field.Type == TType.I64) + { + SessionId = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + StorageGroup = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } + + await iprot.ReadFieldEndAsync(cancellationToken); } - return hashcode; - } - public override string ToString() + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - var sb = new StringBuilder("createAlignedTimeseries_result("); - int tmp522 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp522++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + iprot.DecrementRecursionDepth(); } } - - public partial class createMultiTimeseriesArgs : TBase + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - private TSCreateMultiTimeseriesReq _req; - - public TSCreateMultiTimeseriesReq Req + oprot.IncrementRecursionDepth(); + try { - get + var struc = new TStruct("setStorageGroup_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (__isset.sessionId) { - return _req; + field.Name = "sessionId"; + field.Type = TType.I64; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(SessionId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - set + if (StorageGroup != null && __isset.storageGroup) { - __isset.req = true; - this._req = value; + field.Name = "storageGroup"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(StorageGroup, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } + } + public override bool Equals(object that) + { + var other = that as setStorageGroupArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))) + && ((__isset.storageGroup == other.__isset.storageGroup) && ((!__isset.storageGroup) || (System.Object.Equals(StorageGroup, other.StorageGroup)))); + } - public Isset __isset; - public struct Isset - { - public bool req; + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.sessionId) + hashcode = (hashcode * 397) + SessionId.GetHashCode(); + if(__isset.storageGroup) + hashcode = (hashcode * 397) + StorageGroup.GetHashCode(); } + return hashcode; + } - public createMultiTimeseriesArgs() + public override string ToString() + { + var sb = new StringBuilder("setStorageGroup_args("); + bool __first = true; + if (__isset.sessionId) { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("SessionId: "); + sb.Append(SessionId); } - - public createMultiTimeseriesArgs DeepCopy() + if (StorageGroup != null && __isset.storageGroup) { - var tmp523 = new createMultiTimeseriesArgs(); - if((Req != null) && __isset.req) - { - tmp523.Req = (TSCreateMultiTimeseriesReq)this.Req.DeepCopy(); - } - tmp523.__isset.req = this.__isset.req; - return tmp523; + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("StorageGroup: "); + sb.Append(StorageGroup); + } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class setStorageGroupResult : TBase + { + private TSStatus _success; + + public TSStatus Success + { + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public setStorageGroupResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSCreateMultiTimeseriesReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); } + finally + { + iprot.DecrementRecursionDepth(); + } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("setStorageGroup_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("createMultiTimeseries_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is createMultiTimeseriesArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as setStorageGroupResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("createMultiTimeseries_args("); - int tmp524 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp524++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class createMultiTimeseriesResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("setStorageGroup_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class createTimeseriesArgs : TBase + { + private TSCreateTimeseriesReq _req; - public createMultiTimeseriesResult() + public TSCreateTimeseriesReq Req + { + get { + return _req; } - - public createMultiTimeseriesResult DeepCopy() + set { - var tmp525 = new createMultiTimeseriesResult(); - if((Success != null) && __isset.success) - { - tmp525.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp525.__isset.success = this.__isset.success; - return tmp525; + __isset.req = true; + this._req = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try - { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) - { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } - - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - await iprot.ReadFieldEndAsync(cancellationToken); - } + public Isset __isset; + public struct Isset + { + public bool req; + } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); - } - } + public createTimeseriesArgs() + { + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - var struc = new TStruct("createMultiTimeseries_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + break; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } - } - - public override bool Equals(object that) - { - if (!(that is createMultiTimeseriesResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) + switch (field.ID) { - hashcode = (hashcode * 397) + Success.GetHashCode(); + case 1: + if (field.Type == TType.Struct) + { + Req = new TSCreateTimeseriesReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } + + await iprot.ReadFieldEndAsync(cancellationToken); } - return hashcode; - } - public override string ToString() + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - var sb = new StringBuilder("createMultiTimeseries_result("); - int tmp526 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp526++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + iprot.DecrementRecursionDepth(); } } - - public partial class deleteTimeseriesArgs : TBase + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - private long _sessionId; - private List _path; - - public long SessionId + oprot.IncrementRecursionDepth(); + try { - get + var struc = new TStruct("createTimeseries_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - return _sessionId; - } - set - { - __isset.sessionId = true; - this._sessionId = value; + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public List Path + finally { - get - { - return _path; - } - set - { - __isset.path = true; - this._path = value; - } + oprot.DecrementRecursionDepth(); } + } + public override bool Equals(object that) + { + var other = that as createTimeseriesArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public Isset __isset; - public struct Isset - { - public bool sessionId; - public bool path; + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; + } - public deleteTimeseriesArgs() + public override string ToString() + { + var sb = new StringBuilder("createTimeseries_args("); + bool __first = true; + if (Req != null && __isset.req) { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } + - public deleteTimeseriesArgs DeepCopy() + public partial class createTimeseriesResult : TBase + { + private TSStatus _success; + + public TSStatus Success + { + get { - var tmp527 = new deleteTimeseriesArgs(); - if(__isset.sessionId) - { - tmp527.SessionId = this.SessionId; - } - tmp527.__isset.sessionId = this.__isset.sessionId; - if((Path != null) && __isset.path) - { - tmp527.Path = this.Path.DeepCopy(); - } - tmp527.__isset.path = this.__isset.path; - return tmp527; + return _success; } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + set { - iprot.IncrementRecursionDepth(); - try - { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) - { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + __isset.success = true; + this._success = value; + } + } - switch (field.ID) - { - case 1: - if (field.Type == TType.I64) - { - SessionId = await iprot.ReadI64Async(cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - case 2: - if (field.Type == TType.List) - { - { - TList _list528 = await iprot.ReadListBeginAsync(cancellationToken); - Path = new List(_list528.Count); - for(int _i529 = 0; _i529 < _list528.Count; ++_i529) - { - string _elem530; - _elem530 = await iprot.ReadStringAsync(cancellationToken); - Path.Add(_elem530); - } - await iprot.ReadListEndAsync(cancellationToken); - } - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - await iprot.ReadFieldEndAsync(cancellationToken); - } + public Isset __isset; + public struct Isset + { + public bool success; + } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); - } - } + public createTimeseriesResult() + { + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - var struc = new TStruct("deleteTimeseries_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if(__isset.sessionId) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteI64Async(SessionId, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + break; } - if((Path != null) && __isset.path) + + switch (field.ID) { - field.Name = "path"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - { - await oprot.WriteListBeginAsync(new TList(TType.String, Path.Count), cancellationToken); - foreach (string _iter531 in Path) + case 0: + if (field.Type == TType.Struct) { - await oprot.WriteStringAsync(_iter531, cancellationToken); + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); - } - await oprot.WriteFieldEndAsync(cancellationToken); + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); + + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public override bool Equals(object that) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - if (!(that is deleteTimeseriesArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))) - && ((__isset.path == other.__isset.path) && ((!__isset.path) || (TCollections.Equals(Path, other.Path)))); + iprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.sessionId) - { - hashcode = (hashcode * 397) + SessionId.GetHashCode(); - } - if((Path != null) && __isset.path) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("createTimeseries_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Path); + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } } - return hashcode; + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override string ToString() + finally { - var sb = new StringBuilder("deleteTimeseries_args("); - int tmp532 = 0; - if(__isset.sessionId) - { - if(0 < tmp532++) { sb.Append(", "); } - sb.Append("SessionId: "); - SessionId.ToString(sb); - } - if((Path != null) && __isset.path) - { - if(0 < tmp532++) { sb.Append(", "); } - sb.Append("Path: "); - Path.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + oprot.DecrementRecursionDepth(); } } - - public partial class deleteTimeseriesResult : TBase + public override bool Equals(object that) { - private TSStatus _success; + var other = that as createTimeseriesResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public TSStatus Success - { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; + } - - public Isset __isset; - public struct Isset + public override string ToString() + { + var sb = new StringBuilder("createTimeseries_result("); + bool __first = true; + if (Success != null && __isset.success) { - public bool success; + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class createAlignedTimeseriesArgs : TBase + { + private TSCreateAlignedTimeseriesReq _req; - public deleteTimeseriesResult() + public TSCreateAlignedTimeseriesReq Req + { + get { + return _req; } - - public deleteTimeseriesResult DeepCopy() + set { - var tmp533 = new deleteTimeseriesResult(); - if((Success != null) && __isset.success) - { - tmp533.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp533.__isset.success = this.__isset.success; - return tmp533; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public createAlignedTimeseriesArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSCreateAlignedTimeseriesReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("createAlignedTimeseries_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) + { + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as createAlignedTimeseriesArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("createAlignedTimeseries_args("); + bool __first = true; + if (Req != null && __isset.req) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); + } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class createAlignedTimeseriesResult : TBase + { + private TSStatus _success; + + public TSStatus Success + { + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public createAlignedTimeseriesResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("createAlignedTimeseries_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as createAlignedTimeseriesResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("createAlignedTimeseries_result("); + bool __first = true; + if (Success != null && __isset.success) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); + } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class createMultiTimeseriesArgs : TBase + { + private TSCreateMultiTimeseriesReq _req; + + public TSCreateMultiTimeseriesReq Req + { + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public createMultiTimeseriesArgs() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSCreateMultiTimeseriesReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("createMultiTimeseries_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) + { + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as createMultiTimeseriesArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("createMultiTimeseries_args("); + bool __first = true; + if (Req != null && __isset.req) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); + } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class createMultiTimeseriesResult : TBase + { + private TSStatus _success; + + public TSStatus Success + { + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public createMultiTimeseriesResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("createMultiTimeseries_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as createMultiTimeseriesResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("createMultiTimeseries_result("); + bool __first = true; + if (Success != null && __isset.success) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); + } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class deleteTimeseriesArgs : TBase + { + private long _sessionId; + private List _path; + + public long SessionId + { + get + { + return _sessionId; + } + set + { + __isset.sessionId = true; + this._sessionId = value; + } + } + + public List Path + { + get + { + return _path; + } + set + { + __isset.path = true; + this._path = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool sessionId; + public bool path; + } + + public deleteTimeseriesArgs() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I64) + { + SessionId = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.List) + { + { + TList _list363 = await iprot.ReadListBeginAsync(cancellationToken); + Path = new List(_list363.Count); + for(int _i364 = 0; _i364 < _list363.Count; ++_i364) + { + string _elem365; + _elem365 = await iprot.ReadStringAsync(cancellationToken); + Path.Add(_elem365); + } + await iprot.ReadListEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("deleteTimeseries_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (__isset.sessionId) + { + field.Name = "sessionId"; + field.Type = TType.I64; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(SessionId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (Path != null && __isset.path) + { + field.Name = "path"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.String, Path.Count), cancellationToken); + foreach (string _iter366 in Path) + { + await oprot.WriteStringAsync(_iter366, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as deleteTimeseriesArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))) + && ((__isset.path == other.__isset.path) && ((!__isset.path) || (TCollections.Equals(Path, other.Path)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.sessionId) + hashcode = (hashcode * 397) + SessionId.GetHashCode(); + if(__isset.path) + hashcode = (hashcode * 397) + TCollections.GetHashCode(Path); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("deleteTimeseries_args("); + bool __first = true; + if (__isset.sessionId) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("SessionId: "); + sb.Append(SessionId); + } + if (Path != null && __isset.path) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Path: "); + sb.Append(Path); + } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class deleteTimeseriesResult : TBase + { + private TSStatus _success; + + public TSStatus Success + { + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public deleteTimeseriesResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("deleteTimeseries_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as deleteTimeseriesResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("deleteTimeseries_result("); + bool __first = true; + if (Success != null && __isset.success) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); + } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class deleteStorageGroupsArgs : TBase + { + private long _sessionId; + private List _storageGroup; + + public long SessionId + { + get + { + return _sessionId; + } + set + { + __isset.sessionId = true; + this._sessionId = value; + } + } + + public List StorageGroup + { + get + { + return _storageGroup; + } + set + { + __isset.storageGroup = true; + this._storageGroup = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool sessionId; + public bool storageGroup; + } + + public deleteStorageGroupsArgs() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I64) + { + SessionId = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.List) + { + { + TList _list367 = await iprot.ReadListBeginAsync(cancellationToken); + StorageGroup = new List(_list367.Count); + for(int _i368 = 0; _i368 < _list367.Count; ++_i368) + { + string _elem369; + _elem369 = await iprot.ReadStringAsync(cancellationToken); + StorageGroup.Add(_elem369); + } + await iprot.ReadListEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("deleteStorageGroups_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (__isset.sessionId) + { + field.Name = "sessionId"; + field.Type = TType.I64; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(SessionId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (StorageGroup != null && __isset.storageGroup) + { + field.Name = "storageGroup"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.String, StorageGroup.Count), cancellationToken); + foreach (string _iter370 in StorageGroup) + { + await oprot.WriteStringAsync(_iter370, cancellationToken); } + await oprot.WriteListEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as deleteStorageGroupsArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))) + && ((__isset.storageGroup == other.__isset.storageGroup) && ((!__isset.storageGroup) || (TCollections.Equals(StorageGroup, other.StorageGroup)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.sessionId) + hashcode = (hashcode * 397) + SessionId.GetHashCode(); + if(__isset.storageGroup) + hashcode = (hashcode * 397) + TCollections.GetHashCode(StorageGroup); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("deleteStorageGroups_args("); + bool __first = true; + if (__isset.sessionId) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("SessionId: "); + sb.Append(SessionId); + } + if (StorageGroup != null && __isset.storageGroup) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("StorageGroup: "); + sb.Append(StorageGroup); + } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class deleteStorageGroupsResult : TBase + { + private TSStatus _success; + + public TSStatus Success + { + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public deleteStorageGroupsResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("deleteStorageGroups_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as deleteStorageGroupsResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("deleteStorageGroups_result("); + bool __first = true; + if (Success != null && __isset.success) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); + } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class insertRecordArgs : TBase + { + private TSInsertRecordReq _req; + + public TSInsertRecordReq Req + { + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public insertRecordArgs() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertRecordReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("insertRecord_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) + { + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as insertRecordArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("insertRecord_args("); + bool __first = true; + if (Req != null && __isset.req) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); + } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class insertRecordResult : TBase + { + private TSStatus _success; + + public TSStatus Success + { + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public insertRecordResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("insertRecord_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as insertRecordResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("insertRecord_result("); + bool __first = true; + if (Success != null && __isset.success) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); + } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class insertStringRecordArgs : TBase + { + private TSInsertStringRecordReq _req; + + public TSInsertStringRecordReq Req + { + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public insertStringRecordArgs() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertStringRecordReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("insertStringRecord_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) + { + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as insertStringRecordArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("insertStringRecord_args("); + bool __first = true; + if (Req != null && __isset.req) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); + } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class insertStringRecordResult : TBase + { + private TSStatus _success; + + public TSStatus Success + { + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public insertStringRecordResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("insertStringRecord_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as insertStringRecordResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("insertStringRecord_result("); + bool __first = true; + if (Success != null && __isset.success) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); + } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class insertTabletArgs : TBase + { + private TSInsertTabletReq _req; + + public TSInsertTabletReq Req + { + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public insertTabletArgs() + { + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertTabletReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("insertTablet_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) + { + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as insertTabletArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("insertTablet_args("); + bool __first = true; + if (Req != null && __isset.req) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); + } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class insertTabletResult : TBase + { + private TSStatus _success; + + public TSStatus Success + { + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public insertTabletResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("insertTablet_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as insertTabletResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("insertTablet_result("); + bool __first = true; + if (Success != null && __isset.success) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); + } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class insertTabletsArgs : TBase + { + private TSInsertTabletsReq _req; + + public TSInsertTabletsReq Req + { + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public insertTabletsArgs() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertTabletsReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("insertTablets_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) + { + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as insertTabletsArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("insertTablets_args("); + bool __first = true; + if (Req != null && __isset.req) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); + } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class insertTabletsResult : TBase + { + private TSStatus _success; + + public TSStatus Success + { + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public insertTabletsResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("insertTablets_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as insertTabletsResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("insertTablets_result("); + bool __first = true; + if (Success != null && __isset.success) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); + } + sb.Append(")"); + return sb.ToString(); + } + } - await iprot.ReadFieldEndAsync(cancellationToken); - } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); - } + public partial class insertRecordsArgs : TBase + { + private TSInsertRecordsReq _req; + + public TSInsertRecordsReq Req + { + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public insertRecordsArgs() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - var struc = new TStruct("deleteTimeseries_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - if(this.__isset.success) + switch (field.ID) { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertRecordsReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); + + await iprot.ReadFieldEndAsync(cancellationToken); } - finally + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("insertRecords_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is deleteTimeseriesResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; + public override bool Equals(object that) + { + var other = that as insertRecordsArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; + } - public override string ToString() + public override string ToString() + { + var sb = new StringBuilder("insertRecords_args("); + bool __first = true; + if (Req != null && __isset.req) { - var sb = new StringBuilder("deleteTimeseries_result("); - int tmp534 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp534++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); + } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class insertRecordsResult : TBase + { + private TSStatus _success; + + public TSStatus Success + { + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; } } - public partial class deleteStorageGroupsArgs : TBase + public Isset __isset; + public struct Isset + { + public bool success; + } + + public insertRecordsResult() { - private long _sessionId; - private List _storageGroup; + } - public long SessionId + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - get - { - return _sessionId; - } - set + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - __isset.sessionId = true; - this._sessionId = value; + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public List StorageGroup + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - get - { - return _storageGroup; - } - set + var struc = new TStruct("insertRecords_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - __isset.storageGroup = true; - this._storageGroup = value; + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } + } + public override bool Equals(object that) + { + var other = that as insertRecordsResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public Isset __isset; - public struct Isset - { - public bool sessionId; - public bool storageGroup; + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; + } - public deleteStorageGroupsArgs() + public override string ToString() + { + var sb = new StringBuilder("insertRecords_result("); + bool __first = true; + if (Success != null && __isset.success) { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class insertRecordsOfOneDeviceArgs : TBase + { + private TSInsertRecordsOfOneDeviceReq _req; - public deleteStorageGroupsArgs DeepCopy() + public TSInsertRecordsOfOneDeviceReq Req + { + get { - var tmp535 = new deleteStorageGroupsArgs(); - if(__isset.sessionId) - { - tmp535.SessionId = this.SessionId; - } - tmp535.__isset.sessionId = this.__isset.sessionId; - if((StorageGroup != null) && __isset.storageGroup) - { - tmp535.StorageGroup = this.StorageGroup.DeepCopy(); - } - tmp535.__isset.storageGroup = this.__isset.storageGroup; - return tmp535; + return _req; } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + set { - iprot.IncrementRecursionDepth(); - try - { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) - { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + __isset.req = true; + this._req = value; + } + } - switch (field.ID) - { - case 1: - if (field.Type == TType.I64) - { - SessionId = await iprot.ReadI64Async(cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - case 2: - if (field.Type == TType.List) - { - { - TList _list536 = await iprot.ReadListBeginAsync(cancellationToken); - StorageGroup = new List(_list536.Count); - for(int _i537 = 0; _i537 < _list536.Count; ++_i537) - { - string _elem538; - _elem538 = await iprot.ReadStringAsync(cancellationToken); - StorageGroup.Add(_elem538); - } - await iprot.ReadListEndAsync(cancellationToken); - } - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - await iprot.ReadFieldEndAsync(cancellationToken); - } + public Isset __isset; + public struct Isset + { + public bool req; + } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); - } - } + public insertRecordsOfOneDeviceArgs() + { + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - var struc = new TStruct("deleteStorageGroups_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if(__isset.sessionId) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteI64Async(SessionId, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + break; } - if((StorageGroup != null) && __isset.storageGroup) + + switch (field.ID) { - field.Name = "storageGroup"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - { - await oprot.WriteListBeginAsync(new TList(TType.String, StorageGroup.Count), cancellationToken); - foreach (string _iter539 in StorageGroup) + case 1: + if (field.Type == TType.Struct) { - await oprot.WriteStringAsync(_iter539, cancellationToken); + Req = new TSInsertRecordsOfOneDeviceReq(); + await Req.ReadAsync(iprot, cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); - } - await oprot.WriteFieldEndAsync(cancellationToken); + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); + + await iprot.ReadFieldEndAsync(cancellationToken); } - finally + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("insertRecordsOfOneDevice_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as insertRecordsOfOneDeviceArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("insertRecordsOfOneDevice_args("); + bool __first = true; + if (Req != null && __isset.req) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); + } + sb.Append(")"); + return sb.ToString(); + } + } + - public override bool Equals(object that) + public partial class insertRecordsOfOneDeviceResult : TBase + { + private TSStatus _success; + + public TSStatus Success + { + get + { + return _success; + } + set { - if (!(that is deleteStorageGroupsArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))) - && ((__isset.storageGroup == other.__isset.storageGroup) && ((!__isset.storageGroup) || (TCollections.Equals(StorageGroup, other.StorageGroup)))); + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public insertRecordsOfOneDeviceResult() + { + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.sessionId) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - hashcode = (hashcode * 397) + SessionId.GetHashCode(); + break; } - if((StorageGroup != null) && __isset.storageGroup) + + switch (field.ID) { - hashcode = (hashcode * 397) + TCollections.GetHashCode(StorageGroup); + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } + + await iprot.ReadFieldEndAsync(cancellationToken); } - return hashcode; - } - public override string ToString() + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - var sb = new StringBuilder("deleteStorageGroups_args("); - int tmp540 = 0; - if(__isset.sessionId) - { - if(0 < tmp540++) { sb.Append(", "); } - sb.Append("SessionId: "); - SessionId.ToString(sb); - } - if((StorageGroup != null) && __isset.storageGroup) - { - if(0 < tmp540++) { sb.Append(", "); } - sb.Append("StorageGroup: "); - StorageGroup.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + iprot.DecrementRecursionDepth(); } } - - public partial class deleteStorageGroupsResult : TBase + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - private TSStatus _success; - - public TSStatus Success + oprot.IncrementRecursionDepth(); + try { - get - { - return _success; - } - set + var struc = new TStruct("insertRecordsOfOneDevice_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - __isset.success = true; - this._success = value; + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } + } + public override bool Equals(object that) + { + var other = that as insertRecordsOfOneDeviceResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public Isset __isset; - public struct Isset - { - public bool success; + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; + } - public deleteStorageGroupsResult() + public override string ToString() + { + var sb = new StringBuilder("insertRecordsOfOneDevice_result("); + bool __first = true; + if (Success != null && __isset.success) { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class insertStringRecordsOfOneDeviceArgs : TBase + { + private TSInsertStringRecordsOfOneDeviceReq _req; - public deleteStorageGroupsResult DeepCopy() + public TSInsertStringRecordsOfOneDeviceReq Req + { + get { - var tmp541 = new deleteStorageGroupsResult(); - if((Success != null) && __isset.success) - { - tmp541.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp541.__isset.success = this.__isset.success; - return tmp541; + return _req; + } + set + { + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public insertStringRecordsOfOneDeviceArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertStringRecordsOfOneDeviceReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("deleteStorageGroups_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("insertStringRecordsOfOneDevice_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is deleteStorageGroupsResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as insertStringRecordsOfOneDeviceArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("deleteStorageGroups_result("); - int tmp542 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp542++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class insertRecordArgs : TBase + public override string ToString() { - private TSInsertRecordReq _req; - - public TSInsertRecordReq Req + var sb = new StringBuilder("insertStringRecordsOfOneDevice_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class insertStringRecordsOfOneDeviceResult : TBase + { + private TSStatus _success; - public insertRecordArgs() + public TSStatus Success + { + get { + return _success; } - - public insertRecordArgs DeepCopy() + set { - var tmp543 = new insertRecordArgs(); - if((Req != null) && __isset.req) - { - tmp543.Req = (TSInsertRecordReq)this.Req.DeepCopy(); - } - tmp543.__isset.req = this.__isset.req; - return tmp543; + __isset.success = true; + this._success = value; } + } + - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public Isset __isset; + public struct Isset + { + public bool success; + } + + public insertStringRecordsOfOneDeviceResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertRecordReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("insertStringRecordsOfOneDevice_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("insertRecord_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is insertRecordArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as insertStringRecordsOfOneDeviceResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("insertRecord_args("); - int tmp544 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp544++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class insertRecordResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("insertStringRecordsOfOneDevice_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class insertStringRecordsArgs : TBase + { + private TSInsertStringRecordsReq _req; - public insertRecordResult() + public TSInsertStringRecordsReq Req + { + get { + return _req; } - - public insertRecordResult DeepCopy() + set { - var tmp545 = new insertRecordResult(); - if((Success != null) && __isset.success) - { - tmp545.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp545.__isset.success = this.__isset.success; - return tmp545; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public insertStringRecordsArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertStringRecordsReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("insertRecord_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("insertStringRecords_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is insertRecordResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as insertStringRecordsArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("insertRecord_result("); - int tmp546 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp546++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class insertStringRecordArgs : TBase + public override string ToString() { - private TSInsertStringRecordReq _req; - - public TSInsertStringRecordReq Req + var sb = new StringBuilder("insertStringRecords_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class insertStringRecordsResult : TBase + { + private TSStatus _success; - public insertStringRecordArgs() + public TSStatus Success + { + get { + return _success; } - - public insertStringRecordArgs DeepCopy() + set { - var tmp547 = new insertStringRecordArgs(); - if((Req != null) && __isset.req) - { - tmp547.Req = (TSInsertStringRecordReq)this.Req.DeepCopy(); - } - tmp547.__isset.req = this.__isset.req; - return tmp547; + __isset.success = true; + this._success = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public insertStringRecordsResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertStringRecordReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("insertStringRecords_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("insertStringRecord_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } - } - - public override bool Equals(object that) - { - if (!(that is insertStringRecordArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } } - return hashcode; + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override string ToString() + finally { - var sb = new StringBuilder("insertStringRecord_args("); - int tmp548 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp548++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + oprot.DecrementRecursionDepth(); } } - - public partial class insertStringRecordResult : TBase + public override bool Equals(object that) { - private TSStatus _success; + var other = that as insertStringRecordsResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public TSStatus Success - { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; + } - - public Isset __isset; - public struct Isset + public override string ToString() + { + var sb = new StringBuilder("insertStringRecords_result("); + bool __first = true; + if (Success != null && __isset.success) { - public bool success; + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public insertStringRecordResult() + + public partial class testInsertTabletArgs : TBase + { + private TSInsertTabletReq _req; + + public TSInsertTabletReq Req + { + get { + return _req; } - - public insertStringRecordResult DeepCopy() + set { - var tmp549 = new insertStringRecordResult(); - if((Success != null) && __isset.success) - { - tmp549.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp549.__isset.success = this.__isset.success; - return tmp549; + __isset.req = true; + this._req = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public testInsertTabletArgs() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertTabletReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("insertStringRecord_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("testInsertTablet_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is insertStringRecordResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as testInsertTabletArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("insertStringRecord_result("); - int tmp550 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp550++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class insertTabletArgs : TBase + public override string ToString() { - private TSInsertTabletReq _req; - - public TSInsertTabletReq Req + var sb = new StringBuilder("testInsertTablet_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class testInsertTabletResult : TBase + { + private TSStatus _success; - public insertTabletArgs() + public TSStatus Success + { + get { + return _success; } - - public insertTabletArgs DeepCopy() + set { - var tmp551 = new insertTabletArgs(); - if((Req != null) && __isset.req) - { - tmp551.Req = (TSInsertTabletReq)this.Req.DeepCopy(); - } - tmp551.__isset.req = this.__isset.req; - return tmp551; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public testInsertTabletResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertTabletReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("testInsertTablet_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("insertTablet_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is insertTabletArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as testInsertTabletResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("insertTablet_args("); - int tmp552 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp552++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class insertTabletResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("testInsertTablet_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class testInsertTabletsArgs : TBase + { + private TSInsertTabletsReq _req; - public insertTabletResult() + public TSInsertTabletsReq Req + { + get { + return _req; } - - public insertTabletResult DeepCopy() + set { - var tmp553 = new insertTabletResult(); - if((Success != null) && __isset.success) - { - tmp553.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp553.__isset.success = this.__isset.success; - return tmp553; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public testInsertTabletsArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertTabletsReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); + await iprot.ReadFieldEndAsync(cancellationToken); } - finally - { - iprot.DecrementRecursionDepth(); - } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("insertTablet_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("testInsertTablets_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is insertTabletResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as testInsertTabletsArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("insertTablet_result("); - int tmp554 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp554++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class insertTabletsArgs : TBase + public override string ToString() { - private TSInsertTabletsReq _req; - - public TSInsertTabletsReq Req + var sb = new StringBuilder("testInsertTablets_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class testInsertTabletsResult : TBase + { + private TSStatus _success; - public insertTabletsArgs() + public TSStatus Success + { + get { + return _success; } - - public insertTabletsArgs DeepCopy() + set { - var tmp555 = new insertTabletsArgs(); - if((Req != null) && __isset.req) - { - tmp555.Req = (TSInsertTabletsReq)this.Req.DeepCopy(); - } - tmp555.__isset.req = this.__isset.req; - return tmp555; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public testInsertTabletsResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertTabletsReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); } + finally + { + iprot.DecrementRecursionDepth(); + } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("testInsertTablets_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("insertTablets_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is insertTabletsArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as testInsertTabletsResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("insertTablets_args("); - int tmp556 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp556++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class insertTabletsResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("testInsertTablets_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class testInsertRecordArgs : TBase + { + private TSInsertRecordReq _req; - public insertTabletsResult() + public TSInsertRecordReq Req + { + get { + return _req; } - - public insertTabletsResult DeepCopy() + set { - var tmp557 = new insertTabletsResult(); - if((Success != null) && __isset.success) - { - tmp557.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp557.__isset.success = this.__isset.success; - return tmp557; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public testInsertRecordArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertRecordReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("insertTablets_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("testInsertRecord_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is insertTabletsResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as testInsertRecordArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("insertTablets_result("); - int tmp558 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp558++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class insertRecordsArgs : TBase + public override string ToString() { - private TSInsertRecordsReq _req; - - public TSInsertRecordsReq Req + var sb = new StringBuilder("testInsertRecord_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class testInsertRecordResult : TBase + { + private TSStatus _success; - public insertRecordsArgs() + public TSStatus Success + { + get { + return _success; } - - public insertRecordsArgs DeepCopy() + set { - var tmp559 = new insertRecordsArgs(); - if((Req != null) && __isset.req) - { - tmp559.Req = (TSInsertRecordsReq)this.Req.DeepCopy(); - } - tmp559.__isset.req = this.__isset.req; - return tmp559; + __isset.success = true; + this._success = value; } + } + - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public Isset __isset; + public struct Isset + { + public bool success; + } + + public testInsertRecordResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertRecordsReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("testInsertRecord_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("insertRecords_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is insertRecordsArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as testInsertRecordResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("insertRecords_args("); - int tmp560 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp560++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class insertRecordsResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("testInsertRecord_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class testInsertStringRecordArgs : TBase + { + private TSInsertStringRecordReq _req; - public insertRecordsResult() + public TSInsertStringRecordReq Req + { + get { + return _req; } - - public insertRecordsResult DeepCopy() + set { - var tmp561 = new insertRecordsResult(); - if((Success != null) && __isset.success) - { - tmp561.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp561.__isset.success = this.__isset.success; - return tmp561; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public testInsertStringRecordArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertStringRecordReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("insertRecords_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("testInsertStringRecord_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is insertRecordsResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as testInsertStringRecordArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("insertRecords_result("); - int tmp562 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp562++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class insertRecordsOfOneDeviceArgs : TBase + public override string ToString() { - private TSInsertRecordsOfOneDeviceReq _req; - - public TSInsertRecordsOfOneDeviceReq Req + var sb = new StringBuilder("testInsertStringRecord_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class testInsertStringRecordResult : TBase + { + private TSStatus _success; - public insertRecordsOfOneDeviceArgs() + public TSStatus Success + { + get { + return _success; } - - public insertRecordsOfOneDeviceArgs DeepCopy() + set { - var tmp563 = new insertRecordsOfOneDeviceArgs(); - if((Req != null) && __isset.req) - { - tmp563.Req = (TSInsertRecordsOfOneDeviceReq)this.Req.DeepCopy(); - } - tmp563.__isset.req = this.__isset.req; - return tmp563; + __isset.success = true; + this._success = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public testInsertStringRecordResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertRecordsOfOneDeviceReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("testInsertStringRecord_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("insertRecordsOfOneDevice_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is insertRecordsOfOneDeviceArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as testInsertStringRecordResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("insertRecordsOfOneDevice_args("); - int tmp564 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp564++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class insertRecordsOfOneDeviceResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("testInsertStringRecord_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class testInsertRecordsArgs : TBase + { + private TSInsertRecordsReq _req; - public insertRecordsOfOneDeviceResult() + public TSInsertRecordsReq Req + { + get { + return _req; } - - public insertRecordsOfOneDeviceResult DeepCopy() + set { - var tmp565 = new insertRecordsOfOneDeviceResult(); - if((Success != null) && __isset.success) - { - tmp565.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp565.__isset.success = this.__isset.success; - return tmp565; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public testInsertRecordsArgs() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertRecordsReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("insertRecordsOfOneDevice_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("testInsertRecords_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is insertRecordsOfOneDeviceResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as testInsertRecordsArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("insertRecordsOfOneDevice_result("); - int tmp566 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp566++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class insertStringRecordsOfOneDeviceArgs : TBase + public override string ToString() { - private TSInsertStringRecordsOfOneDeviceReq _req; - - public TSInsertStringRecordsOfOneDeviceReq Req + var sb = new StringBuilder("testInsertRecords_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class testInsertRecordsResult : TBase + { + private TSStatus _success; - public insertStringRecordsOfOneDeviceArgs() + public TSStatus Success + { + get { + return _success; } - - public insertStringRecordsOfOneDeviceArgs DeepCopy() + set { - var tmp567 = new insertStringRecordsOfOneDeviceArgs(); - if((Req != null) && __isset.req) - { - tmp567.Req = (TSInsertStringRecordsOfOneDeviceReq)this.Req.DeepCopy(); - } - tmp567.__isset.req = this.__isset.req; - return tmp567; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public testInsertRecordsResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertStringRecordsOfOneDeviceReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("testInsertRecords_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("insertStringRecordsOfOneDevice_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is insertStringRecordsOfOneDeviceArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as testInsertRecordsResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("insertStringRecordsOfOneDevice_args("); - int tmp568 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp568++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class insertStringRecordsOfOneDeviceResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("testInsertRecords_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class testInsertRecordsOfOneDeviceArgs : TBase + { + private TSInsertRecordsOfOneDeviceReq _req; - public insertStringRecordsOfOneDeviceResult() + public TSInsertRecordsOfOneDeviceReq Req + { + get { + return _req; } - - public insertStringRecordsOfOneDeviceResult DeepCopy() + set { - var tmp569 = new insertStringRecordsOfOneDeviceResult(); - if((Success != null) && __isset.success) - { - tmp569.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp569.__isset.success = this.__isset.success; - return tmp569; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public testInsertRecordsOfOneDeviceArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertRecordsOfOneDeviceReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); + await iprot.ReadFieldEndAsync(cancellationToken); } - finally - { - iprot.DecrementRecursionDepth(); - } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("insertStringRecordsOfOneDevice_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("testInsertRecordsOfOneDevice_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is insertStringRecordsOfOneDeviceResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as testInsertRecordsOfOneDeviceArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("insertStringRecordsOfOneDevice_result("); - int tmp570 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp570++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class insertStringRecordsArgs : TBase + public override string ToString() { - private TSInsertStringRecordsReq _req; - - public TSInsertStringRecordsReq Req + var sb = new StringBuilder("testInsertRecordsOfOneDevice_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class testInsertRecordsOfOneDeviceResult : TBase + { + private TSStatus _success; - public insertStringRecordsArgs() + public TSStatus Success + { + get { + return _success; } - - public insertStringRecordsArgs DeepCopy() + set { - var tmp571 = new insertStringRecordsArgs(); - if((Req != null) && __isset.req) - { - tmp571.Req = (TSInsertStringRecordsReq)this.Req.DeepCopy(); - } - tmp571.__isset.req = this.__isset.req; - return tmp571; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public testInsertRecordsOfOneDeviceResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertStringRecordsReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); } + finally + { + iprot.DecrementRecursionDepth(); + } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("testInsertRecordsOfOneDevice_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("insertStringRecords_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is insertStringRecordsArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as testInsertRecordsOfOneDeviceResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("insertStringRecords_args("); - int tmp572 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp572++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class insertStringRecordsResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("testInsertRecordsOfOneDevice_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class testInsertStringRecordsArgs : TBase + { + private TSInsertStringRecordsReq _req; - public insertStringRecordsResult() + public TSInsertStringRecordsReq Req + { + get { + return _req; } - - public insertStringRecordsResult DeepCopy() + set { - var tmp573 = new insertStringRecordsResult(); - if((Success != null) && __isset.success) - { - tmp573.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp573.__isset.success = this.__isset.success; - return tmp573; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public testInsertStringRecordsArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertStringRecordsReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("insertStringRecords_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("testInsertStringRecords_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is insertStringRecordsResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as testInsertStringRecordsArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("insertStringRecords_result("); - int tmp574 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp574++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class testInsertTabletArgs : TBase + public override string ToString() { - private TSInsertTabletReq _req; - - public TSInsertTabletReq Req + var sb = new StringBuilder("testInsertStringRecords_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class testInsertStringRecordsResult : TBase + { + private TSStatus _success; - public testInsertTabletArgs() + public TSStatus Success + { + get { + return _success; } - - public testInsertTabletArgs DeepCopy() + set { - var tmp575 = new testInsertTabletArgs(); - if((Req != null) && __isset.req) - { - tmp575.Req = (TSInsertTabletReq)this.Req.DeepCopy(); - } - tmp575.__isset.req = this.__isset.req; - return tmp575; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public testInsertStringRecordsResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertTabletReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("testInsertStringRecords_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("testInsertTablet_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is testInsertTabletArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as testInsertStringRecordsResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("testInsertTablet_args("); - int tmp576 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp576++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class testInsertTabletResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("testInsertStringRecords_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class deleteDataArgs : TBase + { + private TSDeleteDataReq _req; - public testInsertTabletResult() + public TSDeleteDataReq Req + { + get { + return _req; } - - public testInsertTabletResult DeepCopy() + set { - var tmp577 = new testInsertTabletResult(); - if((Success != null) && __isset.success) - { - tmp577.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp577.__isset.success = this.__isset.success; - return tmp577; + __isset.req = true; + this._req = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try - { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) - { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } - - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - await iprot.ReadFieldEndAsync(cancellationToken); - } + public Isset __isset; + public struct Isset + { + public bool req; + } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); - } - } + public deleteDataArgs() + { + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - var struc = new TStruct("testInsertTablet_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + break; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } - } - - public override bool Equals(object that) - { - if (!(that is testInsertTabletResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) + switch (field.ID) { - hashcode = (hashcode * 397) + Success.GetHashCode(); + case 1: + if (field.Type == TType.Struct) + { + Req = new TSDeleteDataReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } + + await iprot.ReadFieldEndAsync(cancellationToken); } - return hashcode; - } - public override string ToString() + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - var sb = new StringBuilder("testInsertTablet_result("); - int tmp578 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp578++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + iprot.DecrementRecursionDepth(); } } - - public partial class testInsertTabletsArgs : TBase + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - private TSInsertTabletsReq _req; - - public TSInsertTabletsReq Req + oprot.IncrementRecursionDepth(); + try { - get - { - return _req; - } - set + var struc = new TStruct("deleteData_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - __isset.req = true; - this._req = value; + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } + } + + public override bool Equals(object that) + { + var other = that as deleteDataArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + return hashcode; + } - public Isset __isset; - public struct Isset + public override string ToString() + { + var sb = new StringBuilder("deleteData_args("); + bool __first = true; + if (Req != null && __isset.req) { - public bool req; + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class deleteDataResult : TBase + { + private TSStatus _success; - public testInsertTabletsArgs() + public TSStatus Success + { + get { + return _success; } - - public testInsertTabletsArgs DeepCopy() + set { - var tmp579 = new testInsertTabletsArgs(); - if((Req != null) && __isset.req) - { - tmp579.Req = (TSInsertTabletsReq)this.Req.DeepCopy(); - } - tmp579.__isset.req = this.__isset.req; - return tmp579; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public deleteDataResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertTabletsReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); } + finally + { + iprot.DecrementRecursionDepth(); + } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("deleteData_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("testInsertTablets_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is testInsertTabletsArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as deleteDataResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("testInsertTablets_args("); - int tmp580 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp580++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class testInsertTabletsResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("deleteData_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class executeRawDataQueryArgs : TBase + { + private TSRawDataQueryReq _req; - public testInsertTabletsResult() + public TSRawDataQueryReq Req + { + get { + return _req; } - - public testInsertTabletsResult DeepCopy() + set { - var tmp581 = new testInsertTabletsResult(); - if((Success != null) && __isset.success) - { - tmp581.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp581.__isset.success = this.__isset.success; - return tmp581; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public executeRawDataQueryArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSRawDataQueryReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("testInsertTablets_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeRawDataQuery_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is testInsertTabletsResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as executeRawDataQueryArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("testInsertTablets_result("); - int tmp582 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp582++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class testInsertRecordArgs : TBase + public override string ToString() { - private TSInsertRecordReq _req; - - public TSInsertRecordReq Req + var sb = new StringBuilder("executeRawDataQuery_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class executeRawDataQueryResult : TBase + { + private TSExecuteStatementResp _success; - public testInsertRecordArgs() + public TSExecuteStatementResp Success + { + get { + return _success; } - - public testInsertRecordArgs DeepCopy() + set { - var tmp583 = new testInsertRecordArgs(); - if((Req != null) && __isset.req) - { - tmp583.Req = (TSInsertRecordReq)this.Req.DeepCopy(); - } - tmp583.__isset.req = this.__isset.req; - return tmp583; + __isset.success = true; + this._success = value; } + } + - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public Isset __isset; + public struct Isset + { + public bool success; + } + + public executeRawDataQueryResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertRecordReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("executeRawDataQuery_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("testInsertRecord_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is testInsertRecordArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as executeRawDataQueryResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("testInsertRecord_args("); - int tmp584 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp584++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class testInsertRecordResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("executeRawDataQuery_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class executeLastDataQueryArgs : TBase + { + private TSLastDataQueryReq _req; - public testInsertRecordResult() + public TSLastDataQueryReq Req + { + get { + return _req; } - - public testInsertRecordResult DeepCopy() + set { - var tmp585 = new testInsertRecordResult(); - if((Success != null) && __isset.success) - { - tmp585.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp585.__isset.success = this.__isset.success; - return tmp585; + __isset.req = true; + this._req = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try - { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) - { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } - - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); - } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); - } - } + public Isset __isset; + public struct Isset + { + public bool req; + } + + public executeLastDataQueryArgs() + { + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - var struc = new TStruct("testInsertRecord_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + break; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } - } - - public override bool Equals(object that) - { - if (!(that is testInsertRecordResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) + switch (field.ID) { - hashcode = (hashcode * 397) + Success.GetHashCode(); + case 1: + if (field.Type == TType.Struct) + { + Req = new TSLastDataQueryReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } + + await iprot.ReadFieldEndAsync(cancellationToken); } - return hashcode; - } - public override string ToString() + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - var sb = new StringBuilder("testInsertRecord_result("); - int tmp586 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp586++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + iprot.DecrementRecursionDepth(); } } - - public partial class testInsertStringRecordArgs : TBase + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - private TSInsertStringRecordReq _req; - - public TSInsertStringRecordReq Req + oprot.IncrementRecursionDepth(); + try { - get - { - return _req; - } - set + var struc = new TStruct("executeLastDataQuery_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - __isset.req = true; - this._req = value; + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } + } + public override bool Equals(object that) + { + var other = that as executeLastDataQueryArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public Isset __isset; - public struct Isset - { - public bool req; + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; + } - public testInsertStringRecordArgs() + public override string ToString() + { + var sb = new StringBuilder("executeLastDataQuery_args("); + bool __first = true; + if (Req != null && __isset.req) { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } + - public testInsertStringRecordArgs DeepCopy() + public partial class executeLastDataQueryResult : TBase + { + private TSExecuteStatementResp _success; + + public TSExecuteStatementResp Success + { + get { - var tmp587 = new testInsertStringRecordArgs(); - if((Req != null) && __isset.req) - { - tmp587.Req = (TSInsertStringRecordReq)this.Req.DeepCopy(); - } - tmp587.__isset.req = this.__isset.req; - return tmp587; + return _success; + } + set + { + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public executeLastDataQueryResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertStringRecordReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("executeLastDataQuery_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("testInsertStringRecord_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is testInsertStringRecordArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as executeLastDataQueryResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("testInsertStringRecord_args("); - int tmp588 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp588++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class testInsertStringRecordResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("executeLastDataQuery_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class executeAggregationQueryArgs : TBase + { + private TSAggregationQueryReq _req; - public testInsertStringRecordResult() + public TSAggregationQueryReq Req + { + get { + return _req; } - - public testInsertStringRecordResult DeepCopy() + set { - var tmp589 = new testInsertStringRecordResult(); - if((Success != null) && __isset.success) - { - tmp589.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp589.__isset.success = this.__isset.success; - return tmp589; + __isset.req = true; + this._req = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public executeAggregationQueryArgs() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSAggregationQueryReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("testInsertStringRecord_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeAggregationQuery_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is testInsertStringRecordResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as executeAggregationQueryArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("testInsertStringRecord_result("); - int tmp590 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp590++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class testInsertRecordsArgs : TBase + public override string ToString() { - private TSInsertRecordsReq _req; - - public TSInsertRecordsReq Req + var sb = new StringBuilder("executeAggregationQuery_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class executeAggregationQueryResult : TBase + { + private TSExecuteStatementResp _success; - public testInsertRecordsArgs() + public TSExecuteStatementResp Success + { + get { + return _success; } - - public testInsertRecordsArgs DeepCopy() + set { - var tmp591 = new testInsertRecordsArgs(); - if((Req != null) && __isset.req) - { - tmp591.Req = (TSInsertRecordsReq)this.Req.DeepCopy(); - } - tmp591.__isset.req = this.__isset.req; - return tmp591; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public executeAggregationQueryResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertRecordsReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("executeAggregationQuery_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("testInsertRecords_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is testInsertRecordsArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as executeAggregationQueryResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("testInsertRecords_args("); - int tmp592 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp592++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class testInsertRecordsResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("executeAggregationQuery_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class requestStatementIdArgs : TBase + { + private long _sessionId; - public testInsertRecordsResult() + public long SessionId + { + get { + return _sessionId; } - - public testInsertRecordsResult DeepCopy() + set { - var tmp593 = new testInsertRecordsResult(); - if((Success != null) && __isset.success) - { - tmp593.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp593.__isset.success = this.__isset.success; - return tmp593; + __isset.sessionId = true; + this._sessionId = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool sessionId; + } + + public requestStatementIdArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.I64) + { + SessionId = await iprot.ReadI64Async(cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); + await iprot.ReadFieldEndAsync(cancellationToken); } - finally - { - iprot.DecrementRecursionDepth(); - } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("testInsertRecords_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("requestStatementId_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (__isset.sessionId) { - oprot.DecrementRecursionDepth(); + field.Name = "sessionId"; + field.Type = TType.I64; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(SessionId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is testInsertRecordsResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as requestStatementIdArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))); + } - public override string ToString() - { - var sb = new StringBuilder("testInsertRecords_result("); - int tmp594 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp594++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.sessionId) + hashcode = (hashcode * 397) + SessionId.GetHashCode(); } + return hashcode; } - - public partial class testInsertRecordsOfOneDeviceArgs : TBase + public override string ToString() { - private TSInsertRecordsOfOneDeviceReq _req; - - public TSInsertRecordsOfOneDeviceReq Req + var sb = new StringBuilder("requestStatementId_args("); + bool __first = true; + if (__isset.sessionId) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("SessionId: "); + sb.Append(SessionId); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class requestStatementIdResult : TBase + { + private long _success; - public testInsertRecordsOfOneDeviceArgs() + public long Success + { + get { + return _success; } - - public testInsertRecordsOfOneDeviceArgs DeepCopy() + set { - var tmp595 = new testInsertRecordsOfOneDeviceArgs(); - if((Req != null) && __isset.req) - { - tmp595.Req = (TSInsertRecordsOfOneDeviceReq)this.Req.DeepCopy(); - } - tmp595.__isset.req = this.__isset.req; - return tmp595; + __isset.success = true; + this._success = value; } + } + - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public Isset __isset; + public struct Isset + { + public bool success; + } + + public requestStatementIdResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertRecordsOfOneDeviceReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.I64) + { + Success = await iprot.ReadI64Async(cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("testInsertRecordsOfOneDevice_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) - { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } + iprot.DecrementRecursionDepth(); } + } - public override bool Equals(object that) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - if (!(that is testInsertRecordsOfOneDeviceArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } + var struc = new TStruct("requestStatementId_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } + if(this.__isset.success) + { + field.Name = "Success"; + field.Type = TType.I64; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(Success, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - return hashcode; + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override string ToString() + finally { - var sb = new StringBuilder("testInsertRecordsOfOneDevice_args("); - int tmp596 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp596++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + oprot.DecrementRecursionDepth(); } } - - public partial class testInsertRecordsOfOneDeviceResult : TBase + public override bool Equals(object that) { - private TSStatus _success; + var other = that as requestStatementIdResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public TSStatus Success - { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; + } - - public Isset __isset; - public struct Isset + public override string ToString() + { + var sb = new StringBuilder("requestStatementId_result("); + bool __first = true; + if (__isset.success) { - public bool success; + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success); } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class createSchemaTemplateArgs : TBase + { + private TSCreateSchemaTemplateReq _req; - public testInsertRecordsOfOneDeviceResult() + public TSCreateSchemaTemplateReq Req + { + get { + return _req; } - - public testInsertRecordsOfOneDeviceResult DeepCopy() + set { - var tmp597 = new testInsertRecordsOfOneDeviceResult(); - if((Success != null) && __isset.success) - { - tmp597.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp597.__isset.success = this.__isset.success; - return tmp597; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public createSchemaTemplateArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSCreateSchemaTemplateReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("testInsertRecordsOfOneDevice_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("createSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is testInsertRecordsOfOneDeviceResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as createSchemaTemplateArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("testInsertRecordsOfOneDevice_result("); - int tmp598 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp598++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class testInsertStringRecordsArgs : TBase + public override string ToString() { - private TSInsertStringRecordsReq _req; - - public TSInsertStringRecordsReq Req + var sb = new StringBuilder("createSchemaTemplate_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class createSchemaTemplateResult : TBase + { + private TSStatus _success; - public testInsertStringRecordsArgs() + public TSStatus Success + { + get { + return _success; } - - public testInsertStringRecordsArgs DeepCopy() + set { - var tmp599 = new testInsertStringRecordsArgs(); - if((Req != null) && __isset.req) - { - tmp599.Req = (TSInsertStringRecordsReq)this.Req.DeepCopy(); - } - tmp599.__isset.req = this.__isset.req; - return tmp599; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public createSchemaTemplateResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertStringRecordsReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("testInsertStringRecords_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) - { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } + iprot.DecrementRecursionDepth(); } + } - public override bool Equals(object that) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - if (!(that is testInsertStringRecordsArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } + var struc = new TStruct("createSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) + if(this.__isset.success) + { + if (Success != null) { - hashcode = (hashcode * 397) + Req.GetHashCode(); + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } } - return hashcode; + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override string ToString() + finally { - var sb = new StringBuilder("testInsertStringRecords_args("); - int tmp600 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp600++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + oprot.DecrementRecursionDepth(); } } - - public partial class testInsertStringRecordsResult : TBase + public override bool Equals(object that) { - private TSStatus _success; + var other = that as createSchemaTemplateResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public TSStatus Success - { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; + } - - public Isset __isset; - public struct Isset + public override string ToString() + { + var sb = new StringBuilder("createSchemaTemplate_result("); + bool __first = true; + if (Success != null && __isset.success) { - public bool success; + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class appendSchemaTemplateArgs : TBase + { + private TSAppendSchemaTemplateReq _req; - public testInsertStringRecordsResult() + public TSAppendSchemaTemplateReq Req + { + get { + return _req; } - - public testInsertStringRecordsResult DeepCopy() + set { - var tmp601 = new testInsertStringRecordsResult(); - if((Success != null) && __isset.success) - { - tmp601.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp601.__isset.success = this.__isset.success; - return tmp601; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public appendSchemaTemplateArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSAppendSchemaTemplateReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); + await iprot.ReadFieldEndAsync(cancellationToken); } - finally - { - iprot.DecrementRecursionDepth(); - } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("testInsertStringRecords_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("appendSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is testInsertStringRecordsResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as appendSchemaTemplateArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("testInsertStringRecords_result("); - int tmp602 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp602++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class deleteDataArgs : TBase + public override string ToString() { - private TSDeleteDataReq _req; - - public TSDeleteDataReq Req + var sb = new StringBuilder("appendSchemaTemplate_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class appendSchemaTemplateResult : TBase + { + private TSStatus _success; - public deleteDataArgs() + public TSStatus Success + { + get { + return _success; } - - public deleteDataArgs DeepCopy() + set { - var tmp603 = new deleteDataArgs(); - if((Req != null) && __isset.req) - { - tmp603.Req = (TSDeleteDataReq)this.Req.DeepCopy(); - } - tmp603.__isset.req = this.__isset.req; - return tmp603; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public appendSchemaTemplateResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSDeleteDataReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); } + finally + { + iprot.DecrementRecursionDepth(); + } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("appendSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("deleteData_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is deleteDataArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as appendSchemaTemplateResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("deleteData_args("); - int tmp604 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp604++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class deleteDataResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("appendSchemaTemplate_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class pruneSchemaTemplateArgs : TBase + { + private TSPruneSchemaTemplateReq _req; - public deleteDataResult() + public TSPruneSchemaTemplateReq Req + { + get { + return _req; } - - public deleteDataResult DeepCopy() + set { - var tmp605 = new deleteDataResult(); - if((Success != null) && __isset.success) - { - tmp605.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp605.__isset.success = this.__isset.success; - return tmp605; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public pruneSchemaTemplateArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSPruneSchemaTemplateReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("deleteData_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("pruneSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is deleteDataResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as pruneSchemaTemplateArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("deleteData_result("); - int tmp606 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp606++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class executeRawDataQueryArgs : TBase + public override string ToString() { - private TSRawDataQueryReq _req; - - public TSRawDataQueryReq Req + var sb = new StringBuilder("pruneSchemaTemplate_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class pruneSchemaTemplateResult : TBase + { + private TSStatus _success; - public executeRawDataQueryArgs() + public TSStatus Success + { + get { + return _success; } - - public executeRawDataQueryArgs DeepCopy() + set { - var tmp607 = new executeRawDataQueryArgs(); - if((Req != null) && __isset.req) - { - tmp607.Req = (TSRawDataQueryReq)this.Req.DeepCopy(); - } - tmp607.__isset.req = this.__isset.req; - return tmp607; + __isset.success = true; + this._success = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try - { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) - { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSRawDataQueryReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } + public Isset __isset; + public struct Isset + { + public bool success; + } + + public pruneSchemaTemplateResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - await iprot.ReadFieldEndAsync(cancellationToken); + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("pruneSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("executeRawDataQuery_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is executeRawDataQueryArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as pruneSchemaTemplateResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("executeRawDataQuery_args("); - int tmp608 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp608++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class executeRawDataQueryResult : TBase + public override string ToString() { - private TSExecuteStatementResp _success; - - public TSExecuteStatementResp Success + var sb = new StringBuilder("pruneSchemaTemplate_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class querySchemaTemplateArgs : TBase + { + private TSQueryTemplateReq _req; - public executeRawDataQueryResult() + public TSQueryTemplateReq Req + { + get { + return _req; } - - public executeRawDataQueryResult DeepCopy() + set { - var tmp609 = new executeRawDataQueryResult(); - if((Success != null) && __isset.success) - { - tmp609.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp609.__isset.success = this.__isset.success; - return tmp609; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public querySchemaTemplateArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSQueryTemplateReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); + await iprot.ReadFieldEndAsync(cancellationToken); } - finally - { - iprot.DecrementRecursionDepth(); - } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("executeRawDataQuery_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("querySchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is executeRawDataQueryResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as querySchemaTemplateArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("executeRawDataQuery_result("); - int tmp610 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp610++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class executeLastDataQueryArgs : TBase + public override string ToString() { - private TSLastDataQueryReq _req; - - public TSLastDataQueryReq Req + var sb = new StringBuilder("querySchemaTemplate_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class querySchemaTemplateResult : TBase + { + private TSQueryTemplateResp _success; - public executeLastDataQueryArgs() + public TSQueryTemplateResp Success + { + get { + return _success; } - - public executeLastDataQueryArgs DeepCopy() + set { - var tmp611 = new executeLastDataQueryArgs(); - if((Req != null) && __isset.req) - { - tmp611.Req = (TSLastDataQueryReq)this.Req.DeepCopy(); - } - tmp611.__isset.req = this.__isset.req; - return tmp611; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public querySchemaTemplateResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSLastDataQueryReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSQueryTemplateResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); } + finally + { + iprot.DecrementRecursionDepth(); + } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("querySchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("executeLastDataQuery_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is executeLastDataQueryArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as querySchemaTemplateResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("executeLastDataQuery_args("); - int tmp612 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp612++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class executeLastDataQueryResult : TBase + public override string ToString() { - private TSExecuteStatementResp _success; - - public TSExecuteStatementResp Success + var sb = new StringBuilder("querySchemaTemplate_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class showConfigurationTemplateArgs : TBase + { - public executeLastDataQueryResult() - { - } + public showConfigurationTemplateArgs() + { + } - public executeLastDataQueryResult DeepCopy() + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - var tmp613 = new executeLastDataQueryResult(); - if((Success != null) && __isset.success) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - tmp613.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp613.__isset.success = this.__isset.success; - return tmp613; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try - { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + switch (field.ID) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); break; - } - - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadStructEndAsync(cancellationToken); + await iprot.ReadFieldEndAsync(cancellationToken); } - finally - { - iprot.DecrementRecursionDepth(); - } - } - - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("executeLastDataQuery_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } + await iprot.ReadStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is executeLastDataQueryResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + iprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("showConfigurationTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override string ToString() + finally { - var sb = new StringBuilder("executeLastDataQuery_result("); - int tmp614 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp614++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + oprot.DecrementRecursionDepth(); } } - - public partial class requestStatementIdArgs : TBase + public override bool Equals(object that) { - private long _sessionId; + var other = that as showConfigurationTemplateArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return true; + } - public long SessionId - { - get - { - return _sessionId; - } - set - { - __isset.sessionId = true; - this._sessionId = value; - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("showConfigurationTemplate_args("); + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool sessionId; - } + public partial class showConfigurationTemplateResult : TBase + { + private TShowConfigurationTemplateResp _success; - public requestStatementIdArgs() + public TShowConfigurationTemplateResp Success + { + get { + return _success; } - - public requestStatementIdArgs DeepCopy() + set { - var tmp615 = new requestStatementIdArgs(); - if(__isset.sessionId) - { - tmp615.SessionId = this.SessionId; - } - tmp615.__isset.sessionId = this.__isset.sessionId; - return tmp615; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public showConfigurationTemplateResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.I64) - { - SessionId = await iprot.ReadI64Async(cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TShowConfigurationTemplateResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); } + finally + { + iprot.DecrementRecursionDepth(); + } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("showConfigurationTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("requestStatementId_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if(__isset.sessionId) + if (Success != null) { - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteI64Async(SessionId, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is requestStatementIdArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.sessionId) - { - hashcode = (hashcode * 397) + SessionId.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as showConfigurationTemplateResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("requestStatementId_args("); - int tmp616 = 0; - if(__isset.sessionId) - { - if(0 < tmp616++) { sb.Append(", "); } - sb.Append("SessionId: "); - SessionId.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class requestStatementIdResult : TBase + public override string ToString() { - private long _success; - - public long Success + var sb = new StringBuilder("showConfigurationTemplate_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class showConfigurationArgs : TBase + { + private int _nodeId; - public requestStatementIdResult() + public int NodeId + { + get { + return _nodeId; } - - public requestStatementIdResult DeepCopy() + set { - var tmp617 = new requestStatementIdResult(); - if(__isset.success) - { - tmp617.Success = this.Success; - } - tmp617.__isset.success = this.__isset.success; - return tmp617; + __isset.nodeId = true; + this._nodeId = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool nodeId; + } + + public showConfigurationArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.I64) - { - Success = await iprot.ReadI64Async(cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + NodeId = await iprot.ReadI32Async(cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); + await iprot.ReadFieldEndAsync(cancellationToken); } - finally - { - iprot.DecrementRecursionDepth(); - } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("requestStatementId_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - field.Name = "Success"; - field.Type = TType.I64; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteI64Async(Success, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("showConfiguration_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (__isset.nodeId) { - oprot.DecrementRecursionDepth(); + field.Name = "nodeId"; + field.Type = TType.I32; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI32Async(NodeId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is requestStatementIdResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as showConfigurationArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.nodeId == other.__isset.nodeId) && ((!__isset.nodeId) || (System.Object.Equals(NodeId, other.NodeId)))); + } - public override string ToString() - { - var sb = new StringBuilder("requestStatementId_result("); - int tmp618 = 0; - if(__isset.success) - { - if(0 < tmp618++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.nodeId) + hashcode = (hashcode * 397) + NodeId.GetHashCode(); } + return hashcode; } - - public partial class createSchemaTemplateArgs : TBase + public override string ToString() { - private TSCreateSchemaTemplateReq _req; - - public TSCreateSchemaTemplateReq Req + var sb = new StringBuilder("showConfiguration_args("); + bool __first = true; + if (__isset.nodeId) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("NodeId: "); + sb.Append(NodeId); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class showConfigurationResult : TBase + { + private TShowConfigurationResp _success; - public createSchemaTemplateArgs() + public TShowConfigurationResp Success + { + get { + return _success; } - - public createSchemaTemplateArgs DeepCopy() + set { - var tmp619 = new createSchemaTemplateArgs(); - if((Req != null) && __isset.req) - { - tmp619.Req = (TSCreateSchemaTemplateReq)this.Req.DeepCopy(); - } - tmp619.__isset.req = this.__isset.req; - return tmp619; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public showConfigurationResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSCreateSchemaTemplateReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TShowConfigurationResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("showConfiguration_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("createSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is createSchemaTemplateArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as showConfigurationResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("createSchemaTemplate_args("); - int tmp620 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp620++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class createSchemaTemplateResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("showConfiguration_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class setSchemaTemplateArgs : TBase + { + private TSSetSchemaTemplateReq _req; - public createSchemaTemplateResult() + public TSSetSchemaTemplateReq Req + { + get { + return _req; } - - public createSchemaTemplateResult DeepCopy() + set { - var tmp621 = new createSchemaTemplateResult(); - if((Success != null) && __isset.success) - { - tmp621.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp621.__isset.success = this.__isset.success; - return tmp621; + __isset.req = true; + this._req = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try - { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) - { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } - - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - await iprot.ReadFieldEndAsync(cancellationToken); - } + public Isset __isset; + public struct Isset + { + public bool req; + } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); - } - } + public setSchemaTemplateArgs() + { + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - var struc = new TStruct("createSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + break; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } - } - - public override bool Equals(object that) - { - if (!(that is createSchemaTemplateResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) + switch (field.ID) { - hashcode = (hashcode * 397) + Success.GetHashCode(); + case 1: + if (field.Type == TType.Struct) + { + Req = new TSSetSchemaTemplateReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } + + await iprot.ReadFieldEndAsync(cancellationToken); } - return hashcode; + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public override string ToString() + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - var sb = new StringBuilder("createSchemaTemplate_result("); - int tmp622 = 0; - if((Success != null) && __isset.success) + var struc = new TStruct("setSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - if(0 < tmp622++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - sb.Append(')'); - return sb.ToString(); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } } - - public partial class appendSchemaTemplateArgs : TBase + public override bool Equals(object that) { - private TSAppendSchemaTemplateReq _req; + var other = that as setSchemaTemplateArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public TSAppendSchemaTemplateReq Req - { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; + } - - public Isset __isset; - public struct Isset + public override string ToString() + { + var sb = new StringBuilder("setSchemaTemplate_args("); + bool __first = true; + if (Req != null && __isset.req) { - public bool req; + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public appendSchemaTemplateArgs() + + public partial class setSchemaTemplateResult : TBase + { + private TSStatus _success; + + public TSStatus Success + { + get { + return _success; } - - public appendSchemaTemplateArgs DeepCopy() + set { - var tmp623 = new appendSchemaTemplateArgs(); - if((Req != null) && __isset.req) - { - tmp623.Req = (TSAppendSchemaTemplateReq)this.Req.DeepCopy(); - } - tmp623.__isset.req = this.__isset.req; - return tmp623; + __isset.success = true; + this._success = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public setSchemaTemplateResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSAppendSchemaTemplateReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("setSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("appendSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is appendSchemaTemplateArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as setSchemaTemplateResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("appendSchemaTemplate_args("); - int tmp624 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp624++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class appendSchemaTemplateResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("setSchemaTemplate_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class unsetSchemaTemplateArgs : TBase + { + private TSUnsetSchemaTemplateReq _req; - public appendSchemaTemplateResult() + public TSUnsetSchemaTemplateReq Req + { + get { + return _req; } - - public appendSchemaTemplateResult DeepCopy() + set { - var tmp625 = new appendSchemaTemplateResult(); - if((Success != null) && __isset.success) - { - tmp625.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp625.__isset.success = this.__isset.success; - return tmp625; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public unsetSchemaTemplateArgs() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSUnsetSchemaTemplateReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("appendSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("unsetSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is appendSchemaTemplateResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as unsetSchemaTemplateArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("appendSchemaTemplate_result("); - int tmp626 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp626++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class pruneSchemaTemplateArgs : TBase + public override string ToString() { - private TSPruneSchemaTemplateReq _req; - - public TSPruneSchemaTemplateReq Req + var sb = new StringBuilder("unsetSchemaTemplate_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class unsetSchemaTemplateResult : TBase + { + private TSStatus _success; - public pruneSchemaTemplateArgs() + public TSStatus Success + { + get { + return _success; } - - public pruneSchemaTemplateArgs DeepCopy() + set { - var tmp627 = new pruneSchemaTemplateArgs(); - if((Req != null) && __isset.req) - { - tmp627.Req = (TSPruneSchemaTemplateReq)this.Req.DeepCopy(); - } - tmp627.__isset.req = this.__isset.req; - return tmp627; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public unsetSchemaTemplateResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSPruneSchemaTemplateReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("unsetSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("pruneSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is pruneSchemaTemplateArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as unsetSchemaTemplateResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("pruneSchemaTemplate_args("); - int tmp628 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp628++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class pruneSchemaTemplateResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("unsetSchemaTemplate_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class dropSchemaTemplateArgs : TBase + { + private TSDropSchemaTemplateReq _req; - public pruneSchemaTemplateResult() + public TSDropSchemaTemplateReq Req + { + get { + return _req; } - - public pruneSchemaTemplateResult DeepCopy() + set { - var tmp629 = new pruneSchemaTemplateResult(); - if((Success != null) && __isset.success) - { - tmp629.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp629.__isset.success = this.__isset.success; - return tmp629; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public dropSchemaTemplateArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSDropSchemaTemplateReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); + await iprot.ReadFieldEndAsync(cancellationToken); } - finally - { - iprot.DecrementRecursionDepth(); - } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("pruneSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("dropSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is pruneSchemaTemplateResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as dropSchemaTemplateArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("pruneSchemaTemplate_result("); - int tmp630 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp630++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class querySchemaTemplateArgs : TBase + public override string ToString() { - private TSQueryTemplateReq _req; - - public TSQueryTemplateReq Req + var sb = new StringBuilder("dropSchemaTemplate_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class dropSchemaTemplateResult : TBase + { + private TSStatus _success; - public querySchemaTemplateArgs() + public TSStatus Success + { + get { + return _success; } - - public querySchemaTemplateArgs DeepCopy() + set { - var tmp631 = new querySchemaTemplateArgs(); - if((Req != null) && __isset.req) - { - tmp631.Req = (TSQueryTemplateReq)this.Req.DeepCopy(); - } - tmp631.__isset.req = this.__isset.req; - return tmp631; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public dropSchemaTemplateResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSQueryTemplateReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); } + finally + { + iprot.DecrementRecursionDepth(); + } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("dropSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("querySchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is querySchemaTemplateArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as dropSchemaTemplateResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("querySchemaTemplate_args("); - int tmp632 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp632++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class querySchemaTemplateResult : TBase + public override string ToString() { - private TSQueryTemplateResp _success; - - public TSQueryTemplateResp Success + var sb = new StringBuilder("dropSchemaTemplate_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class createTimeseriesUsingSchemaTemplateArgs : TBase + { + private TCreateTimeseriesUsingSchemaTemplateReq _req; - public querySchemaTemplateResult() + public TCreateTimeseriesUsingSchemaTemplateReq Req + { + get { + return _req; } - - public querySchemaTemplateResult DeepCopy() + set { - var tmp633 = new querySchemaTemplateResult(); - if((Success != null) && __isset.success) - { - tmp633.Success = (TSQueryTemplateResp)this.Success.DeepCopy(); - } - tmp633.__isset.success = this.__isset.success; - return tmp633; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public createTimeseriesUsingSchemaTemplateArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSQueryTemplateResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TCreateTimeseriesUsingSchemaTemplateReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("querySchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("createTimeseriesUsingSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is querySchemaTemplateResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as createTimeseriesUsingSchemaTemplateArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("querySchemaTemplate_result("); - int tmp634 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp634++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class setSchemaTemplateArgs : TBase + public override string ToString() { - private TSSetSchemaTemplateReq _req; - - public TSSetSchemaTemplateReq Req + var sb = new StringBuilder("createTimeseriesUsingSchemaTemplate_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class createTimeseriesUsingSchemaTemplateResult : TBase + { + private TSStatus _success; - public setSchemaTemplateArgs() + public TSStatus Success + { + get { + return _success; } - - public setSchemaTemplateArgs DeepCopy() + set { - var tmp635 = new setSchemaTemplateArgs(); - if((Req != null) && __isset.req) - { - tmp635.Req = (TSSetSchemaTemplateReq)this.Req.DeepCopy(); - } - tmp635.__isset.req = this.__isset.req; - return tmp635; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public createTimeseriesUsingSchemaTemplateResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSSetSchemaTemplateReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("createTimeseriesUsingSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("setSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is setSchemaTemplateArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as createTimeseriesUsingSchemaTemplateResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("setSchemaTemplate_args("); - int tmp636 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp636++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class setSchemaTemplateResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("createTimeseriesUsingSchemaTemplate_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class handshakeArgs : TBase + { + private TSyncIdentityInfo _info; - public setSchemaTemplateResult() + public TSyncIdentityInfo Info + { + get { + return _info; } - - public setSchemaTemplateResult DeepCopy() + set { - var tmp637 = new setSchemaTemplateResult(); - if((Success != null) && __isset.success) - { - tmp637.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp637.__isset.success = this.__isset.success; - return tmp637; + __isset.info = true; + this._info = value; } + } + - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public Isset __isset; + public struct Isset + { + public bool info; + } + + public handshakeArgs() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case -1: + if (field.Type == TType.Struct) + { + Info = new TSyncIdentityInfo(); + await Info.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("setSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("handshake_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Info != null && __isset.info) { - oprot.DecrementRecursionDepth(); + field.Name = "info"; + field.Type = TType.Struct; + field.ID = -1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Info.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is setSchemaTemplateResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as handshakeArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.info == other.__isset.info) && ((!__isset.info) || (System.Object.Equals(Info, other.Info)))); + } - public override string ToString() - { - var sb = new StringBuilder("setSchemaTemplate_result("); - int tmp638 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp638++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.info) + hashcode = (hashcode * 397) + Info.GetHashCode(); } + return hashcode; } - - public partial class unsetSchemaTemplateArgs : TBase + public override string ToString() { - private TSUnsetSchemaTemplateReq _req; - - public TSUnsetSchemaTemplateReq Req + var sb = new StringBuilder("handshake_args("); + bool __first = true; + if (Info != null && __isset.info) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Info: "); + sb.Append(Info== null ? "" : Info.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class handshakeResult : TBase + { + private TSStatus _success; - public unsetSchemaTemplateArgs() + public TSStatus Success + { + get { + return _success; } - - public unsetSchemaTemplateArgs DeepCopy() + set { - var tmp639 = new unsetSchemaTemplateArgs(); - if((Req != null) && __isset.req) - { - tmp639.Req = (TSUnsetSchemaTemplateReq)this.Req.DeepCopy(); - } - tmp639.__isset.req = this.__isset.req; - return tmp639; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public handshakeResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSUnsetSchemaTemplateReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("handshake_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("unsetSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is unsetSchemaTemplateArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as handshakeResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("unsetSchemaTemplate_args("); - int tmp640 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp640++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class unsetSchemaTemplateResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("handshake_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class sendPipeDataArgs : TBase + { + private byte[] _buff; - public unsetSchemaTemplateResult() + public byte[] Buff + { + get { + return _buff; } - - public unsetSchemaTemplateResult DeepCopy() + set { - var tmp641 = new unsetSchemaTemplateResult(); - if((Success != null) && __isset.success) - { - tmp641.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp641.__isset.success = this.__isset.success; - return tmp641; + __isset.buff = true; + this._buff = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + + public Isset __isset; + public struct Isset + { + public bool buff; + } + + public sendPipeDataArgs() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 1: + if (field.Type == TType.String) + { + Buff = await iprot.ReadBinaryAsync(cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("unsetSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("sendPipeData_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Buff != null && __isset.buff) { - oprot.DecrementRecursionDepth(); + field.Name = "buff"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBinaryAsync(Buff, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is unsetSchemaTemplateResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as sendPipeDataArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.buff == other.__isset.buff) && ((!__isset.buff) || (TCollections.Equals(Buff, other.Buff)))); + } - public override string ToString() - { - var sb = new StringBuilder("unsetSchemaTemplate_result("); - int tmp642 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp642++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.buff) + hashcode = (hashcode * 397) + Buff.GetHashCode(); } + return hashcode; } - - public partial class dropSchemaTemplateArgs : TBase + public override string ToString() { - private TSDropSchemaTemplateReq _req; - - public TSDropSchemaTemplateReq Req + var sb = new StringBuilder("sendPipeData_args("); + bool __first = true; + if (Buff != null && __isset.buff) { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Buff: "); + sb.Append(Buff); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public partial class sendPipeDataResult : TBase + { + private TSStatus _success; - public dropSchemaTemplateArgs() + public TSStatus Success + { + get { + return _success; } - - public dropSchemaTemplateArgs DeepCopy() + set { - var tmp643 = new dropSchemaTemplateArgs(); - if((Req != null) && __isset.req) - { - tmp643.Req = (TSDropSchemaTemplateReq)this.Req.DeepCopy(); - } - tmp643.__isset.req = this.__isset.req; - return tmp643; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public sendPipeDataResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSDropSchemaTemplateReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("sendPipeData_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("dropSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Req != null) && __isset.req) + if (Success != null) { - field.Name = "req"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is dropSchemaTemplateArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Req != null) && __isset.req) - { - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as sendPipeDataResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("dropSchemaTemplate_args("); - int tmp644 = 0; - if((Req != null) && __isset.req) - { - if(0 < tmp644++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class dropSchemaTemplateResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("sendPipeData_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } + + public partial class sendFileArgs : TBase + { + private TSyncTransportMetaInfo _metaInfo; + private byte[] _buff; - public Isset __isset; - public struct Isset + public TSyncTransportMetaInfo MetaInfo + { + get { - public bool success; + return _metaInfo; } - - public dropSchemaTemplateResult() + set { + __isset.metaInfo = true; + this._metaInfo = value; } + } - public dropSchemaTemplateResult DeepCopy() + public byte[] Buff + { + get { - var tmp645 = new dropSchemaTemplateResult(); - if((Success != null) && __isset.success) - { - tmp645.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp645.__isset.success = this.__isset.success; - return tmp645; + return _buff; } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + set { - iprot.IncrementRecursionDepth(); - try - { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) - { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + __isset.buff = true; + this._buff = value; + } + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - await iprot.ReadFieldEndAsync(cancellationToken); - } + public Isset __isset; + public struct Isset + { + public bool metaInfo; + public bool buff; + } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); - } - } + public sendFileArgs() + { + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - var struc = new TStruct("dropSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + break; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } - } - - public override bool Equals(object that) - { - if (!(that is dropSchemaTemplateResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) + switch (field.ID) { - hashcode = (hashcode * 397) + Success.GetHashCode(); + case 1: + if (field.Type == TType.Struct) + { + MetaInfo = new TSyncTransportMetaInfo(); + await MetaInfo.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Buff = await iprot.ReadBinaryAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } + + await iprot.ReadFieldEndAsync(cancellationToken); } - return hashcode; - } - public override string ToString() + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - var sb = new StringBuilder("dropSchemaTemplate_result("); - int tmp646 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp646++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + iprot.DecrementRecursionDepth(); } } - - public partial class handshakeArgs : TBase + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - private TSyncIdentityInfo _info; - - public TSyncIdentityInfo Info + oprot.IncrementRecursionDepth(); + try { - get + var struc = new TStruct("sendFile_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (MetaInfo != null && __isset.metaInfo) { - return _info; + field.Name = "metaInfo"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await MetaInfo.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - set + if (Buff != null && __isset.buff) { - __isset.info = true; - this._info = value; + field.Name = "buff"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBinaryAsync(Buff, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } + } + public override bool Equals(object that) + { + var other = that as sendFileArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.metaInfo == other.__isset.metaInfo) && ((!__isset.metaInfo) || (System.Object.Equals(MetaInfo, other.MetaInfo)))) + && ((__isset.buff == other.__isset.buff) && ((!__isset.buff) || (TCollections.Equals(Buff, other.Buff)))); + } - public Isset __isset; - public struct Isset - { - public bool info; + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.metaInfo) + hashcode = (hashcode * 397) + MetaInfo.GetHashCode(); + if(__isset.buff) + hashcode = (hashcode * 397) + Buff.GetHashCode(); } + return hashcode; + } - public handshakeArgs() + public override string ToString() + { + var sb = new StringBuilder("sendFile_args("); + bool __first = true; + if (MetaInfo != null && __isset.metaInfo) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("MetaInfo: "); + sb.Append(MetaInfo== null ? "" : MetaInfo.ToString()); + } + if (Buff != null && __isset.buff) { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Buff: "); + sb.Append(Buff); } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class sendFileResult : TBase + { + private TSStatus _success; - public handshakeArgs DeepCopy() + public TSStatus Success + { + get { - var tmp647 = new handshakeArgs(); - if((Info != null) && __isset.info) - { - tmp647.Info = (TSyncIdentityInfo)this.Info.DeepCopy(); - } - tmp647.__isset.info = this.__isset.info; - return tmp647; + return _success; } + set + { + __isset.success = true; + this._success = value; + } + } + - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public Isset __isset; + public struct Isset + { + public bool success; + } + + public sendFileResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case -1: - if (field.Type == TType.Struct) - { - Info = new TSyncIdentityInfo(); - await Info.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("sendFile_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("handshake_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Info != null) && __isset.info) + if (Success != null) { - field.Name = "info"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = -1; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Info.WriteAsync(oprot, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is handshakeArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.info == other.__isset.info) && ((!__isset.info) || (System.Object.Equals(Info, other.Info)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Info != null) && __isset.info) - { - hashcode = (hashcode * 397) + Info.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as sendFileResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("handshake_args("); - int tmp648 = 0; - if((Info != null) && __isset.info) - { - if(0 < tmp648++) { sb.Append(", "); } - sb.Append("Info: "); - Info.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class handshakeResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("sendFile_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class pipeTransferArgs : TBase + { + private TPipeTransferReq _req; - public handshakeResult() + public TPipeTransferReq Req + { + get { + return _req; } - - public handshakeResult DeepCopy() + set { - var tmp649 = new handshakeResult(); - if((Success != null) && __isset.success) - { - tmp649.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp649.__isset.success = this.__isset.success; - return tmp649; + __isset.req = true; + this._req = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public pipeTransferArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case -1: + if (field.Type == TType.Struct) + { + Req = new TPipeTransferReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("handshake_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.DecrementRecursionDepth(); + } + } - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("pipeTransfer_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - oprot.DecrementRecursionDepth(); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = -1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is handshakeResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as pipeTransferArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - public override string ToString() - { - var sb = new StringBuilder("handshake_result("); - int tmp650 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp650++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); } + return hashcode; } - - public partial class sendPipeDataArgs : TBase + public override string ToString() { - private byte[] _buff; - - public byte[] Buff + var sb = new StringBuilder("pipeTransfer_args("); + bool __first = true; + if (Req != null && __isset.req) { - get - { - return _buff; - } - set - { - __isset.buff = true; - this._buff = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool buff; - } + public partial class pipeTransferResult : TBase + { + private TPipeTransferResp _success; - public sendPipeDataArgs() + public TPipeTransferResp Success + { + get { + return _success; } - - public sendPipeDataArgs DeepCopy() + set { - var tmp651 = new sendPipeDataArgs(); - if((Buff != null) && __isset.buff) - { - tmp651.Buff = this.Buff.ToArray(); - } - tmp651.__isset.buff = this.__isset.buff; - return tmp651; + __isset.success = true; + this._success = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public pipeTransferResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.String) - { - Buff = await iprot.ReadBinaryAsync(cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TPipeTransferResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("pipeTransfer_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("sendPipeData_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((Buff != null) && __isset.buff) + if (Success != null) { - field.Name = "buff"; - field.Type = TType.String; - field.ID = 1; + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteBinaryAsync(Buff, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is sendPipeDataArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.buff == other.__isset.buff) && ((!__isset.buff) || (TCollections.Equals(Buff, other.Buff)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Buff != null) && __isset.buff) - { - hashcode = (hashcode * 397) + Buff.GetHashCode(); - } - } - return hashcode; - } + public override bool Equals(object that) + { + var other = that as pipeTransferResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public override string ToString() - { - var sb = new StringBuilder("sendPipeData_args("); - int tmp652 = 0; - if((Buff != null) && __isset.buff) - { - if(0 < tmp652++) { sb.Append(", "); } - sb.Append("Buff: "); - Buff.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; } - - public partial class sendPipeDataResult : TBase + public override string ToString() { - private TSStatus _success; - - public TSStatus Success + var sb = new StringBuilder("pipeTransfer_result("); + bool __first = true; + if (Success != null && __isset.success) { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class pipeSubscribeArgs : TBase + { + private TPipeSubscribeReq _req; - public sendPipeDataResult() + public TPipeSubscribeReq Req + { + get { + return _req; } - - public sendPipeDataResult DeepCopy() + set { - var tmp653 = new sendPipeDataResult(); - if((Success != null) && __isset.success) - { - tmp653.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp653.__isset.success = this.__isset.success; - return tmp653; + __isset.req = true; + this._req = value; } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try - { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) - { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } - - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - await iprot.ReadFieldEndAsync(cancellationToken); - } + public Isset __isset; + public struct Isset + { + public bool req; + } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); - } - } + public pipeSubscribeArgs() + { + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - var struc = new TStruct("sendPipeData_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + break; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } - } - - public override bool Equals(object that) - { - if (!(that is sendPipeDataResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) + switch (field.ID) { - hashcode = (hashcode * 397) + Success.GetHashCode(); + case -1: + if (field.Type == TType.Struct) + { + Req = new TPipeSubscribeReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } + + await iprot.ReadFieldEndAsync(cancellationToken); } - return hashcode; - } - public override string ToString() + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - var sb = new StringBuilder("sendPipeData_result("); - int tmp654 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp654++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + iprot.DecrementRecursionDepth(); } } - - public partial class sendFileArgs : TBase + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - private TSyncTransportMetaInfo _metaInfo; - private byte[] _buff; - - public TSyncTransportMetaInfo MetaInfo + oprot.IncrementRecursionDepth(); + try { - get - { - return _metaInfo; - } - set + var struc = new TStruct("pipeSubscribe_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (Req != null && __isset.req) { - __isset.metaInfo = true; - this._metaInfo = value; + field.Name = "req"; + field.Type = TType.Struct; + field.ID = -1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public byte[] Buff + finally { - get - { - return _buff; - } - set - { - __isset.buff = true; - this._buff = value; - } + oprot.DecrementRecursionDepth(); } + } + + public override bool Equals(object that) + { + var other = that as pipeSubscribeArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.req) + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + return hashcode; + } - public Isset __isset; - public struct Isset + public override string ToString() + { + var sb = new StringBuilder("pipeSubscribe_args("); + bool __first = true; + if (Req != null && __isset.req) { - public bool metaInfo; - public bool buff; + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Req: "); + sb.Append(Req== null ? "" : Req.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } + - public sendFileArgs() + public partial class pipeSubscribeResult : TBase + { + private TPipeSubscribeResp _success; + + public TPipeSubscribeResp Success + { + get { + return _success; } - - public sendFileArgs DeepCopy() + set { - var tmp655 = new sendFileArgs(); - if((MetaInfo != null) && __isset.metaInfo) - { - tmp655.MetaInfo = (TSyncTransportMetaInfo)this.MetaInfo.DeepCopy(); - } - tmp655.__isset.metaInfo = this.__isset.metaInfo; - if((Buff != null) && __isset.buff) - { - tmp655.Buff = this.Buff.ToArray(); - } - tmp655.__isset.buff = this.__isset.buff; - return tmp655; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public pipeSubscribeResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - MetaInfo = new TSyncTransportMetaInfo(); - await MetaInfo.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - case 2: - if (field.Type == TType.String) - { - Buff = await iprot.ReadBinaryAsync(cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TPipeSubscribeResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + var struc = new TStruct("pipeSubscribe_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - var struc = new TStruct("sendFile_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if((MetaInfo != null) && __isset.metaInfo) + if (Success != null) { - field.Name = "metaInfo"; + field.Name = "Success"; field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await MetaInfo.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((Buff != null) && __isset.buff) - { - field.Name = "buff"; - field.Type = TType.String; - field.ID = 2; + field.ID = 0; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteBinaryAsync(Buff, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is sendFileArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.metaInfo == other.__isset.metaInfo) && ((!__isset.metaInfo) || (System.Object.Equals(MetaInfo, other.MetaInfo)))) - && ((__isset.buff == other.__isset.buff) && ((!__isset.buff) || (TCollections.Equals(Buff, other.Buff)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((MetaInfo != null) && __isset.metaInfo) - { - hashcode = (hashcode * 397) + MetaInfo.GetHashCode(); - } - if((Buff != null) && __isset.buff) - { - hashcode = (hashcode * 397) + Buff.GetHashCode(); - } - } - return hashcode; + public override bool Equals(object that) + { + var other = that as pipeSubscribeResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; + } - public override string ToString() + public override string ToString() + { + var sb = new StringBuilder("pipeSubscribe_result("); + bool __first = true; + if (Success != null && __isset.success) { - var sb = new StringBuilder("sendFile_args("); - int tmp656 = 0; - if((MetaInfo != null) && __isset.metaInfo) - { - if(0 < tmp656++) { sb.Append(", "); } - sb.Append("MetaInfo: "); - MetaInfo.ToString(sb); - } - if((Buff != null) && __isset.buff) - { - if(0 < tmp656++) { sb.Append(", "); } - sb.Append("Buff: "); - Buff.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); } + } + + public partial class getBackupConfigurationArgs : TBase + { - public partial class sendFileResult : TBase + public getBackupConfigurationArgs() { - private TSStatus _success; + } - public TSStatus Success + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - get + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + await iprot.ReadFieldEndAsync(cancellationToken); + } - public Isset __isset; - public struct Isset + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - public bool success; + iprot.DecrementRecursionDepth(); } + } - public sendFileResult() + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { + var struc = new TStruct("getBackupConfiguration_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public sendFileResult DeepCopy() + finally { - var tmp657 = new sendFileResult(); - if((Success != null) && __isset.success) - { - tmp657.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp657.__isset.success = this.__isset.success; - return tmp657; + oprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try - { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) - { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + public override bool Equals(object that) + { + var other = that as getBackupConfigurationArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return true; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + } + return hashcode; + } - await iprot.ReadFieldEndAsync(cancellationToken); - } + public override string ToString() + { + var sb = new StringBuilder("getBackupConfiguration_args("); + sb.Append(")"); + return sb.ToString(); + } + } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); - } + + public partial class getBackupConfigurationResult : TBase + { + private TSBackupConfigurationResp _success; + + public TSBackupConfigurationResp Success + { + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public getBackupConfigurationResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - var struc = new TStruct("sendFile_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - if(this.__isset.success) + switch (field.ID) { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + case 0: + if (field.Type == TType.Struct) + { + Success = new TSBackupConfigurationResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); + + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public override bool Equals(object that) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - if (!(that is sendFileResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + iprot.DecrementRecursionDepth(); } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("getBackupConfiguration_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) + if(this.__isset.success) + { + if (Success != null) { - hashcode = (hashcode * 397) + Success.GetHashCode(); + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } } - return hashcode; + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override string ToString() + finally { - var sb = new StringBuilder("sendFile_result("); - int tmp658 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp658++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + oprot.DecrementRecursionDepth(); } } - - public partial class getBackupConfigurationArgs : TBase + public override bool Equals(object that) { + var other = that as getBackupConfigurationResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public getBackupConfigurationArgs() - { + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; + } - public getBackupConfigurationArgs DeepCopy() + public override string ToString() + { + var sb = new StringBuilder("getBackupConfiguration_result("); + bool __first = true; + if (Success != null && __isset.success) { - var tmp659 = new getBackupConfigurationArgs(); - return tmp659; + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class fetchAllConnectionsInfoArgs : TBase + { + + public fetchAllConnectionsInfoArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } - - switch (field.ID) - { - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } + break; + } - await iprot.ReadFieldEndAsync(cancellationToken); + switch (field.ID) + { + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("getBackupConfiguration_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } + await iprot.ReadStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is getBackupConfigurationArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return true; + iprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - } - return hashcode; + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("fetchAllConnectionsInfo_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override string ToString() + finally { - var sb = new StringBuilder("getBackupConfiguration_args("); - sb.Append(')'); - return sb.ToString(); + oprot.DecrementRecursionDepth(); } } - - public partial class getBackupConfigurationResult : TBase + public override bool Equals(object that) { - private TSBackupConfigurationResp _success; + var other = that as fetchAllConnectionsInfoArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return true; + } - public TSBackupConfigurationResp Success - { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("fetchAllConnectionsInfo_args("); + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } + public partial class fetchAllConnectionsInfoResult : TBase + { + private TSConnectionInfoResp _success; - public getBackupConfigurationResult() + public TSConnectionInfoResp Success + { + get { + return _success; } - - public getBackupConfigurationResult DeepCopy() + set { - var tmp661 = new getBackupConfigurationResult(); - if((Success != null) && __isset.success) - { - tmp661.Success = (TSBackupConfigurationResp)this.Success.DeepCopy(); - } - tmp661.__isset.success = this.__isset.success; - return tmp661; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public fetchAllConnectionsInfoResult() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSBackupConfigurationResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSConnectionInfoResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); + await iprot.ReadFieldEndAsync(cancellationToken); } - finally - { - iprot.DecrementRecursionDepth(); - } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + await iprot.ReadStructEndAsync(cancellationToken); + } + finally { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("getBackupConfiguration_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) - { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } + iprot.DecrementRecursionDepth(); } + } - public override bool Equals(object that) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - if (!(that is getBackupConfigurationResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } + var struc = new TStruct("fetchAllConnectionsInfo_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) + if(this.__isset.success) + { + if (Success != null) { - hashcode = (hashcode * 397) + Success.GetHashCode(); + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } } - return hashcode; + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override string ToString() + finally { - var sb = new StringBuilder("getBackupConfiguration_result("); - int tmp662 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp662++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + oprot.DecrementRecursionDepth(); } } - - public partial class fetchAllConnectionsInfoArgs : TBase + public override bool Equals(object that) { + var other = that as fetchAllConnectionsInfoResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - public fetchAllConnectionsInfoArgs() - { + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; + } - public fetchAllConnectionsInfoArgs DeepCopy() + public override string ToString() + { + var sb = new StringBuilder("fetchAllConnectionsInfo_result("); + bool __first = true; + if (Success != null && __isset.success) { - var tmp663 = new fetchAllConnectionsInfoArgs(); - return tmp663; + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); + } + } + + + public partial class testConnectionEmptyRPCArgs : TBase + { + + public testConnectionEmptyRPCArgs() + { + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } - - switch (field.ID) - { - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } + break; + } - await iprot.ReadFieldEndAsync(cancellationToken); + switch (field.ID) + { + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); + await iprot.ReadFieldEndAsync(cancellationToken); } - finally - { - iprot.DecrementRecursionDepth(); - } - } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("fetchAllConnectionsInfo_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } + await iprot.ReadStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is fetchAllConnectionsInfoArgs other)) return false; - if (ReferenceEquals(this, other)) return true; - return true; + iprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - } - return hashcode; + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("testConnectionEmptyRPC_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override string ToString() + finally { - var sb = new StringBuilder("fetchAllConnectionsInfo_args("); - sb.Append(')'); - return sb.ToString(); + oprot.DecrementRecursionDepth(); } } - - public partial class fetchAllConnectionsInfoResult : TBase + public override bool Equals(object that) { - private TSConnectionInfoResp _success; + var other = that as testConnectionEmptyRPCArgs; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return true; + } - public TSConnectionInfoResp Success - { - get - { - return _success; - } - set - { - __isset.success = true; - this._success = value; - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { } + return hashcode; + } + public override string ToString() + { + var sb = new StringBuilder("testConnectionEmptyRPC_args("); + sb.Append(")"); + return sb.ToString(); + } + } - public Isset __isset; - public struct Isset - { - public bool success; - } - public fetchAllConnectionsInfoResult() + public partial class testConnectionEmptyRPCResult : TBase + { + private TSStatus _success; + + public TSStatus Success + { + get { + return _success; } - - public fetchAllConnectionsInfoResult DeepCopy() + set { - var tmp665 = new fetchAllConnectionsInfoResult(); - if((Success != null) && __isset.success) - { - tmp665.Success = (TSConnectionInfoResp)this.Success.DeepCopy(); - } - tmp665.__isset.success = this.__isset.success; - return tmp665; + __isset.success = true; + this._success = value; } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public testConnectionEmptyRPCResult() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try { - iprot.IncrementRecursionDepth(); - try + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSConnectionInfoResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("fetchAllConnectionsInfo_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var struc = new TStruct("testConnectionEmptyRPC_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); - if(this.__isset.success) + if(this.__isset.success) + { + if (Success != null) { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - - public override bool Equals(object that) + finally { - if (!(that is fetchAllConnectionsInfoResult other)) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + oprot.DecrementRecursionDepth(); } + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if((Success != null) && __isset.success) - { - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - } - return hashcode; + public override bool Equals(object that) + { + var other = that as testConnectionEmptyRPCResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + hashcode = (hashcode * 397) + Success.GetHashCode(); } + return hashcode; + } - public override string ToString() + public override string ToString() + { + var sb = new StringBuilder("testConnectionEmptyRPC_result("); + bool __first = true; + if (Success != null && __isset.success) { - var sb = new StringBuilder("fetchAllConnectionsInfo_result("); - int tmp666 = 0; - if((Success != null) && __isset.success) - { - if(0 < tmp666++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); - } - sb.Append(')'); - return sb.ToString(); + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("Success: "); + sb.Append(Success== null ? "" : Success.ToString()); } + sb.Append(")"); + return sb.ToString(); } - } } diff --git a/src/Apache.IoTDB/Rpc/Generated/ServerProperties.cs b/src/Apache.IoTDB/Rpc/Generated/ServerProperties.cs index 30fc408..c5d6f35 100644 --- a/src/Apache.IoTDB/Rpc/Generated/ServerProperties.cs +++ b/src/Apache.IoTDB/Rpc/Generated/ServerProperties.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,20 +23,14 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class ServerProperties : TBase { private int _maxConcurrentClientNum; - private string _watermarkSecretKey; - private string _watermarkBitString; - private int _watermarkParamMarkRate; - private int _watermarkParamMaxRightBit; private int _thriftMaxFrameSize; private bool _isReadOnly; private string _buildInfo; + private string _logo; public string Version { get; set; } @@ -59,58 +51,6 @@ public int MaxConcurrentClientNum } } - public string WatermarkSecretKey - { - get - { - return _watermarkSecretKey; - } - set - { - __isset.watermarkSecretKey = true; - this._watermarkSecretKey = value; - } - } - - public string WatermarkBitString - { - get - { - return _watermarkBitString; - } - set - { - __isset.watermarkBitString = true; - this._watermarkBitString = value; - } - } - - public int WatermarkParamMarkRate - { - get - { - return _watermarkParamMarkRate; - } - set - { - __isset.watermarkParamMarkRate = true; - this._watermarkParamMarkRate = value; - } - } - - public int WatermarkParamMaxRightBit - { - get - { - return _watermarkParamMaxRightBit; - } - set - { - __isset.watermarkParamMaxRightBit = true; - this._watermarkParamMaxRightBit = value; - } - } - public int ThriftMaxFrameSize { get @@ -150,18 +90,28 @@ public string BuildInfo } } + public string Logo + { + get + { + return _logo; + } + set + { + __isset.logo = true; + this._logo = value; + } + } + public Isset __isset; public struct Isset { public bool maxConcurrentClientNum; - public bool watermarkSecretKey; - public bool watermarkBitString; - public bool watermarkParamMarkRate; - public bool watermarkParamMaxRightBit; public bool thriftMaxFrameSize; public bool isReadOnly; public bool buildInfo; + public bool logo; } public ServerProperties() @@ -175,65 +125,7 @@ public ServerProperties(string version, List supportedTimeAggregationOpe this.TimestampPrecision = timestampPrecision; } - public ServerProperties DeepCopy() - { - var tmp379 = new ServerProperties(); - if((Version != null)) - { - tmp379.Version = this.Version; - } - if((SupportedTimeAggregationOperations != null)) - { - tmp379.SupportedTimeAggregationOperations = this.SupportedTimeAggregationOperations.DeepCopy(); - } - if((TimestampPrecision != null)) - { - tmp379.TimestampPrecision = this.TimestampPrecision; - } - if(__isset.maxConcurrentClientNum) - { - tmp379.MaxConcurrentClientNum = this.MaxConcurrentClientNum; - } - tmp379.__isset.maxConcurrentClientNum = this.__isset.maxConcurrentClientNum; - if((WatermarkSecretKey != null) && __isset.watermarkSecretKey) - { - tmp379.WatermarkSecretKey = this.WatermarkSecretKey; - } - tmp379.__isset.watermarkSecretKey = this.__isset.watermarkSecretKey; - if((WatermarkBitString != null) && __isset.watermarkBitString) - { - tmp379.WatermarkBitString = this.WatermarkBitString; - } - tmp379.__isset.watermarkBitString = this.__isset.watermarkBitString; - if(__isset.watermarkParamMarkRate) - { - tmp379.WatermarkParamMarkRate = this.WatermarkParamMarkRate; - } - tmp379.__isset.watermarkParamMarkRate = this.__isset.watermarkParamMarkRate; - if(__isset.watermarkParamMaxRightBit) - { - tmp379.WatermarkParamMaxRightBit = this.WatermarkParamMaxRightBit; - } - tmp379.__isset.watermarkParamMaxRightBit = this.__isset.watermarkParamMaxRightBit; - if(__isset.thriftMaxFrameSize) - { - tmp379.ThriftMaxFrameSize = this.ThriftMaxFrameSize; - } - tmp379.__isset.thriftMaxFrameSize = this.__isset.thriftMaxFrameSize; - if(__isset.isReadOnly) - { - tmp379.IsReadOnly = this.IsReadOnly; - } - tmp379.__isset.isReadOnly = this.__isset.isReadOnly; - if((BuildInfo != null) && __isset.buildInfo) - { - tmp379.BuildInfo = this.BuildInfo; - } - tmp379.__isset.buildInfo = this.__isset.buildInfo; - return tmp379; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -268,13 +160,13 @@ public ServerProperties DeepCopy() if (field.Type == TType.List) { { - TList _list380 = await iprot.ReadListBeginAsync(cancellationToken); - SupportedTimeAggregationOperations = new List(_list380.Count); - for(int _i381 = 0; _i381 < _list380.Count; ++_i381) + TList _list327 = await iprot.ReadListBeginAsync(cancellationToken); + SupportedTimeAggregationOperations = new List(_list327.Count); + for(int _i328 = 0; _i328 < _list327.Count; ++_i328) { - string _elem382; - _elem382 = await iprot.ReadStringAsync(cancellationToken); - SupportedTimeAggregationOperations.Add(_elem382); + string _elem329; + _elem329 = await iprot.ReadStringAsync(cancellationToken); + SupportedTimeAggregationOperations.Add(_elem329); } await iprot.ReadListEndAsync(cancellationToken); } @@ -307,9 +199,9 @@ public ServerProperties DeepCopy() } break; case 5: - if (field.Type == TType.String) + if (field.Type == TType.I32) { - WatermarkSecretKey = await iprot.ReadStringAsync(cancellationToken); + ThriftMaxFrameSize = await iprot.ReadI32Async(cancellationToken); } else { @@ -317,9 +209,9 @@ public ServerProperties DeepCopy() } break; case 6: - if (field.Type == TType.String) + if (field.Type == TType.Bool) { - WatermarkBitString = await iprot.ReadStringAsync(cancellationToken); + IsReadOnly = await iprot.ReadBoolAsync(cancellationToken); } else { @@ -327,9 +219,9 @@ public ServerProperties DeepCopy() } break; case 7: - if (field.Type == TType.I32) + if (field.Type == TType.String) { - WatermarkParamMarkRate = await iprot.ReadI32Async(cancellationToken); + BuildInfo = await iprot.ReadStringAsync(cancellationToken); } else { @@ -337,39 +229,9 @@ public ServerProperties DeepCopy() } break; case 8: - if (field.Type == TType.I32) - { - WatermarkParamMaxRightBit = await iprot.ReadI32Async(cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - case 9: - if (field.Type == TType.I32) - { - ThriftMaxFrameSize = await iprot.ReadI32Async(cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - case 10: - if (field.Type == TType.Bool) - { - IsReadOnly = await iprot.ReadBoolAsync(cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - case 11: if (field.Type == TType.String) { - BuildInfo = await iprot.ReadStringAsync(cancellationToken); + Logo = await iprot.ReadStringAsync(cancellationToken); } else { @@ -404,7 +266,7 @@ public ServerProperties DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -412,41 +274,32 @@ public ServerProperties DeepCopy() var struc = new TStruct("ServerProperties"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((Version != null)) - { - field.Name = "version"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Version, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((SupportedTimeAggregationOperations != null)) + field.Name = "version"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Version, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "supportedTimeAggregationOperations"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "supportedTimeAggregationOperations"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, SupportedTimeAggregationOperations.Count), cancellationToken); + foreach (string _iter330 in SupportedTimeAggregationOperations) { - await oprot.WriteListBeginAsync(new TList(TType.String, SupportedTimeAggregationOperations.Count), cancellationToken); - foreach (string _iter383 in SupportedTimeAggregationOperations) - { - await oprot.WriteStringAsync(_iter383, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter330, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((TimestampPrecision != null)) - { - field.Name = "timestampPrecision"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(TimestampPrecision, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if(__isset.maxConcurrentClientNum) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "timestampPrecision"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(TimestampPrecision, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + if (__isset.maxConcurrentClientNum) { field.Name = "maxConcurrentClientNum"; field.Type = TType.I32; @@ -455,69 +308,42 @@ public ServerProperties DeepCopy() await oprot.WriteI32Async(MaxConcurrentClientNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if((WatermarkSecretKey != null) && __isset.watermarkSecretKey) - { - field.Name = "watermarkSecretKey"; - field.Type = TType.String; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(WatermarkSecretKey, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((WatermarkBitString != null) && __isset.watermarkBitString) - { - field.Name = "watermarkBitString"; - field.Type = TType.String; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(WatermarkBitString, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if(__isset.watermarkParamMarkRate) - { - field.Name = "watermarkParamMarkRate"; - field.Type = TType.I32; - field.ID = 7; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteI32Async(WatermarkParamMarkRate, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if(__isset.watermarkParamMaxRightBit) - { - field.Name = "watermarkParamMaxRightBit"; - field.Type = TType.I32; - field.ID = 8; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteI32Async(WatermarkParamMaxRightBit, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if(__isset.thriftMaxFrameSize) + if (__isset.thriftMaxFrameSize) { field.Name = "thriftMaxFrameSize"; field.Type = TType.I32; - field.ID = 9; + field.ID = 5; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(ThriftMaxFrameSize, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.isReadOnly) + if (__isset.isReadOnly) { field.Name = "isReadOnly"; field.Type = TType.Bool; - field.ID = 10; + field.ID = 6; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(IsReadOnly, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if((BuildInfo != null) && __isset.buildInfo) + if (BuildInfo != null && __isset.buildInfo) { field.Name = "buildInfo"; field.Type = TType.String; - field.ID = 11; + field.ID = 7; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteStringAsync(BuildInfo, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + if (Logo != null && __isset.logo) + { + field.Name = "logo"; + field.Type = TType.String; + field.ID = 8; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Logo, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -529,68 +355,35 @@ public ServerProperties DeepCopy() public override bool Equals(object that) { - if (!(that is ServerProperties other)) return false; + var other = that as ServerProperties; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Version, other.Version) && TCollections.Equals(SupportedTimeAggregationOperations, other.SupportedTimeAggregationOperations) && System.Object.Equals(TimestampPrecision, other.TimestampPrecision) && ((__isset.maxConcurrentClientNum == other.__isset.maxConcurrentClientNum) && ((!__isset.maxConcurrentClientNum) || (System.Object.Equals(MaxConcurrentClientNum, other.MaxConcurrentClientNum)))) - && ((__isset.watermarkSecretKey == other.__isset.watermarkSecretKey) && ((!__isset.watermarkSecretKey) || (System.Object.Equals(WatermarkSecretKey, other.WatermarkSecretKey)))) - && ((__isset.watermarkBitString == other.__isset.watermarkBitString) && ((!__isset.watermarkBitString) || (System.Object.Equals(WatermarkBitString, other.WatermarkBitString)))) - && ((__isset.watermarkParamMarkRate == other.__isset.watermarkParamMarkRate) && ((!__isset.watermarkParamMarkRate) || (System.Object.Equals(WatermarkParamMarkRate, other.WatermarkParamMarkRate)))) - && ((__isset.watermarkParamMaxRightBit == other.__isset.watermarkParamMaxRightBit) && ((!__isset.watermarkParamMaxRightBit) || (System.Object.Equals(WatermarkParamMaxRightBit, other.WatermarkParamMaxRightBit)))) && ((__isset.thriftMaxFrameSize == other.__isset.thriftMaxFrameSize) && ((!__isset.thriftMaxFrameSize) || (System.Object.Equals(ThriftMaxFrameSize, other.ThriftMaxFrameSize)))) && ((__isset.isReadOnly == other.__isset.isReadOnly) && ((!__isset.isReadOnly) || (System.Object.Equals(IsReadOnly, other.IsReadOnly)))) - && ((__isset.buildInfo == other.__isset.buildInfo) && ((!__isset.buildInfo) || (System.Object.Equals(BuildInfo, other.BuildInfo)))); + && ((__isset.buildInfo == other.__isset.buildInfo) && ((!__isset.buildInfo) || (System.Object.Equals(BuildInfo, other.BuildInfo)))) + && ((__isset.logo == other.__isset.logo) && ((!__isset.logo) || (System.Object.Equals(Logo, other.Logo)))); } public override int GetHashCode() { int hashcode = 157; unchecked { - if((Version != null)) - { - hashcode = (hashcode * 397) + Version.GetHashCode(); - } - if((SupportedTimeAggregationOperations != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(SupportedTimeAggregationOperations); - } - if((TimestampPrecision != null)) - { - hashcode = (hashcode * 397) + TimestampPrecision.GetHashCode(); - } + hashcode = (hashcode * 397) + Version.GetHashCode(); + hashcode = (hashcode * 397) + TCollections.GetHashCode(SupportedTimeAggregationOperations); + hashcode = (hashcode * 397) + TimestampPrecision.GetHashCode(); if(__isset.maxConcurrentClientNum) - { hashcode = (hashcode * 397) + MaxConcurrentClientNum.GetHashCode(); - } - if((WatermarkSecretKey != null) && __isset.watermarkSecretKey) - { - hashcode = (hashcode * 397) + WatermarkSecretKey.GetHashCode(); - } - if((WatermarkBitString != null) && __isset.watermarkBitString) - { - hashcode = (hashcode * 397) + WatermarkBitString.GetHashCode(); - } - if(__isset.watermarkParamMarkRate) - { - hashcode = (hashcode * 397) + WatermarkParamMarkRate.GetHashCode(); - } - if(__isset.watermarkParamMaxRightBit) - { - hashcode = (hashcode * 397) + WatermarkParamMaxRightBit.GetHashCode(); - } if(__isset.thriftMaxFrameSize) - { hashcode = (hashcode * 397) + ThriftMaxFrameSize.GetHashCode(); - } if(__isset.isReadOnly) - { hashcode = (hashcode * 397) + IsReadOnly.GetHashCode(); - } - if((BuildInfo != null) && __isset.buildInfo) - { + if(__isset.buildInfo) hashcode = (hashcode * 397) + BuildInfo.GetHashCode(); - } + if(__isset.logo) + hashcode = (hashcode * 397) + Logo.GetHashCode(); } return hashcode; } @@ -598,62 +391,38 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("ServerProperties("); - if((Version != null)) - { - sb.Append(", Version: "); - Version.ToString(sb); - } - if((SupportedTimeAggregationOperations != null)) - { - sb.Append(", SupportedTimeAggregationOperations: "); - SupportedTimeAggregationOperations.ToString(sb); - } - if((TimestampPrecision != null)) - { - sb.Append(", TimestampPrecision: "); - TimestampPrecision.ToString(sb); - } - if(__isset.maxConcurrentClientNum) + sb.Append(", Version: "); + sb.Append(Version); + sb.Append(", SupportedTimeAggregationOperations: "); + sb.Append(SupportedTimeAggregationOperations); + sb.Append(", TimestampPrecision: "); + sb.Append(TimestampPrecision); + if (__isset.maxConcurrentClientNum) { sb.Append(", MaxConcurrentClientNum: "); - MaxConcurrentClientNum.ToString(sb); - } - if((WatermarkSecretKey != null) && __isset.watermarkSecretKey) - { - sb.Append(", WatermarkSecretKey: "); - WatermarkSecretKey.ToString(sb); - } - if((WatermarkBitString != null) && __isset.watermarkBitString) - { - sb.Append(", WatermarkBitString: "); - WatermarkBitString.ToString(sb); + sb.Append(MaxConcurrentClientNum); } - if(__isset.watermarkParamMarkRate) - { - sb.Append(", WatermarkParamMarkRate: "); - WatermarkParamMarkRate.ToString(sb); - } - if(__isset.watermarkParamMaxRightBit) - { - sb.Append(", WatermarkParamMaxRightBit: "); - WatermarkParamMaxRightBit.ToString(sb); - } - if(__isset.thriftMaxFrameSize) + if (__isset.thriftMaxFrameSize) { sb.Append(", ThriftMaxFrameSize: "); - ThriftMaxFrameSize.ToString(sb); + sb.Append(ThriftMaxFrameSize); } - if(__isset.isReadOnly) + if (__isset.isReadOnly) { sb.Append(", IsReadOnly: "); - IsReadOnly.ToString(sb); + sb.Append(IsReadOnly); } - if((BuildInfo != null) && __isset.buildInfo) + if (BuildInfo != null && __isset.buildInfo) { sb.Append(", BuildInfo: "); - BuildInfo.ToString(sb); + sb.Append(BuildInfo); + } + if (Logo != null && __isset.logo) + { + sb.Append(", Logo: "); + sb.Append(Logo); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TAggregationType.cs b/src/Apache.IoTDB/Rpc/Generated/TAggregationType.cs new file mode 100644 index 0000000..754a899 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TAggregationType.cs @@ -0,0 +1,33 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ + +public enum TAggregationType +{ + COUNT = 0, + AVG = 1, + SUM = 2, + FIRST_VALUE = 3, + LAST_VALUE = 4, + MAX_TIME = 5, + MIN_TIME = 6, + MAX_VALUE = 7, + MIN_VALUE = 8, + EXTREME = 9, + COUNT_IF = 10, + TIME_DURATION = 11, + MODE = 12, + COUNT_TIME = 13, + STDDEV = 14, + STDDEV_POP = 15, + STDDEV_SAMP = 16, + VARIANCE = 17, + VAR_POP = 18, + VAR_SAMP = 19, + MAX_BY = 20, + MIN_BY = 21, + UDAF = 22, +} diff --git a/src/Apache.IoTDB/Rpc/Generated/TConfigNodeLocation.cs b/src/Apache.IoTDB/Rpc/Generated/TConfigNodeLocation.cs index f3bcf28..c4dd684 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TConfigNodeLocation.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TConfigNodeLocation.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TConfigNodeLocation : TBase { @@ -49,22 +44,7 @@ public TConfigNodeLocation(int configNodeId, TEndPoint internalEndPoint, TEndPoi this.ConsensusEndPoint = consensusEndPoint; } - public TConfigNodeLocation DeepCopy() - { - var tmp22 = new TConfigNodeLocation(); - tmp22.ConfigNodeId = this.ConfigNodeId; - if((InternalEndPoint != null)) - { - tmp22.InternalEndPoint = (TEndPoint)this.InternalEndPoint.DeepCopy(); - } - if((ConsensusEndPoint != null)) - { - tmp22.ConsensusEndPoint = (TEndPoint)this.ConsensusEndPoint.DeepCopy(); - } - return tmp22; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -147,7 +127,7 @@ public TConfigNodeLocation DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -161,24 +141,18 @@ public TConfigNodeLocation DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(ConfigNodeId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((InternalEndPoint != null)) - { - field.Name = "internalEndPoint"; - field.Type = TType.Struct; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await InternalEndPoint.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((ConsensusEndPoint != null)) - { - field.Name = "consensusEndPoint"; - field.Type = TType.Struct; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await ConsensusEndPoint.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "internalEndPoint"; + field.Type = TType.Struct; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await InternalEndPoint.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "consensusEndPoint"; + field.Type = TType.Struct; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await ConsensusEndPoint.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -190,7 +164,8 @@ public TConfigNodeLocation DeepCopy() public override bool Equals(object that) { - if (!(that is TConfigNodeLocation other)) return false; + var other = that as TConfigNodeLocation; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(ConfigNodeId, other.ConfigNodeId) && System.Object.Equals(InternalEndPoint, other.InternalEndPoint) @@ -201,14 +176,8 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + ConfigNodeId.GetHashCode(); - if((InternalEndPoint != null)) - { - hashcode = (hashcode * 397) + InternalEndPoint.GetHashCode(); - } - if((ConsensusEndPoint != null)) - { - hashcode = (hashcode * 397) + ConsensusEndPoint.GetHashCode(); - } + hashcode = (hashcode * 397) + InternalEndPoint.GetHashCode(); + hashcode = (hashcode * 397) + ConsensusEndPoint.GetHashCode(); } return hashcode; } @@ -217,18 +186,12 @@ public override string ToString() { var sb = new StringBuilder("TConfigNodeLocation("); sb.Append(", ConfigNodeId: "); - ConfigNodeId.ToString(sb); - if((InternalEndPoint != null)) - { - sb.Append(", InternalEndPoint: "); - InternalEndPoint.ToString(sb); - } - if((ConsensusEndPoint != null)) - { - sb.Append(", ConsensusEndPoint: "); - ConsensusEndPoint.ToString(sb); - } - sb.Append(')'); + sb.Append(ConfigNodeId); + sb.Append(", InternalEndPoint: "); + sb.Append(InternalEndPoint== null ? "" : InternalEndPoint.ToString()); + sb.Append(", ConsensusEndPoint: "); + sb.Append(ConsensusEndPoint== null ? "" : ConsensusEndPoint.ToString()); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupId.cs b/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupId.cs index 1fa2c11..921da49 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupId.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupId.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,16 +23,13 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TConsensusGroupId : TBase { /// /// - /// + /// /// public TConsensusGroupType Type { get; set; } @@ -50,15 +45,7 @@ public TConsensusGroupId(TConsensusGroupType type, int id) : this() this.Id = id; } - public TConsensusGroupId DeepCopy() - { - var tmp8 = new TConsensusGroupId(); - tmp8.Type = this.Type; - tmp8.Id = this.Id; - return tmp8; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -123,7 +110,7 @@ public TConsensusGroupId DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -154,7 +141,8 @@ public TConsensusGroupId DeepCopy() public override bool Equals(object that) { - if (!(that is TConsensusGroupId other)) return false; + var other = that as TConsensusGroupId; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Type, other.Type) && System.Object.Equals(Id, other.Id); @@ -173,10 +161,10 @@ public override string ToString() { var sb = new StringBuilder("TConsensusGroupId("); sb.Append(", Type: "); - Type.ToString(sb); + sb.Append(Type); sb.Append(", Id: "); - Id.ToString(sb); - sb.Append(')'); + sb.Append(Id); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupType.cs b/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupType.cs index ad1b2b7..19e5bc2 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupType.cs @@ -1,16 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public enum TConsensusGroupType { - ConfigNodeRegion = 0, + ConfigRegion = 0, DataRegion = 1, SchemaRegion = 2, } diff --git a/src/Apache.IoTDB/Rpc/Generated/TCreateTimeseriesUsingSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TCreateTimeseriesUsingSchemaTemplateReq.cs new file mode 100644 index 0000000..c817b2e --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TCreateTimeseriesUsingSchemaTemplateReq.cs @@ -0,0 +1,184 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TCreateTimeseriesUsingSchemaTemplateReq : TBase +{ + + public long SessionId { get; set; } + + public List DevicePathList { get; set; } + + public TCreateTimeseriesUsingSchemaTemplateReq() + { + } + + public TCreateTimeseriesUsingSchemaTemplateReq(long sessionId, List devicePathList) : this() + { + this.SessionId = sessionId; + this.DevicePathList = devicePathList; + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_sessionId = false; + bool isset_devicePathList = false; + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I64) + { + SessionId = await iprot.ReadI64Async(cancellationToken); + isset_sessionId = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.List) + { + { + TList _list351 = await iprot.ReadListBeginAsync(cancellationToken); + DevicePathList = new List(_list351.Count); + for(int _i352 = 0; _i352 < _list351.Count; ++_i352) + { + string _elem353; + _elem353 = await iprot.ReadStringAsync(cancellationToken); + DevicePathList.Add(_elem353); + } + await iprot.ReadListEndAsync(cancellationToken); + } + isset_devicePathList = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + if (!isset_sessionId) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_devicePathList) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TCreateTimeseriesUsingSchemaTemplateReq"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "sessionId"; + field.Type = TType.I64; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(SessionId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "devicePathList"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.String, DevicePathList.Count), cancellationToken); + foreach (string _iter354 in DevicePathList) + { + await oprot.WriteStringAsync(_iter354, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TCreateTimeseriesUsingSchemaTemplateReq; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return System.Object.Equals(SessionId, other.SessionId) + && TCollections.Equals(DevicePathList, other.DevicePathList); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + SessionId.GetHashCode(); + hashcode = (hashcode * 397) + TCollections.GetHashCode(DevicePathList); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TCreateTimeseriesUsingSchemaTemplateReq("); + sb.Append(", SessionId: "); + sb.Append(SessionId); + sb.Append(", DevicePathList: "); + sb.Append(DevicePathList); + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TDataNodeConfiguration.cs b/src/Apache.IoTDB/Rpc/Generated/TDataNodeConfiguration.cs index 66af75e..12d11d1 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TDataNodeConfiguration.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TDataNodeConfiguration.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TDataNodeConfiguration : TBase { @@ -46,21 +41,7 @@ public TDataNodeConfiguration(TDataNodeLocation location, TNodeResource resource this.Resource = resource; } - public TDataNodeConfiguration DeepCopy() - { - var tmp26 = new TDataNodeConfiguration(); - if((Location != null)) - { - tmp26.Location = (TDataNodeLocation)this.Location.DeepCopy(); - } - if((Resource != null)) - { - tmp26.Resource = (TNodeResource)this.Resource.DeepCopy(); - } - return tmp26; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -127,7 +108,7 @@ public TDataNodeConfiguration DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -135,24 +116,18 @@ public TDataNodeConfiguration DeepCopy() var struc = new TStruct("TDataNodeConfiguration"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((Location != null)) - { - field.Name = "location"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Location.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((Resource != null)) - { - field.Name = "resource"; - field.Type = TType.Struct; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Resource.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "location"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Location.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "resource"; + field.Type = TType.Struct; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Resource.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -164,7 +139,8 @@ public TDataNodeConfiguration DeepCopy() public override bool Equals(object that) { - if (!(that is TDataNodeConfiguration other)) return false; + var other = that as TDataNodeConfiguration; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Location, other.Location) && System.Object.Equals(Resource, other.Resource); @@ -173,14 +149,8 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((Location != null)) - { - hashcode = (hashcode * 397) + Location.GetHashCode(); - } - if((Resource != null)) - { - hashcode = (hashcode * 397) + Resource.GetHashCode(); - } + hashcode = (hashcode * 397) + Location.GetHashCode(); + hashcode = (hashcode * 397) + Resource.GetHashCode(); } return hashcode; } @@ -188,17 +158,11 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TDataNodeConfiguration("); - if((Location != null)) - { - sb.Append(", Location: "); - Location.ToString(sb); - } - if((Resource != null)) - { - sb.Append(", Resource: "); - Resource.ToString(sb); - } - sb.Append(')'); + sb.Append(", Location: "); + sb.Append(Location== null ? "" : Location.ToString()); + sb.Append(", Resource: "); + sb.Append(Resource== null ? "" : Resource.ToString()); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TDataNodeLocation.cs b/src/Apache.IoTDB/Rpc/Generated/TDataNodeLocation.cs index eb6c0b3..00e6e8f 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TDataNodeLocation.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TDataNodeLocation.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TDataNodeLocation : TBase { @@ -58,34 +53,7 @@ public TDataNodeLocation(int dataNodeId, TEndPoint clientRpcEndPoint, TEndPoint this.SchemaRegionConsensusEndPoint = schemaRegionConsensusEndPoint; } - public TDataNodeLocation DeepCopy() - { - var tmp24 = new TDataNodeLocation(); - tmp24.DataNodeId = this.DataNodeId; - if((ClientRpcEndPoint != null)) - { - tmp24.ClientRpcEndPoint = (TEndPoint)this.ClientRpcEndPoint.DeepCopy(); - } - if((InternalEndPoint != null)) - { - tmp24.InternalEndPoint = (TEndPoint)this.InternalEndPoint.DeepCopy(); - } - if((MPPDataExchangeEndPoint != null)) - { - tmp24.MPPDataExchangeEndPoint = (TEndPoint)this.MPPDataExchangeEndPoint.DeepCopy(); - } - if((DataRegionConsensusEndPoint != null)) - { - tmp24.DataRegionConsensusEndPoint = (TEndPoint)this.DataRegionConsensusEndPoint.DeepCopy(); - } - if((SchemaRegionConsensusEndPoint != null)) - { - tmp24.SchemaRegionConsensusEndPoint = (TEndPoint)this.SchemaRegionConsensusEndPoint.DeepCopy(); - } - return tmp24; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -219,7 +187,7 @@ public TDataNodeLocation DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -233,51 +201,36 @@ public TDataNodeLocation DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(DataNodeId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((ClientRpcEndPoint != null)) - { - field.Name = "clientRpcEndPoint"; - field.Type = TType.Struct; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await ClientRpcEndPoint.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((InternalEndPoint != null)) - { - field.Name = "internalEndPoint"; - field.Type = TType.Struct; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await InternalEndPoint.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((MPPDataExchangeEndPoint != null)) - { - field.Name = "mPPDataExchangeEndPoint"; - field.Type = TType.Struct; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await MPPDataExchangeEndPoint.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((DataRegionConsensusEndPoint != null)) - { - field.Name = "dataRegionConsensusEndPoint"; - field.Type = TType.Struct; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await DataRegionConsensusEndPoint.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((SchemaRegionConsensusEndPoint != null)) - { - field.Name = "schemaRegionConsensusEndPoint"; - field.Type = TType.Struct; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await SchemaRegionConsensusEndPoint.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "clientRpcEndPoint"; + field.Type = TType.Struct; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await ClientRpcEndPoint.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "internalEndPoint"; + field.Type = TType.Struct; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await InternalEndPoint.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "mPPDataExchangeEndPoint"; + field.Type = TType.Struct; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await MPPDataExchangeEndPoint.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "dataRegionConsensusEndPoint"; + field.Type = TType.Struct; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await DataRegionConsensusEndPoint.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "schemaRegionConsensusEndPoint"; + field.Type = TType.Struct; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await SchemaRegionConsensusEndPoint.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -289,7 +242,8 @@ public TDataNodeLocation DeepCopy() public override bool Equals(object that) { - if (!(that is TDataNodeLocation other)) return false; + var other = that as TDataNodeLocation; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(DataNodeId, other.DataNodeId) && System.Object.Equals(ClientRpcEndPoint, other.ClientRpcEndPoint) @@ -303,26 +257,11 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + DataNodeId.GetHashCode(); - if((ClientRpcEndPoint != null)) - { - hashcode = (hashcode * 397) + ClientRpcEndPoint.GetHashCode(); - } - if((InternalEndPoint != null)) - { - hashcode = (hashcode * 397) + InternalEndPoint.GetHashCode(); - } - if((MPPDataExchangeEndPoint != null)) - { - hashcode = (hashcode * 397) + MPPDataExchangeEndPoint.GetHashCode(); - } - if((DataRegionConsensusEndPoint != null)) - { - hashcode = (hashcode * 397) + DataRegionConsensusEndPoint.GetHashCode(); - } - if((SchemaRegionConsensusEndPoint != null)) - { - hashcode = (hashcode * 397) + SchemaRegionConsensusEndPoint.GetHashCode(); - } + hashcode = (hashcode * 397) + ClientRpcEndPoint.GetHashCode(); + hashcode = (hashcode * 397) + InternalEndPoint.GetHashCode(); + hashcode = (hashcode * 397) + MPPDataExchangeEndPoint.GetHashCode(); + hashcode = (hashcode * 397) + DataRegionConsensusEndPoint.GetHashCode(); + hashcode = (hashcode * 397) + SchemaRegionConsensusEndPoint.GetHashCode(); } return hashcode; } @@ -331,33 +270,18 @@ public override string ToString() { var sb = new StringBuilder("TDataNodeLocation("); sb.Append(", DataNodeId: "); - DataNodeId.ToString(sb); - if((ClientRpcEndPoint != null)) - { - sb.Append(", ClientRpcEndPoint: "); - ClientRpcEndPoint.ToString(sb); - } - if((InternalEndPoint != null)) - { - sb.Append(", InternalEndPoint: "); - InternalEndPoint.ToString(sb); - } - if((MPPDataExchangeEndPoint != null)) - { - sb.Append(", MPPDataExchangeEndPoint: "); - MPPDataExchangeEndPoint.ToString(sb); - } - if((DataRegionConsensusEndPoint != null)) - { - sb.Append(", DataRegionConsensusEndPoint: "); - DataRegionConsensusEndPoint.ToString(sb); - } - if((SchemaRegionConsensusEndPoint != null)) - { - sb.Append(", SchemaRegionConsensusEndPoint: "); - SchemaRegionConsensusEndPoint.ToString(sb); - } - sb.Append(')'); + sb.Append(DataNodeId); + sb.Append(", ClientRpcEndPoint: "); + sb.Append(ClientRpcEndPoint== null ? "" : ClientRpcEndPoint.ToString()); + sb.Append(", InternalEndPoint: "); + sb.Append(InternalEndPoint== null ? "" : InternalEndPoint.ToString()); + sb.Append(", MPPDataExchangeEndPoint: "); + sb.Append(MPPDataExchangeEndPoint== null ? "" : MPPDataExchangeEndPoint.ToString()); + sb.Append(", DataRegionConsensusEndPoint: "); + sb.Append(DataRegionConsensusEndPoint== null ? "" : DataRegionConsensusEndPoint.ToString()); + sb.Append(", SchemaRegionConsensusEndPoint: "); + sb.Append(SchemaRegionConsensusEndPoint== null ? "" : SchemaRegionConsensusEndPoint.ToString()); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TEndPoint.cs b/src/Apache.IoTDB/Rpc/Generated/TEndPoint.cs index 6388421..1b9641f 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TEndPoint.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TEndPoint.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TEndPoint : TBase { @@ -46,18 +41,7 @@ public TEndPoint(string ip, int port) : this() this.Port = port; } - public TEndPoint DeepCopy() - { - var tmp0 = new TEndPoint(); - if((Ip != null)) - { - tmp0.Ip = this.Ip; - } - tmp0.Port = this.Port; - return tmp0; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -122,7 +106,7 @@ public TEndPoint DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -130,15 +114,12 @@ public TEndPoint DeepCopy() var struc = new TStruct("TEndPoint"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((Ip != null)) - { - field.Name = "ip"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Ip, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "ip"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Ip, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "port"; field.Type = TType.I32; field.ID = 2; @@ -156,7 +137,8 @@ public TEndPoint DeepCopy() public override bool Equals(object that) { - if (!(that is TEndPoint other)) return false; + var other = that as TEndPoint; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Ip, other.Ip) && System.Object.Equals(Port, other.Port); @@ -165,10 +147,7 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((Ip != null)) - { - hashcode = (hashcode * 397) + Ip.GetHashCode(); - } + hashcode = (hashcode * 397) + Ip.GetHashCode(); hashcode = (hashcode * 397) + Port.GetHashCode(); } return hashcode; @@ -177,14 +156,11 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TEndPoint("); - if((Ip != null)) - { - sb.Append(", Ip: "); - Ip.ToString(sb); - } + sb.Append(", Ip: "); + sb.Append(Ip); sb.Append(", Port: "); - Port.ToString(sb); - sb.Append(')'); + sb.Append(Port); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TFile.cs b/src/Apache.IoTDB/Rpc/Generated/TFile.cs index 16bd754..d92a357 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TFile.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TFile.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TFile : TBase { @@ -46,21 +41,7 @@ public TFile(string fileName, byte[] file) : this() this.File = file; } - public TFile DeepCopy() - { - var tmp42 = new TFile(); - if((FileName != null)) - { - tmp42.FileName = this.FileName; - } - if((File != null)) - { - tmp42.File = this.File.ToArray(); - } - return tmp42; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -125,7 +106,7 @@ public TFile DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -133,24 +114,18 @@ public TFile DeepCopy() var struc = new TStruct("TFile"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((FileName != null)) - { - field.Name = "fileName"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(FileName, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((File != null)) - { - field.Name = "file"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteBinaryAsync(File, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "fileName"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(FileName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "file"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBinaryAsync(File, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -162,7 +137,8 @@ public TFile DeepCopy() public override bool Equals(object that) { - if (!(that is TFile other)) return false; + var other = that as TFile; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(FileName, other.FileName) && TCollections.Equals(File, other.File); @@ -171,14 +147,8 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((FileName != null)) - { - hashcode = (hashcode * 397) + FileName.GetHashCode(); - } - if((File != null)) - { - hashcode = (hashcode * 397) + File.GetHashCode(); - } + hashcode = (hashcode * 397) + FileName.GetHashCode(); + hashcode = (hashcode * 397) + File.GetHashCode(); } return hashcode; } @@ -186,17 +156,11 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TFile("); - if((FileName != null)) - { - sb.Append(", FileName: "); - FileName.ToString(sb); - } - if((File != null)) - { - sb.Append(", File: "); - File.ToString(sb); - } - sb.Append(')'); + sb.Append(", FileName: "); + sb.Append(FileName); + sb.Append(", File: "); + sb.Append(File); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs b/src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs index e669773..29188fc 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TFilesResp : TBase { @@ -46,21 +41,7 @@ public TFilesResp(TSStatus status, List files) : this() this.Files = files; } - public TFilesResp DeepCopy() - { - var tmp44 = new TFilesResp(); - if((Status != null)) - { - tmp44.Status = (TSStatus)this.Status.DeepCopy(); - } - if((Files != null)) - { - tmp44.Files = this.Files.DeepCopy(); - } - return tmp44; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -95,14 +76,14 @@ public TFilesResp DeepCopy() if (field.Type == TType.List) { { - TList _list45 = await iprot.ReadListBeginAsync(cancellationToken); - Files = new List(_list45.Count); - for(int _i46 = 0; _i46 < _list45.Count; ++_i46) + TList _list29 = await iprot.ReadListBeginAsync(cancellationToken); + Files = new List(_list29.Count); + for(int _i30 = 0; _i30 < _list29.Count; ++_i30) { - TFile _elem47; - _elem47 = new TFile(); - await _elem47.ReadAsync(iprot, cancellationToken); - Files.Add(_elem47); + TFile _elem31; + _elem31 = new TFile(); + await _elem31.ReadAsync(iprot, cancellationToken); + Files.Add(_elem31); } await iprot.ReadListEndAsync(cancellationToken); } @@ -137,7 +118,7 @@ public TFilesResp DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -145,31 +126,25 @@ public TFilesResp DeepCopy() var struc = new TStruct("TFilesResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((Status != null)) - { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((Files != null)) + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "files"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "files"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.Struct, Files.Count), cancellationToken); + foreach (TFile _iter32 in Files) { - await oprot.WriteListBeginAsync(new TList(TType.Struct, Files.Count), cancellationToken); - foreach (TFile _iter48 in Files) - { - await _iter48.WriteAsync(oprot, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await _iter32.WriteAsync(oprot, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -181,7 +156,8 @@ public TFilesResp DeepCopy() public override bool Equals(object that) { - if (!(that is TFilesResp other)) return false; + var other = that as TFilesResp; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && TCollections.Equals(Files, other.Files); @@ -190,14 +166,8 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((Status != null)) - { - hashcode = (hashcode * 397) + Status.GetHashCode(); - } - if((Files != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Files); - } + hashcode = (hashcode * 397) + Status.GetHashCode(); + hashcode = (hashcode * 397) + TCollections.GetHashCode(Files); } return hashcode; } @@ -205,17 +175,11 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TFilesResp("); - if((Status != null)) - { - sb.Append(", Status: "); - Status.ToString(sb); - } - if((Files != null)) - { - sb.Append(", Files: "); - Files.ToString(sb); - } - sb.Append(')'); + sb.Append(", Status: "); + sb.Append(Status== null ? "" : Status.ToString()); + sb.Append(", Files: "); + sb.Append(Files); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs b/src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs index 96969e8..b1e23e4 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TFlushReq : TBase { @@ -72,23 +67,7 @@ public TFlushReq() { } - public TFlushReq DeepCopy() - { - var tmp28 = new TFlushReq(); - if((IsSeq != null) && __isset.isSeq) - { - tmp28.IsSeq = this.IsSeq; - } - tmp28.__isset.isSeq = this.__isset.isSeq; - if((StorageGroups != null) && __isset.storageGroups) - { - tmp28.StorageGroups = this.StorageGroups.DeepCopy(); - } - tmp28.__isset.storageGroups = this.__isset.storageGroups; - return tmp28; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -119,13 +98,13 @@ public TFlushReq DeepCopy() if (field.Type == TType.List) { { - TList _list29 = await iprot.ReadListBeginAsync(cancellationToken); - StorageGroups = new List(_list29.Count); - for(int _i30 = 0; _i30 < _list29.Count; ++_i30) + TList _list8 = await iprot.ReadListBeginAsync(cancellationToken); + StorageGroups = new List(_list8.Count); + for(int _i9 = 0; _i9 < _list8.Count; ++_i9) { - string _elem31; - _elem31 = await iprot.ReadStringAsync(cancellationToken); - StorageGroups.Add(_elem31); + string _elem10; + _elem10 = await iprot.ReadStringAsync(cancellationToken); + StorageGroups.Add(_elem10); } await iprot.ReadListEndAsync(cancellationToken); } @@ -151,7 +130,7 @@ public TFlushReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -159,7 +138,7 @@ public TFlushReq DeepCopy() var struc = new TStruct("TFlushReq"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((IsSeq != null) && __isset.isSeq) + if (IsSeq != null && __isset.isSeq) { field.Name = "isSeq"; field.Type = TType.String; @@ -168,7 +147,7 @@ public TFlushReq DeepCopy() await oprot.WriteStringAsync(IsSeq, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if((StorageGroups != null) && __isset.storageGroups) + if (StorageGroups != null && __isset.storageGroups) { field.Name = "storageGroups"; field.Type = TType.List; @@ -176,9 +155,9 @@ public TFlushReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, StorageGroups.Count), cancellationToken); - foreach (string _iter32 in StorageGroups) + foreach (string _iter11 in StorageGroups) { - await oprot.WriteStringAsync(_iter32, cancellationToken); + await oprot.WriteStringAsync(_iter11, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -195,7 +174,8 @@ public TFlushReq DeepCopy() public override bool Equals(object that) { - if (!(that is TFlushReq other)) return false; + var other = that as TFlushReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.isSeq == other.__isset.isSeq) && ((!__isset.isSeq) || (System.Object.Equals(IsSeq, other.IsSeq)))) && ((__isset.storageGroups == other.__isset.storageGroups) && ((!__isset.storageGroups) || (TCollections.Equals(StorageGroups, other.StorageGroups)))); @@ -204,14 +184,10 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((IsSeq != null) && __isset.isSeq) - { + if(__isset.isSeq) hashcode = (hashcode * 397) + IsSeq.GetHashCode(); - } - if((StorageGroups != null) && __isset.storageGroups) - { + if(__isset.storageGroups) hashcode = (hashcode * 397) + TCollections.GetHashCode(StorageGroups); - } } return hashcode; } @@ -219,20 +195,22 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TFlushReq("); - int tmp33 = 0; - if((IsSeq != null) && __isset.isSeq) + bool __first = true; + if (IsSeq != null && __isset.isSeq) { - if(0 < tmp33++) { sb.Append(", "); } + if(!__first) { sb.Append(", "); } + __first = false; sb.Append("IsSeq: "); - IsSeq.ToString(sb); + sb.Append(IsSeq); } - if((StorageGroups != null) && __isset.storageGroups) + if (StorageGroups != null && __isset.storageGroups) { - if(0 < tmp33++) { sb.Append(", "); } + if(!__first) { sb.Append(", "); } + __first = false; sb.Append("StorageGroups: "); - StorageGroups.ToString(sb); + sb.Append(StorageGroups); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TLicense.cs b/src/Apache.IoTDB/Rpc/Generated/TLicense.cs new file mode 100644 index 0000000..38e9d80 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TLicense.cs @@ -0,0 +1,341 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TLicense : TBase +{ + + public long LicenseIssueTimestamp { get; set; } + + public long ExpireTimestamp { get; set; } + + public short DataNodeNumLimit { get; set; } + + public int CpuCoreNumLimit { get; set; } + + public long DeviceNumLimit { get; set; } + + public long SensorNumLimit { get; set; } + + public long DisconnectionFromActiveNodeTimeLimit { get; set; } + + public short MlNodeNumLimit { get; set; } + + public TLicense() + { + } + + public TLicense(long licenseIssueTimestamp, long expireTimestamp, short dataNodeNumLimit, int cpuCoreNumLimit, long deviceNumLimit, long sensorNumLimit, long disconnectionFromActiveNodeTimeLimit, short mlNodeNumLimit) : this() + { + this.LicenseIssueTimestamp = licenseIssueTimestamp; + this.ExpireTimestamp = expireTimestamp; + this.DataNodeNumLimit = dataNodeNumLimit; + this.CpuCoreNumLimit = cpuCoreNumLimit; + this.DeviceNumLimit = deviceNumLimit; + this.SensorNumLimit = sensorNumLimit; + this.DisconnectionFromActiveNodeTimeLimit = disconnectionFromActiveNodeTimeLimit; + this.MlNodeNumLimit = mlNodeNumLimit; + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_licenseIssueTimestamp = false; + bool isset_expireTimestamp = false; + bool isset_dataNodeNumLimit = false; + bool isset_cpuCoreNumLimit = false; + bool isset_deviceNumLimit = false; + bool isset_sensorNumLimit = false; + bool isset_disconnectionFromActiveNodeTimeLimit = false; + bool isset_mlNodeNumLimit = false; + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I64) + { + LicenseIssueTimestamp = await iprot.ReadI64Async(cancellationToken); + isset_licenseIssueTimestamp = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I64) + { + ExpireTimestamp = await iprot.ReadI64Async(cancellationToken); + isset_expireTimestamp = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I16) + { + DataNodeNumLimit = await iprot.ReadI16Async(cancellationToken); + isset_dataNodeNumLimit = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.I32) + { + CpuCoreNumLimit = await iprot.ReadI32Async(cancellationToken); + isset_cpuCoreNumLimit = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.I64) + { + DeviceNumLimit = await iprot.ReadI64Async(cancellationToken); + isset_deviceNumLimit = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.I64) + { + SensorNumLimit = await iprot.ReadI64Async(cancellationToken); + isset_sensorNumLimit = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.I64) + { + DisconnectionFromActiveNodeTimeLimit = await iprot.ReadI64Async(cancellationToken); + isset_disconnectionFromActiveNodeTimeLimit = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 9: + if (field.Type == TType.I16) + { + MlNodeNumLimit = await iprot.ReadI16Async(cancellationToken); + isset_mlNodeNumLimit = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + if (!isset_licenseIssueTimestamp) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_expireTimestamp) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_dataNodeNumLimit) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_cpuCoreNumLimit) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_deviceNumLimit) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_sensorNumLimit) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_disconnectionFromActiveNodeTimeLimit) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_mlNodeNumLimit) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TLicense"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "licenseIssueTimestamp"; + field.Type = TType.I64; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(LicenseIssueTimestamp, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "expireTimestamp"; + field.Type = TType.I64; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(ExpireTimestamp, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "dataNodeNumLimit"; + field.Type = TType.I16; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI16Async(DataNodeNumLimit, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "cpuCoreNumLimit"; + field.Type = TType.I32; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI32Async(CpuCoreNumLimit, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "deviceNumLimit"; + field.Type = TType.I64; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(DeviceNumLimit, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "sensorNumLimit"; + field.Type = TType.I64; + field.ID = 7; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(SensorNumLimit, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "disconnectionFromActiveNodeTimeLimit"; + field.Type = TType.I64; + field.ID = 8; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(DisconnectionFromActiveNodeTimeLimit, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "mlNodeNumLimit"; + field.Type = TType.I16; + field.ID = 9; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI16Async(MlNodeNumLimit, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TLicense; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return System.Object.Equals(LicenseIssueTimestamp, other.LicenseIssueTimestamp) + && System.Object.Equals(ExpireTimestamp, other.ExpireTimestamp) + && System.Object.Equals(DataNodeNumLimit, other.DataNodeNumLimit) + && System.Object.Equals(CpuCoreNumLimit, other.CpuCoreNumLimit) + && System.Object.Equals(DeviceNumLimit, other.DeviceNumLimit) + && System.Object.Equals(SensorNumLimit, other.SensorNumLimit) + && System.Object.Equals(DisconnectionFromActiveNodeTimeLimit, other.DisconnectionFromActiveNodeTimeLimit) + && System.Object.Equals(MlNodeNumLimit, other.MlNodeNumLimit); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + LicenseIssueTimestamp.GetHashCode(); + hashcode = (hashcode * 397) + ExpireTimestamp.GetHashCode(); + hashcode = (hashcode * 397) + DataNodeNumLimit.GetHashCode(); + hashcode = (hashcode * 397) + CpuCoreNumLimit.GetHashCode(); + hashcode = (hashcode * 397) + DeviceNumLimit.GetHashCode(); + hashcode = (hashcode * 397) + SensorNumLimit.GetHashCode(); + hashcode = (hashcode * 397) + DisconnectionFromActiveNodeTimeLimit.GetHashCode(); + hashcode = (hashcode * 397) + MlNodeNumLimit.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TLicense("); + sb.Append(", LicenseIssueTimestamp: "); + sb.Append(LicenseIssueTimestamp); + sb.Append(", ExpireTimestamp: "); + sb.Append(ExpireTimestamp); + sb.Append(", DataNodeNumLimit: "); + sb.Append(DataNodeNumLimit); + sb.Append(", CpuCoreNumLimit: "); + sb.Append(CpuCoreNumLimit); + sb.Append(", DeviceNumLimit: "); + sb.Append(DeviceNumLimit); + sb.Append(", SensorNumLimit: "); + sb.Append(SensorNumLimit); + sb.Append(", DisconnectionFromActiveNodeTimeLimit: "); + sb.Append(DisconnectionFromActiveNodeTimeLimit); + sb.Append(", MlNodeNumLimit: "); + sb.Append(MlNodeNumLimit); + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TNodeLocations.cs b/src/Apache.IoTDB/Rpc/Generated/TNodeLocations.cs new file mode 100644 index 0000000..339e7fa --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TNodeLocations.cs @@ -0,0 +1,236 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TNodeLocations : TBase +{ + private List _configNodeLocations; + private List _dataNodeLocations; + + public List ConfigNodeLocations + { + get + { + return _configNodeLocations; + } + set + { + __isset.configNodeLocations = true; + this._configNodeLocations = value; + } + } + + public List DataNodeLocations + { + get + { + return _dataNodeLocations; + } + set + { + __isset.dataNodeLocations = true; + this._dataNodeLocations = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool configNodeLocations; + public bool dataNodeLocations; + } + + public TNodeLocations() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.List) + { + { + TList _list46 = await iprot.ReadListBeginAsync(cancellationToken); + ConfigNodeLocations = new List(_list46.Count); + for(int _i47 = 0; _i47 < _list46.Count; ++_i47) + { + TConfigNodeLocation _elem48; + _elem48 = new TConfigNodeLocation(); + await _elem48.ReadAsync(iprot, cancellationToken); + ConfigNodeLocations.Add(_elem48); + } + await iprot.ReadListEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.List) + { + { + TList _list49 = await iprot.ReadListBeginAsync(cancellationToken); + DataNodeLocations = new List(_list49.Count); + for(int _i50 = 0; _i50 < _list49.Count; ++_i50) + { + TDataNodeLocation _elem51; + _elem51 = new TDataNodeLocation(); + await _elem51.ReadAsync(iprot, cancellationToken); + DataNodeLocations.Add(_elem51); + } + await iprot.ReadListEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TNodeLocations"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (ConfigNodeLocations != null && __isset.configNodeLocations) + { + field.Name = "configNodeLocations"; + field.Type = TType.List; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.Struct, ConfigNodeLocations.Count), cancellationToken); + foreach (TConfigNodeLocation _iter52 in ConfigNodeLocations) + { + await _iter52.WriteAsync(oprot, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (DataNodeLocations != null && __isset.dataNodeLocations) + { + field.Name = "dataNodeLocations"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.Struct, DataNodeLocations.Count), cancellationToken); + foreach (TDataNodeLocation _iter53 in DataNodeLocations) + { + await _iter53.WriteAsync(oprot, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TNodeLocations; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.configNodeLocations == other.__isset.configNodeLocations) && ((!__isset.configNodeLocations) || (TCollections.Equals(ConfigNodeLocations, other.ConfigNodeLocations)))) + && ((__isset.dataNodeLocations == other.__isset.dataNodeLocations) && ((!__isset.dataNodeLocations) || (TCollections.Equals(DataNodeLocations, other.DataNodeLocations)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.configNodeLocations) + hashcode = (hashcode * 397) + TCollections.GetHashCode(ConfigNodeLocations); + if(__isset.dataNodeLocations) + hashcode = (hashcode * 397) + TCollections.GetHashCode(DataNodeLocations); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TNodeLocations("); + bool __first = true; + if (ConfigNodeLocations != null && __isset.configNodeLocations) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("ConfigNodeLocations: "); + sb.Append(ConfigNodeLocations); + } + if (DataNodeLocations != null && __isset.dataNodeLocations) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("DataNodeLocations: "); + sb.Append(DataNodeLocations); + } + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TNodeResource.cs b/src/Apache.IoTDB/Rpc/Generated/TNodeResource.cs index e42dc58..76f8295 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TNodeResource.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TNodeResource.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TNodeResource : TBase { @@ -46,15 +41,7 @@ public TNodeResource(int cpuCoreNum, long maxMemory) : this() this.MaxMemory = maxMemory; } - public TNodeResource DeepCopy() - { - var tmp20 = new TNodeResource(); - tmp20.CpuCoreNum = this.CpuCoreNum; - tmp20.MaxMemory = this.MaxMemory; - return tmp20; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -119,7 +106,7 @@ public TNodeResource DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -150,7 +137,8 @@ public TNodeResource DeepCopy() public override bool Equals(object that) { - if (!(that is TNodeResource other)) return false; + var other = that as TNodeResource; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(CpuCoreNum, other.CpuCoreNum) && System.Object.Equals(MaxMemory, other.MaxMemory); @@ -169,10 +157,10 @@ public override string ToString() { var sb = new StringBuilder("TNodeResource("); sb.Append(", CpuCoreNum: "); - CpuCoreNum.ToString(sb); + sb.Append(CpuCoreNum); sb.Append(", MaxMemory: "); - MaxMemory.ToString(sb); - sb.Append(')'); + sb.Append(MaxMemory); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeReq.cs b/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeReq.cs new file mode 100644 index 0000000..aec3ce7 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeReq.cs @@ -0,0 +1,215 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TPipeSubscribeReq : TBase +{ + private byte[] _body; + + public sbyte Version { get; set; } + + public short Type { get; set; } + + public byte[] Body + { + get + { + return _body; + } + set + { + __isset.body = true; + this._body = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool body; + } + + public TPipeSubscribeReq() + { + } + + public TPipeSubscribeReq(sbyte version, short type) : this() + { + this.Version = version; + this.Type = type; + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_version = false; + bool isset_type = false; + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Byte) + { + Version = await iprot.ReadByteAsync(cancellationToken); + isset_version = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I16) + { + Type = await iprot.ReadI16Async(cancellationToken); + isset_type = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Body = await iprot.ReadBinaryAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + if (!isset_version) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_type) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TPipeSubscribeReq"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "version"; + field.Type = TType.Byte; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteByteAsync(Version, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "type"; + field.Type = TType.I16; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI16Async(Type, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + if (Body != null && __isset.body) + { + field.Name = "body"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBinaryAsync(Body, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TPipeSubscribeReq; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return System.Object.Equals(Version, other.Version) + && System.Object.Equals(Type, other.Type) + && ((__isset.body == other.__isset.body) && ((!__isset.body) || (TCollections.Equals(Body, other.Body)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + Version.GetHashCode(); + hashcode = (hashcode * 397) + Type.GetHashCode(); + if(__isset.body) + hashcode = (hashcode * 397) + Body.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TPipeSubscribeReq("); + sb.Append(", Version: "); + sb.Append(Version); + sb.Append(", Type: "); + sb.Append(Type); + if (Body != null && __isset.body) + { + sb.Append(", Body: "); + sb.Append(Body); + } + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeResp.cs b/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeResp.cs new file mode 100644 index 0000000..7e91270 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeResp.cs @@ -0,0 +1,262 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TPipeSubscribeResp : TBase +{ + private List _body; + + public TSStatus Status { get; set; } + + public sbyte Version { get; set; } + + public short Type { get; set; } + + public List Body + { + get + { + return _body; + } + set + { + __isset.body = true; + this._body = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool body; + } + + public TPipeSubscribeResp() + { + } + + public TPipeSubscribeResp(TSStatus status, sbyte version, short type) : this() + { + this.Status = status; + this.Version = version; + this.Type = type; + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_status = false; + bool isset_version = false; + bool isset_type = false; + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Status = new TSStatus(); + await Status.ReadAsync(iprot, cancellationToken); + isset_status = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.Byte) + { + Version = await iprot.ReadByteAsync(cancellationToken); + isset_version = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I16) + { + Type = await iprot.ReadI16Async(cancellationToken); + isset_type = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.List) + { + { + TList _list355 = await iprot.ReadListBeginAsync(cancellationToken); + Body = new List(_list355.Count); + for(int _i356 = 0; _i356 < _list355.Count; ++_i356) + { + byte[] _elem357; + _elem357 = await iprot.ReadBinaryAsync(cancellationToken); + Body.Add(_elem357); + } + await iprot.ReadListEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + if (!isset_status) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_version) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_type) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TPipeSubscribeResp"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "version"; + field.Type = TType.Byte; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteByteAsync(Version, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "type"; + field.Type = TType.I16; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI16Async(Type, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + if (Body != null && __isset.body) + { + field.Name = "body"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.String, Body.Count), cancellationToken); + foreach (byte[] _iter358 in Body) + { + await oprot.WriteBinaryAsync(_iter358, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TPipeSubscribeResp; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return System.Object.Equals(Status, other.Status) + && System.Object.Equals(Version, other.Version) + && System.Object.Equals(Type, other.Type) + && ((__isset.body == other.__isset.body) && ((!__isset.body) || (TCollections.Equals(Body, other.Body)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + Status.GetHashCode(); + hashcode = (hashcode * 397) + Version.GetHashCode(); + hashcode = (hashcode * 397) + Type.GetHashCode(); + if(__isset.body) + hashcode = (hashcode * 397) + TCollections.GetHashCode(Body); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TPipeSubscribeResp("); + sb.Append(", Status: "); + sb.Append(Status== null ? "" : Status.ToString()); + sb.Append(", Version: "); + sb.Append(Version); + sb.Append(", Type: "); + sb.Append(Type); + if (Body != null && __isset.body) + { + sb.Append(", Body: "); + sb.Append(Body); + } + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TPipeTransferReq.cs b/src/Apache.IoTDB/Rpc/Generated/TPipeTransferReq.cs new file mode 100644 index 0000000..790f77f --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TPipeTransferReq.cs @@ -0,0 +1,196 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TPipeTransferReq : TBase +{ + + public sbyte Version { get; set; } + + public short Type { get; set; } + + public byte[] Body { get; set; } + + public TPipeTransferReq() + { + } + + public TPipeTransferReq(sbyte version, short type, byte[] body) : this() + { + this.Version = version; + this.Type = type; + this.Body = body; + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_version = false; + bool isset_type = false; + bool isset_body = false; + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Byte) + { + Version = await iprot.ReadByteAsync(cancellationToken); + isset_version = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I16) + { + Type = await iprot.ReadI16Async(cancellationToken); + isset_type = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Body = await iprot.ReadBinaryAsync(cancellationToken); + isset_body = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + if (!isset_version) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_type) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_body) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TPipeTransferReq"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "version"; + field.Type = TType.Byte; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteByteAsync(Version, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "type"; + field.Type = TType.I16; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI16Async(Type, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "body"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBinaryAsync(Body, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TPipeTransferReq; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return System.Object.Equals(Version, other.Version) + && System.Object.Equals(Type, other.Type) + && TCollections.Equals(Body, other.Body); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + Version.GetHashCode(); + hashcode = (hashcode * 397) + Type.GetHashCode(); + hashcode = (hashcode * 397) + Body.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TPipeTransferReq("); + sb.Append(", Version: "); + sb.Append(Version); + sb.Append(", Type: "); + sb.Append(Type); + sb.Append(", Body: "); + sb.Append(Body); + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TPipeTransferResp.cs b/src/Apache.IoTDB/Rpc/Generated/TPipeTransferResp.cs new file mode 100644 index 0000000..71c3eea --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TPipeTransferResp.cs @@ -0,0 +1,187 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TPipeTransferResp : TBase +{ + private byte[] _body; + + public TSStatus Status { get; set; } + + public byte[] Body + { + get + { + return _body; + } + set + { + __isset.body = true; + this._body = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool body; + } + + public TPipeTransferResp() + { + } + + public TPipeTransferResp(TSStatus status) : this() + { + this.Status = status; + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_status = false; + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Status = new TSStatus(); + await Status.ReadAsync(iprot, cancellationToken); + isset_status = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Body = await iprot.ReadBinaryAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + if (!isset_status) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TPipeTransferResp"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + if (Body != null && __isset.body) + { + field.Name = "body"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBinaryAsync(Body, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TPipeTransferResp; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return System.Object.Equals(Status, other.Status) + && ((__isset.body == other.__isset.body) && ((!__isset.body) || (TCollections.Equals(Body, other.Body)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + Status.GetHashCode(); + if(__isset.body) + hashcode = (hashcode * 397) + Body.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TPipeTransferResp("); + sb.Append(", Status: "); + sb.Append(Status== null ? "" : Status.ToString()); + if (Body != null && __isset.body) + { + sb.Append(", Body: "); + sb.Append(Body); + } + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TRegionMaintainTaskStatus.cs b/src/Apache.IoTDB/Rpc/Generated/TRegionMaintainTaskStatus.cs new file mode 100644 index 0000000..8263953 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TRegionMaintainTaskStatus.cs @@ -0,0 +1,14 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ + +public enum TRegionMaintainTaskStatus +{ + TASK_NOT_EXIST = 0, + PROCESSING = 1, + SUCCESS = 2, + FAIL = 3, +} diff --git a/src/Apache.IoTDB/Rpc/Generated/TRegionMigrateFailedType.cs b/src/Apache.IoTDB/Rpc/Generated/TRegionMigrateFailedType.cs index f073d83..f515482 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TRegionMigrateFailedType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TRegionMigrateFailedType.cs @@ -1,13 +1,10 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public enum TRegionMigrateFailedType { AddPeerFailed = 0, @@ -15,4 +12,5 @@ public enum TRegionMigrateFailedType RemoveConsensusGroupFailed = 2, DeleteRegionFailed = 3, CreateRegionFailed = 4, + Disconnect = 5, } diff --git a/src/Apache.IoTDB/Rpc/Generated/TRegionReplicaSet.cs b/src/Apache.IoTDB/Rpc/Generated/TRegionReplicaSet.cs index 00eb286..5c7a607 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TRegionReplicaSet.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TRegionReplicaSet.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TRegionReplicaSet : TBase { @@ -46,21 +41,7 @@ public TRegionReplicaSet(TConsensusGroupId regionId, List dat this.DataNodeLocations = dataNodeLocations; } - public TRegionReplicaSet DeepCopy() - { - var tmp14 = new TRegionReplicaSet(); - if((RegionId != null)) - { - tmp14.RegionId = (TConsensusGroupId)this.RegionId.DeepCopy(); - } - if((DataNodeLocations != null)) - { - tmp14.DataNodeLocations = this.DataNodeLocations.DeepCopy(); - } - return tmp14; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -95,14 +76,14 @@ public TRegionReplicaSet DeepCopy() if (field.Type == TType.List) { { - TList _list15 = await iprot.ReadListBeginAsync(cancellationToken); - DataNodeLocations = new List(_list15.Count); - for(int _i16 = 0; _i16 < _list15.Count; ++_i16) + TList _list4 = await iprot.ReadListBeginAsync(cancellationToken); + DataNodeLocations = new List(_list4.Count); + for(int _i5 = 0; _i5 < _list4.Count; ++_i5) { - TDataNodeLocation _elem17; - _elem17 = new TDataNodeLocation(); - await _elem17.ReadAsync(iprot, cancellationToken); - DataNodeLocations.Add(_elem17); + TDataNodeLocation _elem6; + _elem6 = new TDataNodeLocation(); + await _elem6.ReadAsync(iprot, cancellationToken); + DataNodeLocations.Add(_elem6); } await iprot.ReadListEndAsync(cancellationToken); } @@ -137,7 +118,7 @@ public TRegionReplicaSet DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -145,31 +126,25 @@ public TRegionReplicaSet DeepCopy() var struc = new TStruct("TRegionReplicaSet"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((RegionId != null)) - { - field.Name = "regionId"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await RegionId.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((DataNodeLocations != null)) + field.Name = "regionId"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await RegionId.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "dataNodeLocations"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "dataNodeLocations"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.Struct, DataNodeLocations.Count), cancellationToken); + foreach (TDataNodeLocation _iter7 in DataNodeLocations) { - await oprot.WriteListBeginAsync(new TList(TType.Struct, DataNodeLocations.Count), cancellationToken); - foreach (TDataNodeLocation _iter18 in DataNodeLocations) - { - await _iter18.WriteAsync(oprot, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await _iter7.WriteAsync(oprot, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -181,7 +156,8 @@ public TRegionReplicaSet DeepCopy() public override bool Equals(object that) { - if (!(that is TRegionReplicaSet other)) return false; + var other = that as TRegionReplicaSet; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(RegionId, other.RegionId) && TCollections.Equals(DataNodeLocations, other.DataNodeLocations); @@ -190,14 +166,8 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((RegionId != null)) - { - hashcode = (hashcode * 397) + RegionId.GetHashCode(); - } - if((DataNodeLocations != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(DataNodeLocations); - } + hashcode = (hashcode * 397) + RegionId.GetHashCode(); + hashcode = (hashcode * 397) + TCollections.GetHashCode(DataNodeLocations); } return hashcode; } @@ -205,17 +175,11 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TRegionReplicaSet("); - if((RegionId != null)) - { - sb.Append(", RegionId: "); - RegionId.ToString(sb); - } - if((DataNodeLocations != null)) - { - sb.Append(", DataNodeLocations: "); - DataNodeLocations.ToString(sb); - } - sb.Append(')'); + sb.Append(", RegionId: "); + sb.Append(RegionId== null ? "" : RegionId.ToString()); + sb.Append(", DataNodeLocations: "); + sb.Append(DataNodeLocations); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSAggregationQueryReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSAggregationQueryReq.cs new file mode 100644 index 0000000..6b6f0ab --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TSAggregationQueryReq.cs @@ -0,0 +1,559 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TSAggregationQueryReq : TBase +{ + private long _startTime; + private long _endTime; + private long _interval; + private long _slidingStep; + private int _fetchSize; + private long _timeout; + private bool _legalPathNodes; + + public long SessionId { get; set; } + + public long StatementId { get; set; } + + public List Paths { get; set; } + + public List Aggregations { get; set; } + + public long StartTime + { + get + { + return _startTime; + } + set + { + __isset.startTime = true; + this._startTime = value; + } + } + + public long EndTime + { + get + { + return _endTime; + } + set + { + __isset.endTime = true; + this._endTime = value; + } + } + + public long Interval + { + get + { + return _interval; + } + set + { + __isset.interval = true; + this._interval = value; + } + } + + public long SlidingStep + { + get + { + return _slidingStep; + } + set + { + __isset.slidingStep = true; + this._slidingStep = value; + } + } + + public int FetchSize + { + get + { + return _fetchSize; + } + set + { + __isset.fetchSize = true; + this._fetchSize = value; + } + } + + public long Timeout + { + get + { + return _timeout; + } + set + { + __isset.timeout = true; + this._timeout = value; + } + } + + public bool LegalPathNodes + { + get + { + return _legalPathNodes; + } + set + { + __isset.legalPathNodes = true; + this._legalPathNodes = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool startTime; + public bool endTime; + public bool interval; + public bool slidingStep; + public bool fetchSize; + public bool timeout; + public bool legalPathNodes; + } + + public TSAggregationQueryReq() + { + } + + public TSAggregationQueryReq(long sessionId, long statementId, List paths, List aggregations) : this() + { + this.SessionId = sessionId; + this.StatementId = statementId; + this.Paths = paths; + this.Aggregations = aggregations; + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_sessionId = false; + bool isset_statementId = false; + bool isset_paths = false; + bool isset_aggregations = false; + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I64) + { + SessionId = await iprot.ReadI64Async(cancellationToken); + isset_sessionId = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I64) + { + StatementId = await iprot.ReadI64Async(cancellationToken); + isset_statementId = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.List) + { + { + TList _list272 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list272.Count); + for(int _i273 = 0; _i273 < _list272.Count; ++_i273) + { + string _elem274; + _elem274 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem274); + } + await iprot.ReadListEndAsync(cancellationToken); + } + isset_paths = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.List) + { + { + TList _list275 = await iprot.ReadListBeginAsync(cancellationToken); + Aggregations = new List(_list275.Count); + for(int _i276 = 0; _i276 < _list275.Count; ++_i276) + { + TAggregationType _elem277; + _elem277 = (TAggregationType)await iprot.ReadI32Async(cancellationToken); + Aggregations.Add(_elem277); + } + await iprot.ReadListEndAsync(cancellationToken); + } + isset_aggregations = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.I64) + { + StartTime = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.I64) + { + EndTime = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.I64) + { + Interval = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.I64) + { + SlidingStep = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 9: + if (field.Type == TType.I32) + { + FetchSize = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 10: + if (field.Type == TType.I64) + { + Timeout = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 11: + if (field.Type == TType.Bool) + { + LegalPathNodes = await iprot.ReadBoolAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + if (!isset_sessionId) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_statementId) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_paths) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_aggregations) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TSAggregationQueryReq"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "sessionId"; + field.Type = TType.I64; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(SessionId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "statementId"; + field.Type = TType.I64; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(StatementId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "paths"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); + foreach (string _iter278 in Paths) + { + await oprot.WriteStringAsync(_iter278, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "aggregations"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.I32, Aggregations.Count), cancellationToken); + foreach (TAggregationType _iter279 in Aggregations) + { + await oprot.WriteI32Async((int)_iter279, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + if (__isset.startTime) + { + field.Name = "startTime"; + field.Type = TType.I64; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(StartTime, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (__isset.endTime) + { + field.Name = "endTime"; + field.Type = TType.I64; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(EndTime, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (__isset.interval) + { + field.Name = "interval"; + field.Type = TType.I64; + field.ID = 7; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(Interval, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (__isset.slidingStep) + { + field.Name = "slidingStep"; + field.Type = TType.I64; + field.ID = 8; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(SlidingStep, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (__isset.fetchSize) + { + field.Name = "fetchSize"; + field.Type = TType.I32; + field.ID = 9; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI32Async(FetchSize, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (__isset.timeout) + { + field.Name = "timeout"; + field.Type = TType.I64; + field.ID = 10; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(Timeout, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (__isset.legalPathNodes) + { + field.Name = "legalPathNodes"; + field.Type = TType.Bool; + field.ID = 11; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBoolAsync(LegalPathNodes, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TSAggregationQueryReq; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return System.Object.Equals(SessionId, other.SessionId) + && System.Object.Equals(StatementId, other.StatementId) + && TCollections.Equals(Paths, other.Paths) + && TCollections.Equals(Aggregations, other.Aggregations) + && ((__isset.startTime == other.__isset.startTime) && ((!__isset.startTime) || (System.Object.Equals(StartTime, other.StartTime)))) + && ((__isset.endTime == other.__isset.endTime) && ((!__isset.endTime) || (System.Object.Equals(EndTime, other.EndTime)))) + && ((__isset.interval == other.__isset.interval) && ((!__isset.interval) || (System.Object.Equals(Interval, other.Interval)))) + && ((__isset.slidingStep == other.__isset.slidingStep) && ((!__isset.slidingStep) || (System.Object.Equals(SlidingStep, other.SlidingStep)))) + && ((__isset.fetchSize == other.__isset.fetchSize) && ((!__isset.fetchSize) || (System.Object.Equals(FetchSize, other.FetchSize)))) + && ((__isset.timeout == other.__isset.timeout) && ((!__isset.timeout) || (System.Object.Equals(Timeout, other.Timeout)))) + && ((__isset.legalPathNodes == other.__isset.legalPathNodes) && ((!__isset.legalPathNodes) || (System.Object.Equals(LegalPathNodes, other.LegalPathNodes)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + SessionId.GetHashCode(); + hashcode = (hashcode * 397) + StatementId.GetHashCode(); + hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); + hashcode = (hashcode * 397) + TCollections.GetHashCode(Aggregations); + if(__isset.startTime) + hashcode = (hashcode * 397) + StartTime.GetHashCode(); + if(__isset.endTime) + hashcode = (hashcode * 397) + EndTime.GetHashCode(); + if(__isset.interval) + hashcode = (hashcode * 397) + Interval.GetHashCode(); + if(__isset.slidingStep) + hashcode = (hashcode * 397) + SlidingStep.GetHashCode(); + if(__isset.fetchSize) + hashcode = (hashcode * 397) + FetchSize.GetHashCode(); + if(__isset.timeout) + hashcode = (hashcode * 397) + Timeout.GetHashCode(); + if(__isset.legalPathNodes) + hashcode = (hashcode * 397) + LegalPathNodes.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TSAggregationQueryReq("); + sb.Append(", SessionId: "); + sb.Append(SessionId); + sb.Append(", StatementId: "); + sb.Append(StatementId); + sb.Append(", Paths: "); + sb.Append(Paths); + sb.Append(", Aggregations: "); + sb.Append(Aggregations); + if (__isset.startTime) + { + sb.Append(", StartTime: "); + sb.Append(StartTime); + } + if (__isset.endTime) + { + sb.Append(", EndTime: "); + sb.Append(EndTime); + } + if (__isset.interval) + { + sb.Append(", Interval: "); + sb.Append(Interval); + } + if (__isset.slidingStep) + { + sb.Append(", SlidingStep: "); + sb.Append(SlidingStep); + } + if (__isset.fetchSize) + { + sb.Append(", FetchSize: "); + sb.Append(FetchSize); + } + if (__isset.timeout) + { + sb.Append(", Timeout: "); + sb.Append(Timeout); + } + if (__isset.legalPathNodes) + { + sb.Append(", LegalPathNodes: "); + sb.Append(LegalPathNodes); + } + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TSAppendSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSAppendSchemaTemplateReq.cs index ed9994e..5da619f 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSAppendSchemaTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSAppendSchemaTemplateReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSAppendSchemaTemplateReq : TBase { @@ -61,35 +56,7 @@ public TSAppendSchemaTemplateReq(long sessionId, string name, bool isAligned, Li this.Compressors = compressors; } - public TSAppendSchemaTemplateReq DeepCopy() - { - var tmp389 = new TSAppendSchemaTemplateReq(); - tmp389.SessionId = this.SessionId; - if((Name != null)) - { - tmp389.Name = this.Name; - } - tmp389.IsAligned = this.IsAligned; - if((Measurements != null)) - { - tmp389.Measurements = this.Measurements.DeepCopy(); - } - if((DataTypes != null)) - { - tmp389.DataTypes = this.DataTypes.DeepCopy(); - } - if((Encodings != null)) - { - tmp389.Encodings = this.Encodings.DeepCopy(); - } - if((Compressors != null)) - { - tmp389.Compressors = this.Compressors.DeepCopy(); - } - return tmp389; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -150,13 +117,13 @@ public TSAppendSchemaTemplateReq DeepCopy() if (field.Type == TType.List) { { - TList _list390 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list390.Count); - for(int _i391 = 0; _i391 < _list390.Count; ++_i391) + TList _list331 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list331.Count); + for(int _i332 = 0; _i332 < _list331.Count; ++_i332) { - string _elem392; - _elem392 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem392); + string _elem333; + _elem333 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem333); } await iprot.ReadListEndAsync(cancellationToken); } @@ -171,13 +138,13 @@ public TSAppendSchemaTemplateReq DeepCopy() if (field.Type == TType.List) { { - TList _list393 = await iprot.ReadListBeginAsync(cancellationToken); - DataTypes = new List(_list393.Count); - for(int _i394 = 0; _i394 < _list393.Count; ++_i394) + TList _list334 = await iprot.ReadListBeginAsync(cancellationToken); + DataTypes = new List(_list334.Count); + for(int _i335 = 0; _i335 < _list334.Count; ++_i335) { - int _elem395; - _elem395 = await iprot.ReadI32Async(cancellationToken); - DataTypes.Add(_elem395); + int _elem336; + _elem336 = await iprot.ReadI32Async(cancellationToken); + DataTypes.Add(_elem336); } await iprot.ReadListEndAsync(cancellationToken); } @@ -192,13 +159,13 @@ public TSAppendSchemaTemplateReq DeepCopy() if (field.Type == TType.List) { { - TList _list396 = await iprot.ReadListBeginAsync(cancellationToken); - Encodings = new List(_list396.Count); - for(int _i397 = 0; _i397 < _list396.Count; ++_i397) + TList _list337 = await iprot.ReadListBeginAsync(cancellationToken); + Encodings = new List(_list337.Count); + for(int _i338 = 0; _i338 < _list337.Count; ++_i338) { - int _elem398; - _elem398 = await iprot.ReadI32Async(cancellationToken); - Encodings.Add(_elem398); + int _elem339; + _elem339 = await iprot.ReadI32Async(cancellationToken); + Encodings.Add(_elem339); } await iprot.ReadListEndAsync(cancellationToken); } @@ -213,13 +180,13 @@ public TSAppendSchemaTemplateReq DeepCopy() if (field.Type == TType.List) { { - TList _list399 = await iprot.ReadListBeginAsync(cancellationToken); - Compressors = new List(_list399.Count); - for(int _i400 = 0; _i400 < _list399.Count; ++_i400) + TList _list340 = await iprot.ReadListBeginAsync(cancellationToken); + Compressors = new List(_list340.Count); + for(int _i341 = 0; _i341 < _list340.Count; ++_i341) { - int _elem401; - _elem401 = await iprot.ReadI32Async(cancellationToken); - Compressors.Add(_elem401); + int _elem342; + _elem342 = await iprot.ReadI32Async(cancellationToken); + Compressors.Add(_elem342); } await iprot.ReadListEndAsync(cancellationToken); } @@ -274,7 +241,7 @@ public TSAppendSchemaTemplateReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -288,85 +255,70 @@ public TSAppendSchemaTemplateReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((Name != null)) - { - field.Name = "name"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Name, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "name"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Name, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "isAligned"; field.Type = TType.Bool; field.ID = 3; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(IsAligned, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((Measurements != null)) + field.Name = "measurements"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "measurements"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); + foreach (string _iter343 in Measurements) { - await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter402 in Measurements) - { - await oprot.WriteStringAsync(_iter402, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter343, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((DataTypes != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "dataTypes"; + field.Type = TType.List; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "dataTypes"; - field.Type = TType.List; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, DataTypes.Count), cancellationToken); + foreach (int _iter344 in DataTypes) { - await oprot.WriteListBeginAsync(new TList(TType.I32, DataTypes.Count), cancellationToken); - foreach (int _iter403 in DataTypes) - { - await oprot.WriteI32Async(_iter403, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteI32Async(_iter344, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((Encodings != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "encodings"; + field.Type = TType.List; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "encodings"; - field.Type = TType.List; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, Encodings.Count), cancellationToken); + foreach (int _iter345 in Encodings) { - await oprot.WriteListBeginAsync(new TList(TType.I32, Encodings.Count), cancellationToken); - foreach (int _iter404 in Encodings) - { - await oprot.WriteI32Async(_iter404, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteI32Async(_iter345, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((Compressors != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "compressors"; + field.Type = TType.List; + field.ID = 7; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "compressors"; - field.Type = TType.List; - field.ID = 7; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, Compressors.Count), cancellationToken); + foreach (int _iter346 in Compressors) { - await oprot.WriteListBeginAsync(new TList(TType.I32, Compressors.Count), cancellationToken); - foreach (int _iter405 in Compressors) - { - await oprot.WriteI32Async(_iter405, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteI32Async(_iter346, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -378,7 +330,8 @@ public TSAppendSchemaTemplateReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSAppendSchemaTemplateReq other)) return false; + var other = that as TSAppendSchemaTemplateReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(Name, other.Name) @@ -393,27 +346,12 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((Name != null)) - { - hashcode = (hashcode * 397) + Name.GetHashCode(); - } + hashcode = (hashcode * 397) + Name.GetHashCode(); hashcode = (hashcode * 397) + IsAligned.GetHashCode(); - if((Measurements != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); - } - if((DataTypes != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(DataTypes); - } - if((Encodings != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Encodings); - } - if((Compressors != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Compressors); - } + hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); + hashcode = (hashcode * 397) + TCollections.GetHashCode(DataTypes); + hashcode = (hashcode * 397) + TCollections.GetHashCode(Encodings); + hashcode = (hashcode * 397) + TCollections.GetHashCode(Compressors); } return hashcode; } @@ -422,35 +360,20 @@ public override string ToString() { var sb = new StringBuilder("TSAppendSchemaTemplateReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((Name != null)) - { - sb.Append(", Name: "); - Name.ToString(sb); - } + sb.Append(SessionId); + sb.Append(", Name: "); + sb.Append(Name); sb.Append(", IsAligned: "); - IsAligned.ToString(sb); - if((Measurements != null)) - { - sb.Append(", Measurements: "); - Measurements.ToString(sb); - } - if((DataTypes != null)) - { - sb.Append(", DataTypes: "); - DataTypes.ToString(sb); - } - if((Encodings != null)) - { - sb.Append(", Encodings: "); - Encodings.ToString(sb); - } - if((Compressors != null)) - { - sb.Append(", Compressors: "); - Compressors.ToString(sb); - } - sb.Append(')'); + sb.Append(IsAligned); + sb.Append(", Measurements: "); + sb.Append(Measurements); + sb.Append(", DataTypes: "); + sb.Append(DataTypes); + sb.Append(", Encodings: "); + sb.Append(Encodings); + sb.Append(", Compressors: "); + sb.Append(Compressors); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSBackupConfigurationResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSBackupConfigurationResp.cs index 85290d5..1f4da61 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSBackupConfigurationResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSBackupConfigurationResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSBackupConfigurationResp : TBase { @@ -94,32 +89,7 @@ public TSBackupConfigurationResp(TSStatus status) : this() this.Status = status; } - public TSBackupConfigurationResp DeepCopy() - { - var tmp425 = new TSBackupConfigurationResp(); - if((Status != null)) - { - tmp425.Status = (TSStatus)this.Status.DeepCopy(); - } - if(__isset.enableOperationSync) - { - tmp425.EnableOperationSync = this.EnableOperationSync; - } - tmp425.__isset.enableOperationSync = this.__isset.enableOperationSync; - if((SecondaryAddress != null) && __isset.secondaryAddress) - { - tmp425.SecondaryAddress = this.SecondaryAddress; - } - tmp425.__isset.secondaryAddress = this.__isset.secondaryAddress; - if(__isset.secondaryPort) - { - tmp425.SecondaryPort = this.SecondaryPort; - } - tmp425.__isset.secondaryPort = this.__isset.secondaryPort; - return tmp425; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -199,7 +169,7 @@ public TSBackupConfigurationResp DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -207,16 +177,13 @@ public TSBackupConfigurationResp DeepCopy() var struc = new TStruct("TSBackupConfigurationResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((Status != null)) - { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if(__isset.enableOperationSync) + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + if (__isset.enableOperationSync) { field.Name = "enableOperationSync"; field.Type = TType.Bool; @@ -225,7 +192,7 @@ public TSBackupConfigurationResp DeepCopy() await oprot.WriteBoolAsync(EnableOperationSync, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if((SecondaryAddress != null) && __isset.secondaryAddress) + if (SecondaryAddress != null && __isset.secondaryAddress) { field.Name = "secondaryAddress"; field.Type = TType.String; @@ -234,7 +201,7 @@ public TSBackupConfigurationResp DeepCopy() await oprot.WriteStringAsync(SecondaryAddress, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.secondaryPort) + if (__isset.secondaryPort) { field.Name = "secondaryPort"; field.Type = TType.I32; @@ -254,7 +221,8 @@ public TSBackupConfigurationResp DeepCopy() public override bool Equals(object that) { - if (!(that is TSBackupConfigurationResp other)) return false; + var other = that as TSBackupConfigurationResp; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && ((__isset.enableOperationSync == other.__isset.enableOperationSync) && ((!__isset.enableOperationSync) || (System.Object.Equals(EnableOperationSync, other.EnableOperationSync)))) @@ -265,22 +233,13 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((Status != null)) - { - hashcode = (hashcode * 397) + Status.GetHashCode(); - } + hashcode = (hashcode * 397) + Status.GetHashCode(); if(__isset.enableOperationSync) - { hashcode = (hashcode * 397) + EnableOperationSync.GetHashCode(); - } - if((SecondaryAddress != null) && __isset.secondaryAddress) - { + if(__isset.secondaryAddress) hashcode = (hashcode * 397) + SecondaryAddress.GetHashCode(); - } if(__isset.secondaryPort) - { hashcode = (hashcode * 397) + SecondaryPort.GetHashCode(); - } } return hashcode; } @@ -288,27 +247,24 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSBackupConfigurationResp("); - if((Status != null)) - { - sb.Append(", Status: "); - Status.ToString(sb); - } - if(__isset.enableOperationSync) + sb.Append(", Status: "); + sb.Append(Status== null ? "" : Status.ToString()); + if (__isset.enableOperationSync) { sb.Append(", EnableOperationSync: "); - EnableOperationSync.ToString(sb); + sb.Append(EnableOperationSync); } - if((SecondaryAddress != null) && __isset.secondaryAddress) + if (SecondaryAddress != null && __isset.secondaryAddress) { sb.Append(", SecondaryAddress: "); - SecondaryAddress.ToString(sb); + sb.Append(SecondaryAddress); } - if(__isset.secondaryPort) + if (__isset.secondaryPort) { sb.Append(", SecondaryPort: "); - SecondaryPort.ToString(sb); + sb.Append(SecondaryPort); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCancelOperationReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCancelOperationReq.cs index 929b5b5..38b1ec7 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCancelOperationReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCancelOperationReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSCancelOperationReq : TBase { @@ -46,15 +41,7 @@ public TSCancelOperationReq(long sessionId, long queryId) : this() this.QueryId = queryId; } - public TSCancelOperationReq DeepCopy() - { - var tmp83 = new TSCancelOperationReq(); - tmp83.SessionId = this.SessionId; - tmp83.QueryId = this.QueryId; - return tmp83; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -119,7 +106,7 @@ public TSCancelOperationReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -150,7 +137,8 @@ public TSCancelOperationReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSCancelOperationReq other)) return false; + var other = that as TSCancelOperationReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(QueryId, other.QueryId); @@ -169,10 +157,10 @@ public override string ToString() { var sb = new StringBuilder("TSCancelOperationReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); + sb.Append(SessionId); sb.Append(", QueryId: "); - QueryId.ToString(sb); - sb.Append(')'); + sb.Append(QueryId); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCloseOperationReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCloseOperationReq.cs index 4ae3a3d..5fdcc46 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCloseOperationReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCloseOperationReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSCloseOperationReq : TBase { @@ -79,24 +74,7 @@ public TSCloseOperationReq(long sessionId) : this() this.SessionId = sessionId; } - public TSCloseOperationReq DeepCopy() - { - var tmp85 = new TSCloseOperationReq(); - tmp85.SessionId = this.SessionId; - if(__isset.queryId) - { - tmp85.QueryId = this.QueryId; - } - tmp85.__isset.queryId = this.__isset.queryId; - if(__isset.statementId) - { - tmp85.StatementId = this.StatementId; - } - tmp85.__isset.statementId = this.__isset.statementId; - return tmp85; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -165,7 +143,7 @@ public TSCloseOperationReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -179,7 +157,7 @@ public TSCloseOperationReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if(__isset.queryId) + if (__isset.queryId) { field.Name = "queryId"; field.Type = TType.I64; @@ -188,7 +166,7 @@ public TSCloseOperationReq DeepCopy() await oprot.WriteI64Async(QueryId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.statementId) + if (__isset.statementId) { field.Name = "statementId"; field.Type = TType.I64; @@ -208,7 +186,8 @@ public TSCloseOperationReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSCloseOperationReq other)) return false; + var other = that as TSCloseOperationReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && ((__isset.queryId == other.__isset.queryId) && ((!__isset.queryId) || (System.Object.Equals(QueryId, other.QueryId)))) @@ -220,13 +199,9 @@ public override int GetHashCode() { unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); if(__isset.queryId) - { hashcode = (hashcode * 397) + QueryId.GetHashCode(); - } if(__isset.statementId) - { hashcode = (hashcode * 397) + StatementId.GetHashCode(); - } } return hashcode; } @@ -235,18 +210,18 @@ public override string ToString() { var sb = new StringBuilder("TSCloseOperationReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if(__isset.queryId) + sb.Append(SessionId); + if (__isset.queryId) { sb.Append(", QueryId: "); - QueryId.ToString(sb); + sb.Append(QueryId); } - if(__isset.statementId) + if (__isset.statementId) { sb.Append(", StatementId: "); - StatementId.ToString(sb); + sb.Append(StatementId); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCloseSessionReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCloseSessionReq.cs index 673c913..632de35 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCloseSessionReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCloseSessionReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSCloseSessionReq : TBase { @@ -43,14 +38,7 @@ public TSCloseSessionReq(long sessionId) : this() this.SessionId = sessionId; } - public TSCloseSessionReq DeepCopy() - { - var tmp71 = new TSCloseSessionReq(); - tmp71.SessionId = this.SessionId; - return tmp71; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -99,7 +87,7 @@ public TSCloseSessionReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -124,7 +112,8 @@ public TSCloseSessionReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSCloseSessionReq other)) return false; + var other = that as TSCloseSessionReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId); } @@ -141,8 +130,8 @@ public override string ToString() { var sb = new StringBuilder("TSCloseSessionReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - sb.Append(')'); + sb.Append(SessionId); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfo.cs b/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfo.cs index d1f5a7c..a509725 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfo.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfo.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSConnectionInfo : TBase { @@ -40,7 +35,7 @@ public partial class TSConnectionInfo : TBase /// /// - /// + /// /// public TSConnectionType Type { get; set; } @@ -56,23 +51,7 @@ public TSConnectionInfo(string userName, long logInTime, string connectionId, TS this.Type = type; } - public TSConnectionInfo DeepCopy() - { - var tmp427 = new TSConnectionInfo(); - if((UserName != null)) - { - tmp427.UserName = this.UserName; - } - tmp427.LogInTime = this.LogInTime; - if((ConnectionId != null)) - { - tmp427.ConnectionId = this.ConnectionId; - } - tmp427.Type = this.Type; - return tmp427; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -169,7 +148,7 @@ public TSConnectionInfo DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -177,30 +156,24 @@ public TSConnectionInfo DeepCopy() var struc = new TStruct("TSConnectionInfo"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((UserName != null)) - { - field.Name = "userName"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(UserName, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "userName"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(UserName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "logInTime"; field.Type = TType.I64; field.ID = 2; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(LogInTime, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((ConnectionId != null)) - { - field.Name = "connectionId"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(ConnectionId, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "connectionId"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(ConnectionId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "type"; field.Type = TType.I32; field.ID = 4; @@ -218,7 +191,8 @@ public TSConnectionInfo DeepCopy() public override bool Equals(object that) { - if (!(that is TSConnectionInfo other)) return false; + var other = that as TSConnectionInfo; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(UserName, other.UserName) && System.Object.Equals(LogInTime, other.LogInTime) @@ -229,15 +203,9 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((UserName != null)) - { - hashcode = (hashcode * 397) + UserName.GetHashCode(); - } + hashcode = (hashcode * 397) + UserName.GetHashCode(); hashcode = (hashcode * 397) + LogInTime.GetHashCode(); - if((ConnectionId != null)) - { - hashcode = (hashcode * 397) + ConnectionId.GetHashCode(); - } + hashcode = (hashcode * 397) + ConnectionId.GetHashCode(); hashcode = (hashcode * 397) + Type.GetHashCode(); } return hashcode; @@ -246,21 +214,15 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSConnectionInfo("); - if((UserName != null)) - { - sb.Append(", UserName: "); - UserName.ToString(sb); - } + sb.Append(", UserName: "); + sb.Append(UserName); sb.Append(", LogInTime: "); - LogInTime.ToString(sb); - if((ConnectionId != null)) - { - sb.Append(", ConnectionId: "); - ConnectionId.ToString(sb); - } + sb.Append(LogInTime); + sb.Append(", ConnectionId: "); + sb.Append(ConnectionId); sb.Append(", Type: "); - Type.ToString(sb); - sb.Append(')'); + sb.Append(Type); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfoResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfoResp.cs index a555348..3190a5b 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfoResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfoResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSConnectionInfoResp : TBase { @@ -43,17 +38,7 @@ public TSConnectionInfoResp(List connectionInfoList) : this() this.ConnectionInfoList = connectionInfoList; } - public TSConnectionInfoResp DeepCopy() - { - var tmp429 = new TSConnectionInfoResp(); - if((ConnectionInfoList != null)) - { - tmp429.ConnectionInfoList = this.ConnectionInfoList.DeepCopy(); - } - return tmp429; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -75,14 +60,14 @@ public TSConnectionInfoResp DeepCopy() if (field.Type == TType.List) { { - TList _list430 = await iprot.ReadListBeginAsync(cancellationToken); - ConnectionInfoList = new List(_list430.Count); - for(int _i431 = 0; _i431 < _list430.Count; ++_i431) + TList _list359 = await iprot.ReadListBeginAsync(cancellationToken); + ConnectionInfoList = new List(_list359.Count); + for(int _i360 = 0; _i360 < _list359.Count; ++_i360) { - TSConnectionInfo _elem432; - _elem432 = new TSConnectionInfo(); - await _elem432.ReadAsync(iprot, cancellationToken); - ConnectionInfoList.Add(_elem432); + TSConnectionInfo _elem361; + _elem361 = new TSConnectionInfo(); + await _elem361.ReadAsync(iprot, cancellationToken); + ConnectionInfoList.Add(_elem361); } await iprot.ReadListEndAsync(cancellationToken); } @@ -113,7 +98,7 @@ public TSConnectionInfoResp DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -121,22 +106,19 @@ public TSConnectionInfoResp DeepCopy() var struc = new TStruct("TSConnectionInfoResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((ConnectionInfoList != null)) + field.Name = "connectionInfoList"; + field.Type = TType.List; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "connectionInfoList"; - field.Type = TType.List; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.Struct, ConnectionInfoList.Count), cancellationToken); + foreach (TSConnectionInfo _iter362 in ConnectionInfoList) { - await oprot.WriteListBeginAsync(new TList(TType.Struct, ConnectionInfoList.Count), cancellationToken); - foreach (TSConnectionInfo _iter433 in ConnectionInfoList) - { - await _iter433.WriteAsync(oprot, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await _iter362.WriteAsync(oprot, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -148,7 +130,8 @@ public TSConnectionInfoResp DeepCopy() public override bool Equals(object that) { - if (!(that is TSConnectionInfoResp other)) return false; + var other = that as TSConnectionInfoResp; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return TCollections.Equals(ConnectionInfoList, other.ConnectionInfoList); } @@ -156,10 +139,7 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((ConnectionInfoList != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(ConnectionInfoList); - } + hashcode = (hashcode * 397) + TCollections.GetHashCode(ConnectionInfoList); } return hashcode; } @@ -167,12 +147,9 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSConnectionInfoResp("); - if((ConnectionInfoList != null)) - { - sb.Append(", ConnectionInfoList: "); - ConnectionInfoList.ToString(sb); - } - sb.Append(')'); + sb.Append(", ConnectionInfoList: "); + sb.Append(ConnectionInfoList); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSConnectionType.cs b/src/Apache.IoTDB/Rpc/Generated/TSConnectionType.cs index 7a23661..6bc8268 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSConnectionType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSConnectionType.cs @@ -1,16 +1,14 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public enum TSConnectionType { THRIFT_BASED = 0, MQTT_BASED = 1, INTERNAL = 2, + REST_BASED = 3, } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCreateAlignedTimeseriesReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCreateAlignedTimeseriesReq.cs index 7aa50fa..54502a9 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCreateAlignedTimeseriesReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCreateAlignedTimeseriesReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSCreateAlignedTimeseriesReq : TBase { @@ -109,49 +104,7 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List(_list279.Count); - for(int _i280 = 0; _i280 < _list279.Count; ++_i280) + TList _list222 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list222.Count); + for(int _i223 = 0; _i223 < _list222.Count; ++_i223) { - string _elem281; - _elem281 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem281); + string _elem224; + _elem224 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem224); } await iprot.ReadListEndAsync(cancellationToken); } @@ -221,13 +174,13 @@ public TSCreateAlignedTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list282 = await iprot.ReadListBeginAsync(cancellationToken); - DataTypes = new List(_list282.Count); - for(int _i283 = 0; _i283 < _list282.Count; ++_i283) + TList _list225 = await iprot.ReadListBeginAsync(cancellationToken); + DataTypes = new List(_list225.Count); + for(int _i226 = 0; _i226 < _list225.Count; ++_i226) { - int _elem284; - _elem284 = await iprot.ReadI32Async(cancellationToken); - DataTypes.Add(_elem284); + int _elem227; + _elem227 = await iprot.ReadI32Async(cancellationToken); + DataTypes.Add(_elem227); } await iprot.ReadListEndAsync(cancellationToken); } @@ -242,13 +195,13 @@ public TSCreateAlignedTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list285 = await iprot.ReadListBeginAsync(cancellationToken); - Encodings = new List(_list285.Count); - for(int _i286 = 0; _i286 < _list285.Count; ++_i286) + TList _list228 = await iprot.ReadListBeginAsync(cancellationToken); + Encodings = new List(_list228.Count); + for(int _i229 = 0; _i229 < _list228.Count; ++_i229) { - int _elem287; - _elem287 = await iprot.ReadI32Async(cancellationToken); - Encodings.Add(_elem287); + int _elem230; + _elem230 = await iprot.ReadI32Async(cancellationToken); + Encodings.Add(_elem230); } await iprot.ReadListEndAsync(cancellationToken); } @@ -263,13 +216,13 @@ public TSCreateAlignedTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list288 = await iprot.ReadListBeginAsync(cancellationToken); - Compressors = new List(_list288.Count); - for(int _i289 = 0; _i289 < _list288.Count; ++_i289) + TList _list231 = await iprot.ReadListBeginAsync(cancellationToken); + Compressors = new List(_list231.Count); + for(int _i232 = 0; _i232 < _list231.Count; ++_i232) { - int _elem290; - _elem290 = await iprot.ReadI32Async(cancellationToken); - Compressors.Add(_elem290); + int _elem233; + _elem233 = await iprot.ReadI32Async(cancellationToken); + Compressors.Add(_elem233); } await iprot.ReadListEndAsync(cancellationToken); } @@ -284,13 +237,13 @@ public TSCreateAlignedTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list291 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementAlias = new List(_list291.Count); - for(int _i292 = 0; _i292 < _list291.Count; ++_i292) + TList _list234 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementAlias = new List(_list234.Count); + for(int _i235 = 0; _i235 < _list234.Count; ++_i235) { - string _elem293; - _elem293 = await iprot.ReadStringAsync(cancellationToken); - MeasurementAlias.Add(_elem293); + string _elem236; + _elem236 = await iprot.ReadStringAsync(cancellationToken); + MeasurementAlias.Add(_elem236); } await iprot.ReadListEndAsync(cancellationToken); } @@ -304,25 +257,25 @@ public TSCreateAlignedTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list294 = await iprot.ReadListBeginAsync(cancellationToken); - TagsList = new List>(_list294.Count); - for(int _i295 = 0; _i295 < _list294.Count; ++_i295) + TList _list237 = await iprot.ReadListBeginAsync(cancellationToken); + TagsList = new List>(_list237.Count); + for(int _i238 = 0; _i238 < _list237.Count; ++_i238) { - Dictionary _elem296; + Dictionary _elem239; { - TMap _map297 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem296 = new Dictionary(_map297.Count); - for(int _i298 = 0; _i298 < _map297.Count; ++_i298) + TMap _map240 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem239 = new Dictionary(_map240.Count); + for(int _i241 = 0; _i241 < _map240.Count; ++_i241) { - string _key299; - string _val300; - _key299 = await iprot.ReadStringAsync(cancellationToken); - _val300 = await iprot.ReadStringAsync(cancellationToken); - _elem296[_key299] = _val300; + string _key242; + string _val243; + _key242 = await iprot.ReadStringAsync(cancellationToken); + _val243 = await iprot.ReadStringAsync(cancellationToken); + _elem239[_key242] = _val243; } await iprot.ReadMapEndAsync(cancellationToken); } - TagsList.Add(_elem296); + TagsList.Add(_elem239); } await iprot.ReadListEndAsync(cancellationToken); } @@ -336,25 +289,25 @@ public TSCreateAlignedTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list301 = await iprot.ReadListBeginAsync(cancellationToken); - AttributesList = new List>(_list301.Count); - for(int _i302 = 0; _i302 < _list301.Count; ++_i302) + TList _list244 = await iprot.ReadListBeginAsync(cancellationToken); + AttributesList = new List>(_list244.Count); + for(int _i245 = 0; _i245 < _list244.Count; ++_i245) { - Dictionary _elem303; + Dictionary _elem246; { - TMap _map304 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem303 = new Dictionary(_map304.Count); - for(int _i305 = 0; _i305 < _map304.Count; ++_i305) + TMap _map247 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem246 = new Dictionary(_map247.Count); + for(int _i248 = 0; _i248 < _map247.Count; ++_i248) { - string _key306; - string _val307; - _key306 = await iprot.ReadStringAsync(cancellationToken); - _val307 = await iprot.ReadStringAsync(cancellationToken); - _elem303[_key306] = _val307; + string _key249; + string _val250; + _key249 = await iprot.ReadStringAsync(cancellationToken); + _val250 = await iprot.ReadStringAsync(cancellationToken); + _elem246[_key249] = _val250; } await iprot.ReadMapEndAsync(cancellationToken); } - AttributesList.Add(_elem303); + AttributesList.Add(_elem246); } await iprot.ReadListEndAsync(cancellationToken); } @@ -404,7 +357,7 @@ public TSCreateAlignedTimeseriesReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -418,80 +371,65 @@ public TSCreateAlignedTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((PrefixPath != null)) - { - field.Name = "prefixPath"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(PrefixPath, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((Measurements != null)) + field.Name = "prefixPath"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(PrefixPath, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "measurements"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "measurements"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); + foreach (string _iter251 in Measurements) { - await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter308 in Measurements) - { - await oprot.WriteStringAsync(_iter308, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter251, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((DataTypes != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "dataTypes"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "dataTypes"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, DataTypes.Count), cancellationToken); + foreach (int _iter252 in DataTypes) { - await oprot.WriteListBeginAsync(new TList(TType.I32, DataTypes.Count), cancellationToken); - foreach (int _iter309 in DataTypes) - { - await oprot.WriteI32Async(_iter309, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteI32Async(_iter252, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((Encodings != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "encodings"; + field.Type = TType.List; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "encodings"; - field.Type = TType.List; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, Encodings.Count), cancellationToken); + foreach (int _iter253 in Encodings) { - await oprot.WriteListBeginAsync(new TList(TType.I32, Encodings.Count), cancellationToken); - foreach (int _iter310 in Encodings) - { - await oprot.WriteI32Async(_iter310, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteI32Async(_iter253, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((Compressors != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "compressors"; + field.Type = TType.List; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "compressors"; - field.Type = TType.List; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, Compressors.Count), cancellationToken); + foreach (int _iter254 in Compressors) { - await oprot.WriteListBeginAsync(new TList(TType.I32, Compressors.Count), cancellationToken); - foreach (int _iter311 in Compressors) - { - await oprot.WriteI32Async(_iter311, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteI32Async(_iter254, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((MeasurementAlias != null) && __isset.measurementAlias) + await oprot.WriteFieldEndAsync(cancellationToken); + if (MeasurementAlias != null && __isset.measurementAlias) { field.Name = "measurementAlias"; field.Type = TType.List; @@ -499,15 +437,15 @@ public TSCreateAlignedTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, MeasurementAlias.Count), cancellationToken); - foreach (string _iter312 in MeasurementAlias) + foreach (string _iter255 in MeasurementAlias) { - await oprot.WriteStringAsync(_iter312, cancellationToken); + await oprot.WriteStringAsync(_iter255, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if((TagsList != null) && __isset.tagsList) + if (TagsList != null && __isset.tagsList) { field.Name = "tagsList"; field.Type = TType.List; @@ -515,14 +453,14 @@ public TSCreateAlignedTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, TagsList.Count), cancellationToken); - foreach (Dictionary _iter313 in TagsList) + foreach (Dictionary _iter256 in TagsList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter313.Count), cancellationToken); - foreach (string _iter314 in _iter313.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter256.Count), cancellationToken); + foreach (string _iter257 in _iter256.Keys) { - await oprot.WriteStringAsync(_iter314, cancellationToken); - await oprot.WriteStringAsync(_iter313[_iter314], cancellationToken); + await oprot.WriteStringAsync(_iter257, cancellationToken); + await oprot.WriteStringAsync(_iter256[_iter257], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -531,7 +469,7 @@ public TSCreateAlignedTimeseriesReq DeepCopy() } await oprot.WriteFieldEndAsync(cancellationToken); } - if((AttributesList != null) && __isset.attributesList) + if (AttributesList != null && __isset.attributesList) { field.Name = "attributesList"; field.Type = TType.List; @@ -539,14 +477,14 @@ public TSCreateAlignedTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, AttributesList.Count), cancellationToken); - foreach (Dictionary _iter315 in AttributesList) + foreach (Dictionary _iter258 in AttributesList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter315.Count), cancellationToken); - foreach (string _iter316 in _iter315.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter258.Count), cancellationToken); + foreach (string _iter259 in _iter258.Keys) { - await oprot.WriteStringAsync(_iter316, cancellationToken); - await oprot.WriteStringAsync(_iter315[_iter316], cancellationToken); + await oprot.WriteStringAsync(_iter259, cancellationToken); + await oprot.WriteStringAsync(_iter258[_iter259], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -566,7 +504,8 @@ public TSCreateAlignedTimeseriesReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSCreateAlignedTimeseriesReq other)) return false; + var other = that as TSCreateAlignedTimeseriesReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(PrefixPath, other.PrefixPath) @@ -583,38 +522,17 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((PrefixPath != null)) - { - hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); - } - if((Measurements != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); - } - if((DataTypes != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(DataTypes); - } - if((Encodings != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Encodings); - } - if((Compressors != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Compressors); - } - if((MeasurementAlias != null) && __isset.measurementAlias) - { + hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); + hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); + hashcode = (hashcode * 397) + TCollections.GetHashCode(DataTypes); + hashcode = (hashcode * 397) + TCollections.GetHashCode(Encodings); + hashcode = (hashcode * 397) + TCollections.GetHashCode(Compressors); + if(__isset.measurementAlias) hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementAlias); - } - if((TagsList != null) && __isset.tagsList) - { + if(__isset.tagsList) hashcode = (hashcode * 397) + TCollections.GetHashCode(TagsList); - } - if((AttributesList != null) && __isset.attributesList) - { + if(__isset.attributesList) hashcode = (hashcode * 397) + TCollections.GetHashCode(AttributesList); - } } return hashcode; } @@ -623,48 +541,33 @@ public override string ToString() { var sb = new StringBuilder("TSCreateAlignedTimeseriesReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((PrefixPath != null)) - { - sb.Append(", PrefixPath: "); - PrefixPath.ToString(sb); - } - if((Measurements != null)) - { - sb.Append(", Measurements: "); - Measurements.ToString(sb); - } - if((DataTypes != null)) - { - sb.Append(", DataTypes: "); - DataTypes.ToString(sb); - } - if((Encodings != null)) - { - sb.Append(", Encodings: "); - Encodings.ToString(sb); - } - if((Compressors != null)) - { - sb.Append(", Compressors: "); - Compressors.ToString(sb); - } - if((MeasurementAlias != null) && __isset.measurementAlias) + sb.Append(SessionId); + sb.Append(", PrefixPath: "); + sb.Append(PrefixPath); + sb.Append(", Measurements: "); + sb.Append(Measurements); + sb.Append(", DataTypes: "); + sb.Append(DataTypes); + sb.Append(", Encodings: "); + sb.Append(Encodings); + sb.Append(", Compressors: "); + sb.Append(Compressors); + if (MeasurementAlias != null && __isset.measurementAlias) { sb.Append(", MeasurementAlias: "); - MeasurementAlias.ToString(sb); + sb.Append(MeasurementAlias); } - if((TagsList != null) && __isset.tagsList) + if (TagsList != null && __isset.tagsList) { sb.Append(", TagsList: "); - TagsList.ToString(sb); + sb.Append(TagsList); } - if((AttributesList != null) && __isset.attributesList) + if (AttributesList != null && __isset.attributesList) { sb.Append(", AttributesList: "); - AttributesList.ToString(sb); + sb.Append(AttributesList); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCreateMultiTimeseriesReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCreateMultiTimeseriesReq.cs index 64f9e17..5b3671f 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCreateMultiTimeseriesReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCreateMultiTimeseriesReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSCreateMultiTimeseriesReq : TBase { @@ -121,50 +116,7 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List this.Compressors = compressors; } - public TSCreateMultiTimeseriesReq DeepCopy() - { - var tmp330 = new TSCreateMultiTimeseriesReq(); - tmp330.SessionId = this.SessionId; - if((Paths != null)) - { - tmp330.Paths = this.Paths.DeepCopy(); - } - if((DataTypes != null)) - { - tmp330.DataTypes = this.DataTypes.DeepCopy(); - } - if((Encodings != null)) - { - tmp330.Encodings = this.Encodings.DeepCopy(); - } - if((Compressors != null)) - { - tmp330.Compressors = this.Compressors.DeepCopy(); - } - if((PropsList != null) && __isset.propsList) - { - tmp330.PropsList = this.PropsList.DeepCopy(); - } - tmp330.__isset.propsList = this.__isset.propsList; - if((TagsList != null) && __isset.tagsList) - { - tmp330.TagsList = this.TagsList.DeepCopy(); - } - tmp330.__isset.tagsList = this.__isset.tagsList; - if((AttributesList != null) && __isset.attributesList) - { - tmp330.AttributesList = this.AttributesList.DeepCopy(); - } - tmp330.__isset.attributesList = this.__isset.attributesList; - if((MeasurementAliasList != null) && __isset.measurementAliasList) - { - tmp330.MeasurementAliasList = this.MeasurementAliasList.DeepCopy(); - } - tmp330.__isset.measurementAliasList = this.__isset.measurementAliasList; - return tmp330; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -201,13 +153,13 @@ public TSCreateMultiTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list331 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list331.Count); - for(int _i332 = 0; _i332 < _list331.Count; ++_i332) + TList _list280 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list280.Count); + for(int _i281 = 0; _i281 < _list280.Count; ++_i281) { - string _elem333; - _elem333 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem333); + string _elem282; + _elem282 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem282); } await iprot.ReadListEndAsync(cancellationToken); } @@ -222,13 +174,13 @@ public TSCreateMultiTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list334 = await iprot.ReadListBeginAsync(cancellationToken); - DataTypes = new List(_list334.Count); - for(int _i335 = 0; _i335 < _list334.Count; ++_i335) + TList _list283 = await iprot.ReadListBeginAsync(cancellationToken); + DataTypes = new List(_list283.Count); + for(int _i284 = 0; _i284 < _list283.Count; ++_i284) { - int _elem336; - _elem336 = await iprot.ReadI32Async(cancellationToken); - DataTypes.Add(_elem336); + int _elem285; + _elem285 = await iprot.ReadI32Async(cancellationToken); + DataTypes.Add(_elem285); } await iprot.ReadListEndAsync(cancellationToken); } @@ -243,13 +195,13 @@ public TSCreateMultiTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list337 = await iprot.ReadListBeginAsync(cancellationToken); - Encodings = new List(_list337.Count); - for(int _i338 = 0; _i338 < _list337.Count; ++_i338) + TList _list286 = await iprot.ReadListBeginAsync(cancellationToken); + Encodings = new List(_list286.Count); + for(int _i287 = 0; _i287 < _list286.Count; ++_i287) { - int _elem339; - _elem339 = await iprot.ReadI32Async(cancellationToken); - Encodings.Add(_elem339); + int _elem288; + _elem288 = await iprot.ReadI32Async(cancellationToken); + Encodings.Add(_elem288); } await iprot.ReadListEndAsync(cancellationToken); } @@ -264,13 +216,13 @@ public TSCreateMultiTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list340 = await iprot.ReadListBeginAsync(cancellationToken); - Compressors = new List(_list340.Count); - for(int _i341 = 0; _i341 < _list340.Count; ++_i341) + TList _list289 = await iprot.ReadListBeginAsync(cancellationToken); + Compressors = new List(_list289.Count); + for(int _i290 = 0; _i290 < _list289.Count; ++_i290) { - int _elem342; - _elem342 = await iprot.ReadI32Async(cancellationToken); - Compressors.Add(_elem342); + int _elem291; + _elem291 = await iprot.ReadI32Async(cancellationToken); + Compressors.Add(_elem291); } await iprot.ReadListEndAsync(cancellationToken); } @@ -285,25 +237,25 @@ public TSCreateMultiTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list343 = await iprot.ReadListBeginAsync(cancellationToken); - PropsList = new List>(_list343.Count); - for(int _i344 = 0; _i344 < _list343.Count; ++_i344) + TList _list292 = await iprot.ReadListBeginAsync(cancellationToken); + PropsList = new List>(_list292.Count); + for(int _i293 = 0; _i293 < _list292.Count; ++_i293) { - Dictionary _elem345; + Dictionary _elem294; { - TMap _map346 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem345 = new Dictionary(_map346.Count); - for(int _i347 = 0; _i347 < _map346.Count; ++_i347) + TMap _map295 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem294 = new Dictionary(_map295.Count); + for(int _i296 = 0; _i296 < _map295.Count; ++_i296) { - string _key348; - string _val349; - _key348 = await iprot.ReadStringAsync(cancellationToken); - _val349 = await iprot.ReadStringAsync(cancellationToken); - _elem345[_key348] = _val349; + string _key297; + string _val298; + _key297 = await iprot.ReadStringAsync(cancellationToken); + _val298 = await iprot.ReadStringAsync(cancellationToken); + _elem294[_key297] = _val298; } await iprot.ReadMapEndAsync(cancellationToken); } - PropsList.Add(_elem345); + PropsList.Add(_elem294); } await iprot.ReadListEndAsync(cancellationToken); } @@ -317,25 +269,25 @@ public TSCreateMultiTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list350 = await iprot.ReadListBeginAsync(cancellationToken); - TagsList = new List>(_list350.Count); - for(int _i351 = 0; _i351 < _list350.Count; ++_i351) + TList _list299 = await iprot.ReadListBeginAsync(cancellationToken); + TagsList = new List>(_list299.Count); + for(int _i300 = 0; _i300 < _list299.Count; ++_i300) { - Dictionary _elem352; + Dictionary _elem301; { - TMap _map353 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem352 = new Dictionary(_map353.Count); - for(int _i354 = 0; _i354 < _map353.Count; ++_i354) + TMap _map302 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem301 = new Dictionary(_map302.Count); + for(int _i303 = 0; _i303 < _map302.Count; ++_i303) { - string _key355; - string _val356; - _key355 = await iprot.ReadStringAsync(cancellationToken); - _val356 = await iprot.ReadStringAsync(cancellationToken); - _elem352[_key355] = _val356; + string _key304; + string _val305; + _key304 = await iprot.ReadStringAsync(cancellationToken); + _val305 = await iprot.ReadStringAsync(cancellationToken); + _elem301[_key304] = _val305; } await iprot.ReadMapEndAsync(cancellationToken); } - TagsList.Add(_elem352); + TagsList.Add(_elem301); } await iprot.ReadListEndAsync(cancellationToken); } @@ -349,25 +301,25 @@ public TSCreateMultiTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list357 = await iprot.ReadListBeginAsync(cancellationToken); - AttributesList = new List>(_list357.Count); - for(int _i358 = 0; _i358 < _list357.Count; ++_i358) + TList _list306 = await iprot.ReadListBeginAsync(cancellationToken); + AttributesList = new List>(_list306.Count); + for(int _i307 = 0; _i307 < _list306.Count; ++_i307) { - Dictionary _elem359; + Dictionary _elem308; { - TMap _map360 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem359 = new Dictionary(_map360.Count); - for(int _i361 = 0; _i361 < _map360.Count; ++_i361) + TMap _map309 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem308 = new Dictionary(_map309.Count); + for(int _i310 = 0; _i310 < _map309.Count; ++_i310) { - string _key362; - string _val363; - _key362 = await iprot.ReadStringAsync(cancellationToken); - _val363 = await iprot.ReadStringAsync(cancellationToken); - _elem359[_key362] = _val363; + string _key311; + string _val312; + _key311 = await iprot.ReadStringAsync(cancellationToken); + _val312 = await iprot.ReadStringAsync(cancellationToken); + _elem308[_key311] = _val312; } await iprot.ReadMapEndAsync(cancellationToken); } - AttributesList.Add(_elem359); + AttributesList.Add(_elem308); } await iprot.ReadListEndAsync(cancellationToken); } @@ -381,13 +333,13 @@ public TSCreateMultiTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list364 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementAliasList = new List(_list364.Count); - for(int _i365 = 0; _i365 < _list364.Count; ++_i365) + TList _list313 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementAliasList = new List(_list313.Count); + for(int _i314 = 0; _i314 < _list313.Count; ++_i314) { - string _elem366; - _elem366 = await iprot.ReadStringAsync(cancellationToken); - MeasurementAliasList.Add(_elem366); + string _elem315; + _elem315 = await iprot.ReadStringAsync(cancellationToken); + MeasurementAliasList.Add(_elem315); } await iprot.ReadListEndAsync(cancellationToken); } @@ -433,7 +385,7 @@ public TSCreateMultiTimeseriesReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -447,71 +399,59 @@ public TSCreateMultiTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((Paths != null)) + field.Name = "paths"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "paths"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); + foreach (string _iter316 in Paths) { - await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter367 in Paths) - { - await oprot.WriteStringAsync(_iter367, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter316, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((DataTypes != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "dataTypes"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "dataTypes"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, DataTypes.Count), cancellationToken); + foreach (int _iter317 in DataTypes) { - await oprot.WriteListBeginAsync(new TList(TType.I32, DataTypes.Count), cancellationToken); - foreach (int _iter368 in DataTypes) - { - await oprot.WriteI32Async(_iter368, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteI32Async(_iter317, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((Encodings != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "encodings"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "encodings"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, Encodings.Count), cancellationToken); + foreach (int _iter318 in Encodings) { - await oprot.WriteListBeginAsync(new TList(TType.I32, Encodings.Count), cancellationToken); - foreach (int _iter369 in Encodings) - { - await oprot.WriteI32Async(_iter369, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteI32Async(_iter318, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((Compressors != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "compressors"; + field.Type = TType.List; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "compressors"; - field.Type = TType.List; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, Compressors.Count), cancellationToken); + foreach (int _iter319 in Compressors) { - await oprot.WriteListBeginAsync(new TList(TType.I32, Compressors.Count), cancellationToken); - foreach (int _iter370 in Compressors) - { - await oprot.WriteI32Async(_iter370, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteI32Async(_iter319, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((PropsList != null) && __isset.propsList) + await oprot.WriteFieldEndAsync(cancellationToken); + if (PropsList != null && __isset.propsList) { field.Name = "propsList"; field.Type = TType.List; @@ -519,14 +459,14 @@ public TSCreateMultiTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, PropsList.Count), cancellationToken); - foreach (Dictionary _iter371 in PropsList) + foreach (Dictionary _iter320 in PropsList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter371.Count), cancellationToken); - foreach (string _iter372 in _iter371.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter320.Count), cancellationToken); + foreach (string _iter321 in _iter320.Keys) { - await oprot.WriteStringAsync(_iter372, cancellationToken); - await oprot.WriteStringAsync(_iter371[_iter372], cancellationToken); + await oprot.WriteStringAsync(_iter321, cancellationToken); + await oprot.WriteStringAsync(_iter320[_iter321], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -535,7 +475,7 @@ public TSCreateMultiTimeseriesReq DeepCopy() } await oprot.WriteFieldEndAsync(cancellationToken); } - if((TagsList != null) && __isset.tagsList) + if (TagsList != null && __isset.tagsList) { field.Name = "tagsList"; field.Type = TType.List; @@ -543,14 +483,14 @@ public TSCreateMultiTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, TagsList.Count), cancellationToken); - foreach (Dictionary _iter373 in TagsList) + foreach (Dictionary _iter322 in TagsList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter373.Count), cancellationToken); - foreach (string _iter374 in _iter373.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter322.Count), cancellationToken); + foreach (string _iter323 in _iter322.Keys) { - await oprot.WriteStringAsync(_iter374, cancellationToken); - await oprot.WriteStringAsync(_iter373[_iter374], cancellationToken); + await oprot.WriteStringAsync(_iter323, cancellationToken); + await oprot.WriteStringAsync(_iter322[_iter323], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -559,7 +499,7 @@ public TSCreateMultiTimeseriesReq DeepCopy() } await oprot.WriteFieldEndAsync(cancellationToken); } - if((AttributesList != null) && __isset.attributesList) + if (AttributesList != null && __isset.attributesList) { field.Name = "attributesList"; field.Type = TType.List; @@ -567,14 +507,14 @@ public TSCreateMultiTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, AttributesList.Count), cancellationToken); - foreach (Dictionary _iter375 in AttributesList) + foreach (Dictionary _iter324 in AttributesList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter375.Count), cancellationToken); - foreach (string _iter376 in _iter375.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter324.Count), cancellationToken); + foreach (string _iter325 in _iter324.Keys) { - await oprot.WriteStringAsync(_iter376, cancellationToken); - await oprot.WriteStringAsync(_iter375[_iter376], cancellationToken); + await oprot.WriteStringAsync(_iter325, cancellationToken); + await oprot.WriteStringAsync(_iter324[_iter325], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -583,7 +523,7 @@ public TSCreateMultiTimeseriesReq DeepCopy() } await oprot.WriteFieldEndAsync(cancellationToken); } - if((MeasurementAliasList != null) && __isset.measurementAliasList) + if (MeasurementAliasList != null && __isset.measurementAliasList) { field.Name = "measurementAliasList"; field.Type = TType.List; @@ -591,9 +531,9 @@ public TSCreateMultiTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, MeasurementAliasList.Count), cancellationToken); - foreach (string _iter377 in MeasurementAliasList) + foreach (string _iter326 in MeasurementAliasList) { - await oprot.WriteStringAsync(_iter377, cancellationToken); + await oprot.WriteStringAsync(_iter326, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -610,7 +550,8 @@ public TSCreateMultiTimeseriesReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSCreateMultiTimeseriesReq other)) return false; + var other = that as TSCreateMultiTimeseriesReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && TCollections.Equals(Paths, other.Paths) @@ -627,38 +568,18 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((Paths != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); - } - if((DataTypes != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(DataTypes); - } - if((Encodings != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Encodings); - } - if((Compressors != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Compressors); - } - if((PropsList != null) && __isset.propsList) - { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); + hashcode = (hashcode * 397) + TCollections.GetHashCode(DataTypes); + hashcode = (hashcode * 397) + TCollections.GetHashCode(Encodings); + hashcode = (hashcode * 397) + TCollections.GetHashCode(Compressors); + if(__isset.propsList) hashcode = (hashcode * 397) + TCollections.GetHashCode(PropsList); - } - if((TagsList != null) && __isset.tagsList) - { + if(__isset.tagsList) hashcode = (hashcode * 397) + TCollections.GetHashCode(TagsList); - } - if((AttributesList != null) && __isset.attributesList) - { + if(__isset.attributesList) hashcode = (hashcode * 397) + TCollections.GetHashCode(AttributesList); - } - if((MeasurementAliasList != null) && __isset.measurementAliasList) - { + if(__isset.measurementAliasList) hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementAliasList); - } } return hashcode; } @@ -667,48 +588,36 @@ public override string ToString() { var sb = new StringBuilder("TSCreateMultiTimeseriesReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((Paths != null)) - { - sb.Append(", Paths: "); - Paths.ToString(sb); - } - if((DataTypes != null)) - { - sb.Append(", DataTypes: "); - DataTypes.ToString(sb); - } - if((Encodings != null)) - { - sb.Append(", Encodings: "); - Encodings.ToString(sb); - } - if((Compressors != null)) - { - sb.Append(", Compressors: "); - Compressors.ToString(sb); - } - if((PropsList != null) && __isset.propsList) + sb.Append(SessionId); + sb.Append(", Paths: "); + sb.Append(Paths); + sb.Append(", DataTypes: "); + sb.Append(DataTypes); + sb.Append(", Encodings: "); + sb.Append(Encodings); + sb.Append(", Compressors: "); + sb.Append(Compressors); + if (PropsList != null && __isset.propsList) { sb.Append(", PropsList: "); - PropsList.ToString(sb); + sb.Append(PropsList); } - if((TagsList != null) && __isset.tagsList) + if (TagsList != null && __isset.tagsList) { sb.Append(", TagsList: "); - TagsList.ToString(sb); + sb.Append(TagsList); } - if((AttributesList != null) && __isset.attributesList) + if (AttributesList != null && __isset.attributesList) { sb.Append(", AttributesList: "); - AttributesList.ToString(sb); + sb.Append(AttributesList); } - if((MeasurementAliasList != null) && __isset.measurementAliasList) + if (MeasurementAliasList != null && __isset.measurementAliasList) { sb.Append(", MeasurementAliasList: "); - MeasurementAliasList.ToString(sb); + sb.Append(MeasurementAliasList); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCreateSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCreateSchemaTemplateReq.cs index 7ad6092..62ec66a 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCreateSchemaTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCreateSchemaTemplateReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSCreateSchemaTemplateReq : TBase { @@ -49,22 +44,7 @@ public TSCreateSchemaTemplateReq(long sessionId, string name, byte[] serializedT this.SerializedTemplate = serializedTemplate; } - public TSCreateSchemaTemplateReq DeepCopy() - { - var tmp387 = new TSCreateSchemaTemplateReq(); - tmp387.SessionId = this.SessionId; - if((Name != null)) - { - tmp387.Name = this.Name; - } - if((SerializedTemplate != null)) - { - tmp387.SerializedTemplate = this.SerializedTemplate.ToArray(); - } - return tmp387; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -145,7 +125,7 @@ public TSCreateSchemaTemplateReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -159,24 +139,18 @@ public TSCreateSchemaTemplateReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((Name != null)) - { - field.Name = "name"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Name, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((SerializedTemplate != null)) - { - field.Name = "serializedTemplate"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteBinaryAsync(SerializedTemplate, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "name"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Name, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "serializedTemplate"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBinaryAsync(SerializedTemplate, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -188,7 +162,8 @@ public TSCreateSchemaTemplateReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSCreateSchemaTemplateReq other)) return false; + var other = that as TSCreateSchemaTemplateReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(Name, other.Name) @@ -199,14 +174,8 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((Name != null)) - { - hashcode = (hashcode * 397) + Name.GetHashCode(); - } - if((SerializedTemplate != null)) - { - hashcode = (hashcode * 397) + SerializedTemplate.GetHashCode(); - } + hashcode = (hashcode * 397) + Name.GetHashCode(); + hashcode = (hashcode * 397) + SerializedTemplate.GetHashCode(); } return hashcode; } @@ -215,18 +184,12 @@ public override string ToString() { var sb = new StringBuilder("TSCreateSchemaTemplateReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((Name != null)) - { - sb.Append(", Name: "); - Name.ToString(sb); - } - if((SerializedTemplate != null)) - { - sb.Append(", SerializedTemplate: "); - SerializedTemplate.ToString(sb); - } - sb.Append(')'); + sb.Append(SessionId); + sb.Append(", Name: "); + sb.Append(Name); + sb.Append(", SerializedTemplate: "); + sb.Append(SerializedTemplate); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCreateTimeseriesReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCreateTimeseriesReq.cs index d2c2f7c..1c86c7c 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCreateTimeseriesReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCreateTimeseriesReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSCreateTimeseriesReq : TBase { @@ -121,41 +116,7 @@ public TSCreateTimeseriesReq(long sessionId, string path, int dataType, int enco this.Compressor = compressor; } - public TSCreateTimeseriesReq DeepCopy() - { - var tmp261 = new TSCreateTimeseriesReq(); - tmp261.SessionId = this.SessionId; - if((Path != null)) - { - tmp261.Path = this.Path; - } - tmp261.DataType = this.DataType; - tmp261.Encoding = this.Encoding; - tmp261.Compressor = this.Compressor; - if((Props != null) && __isset.props) - { - tmp261.Props = this.Props.DeepCopy(); - } - tmp261.__isset.props = this.__isset.props; - if((Tags != null) && __isset.tags) - { - tmp261.Tags = this.Tags.DeepCopy(); - } - tmp261.__isset.tags = this.__isset.tags; - if((Attributes != null) && __isset.attributes) - { - tmp261.Attributes = this.Attributes.DeepCopy(); - } - tmp261.__isset.attributes = this.__isset.attributes; - if((MeasurementAlias != null) && __isset.measurementAlias) - { - tmp261.MeasurementAlias = this.MeasurementAlias; - } - tmp261.__isset.measurementAlias = this.__isset.measurementAlias; - return tmp261; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -236,15 +197,15 @@ public TSCreateTimeseriesReq DeepCopy() if (field.Type == TType.Map) { { - TMap _map262 = await iprot.ReadMapBeginAsync(cancellationToken); - Props = new Dictionary(_map262.Count); - for(int _i263 = 0; _i263 < _map262.Count; ++_i263) + TMap _map207 = await iprot.ReadMapBeginAsync(cancellationToken); + Props = new Dictionary(_map207.Count); + for(int _i208 = 0; _i208 < _map207.Count; ++_i208) { - string _key264; - string _val265; - _key264 = await iprot.ReadStringAsync(cancellationToken); - _val265 = await iprot.ReadStringAsync(cancellationToken); - Props[_key264] = _val265; + string _key209; + string _val210; + _key209 = await iprot.ReadStringAsync(cancellationToken); + _val210 = await iprot.ReadStringAsync(cancellationToken); + Props[_key209] = _val210; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -258,15 +219,15 @@ public TSCreateTimeseriesReq DeepCopy() if (field.Type == TType.Map) { { - TMap _map266 = await iprot.ReadMapBeginAsync(cancellationToken); - Tags = new Dictionary(_map266.Count); - for(int _i267 = 0; _i267 < _map266.Count; ++_i267) + TMap _map211 = await iprot.ReadMapBeginAsync(cancellationToken); + Tags = new Dictionary(_map211.Count); + for(int _i212 = 0; _i212 < _map211.Count; ++_i212) { - string _key268; - string _val269; - _key268 = await iprot.ReadStringAsync(cancellationToken); - _val269 = await iprot.ReadStringAsync(cancellationToken); - Tags[_key268] = _val269; + string _key213; + string _val214; + _key213 = await iprot.ReadStringAsync(cancellationToken); + _val214 = await iprot.ReadStringAsync(cancellationToken); + Tags[_key213] = _val214; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -280,15 +241,15 @@ public TSCreateTimeseriesReq DeepCopy() if (field.Type == TType.Map) { { - TMap _map270 = await iprot.ReadMapBeginAsync(cancellationToken); - Attributes = new Dictionary(_map270.Count); - for(int _i271 = 0; _i271 < _map270.Count; ++_i271) + TMap _map215 = await iprot.ReadMapBeginAsync(cancellationToken); + Attributes = new Dictionary(_map215.Count); + for(int _i216 = 0; _i216 < _map215.Count; ++_i216) { - string _key272; - string _val273; - _key272 = await iprot.ReadStringAsync(cancellationToken); - _val273 = await iprot.ReadStringAsync(cancellationToken); - Attributes[_key272] = _val273; + string _key217; + string _val218; + _key217 = await iprot.ReadStringAsync(cancellationToken); + _val218 = await iprot.ReadStringAsync(cancellationToken); + Attributes[_key217] = _val218; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -344,7 +305,7 @@ public TSCreateTimeseriesReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -358,15 +319,12 @@ public TSCreateTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((Path != null)) - { - field.Name = "path"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Path, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "path"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Path, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "dataType"; field.Type = TType.I32; field.ID = 3; @@ -385,7 +343,7 @@ public TSCreateTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(Compressor, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((Props != null) && __isset.props) + if (Props != null && __isset.props) { field.Name = "props"; field.Type = TType.Map; @@ -393,16 +351,16 @@ public TSCreateTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Props.Count), cancellationToken); - foreach (string _iter274 in Props.Keys) + foreach (string _iter219 in Props.Keys) { - await oprot.WriteStringAsync(_iter274, cancellationToken); - await oprot.WriteStringAsync(Props[_iter274], cancellationToken); + await oprot.WriteStringAsync(_iter219, cancellationToken); + await oprot.WriteStringAsync(Props[_iter219], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if((Tags != null) && __isset.tags) + if (Tags != null && __isset.tags) { field.Name = "tags"; field.Type = TType.Map; @@ -410,16 +368,16 @@ public TSCreateTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Tags.Count), cancellationToken); - foreach (string _iter275 in Tags.Keys) + foreach (string _iter220 in Tags.Keys) { - await oprot.WriteStringAsync(_iter275, cancellationToken); - await oprot.WriteStringAsync(Tags[_iter275], cancellationToken); + await oprot.WriteStringAsync(_iter220, cancellationToken); + await oprot.WriteStringAsync(Tags[_iter220], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if((Attributes != null) && __isset.attributes) + if (Attributes != null && __isset.attributes) { field.Name = "attributes"; field.Type = TType.Map; @@ -427,16 +385,16 @@ public TSCreateTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Attributes.Count), cancellationToken); - foreach (string _iter276 in Attributes.Keys) + foreach (string _iter221 in Attributes.Keys) { - await oprot.WriteStringAsync(_iter276, cancellationToken); - await oprot.WriteStringAsync(Attributes[_iter276], cancellationToken); + await oprot.WriteStringAsync(_iter221, cancellationToken); + await oprot.WriteStringAsync(Attributes[_iter221], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if((MeasurementAlias != null) && __isset.measurementAlias) + if (MeasurementAlias != null && __isset.measurementAlias) { field.Name = "measurementAlias"; field.Type = TType.String; @@ -456,7 +414,8 @@ public TSCreateTimeseriesReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSCreateTimeseriesReq other)) return false; + var other = that as TSCreateTimeseriesReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(Path, other.Path) @@ -473,29 +432,18 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((Path != null)) - { - hashcode = (hashcode * 397) + Path.GetHashCode(); - } + hashcode = (hashcode * 397) + Path.GetHashCode(); hashcode = (hashcode * 397) + DataType.GetHashCode(); hashcode = (hashcode * 397) + Encoding.GetHashCode(); hashcode = (hashcode * 397) + Compressor.GetHashCode(); - if((Props != null) && __isset.props) - { + if(__isset.props) hashcode = (hashcode * 397) + TCollections.GetHashCode(Props); - } - if((Tags != null) && __isset.tags) - { + if(__isset.tags) hashcode = (hashcode * 397) + TCollections.GetHashCode(Tags); - } - if((Attributes != null) && __isset.attributes) - { + if(__isset.attributes) hashcode = (hashcode * 397) + TCollections.GetHashCode(Attributes); - } - if((MeasurementAlias != null) && __isset.measurementAlias) - { + if(__isset.measurementAlias) hashcode = (hashcode * 397) + MeasurementAlias.GetHashCode(); - } } return hashcode; } @@ -504,39 +452,36 @@ public override string ToString() { var sb = new StringBuilder("TSCreateTimeseriesReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((Path != null)) - { - sb.Append(", Path: "); - Path.ToString(sb); - } + sb.Append(SessionId); + sb.Append(", Path: "); + sb.Append(Path); sb.Append(", DataType: "); - DataType.ToString(sb); + sb.Append(DataType); sb.Append(", Encoding: "); - Encoding.ToString(sb); + sb.Append(Encoding); sb.Append(", Compressor: "); - Compressor.ToString(sb); - if((Props != null) && __isset.props) + sb.Append(Compressor); + if (Props != null && __isset.props) { sb.Append(", Props: "); - Props.ToString(sb); + sb.Append(Props); } - if((Tags != null) && __isset.tags) + if (Tags != null && __isset.tags) { sb.Append(", Tags: "); - Tags.ToString(sb); + sb.Append(Tags); } - if((Attributes != null) && __isset.attributes) + if (Attributes != null && __isset.attributes) { sb.Append(", Attributes: "); - Attributes.ToString(sb); + sb.Append(Attributes); } - if((MeasurementAlias != null) && __isset.measurementAlias) + if (MeasurementAlias != null && __isset.measurementAlias) { sb.Append(", MeasurementAlias: "); - MeasurementAlias.ToString(sb); + sb.Append(MeasurementAlias); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSDeleteDataReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSDeleteDataReq.cs index c3e9977..279d7eb 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSDeleteDataReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSDeleteDataReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSDeleteDataReq : TBase { @@ -52,20 +47,7 @@ public TSDeleteDataReq(long sessionId, List paths, long startTime, long this.EndTime = endTime; } - public TSDeleteDataReq DeepCopy() - { - var tmp255 = new TSDeleteDataReq(); - tmp255.SessionId = this.SessionId; - if((Paths != null)) - { - tmp255.Paths = this.Paths.DeepCopy(); - } - tmp255.StartTime = this.StartTime; - tmp255.EndTime = this.EndTime; - return tmp255; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -101,13 +83,13 @@ public TSDeleteDataReq DeepCopy() if (field.Type == TType.List) { { - TList _list256 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list256.Count); - for(int _i257 = 0; _i257 < _list256.Count; ++_i257) + TList _list203 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list203.Count); + for(int _i204 = 0; _i204 < _list203.Count; ++_i204) { - string _elem258; - _elem258 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem258); + string _elem205; + _elem205 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem205); } await iprot.ReadListEndAsync(cancellationToken); } @@ -172,7 +154,7 @@ public TSDeleteDataReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -186,22 +168,19 @@ public TSDeleteDataReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((Paths != null)) + field.Name = "paths"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "paths"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); + foreach (string _iter206 in Paths) { - await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter259 in Paths) - { - await oprot.WriteStringAsync(_iter259, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter206, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } + await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "startTime"; field.Type = TType.I64; field.ID = 3; @@ -225,7 +204,8 @@ public TSDeleteDataReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSDeleteDataReq other)) return false; + var other = that as TSDeleteDataReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && TCollections.Equals(Paths, other.Paths) @@ -237,10 +217,7 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((Paths != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); - } + hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); hashcode = (hashcode * 397) + StartTime.GetHashCode(); hashcode = (hashcode * 397) + EndTime.GetHashCode(); } @@ -251,17 +228,14 @@ public override string ToString() { var sb = new StringBuilder("TSDeleteDataReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((Paths != null)) - { - sb.Append(", Paths: "); - Paths.ToString(sb); - } + sb.Append(SessionId); + sb.Append(", Paths: "); + sb.Append(Paths); sb.Append(", StartTime: "); - StartTime.ToString(sb); + sb.Append(StartTime); sb.Append(", EndTime: "); - EndTime.ToString(sb); - sb.Append(')'); + sb.Append(EndTime); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSDropSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSDropSchemaTemplateReq.cs index 7d8b01c..31ddda2 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSDropSchemaTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSDropSchemaTemplateReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSDropSchemaTemplateReq : TBase { @@ -46,18 +41,7 @@ public TSDropSchemaTemplateReq(long sessionId, string templateName) : this() this.TemplateName = templateName; } - public TSDropSchemaTemplateReq DeepCopy() - { - var tmp419 = new TSDropSchemaTemplateReq(); - tmp419.SessionId = this.SessionId; - if((TemplateName != null)) - { - tmp419.TemplateName = this.TemplateName; - } - return tmp419; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -122,7 +106,7 @@ public TSDropSchemaTemplateReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -136,15 +120,12 @@ public TSDropSchemaTemplateReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((TemplateName != null)) - { - field.Name = "templateName"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(TemplateName, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "templateName"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(TemplateName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -156,7 +137,8 @@ public TSDropSchemaTemplateReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSDropSchemaTemplateReq other)) return false; + var other = that as TSDropSchemaTemplateReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(TemplateName, other.TemplateName); @@ -166,10 +148,7 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((TemplateName != null)) - { - hashcode = (hashcode * 397) + TemplateName.GetHashCode(); - } + hashcode = (hashcode * 397) + TemplateName.GetHashCode(); } return hashcode; } @@ -178,13 +157,10 @@ public override string ToString() { var sb = new StringBuilder("TSDropSchemaTemplateReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((TemplateName != null)) - { - sb.Append(", TemplateName: "); - TemplateName.ToString(sb); - } - sb.Append(')'); + sb.Append(SessionId); + sb.Append(", TemplateName: "); + sb.Append(TemplateName); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSExecuteBatchStatementReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSExecuteBatchStatementReq.cs index c2b68a7..b53b994 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSExecuteBatchStatementReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSExecuteBatchStatementReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSExecuteBatchStatementReq : TBase { @@ -46,18 +41,7 @@ public TSExecuteBatchStatementReq(long sessionId, List statements) : thi this.Statements = statements; } - public TSExecuteBatchStatementReq DeepCopy() - { - var tmp75 = new TSExecuteBatchStatementReq(); - tmp75.SessionId = this.SessionId; - if((Statements != null)) - { - tmp75.Statements = this.Statements.DeepCopy(); - } - return tmp75; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -91,13 +75,13 @@ public TSExecuteBatchStatementReq DeepCopy() if (field.Type == TType.List) { { - TList _list76 = await iprot.ReadListBeginAsync(cancellationToken); - Statements = new List(_list76.Count); - for(int _i77 = 0; _i77 < _list76.Count; ++_i77) + TList _list59 = await iprot.ReadListBeginAsync(cancellationToken); + Statements = new List(_list59.Count); + for(int _i60 = 0; _i60 < _list59.Count; ++_i60) { - string _elem78; - _elem78 = await iprot.ReadStringAsync(cancellationToken); - Statements.Add(_elem78); + string _elem61; + _elem61 = await iprot.ReadStringAsync(cancellationToken); + Statements.Add(_elem61); } await iprot.ReadListEndAsync(cancellationToken); } @@ -132,7 +116,7 @@ public TSExecuteBatchStatementReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -146,22 +130,19 @@ public TSExecuteBatchStatementReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((Statements != null)) + field.Name = "statements"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "statements"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Statements.Count), cancellationToken); + foreach (string _iter62 in Statements) { - await oprot.WriteListBeginAsync(new TList(TType.String, Statements.Count), cancellationToken); - foreach (string _iter79 in Statements) - { - await oprot.WriteStringAsync(_iter79, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter62, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -173,7 +154,8 @@ public TSExecuteBatchStatementReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSExecuteBatchStatementReq other)) return false; + var other = that as TSExecuteBatchStatementReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && TCollections.Equals(Statements, other.Statements); @@ -183,10 +165,7 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((Statements != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Statements); - } + hashcode = (hashcode * 397) + TCollections.GetHashCode(Statements); } return hashcode; } @@ -195,13 +174,10 @@ public override string ToString() { var sb = new StringBuilder("TSExecuteBatchStatementReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((Statements != null)) - { - sb.Append(", Statements: "); - Statements.ToString(sb); - } - sb.Append(')'); + sb.Append(SessionId); + sb.Append(", Statements: "); + sb.Append(Statements); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementReq.cs index c6bc462..b943cf9 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSExecuteStatementReq : TBase { @@ -115,39 +110,7 @@ public TSExecuteStatementReq(long sessionId, string statement, long statementId) this.StatementId = statementId; } - public TSExecuteStatementReq DeepCopy() - { - var tmp73 = new TSExecuteStatementReq(); - tmp73.SessionId = this.SessionId; - if((Statement != null)) - { - tmp73.Statement = this.Statement; - } - tmp73.StatementId = this.StatementId; - if(__isset.fetchSize) - { - tmp73.FetchSize = this.FetchSize; - } - tmp73.__isset.fetchSize = this.__isset.fetchSize; - if(__isset.timeout) - { - tmp73.Timeout = this.Timeout; - } - tmp73.__isset.timeout = this.__isset.timeout; - if(__isset.enableRedirectQuery) - { - tmp73.EnableRedirectQuery = this.EnableRedirectQuery; - } - tmp73.__isset.enableRedirectQuery = this.__isset.enableRedirectQuery; - if(__isset.jdbcQuery) - { - tmp73.JdbcQuery = this.JdbcQuery; - } - tmp73.__isset.jdbcQuery = this.__isset.jdbcQuery; - return tmp73; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -268,7 +231,7 @@ public TSExecuteStatementReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -282,22 +245,19 @@ public TSExecuteStatementReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((Statement != null)) - { - field.Name = "statement"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Statement, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "statement"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Statement, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "statementId"; field.Type = TType.I64; field.ID = 3; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(StatementId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if(__isset.fetchSize) + if (__isset.fetchSize) { field.Name = "fetchSize"; field.Type = TType.I32; @@ -306,7 +266,7 @@ public TSExecuteStatementReq DeepCopy() await oprot.WriteI32Async(FetchSize, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.timeout) + if (__isset.timeout) { field.Name = "timeout"; field.Type = TType.I64; @@ -315,7 +275,7 @@ public TSExecuteStatementReq DeepCopy() await oprot.WriteI64Async(Timeout, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.enableRedirectQuery) + if (__isset.enableRedirectQuery) { field.Name = "enableRedirectQuery"; field.Type = TType.Bool; @@ -324,7 +284,7 @@ public TSExecuteStatementReq DeepCopy() await oprot.WriteBoolAsync(EnableRedirectQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.jdbcQuery) + if (__isset.jdbcQuery) { field.Name = "jdbcQuery"; field.Type = TType.Bool; @@ -344,7 +304,8 @@ public TSExecuteStatementReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSExecuteStatementReq other)) return false; + var other = that as TSExecuteStatementReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(Statement, other.Statement) @@ -359,27 +320,16 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((Statement != null)) - { - hashcode = (hashcode * 397) + Statement.GetHashCode(); - } + hashcode = (hashcode * 397) + Statement.GetHashCode(); hashcode = (hashcode * 397) + StatementId.GetHashCode(); if(__isset.fetchSize) - { hashcode = (hashcode * 397) + FetchSize.GetHashCode(); - } if(__isset.timeout) - { hashcode = (hashcode * 397) + Timeout.GetHashCode(); - } if(__isset.enableRedirectQuery) - { hashcode = (hashcode * 397) + EnableRedirectQuery.GetHashCode(); - } if(__isset.jdbcQuery) - { hashcode = (hashcode * 397) + JdbcQuery.GetHashCode(); - } } return hashcode; } @@ -388,35 +338,32 @@ public override string ToString() { var sb = new StringBuilder("TSExecuteStatementReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((Statement != null)) - { - sb.Append(", Statement: "); - Statement.ToString(sb); - } + sb.Append(SessionId); + sb.Append(", Statement: "); + sb.Append(Statement); sb.Append(", StatementId: "); - StatementId.ToString(sb); - if(__isset.fetchSize) + sb.Append(StatementId); + if (__isset.fetchSize) { sb.Append(", FetchSize: "); - FetchSize.ToString(sb); + sb.Append(FetchSize); } - if(__isset.timeout) + if (__isset.timeout) { sb.Append(", Timeout: "); - Timeout.ToString(sb); + sb.Append(Timeout); } - if(__isset.enableRedirectQuery) + if (__isset.enableRedirectQuery) { sb.Append(", EnableRedirectQuery: "); - EnableRedirectQuery.ToString(sb); + sb.Append(EnableRedirectQuery); } - if(__isset.jdbcQuery) + if (__isset.jdbcQuery) { sb.Append(", JdbcQuery: "); - JdbcQuery.ToString(sb); + sb.Append(JdbcQuery); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementResp.cs index ae7c4a4..50f21a2 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSExecuteStatementResp : TBase { @@ -244,82 +239,7 @@ public TSExecuteStatementResp(TSStatus status) : this() this.Status = status; } - public TSExecuteStatementResp DeepCopy() - { - var tmp30 = new TSExecuteStatementResp(); - if((Status != null)) - { - tmp30.Status = (TSStatus)this.Status.DeepCopy(); - } - if(__isset.queryId) - { - tmp30.QueryId = this.QueryId; - } - tmp30.__isset.queryId = this.__isset.queryId; - if((Columns != null) && __isset.columns) - { - tmp30.Columns = this.Columns.DeepCopy(); - } - tmp30.__isset.columns = this.__isset.columns; - if((OperationType != null) && __isset.operationType) - { - tmp30.OperationType = this.OperationType; - } - tmp30.__isset.operationType = this.__isset.operationType; - if(__isset.ignoreTimeStamp) - { - tmp30.IgnoreTimeStamp = this.IgnoreTimeStamp; - } - tmp30.__isset.ignoreTimeStamp = this.__isset.ignoreTimeStamp; - if((DataTypeList != null) && __isset.dataTypeList) - { - tmp30.DataTypeList = this.DataTypeList.DeepCopy(); - } - tmp30.__isset.dataTypeList = this.__isset.dataTypeList; - if((QueryDataSet != null) && __isset.queryDataSet) - { - tmp30.QueryDataSet = (TSQueryDataSet)this.QueryDataSet.DeepCopy(); - } - tmp30.__isset.queryDataSet = this.__isset.queryDataSet; - if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) - { - tmp30.NonAlignQueryDataSet = (TSQueryNonAlignDataSet)this.NonAlignQueryDataSet.DeepCopy(); - } - tmp30.__isset.nonAlignQueryDataSet = this.__isset.nonAlignQueryDataSet; - if((ColumnNameIndexMap != null) && __isset.columnNameIndexMap) - { - tmp30.ColumnNameIndexMap = this.ColumnNameIndexMap.DeepCopy(); - } - tmp30.__isset.columnNameIndexMap = this.__isset.columnNameIndexMap; - if((SgColumns != null) && __isset.sgColumns) - { - tmp30.SgColumns = this.SgColumns.DeepCopy(); - } - tmp30.__isset.sgColumns = this.__isset.sgColumns; - if((AliasColumns != null) && __isset.aliasColumns) - { - tmp30.AliasColumns = this.AliasColumns.DeepCopy(); - } - tmp30.__isset.aliasColumns = this.__isset.aliasColumns; - if((TracingInfo != null) && __isset.tracingInfo) - { - tmp30.TracingInfo = (TSTracingInfo)this.TracingInfo.DeepCopy(); - } - tmp30.__isset.tracingInfo = this.__isset.tracingInfo; - if((QueryResult != null) && __isset.queryResult) - { - tmp30.QueryResult = this.QueryResult.DeepCopy(); - } - tmp30.__isset.queryResult = this.__isset.queryResult; - if(__isset.moreData) - { - tmp30.MoreData = this.MoreData; - } - tmp30.__isset.moreData = this.__isset.moreData; - return tmp30; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -363,13 +283,13 @@ public TSExecuteStatementResp DeepCopy() if (field.Type == TType.List) { { - TList _list31 = await iprot.ReadListBeginAsync(cancellationToken); - Columns = new List(_list31.Count); - for(int _i32 = 0; _i32 < _list31.Count; ++_i32) + TList _list24 = await iprot.ReadListBeginAsync(cancellationToken); + Columns = new List(_list24.Count); + for(int _i25 = 0; _i25 < _list24.Count; ++_i25) { - string _elem33; - _elem33 = await iprot.ReadStringAsync(cancellationToken); - Columns.Add(_elem33); + string _elem26; + _elem26 = await iprot.ReadStringAsync(cancellationToken); + Columns.Add(_elem26); } await iprot.ReadListEndAsync(cancellationToken); } @@ -403,13 +323,13 @@ public TSExecuteStatementResp DeepCopy() if (field.Type == TType.List) { { - TList _list34 = await iprot.ReadListBeginAsync(cancellationToken); - DataTypeList = new List(_list34.Count); - for(int _i35 = 0; _i35 < _list34.Count; ++_i35) + TList _list27 = await iprot.ReadListBeginAsync(cancellationToken); + DataTypeList = new List(_list27.Count); + for(int _i28 = 0; _i28 < _list27.Count; ++_i28) { - string _elem36; - _elem36 = await iprot.ReadStringAsync(cancellationToken); - DataTypeList.Add(_elem36); + string _elem29; + _elem29 = await iprot.ReadStringAsync(cancellationToken); + DataTypeList.Add(_elem29); } await iprot.ReadListEndAsync(cancellationToken); } @@ -445,15 +365,15 @@ public TSExecuteStatementResp DeepCopy() if (field.Type == TType.Map) { { - TMap _map37 = await iprot.ReadMapBeginAsync(cancellationToken); - ColumnNameIndexMap = new Dictionary(_map37.Count); - for(int _i38 = 0; _i38 < _map37.Count; ++_i38) + TMap _map30 = await iprot.ReadMapBeginAsync(cancellationToken); + ColumnNameIndexMap = new Dictionary(_map30.Count); + for(int _i31 = 0; _i31 < _map30.Count; ++_i31) { - string _key39; - int _val40; - _key39 = await iprot.ReadStringAsync(cancellationToken); - _val40 = await iprot.ReadI32Async(cancellationToken); - ColumnNameIndexMap[_key39] = _val40; + string _key32; + int _val33; + _key32 = await iprot.ReadStringAsync(cancellationToken); + _val33 = await iprot.ReadI32Async(cancellationToken); + ColumnNameIndexMap[_key32] = _val33; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -467,13 +387,13 @@ public TSExecuteStatementResp DeepCopy() if (field.Type == TType.List) { { - TList _list41 = await iprot.ReadListBeginAsync(cancellationToken); - SgColumns = new List(_list41.Count); - for(int _i42 = 0; _i42 < _list41.Count; ++_i42) + TList _list34 = await iprot.ReadListBeginAsync(cancellationToken); + SgColumns = new List(_list34.Count); + for(int _i35 = 0; _i35 < _list34.Count; ++_i35) { - string _elem43; - _elem43 = await iprot.ReadStringAsync(cancellationToken); - SgColumns.Add(_elem43); + string _elem36; + _elem36 = await iprot.ReadStringAsync(cancellationToken); + SgColumns.Add(_elem36); } await iprot.ReadListEndAsync(cancellationToken); } @@ -487,13 +407,13 @@ public TSExecuteStatementResp DeepCopy() if (field.Type == TType.List) { { - TList _list44 = await iprot.ReadListBeginAsync(cancellationToken); - AliasColumns = new List(_list44.Count); - for(int _i45 = 0; _i45 < _list44.Count; ++_i45) + TList _list37 = await iprot.ReadListBeginAsync(cancellationToken); + AliasColumns = new List(_list37.Count); + for(int _i38 = 0; _i38 < _list37.Count; ++_i38) { - sbyte _elem46; - _elem46 = await iprot.ReadByteAsync(cancellationToken); - AliasColumns.Add(_elem46); + sbyte _elem39; + _elem39 = await iprot.ReadByteAsync(cancellationToken); + AliasColumns.Add(_elem39); } await iprot.ReadListEndAsync(cancellationToken); } @@ -518,13 +438,13 @@ public TSExecuteStatementResp DeepCopy() if (field.Type == TType.List) { { - TList _list47 = await iprot.ReadListBeginAsync(cancellationToken); - QueryResult = new List(_list47.Count); - for(int _i48 = 0; _i48 < _list47.Count; ++_i48) + TList _list40 = await iprot.ReadListBeginAsync(cancellationToken); + QueryResult = new List(_list40.Count); + for(int _i41 = 0; _i41 < _list40.Count; ++_i41) { - byte[] _elem49; - _elem49 = await iprot.ReadBinaryAsync(cancellationToken); - QueryResult.Add(_elem49); + byte[] _elem42; + _elem42 = await iprot.ReadBinaryAsync(cancellationToken); + QueryResult.Add(_elem42); } await iprot.ReadListEndAsync(cancellationToken); } @@ -564,7 +484,7 @@ public TSExecuteStatementResp DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -572,16 +492,13 @@ public TSExecuteStatementResp DeepCopy() var struc = new TStruct("TSExecuteStatementResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((Status != null)) - { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if(__isset.queryId) + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + if (__isset.queryId) { field.Name = "queryId"; field.Type = TType.I64; @@ -590,7 +507,7 @@ public TSExecuteStatementResp DeepCopy() await oprot.WriteI64Async(QueryId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if((Columns != null) && __isset.columns) + if (Columns != null && __isset.columns) { field.Name = "columns"; field.Type = TType.List; @@ -598,15 +515,15 @@ public TSExecuteStatementResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Columns.Count), cancellationToken); - foreach (string _iter50 in Columns) + foreach (string _iter43 in Columns) { - await oprot.WriteStringAsync(_iter50, cancellationToken); + await oprot.WriteStringAsync(_iter43, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if((OperationType != null) && __isset.operationType) + if (OperationType != null && __isset.operationType) { field.Name = "operationType"; field.Type = TType.String; @@ -615,7 +532,7 @@ public TSExecuteStatementResp DeepCopy() await oprot.WriteStringAsync(OperationType, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.ignoreTimeStamp) + if (__isset.ignoreTimeStamp) { field.Name = "ignoreTimeStamp"; field.Type = TType.Bool; @@ -624,7 +541,7 @@ public TSExecuteStatementResp DeepCopy() await oprot.WriteBoolAsync(IgnoreTimeStamp, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if((DataTypeList != null) && __isset.dataTypeList) + if (DataTypeList != null && __isset.dataTypeList) { field.Name = "dataTypeList"; field.Type = TType.List; @@ -632,15 +549,15 @@ public TSExecuteStatementResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, DataTypeList.Count), cancellationToken); - foreach (string _iter51 in DataTypeList) + foreach (string _iter44 in DataTypeList) { - await oprot.WriteStringAsync(_iter51, cancellationToken); + await oprot.WriteStringAsync(_iter44, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if((QueryDataSet != null) && __isset.queryDataSet) + if (QueryDataSet != null && __isset.queryDataSet) { field.Name = "queryDataSet"; field.Type = TType.Struct; @@ -649,7 +566,7 @@ public TSExecuteStatementResp DeepCopy() await QueryDataSet.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) + if (NonAlignQueryDataSet != null && __isset.nonAlignQueryDataSet) { field.Name = "nonAlignQueryDataSet"; field.Type = TType.Struct; @@ -658,7 +575,7 @@ public TSExecuteStatementResp DeepCopy() await NonAlignQueryDataSet.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if((ColumnNameIndexMap != null) && __isset.columnNameIndexMap) + if (ColumnNameIndexMap != null && __isset.columnNameIndexMap) { field.Name = "columnNameIndexMap"; field.Type = TType.Map; @@ -666,16 +583,16 @@ public TSExecuteStatementResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.I32, ColumnNameIndexMap.Count), cancellationToken); - foreach (string _iter52 in ColumnNameIndexMap.Keys) + foreach (string _iter45 in ColumnNameIndexMap.Keys) { - await oprot.WriteStringAsync(_iter52, cancellationToken); - await oprot.WriteI32Async(ColumnNameIndexMap[_iter52], cancellationToken); + await oprot.WriteStringAsync(_iter45, cancellationToken); + await oprot.WriteI32Async(ColumnNameIndexMap[_iter45], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if((SgColumns != null) && __isset.sgColumns) + if (SgColumns != null && __isset.sgColumns) { field.Name = "sgColumns"; field.Type = TType.List; @@ -683,15 +600,15 @@ public TSExecuteStatementResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, SgColumns.Count), cancellationToken); - foreach (string _iter53 in SgColumns) + foreach (string _iter46 in SgColumns) { - await oprot.WriteStringAsync(_iter53, cancellationToken); + await oprot.WriteStringAsync(_iter46, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if((AliasColumns != null) && __isset.aliasColumns) + if (AliasColumns != null && __isset.aliasColumns) { field.Name = "aliasColumns"; field.Type = TType.List; @@ -699,15 +616,15 @@ public TSExecuteStatementResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Byte, AliasColumns.Count), cancellationToken); - foreach (sbyte _iter54 in AliasColumns) + foreach (sbyte _iter47 in AliasColumns) { - await oprot.WriteByteAsync(_iter54, cancellationToken); + await oprot.WriteByteAsync(_iter47, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if((TracingInfo != null) && __isset.tracingInfo) + if (TracingInfo != null && __isset.tracingInfo) { field.Name = "tracingInfo"; field.Type = TType.Struct; @@ -716,7 +633,7 @@ public TSExecuteStatementResp DeepCopy() await TracingInfo.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if((QueryResult != null) && __isset.queryResult) + if (QueryResult != null && __isset.queryResult) { field.Name = "queryResult"; field.Type = TType.List; @@ -724,15 +641,15 @@ public TSExecuteStatementResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, QueryResult.Count), cancellationToken); - foreach (byte[] _iter55 in QueryResult) + foreach (byte[] _iter48 in QueryResult) { - await oprot.WriteBinaryAsync(_iter55, cancellationToken); + await oprot.WriteBinaryAsync(_iter48, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.moreData) + if (__isset.moreData) { field.Name = "moreData"; field.Type = TType.Bool; @@ -752,7 +669,8 @@ public TSExecuteStatementResp DeepCopy() public override bool Equals(object that) { - if (!(that is TSExecuteStatementResp other)) return false; + var other = that as TSExecuteStatementResp; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && ((__isset.queryId == other.__isset.queryId) && ((!__isset.queryId) || (System.Object.Equals(QueryId, other.QueryId)))) @@ -773,62 +691,33 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((Status != null)) - { - hashcode = (hashcode * 397) + Status.GetHashCode(); - } + hashcode = (hashcode * 397) + Status.GetHashCode(); if(__isset.queryId) - { hashcode = (hashcode * 397) + QueryId.GetHashCode(); - } - if((Columns != null) && __isset.columns) - { + if(__isset.columns) hashcode = (hashcode * 397) + TCollections.GetHashCode(Columns); - } - if((OperationType != null) && __isset.operationType) - { + if(__isset.operationType) hashcode = (hashcode * 397) + OperationType.GetHashCode(); - } if(__isset.ignoreTimeStamp) - { hashcode = (hashcode * 397) + IgnoreTimeStamp.GetHashCode(); - } - if((DataTypeList != null) && __isset.dataTypeList) - { + if(__isset.dataTypeList) hashcode = (hashcode * 397) + TCollections.GetHashCode(DataTypeList); - } - if((QueryDataSet != null) && __isset.queryDataSet) - { + if(__isset.queryDataSet) hashcode = (hashcode * 397) + QueryDataSet.GetHashCode(); - } - if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) - { + if(__isset.nonAlignQueryDataSet) hashcode = (hashcode * 397) + NonAlignQueryDataSet.GetHashCode(); - } - if((ColumnNameIndexMap != null) && __isset.columnNameIndexMap) - { + if(__isset.columnNameIndexMap) hashcode = (hashcode * 397) + TCollections.GetHashCode(ColumnNameIndexMap); - } - if((SgColumns != null) && __isset.sgColumns) - { + if(__isset.sgColumns) hashcode = (hashcode * 397) + TCollections.GetHashCode(SgColumns); - } - if((AliasColumns != null) && __isset.aliasColumns) - { + if(__isset.aliasColumns) hashcode = (hashcode * 397) + TCollections.GetHashCode(AliasColumns); - } - if((TracingInfo != null) && __isset.tracingInfo) - { + if(__isset.tracingInfo) hashcode = (hashcode * 397) + TracingInfo.GetHashCode(); - } - if((QueryResult != null) && __isset.queryResult) - { + if(__isset.queryResult) hashcode = (hashcode * 397) + TCollections.GetHashCode(QueryResult); - } if(__isset.moreData) - { hashcode = (hashcode * 397) + MoreData.GetHashCode(); - } } return hashcode; } @@ -836,77 +725,74 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSExecuteStatementResp("); - if((Status != null)) - { - sb.Append(", Status: "); - Status.ToString(sb); - } - if(__isset.queryId) + sb.Append(", Status: "); + sb.Append(Status== null ? "" : Status.ToString()); + if (__isset.queryId) { sb.Append(", QueryId: "); - QueryId.ToString(sb); + sb.Append(QueryId); } - if((Columns != null) && __isset.columns) + if (Columns != null && __isset.columns) { sb.Append(", Columns: "); - Columns.ToString(sb); + sb.Append(Columns); } - if((OperationType != null) && __isset.operationType) + if (OperationType != null && __isset.operationType) { sb.Append(", OperationType: "); - OperationType.ToString(sb); + sb.Append(OperationType); } - if(__isset.ignoreTimeStamp) + if (__isset.ignoreTimeStamp) { sb.Append(", IgnoreTimeStamp: "); - IgnoreTimeStamp.ToString(sb); + sb.Append(IgnoreTimeStamp); } - if((DataTypeList != null) && __isset.dataTypeList) + if (DataTypeList != null && __isset.dataTypeList) { sb.Append(", DataTypeList: "); - DataTypeList.ToString(sb); + sb.Append(DataTypeList); } - if((QueryDataSet != null) && __isset.queryDataSet) + if (QueryDataSet != null && __isset.queryDataSet) { sb.Append(", QueryDataSet: "); - QueryDataSet.ToString(sb); + sb.Append(QueryDataSet== null ? "" : QueryDataSet.ToString()); } - if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) + if (NonAlignQueryDataSet != null && __isset.nonAlignQueryDataSet) { sb.Append(", NonAlignQueryDataSet: "); - NonAlignQueryDataSet.ToString(sb); + sb.Append(NonAlignQueryDataSet== null ? "" : NonAlignQueryDataSet.ToString()); } - if((ColumnNameIndexMap != null) && __isset.columnNameIndexMap) + if (ColumnNameIndexMap != null && __isset.columnNameIndexMap) { sb.Append(", ColumnNameIndexMap: "); - ColumnNameIndexMap.ToString(sb); + sb.Append(ColumnNameIndexMap); } - if((SgColumns != null) && __isset.sgColumns) + if (SgColumns != null && __isset.sgColumns) { sb.Append(", SgColumns: "); - SgColumns.ToString(sb); + sb.Append(SgColumns); } - if((AliasColumns != null) && __isset.aliasColumns) + if (AliasColumns != null && __isset.aliasColumns) { sb.Append(", AliasColumns: "); - AliasColumns.ToString(sb); + sb.Append(AliasColumns); } - if((TracingInfo != null) && __isset.tracingInfo) + if (TracingInfo != null && __isset.tracingInfo) { sb.Append(", TracingInfo: "); - TracingInfo.ToString(sb); + sb.Append(TracingInfo== null ? "" : TracingInfo.ToString()); } - if((QueryResult != null) && __isset.queryResult) + if (QueryResult != null && __isset.queryResult) { sb.Append(", QueryResult: "); - QueryResult.ToString(sb); + sb.Append(QueryResult); } - if(__isset.moreData) + if (__isset.moreData) { sb.Append(", MoreData: "); - MoreData.ToString(sb); + sb.Append(MoreData); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOneDeviceReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOneDeviceReq.cs new file mode 100644 index 0000000..d81c273 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOneDeviceReq.cs @@ -0,0 +1,487 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TSFastLastDataQueryForOneDeviceReq : TBase +{ + private int _fetchSize; + private bool _enableRedirectQuery; + private bool _jdbcQuery; + private long _timeout; + private bool _legalPathNodes; + + public long SessionId { get; set; } + + public string Db { get; set; } + + public string DeviceId { get; set; } + + public List Sensors { get; set; } + + public int FetchSize + { + get + { + return _fetchSize; + } + set + { + __isset.fetchSize = true; + this._fetchSize = value; + } + } + + public long StatementId { get; set; } + + public bool EnableRedirectQuery + { + get + { + return _enableRedirectQuery; + } + set + { + __isset.enableRedirectQuery = true; + this._enableRedirectQuery = value; + } + } + + public bool JdbcQuery + { + get + { + return _jdbcQuery; + } + set + { + __isset.jdbcQuery = true; + this._jdbcQuery = value; + } + } + + public long Timeout + { + get + { + return _timeout; + } + set + { + __isset.timeout = true; + this._timeout = value; + } + } + + public bool LegalPathNodes + { + get + { + return _legalPathNodes; + } + set + { + __isset.legalPathNodes = true; + this._legalPathNodes = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool fetchSize; + public bool enableRedirectQuery; + public bool jdbcQuery; + public bool timeout; + public bool legalPathNodes; + } + + public TSFastLastDataQueryForOneDeviceReq() + { + } + + public TSFastLastDataQueryForOneDeviceReq(long sessionId, string db, string deviceId, List sensors, long statementId) : this() + { + this.SessionId = sessionId; + this.Db = db; + this.DeviceId = deviceId; + this.Sensors = sensors; + this.StatementId = statementId; + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_sessionId = false; + bool isset_db = false; + bool isset_deviceId = false; + bool isset_sensors = false; + bool isset_statementId = false; + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I64) + { + SessionId = await iprot.ReadI64Async(cancellationToken); + isset_sessionId = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Db = await iprot.ReadStringAsync(cancellationToken); + isset_db = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + DeviceId = await iprot.ReadStringAsync(cancellationToken); + isset_deviceId = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.List) + { + { + TList _list268 = await iprot.ReadListBeginAsync(cancellationToken); + Sensors = new List(_list268.Count); + for(int _i269 = 0; _i269 < _list268.Count; ++_i269) + { + string _elem270; + _elem270 = await iprot.ReadStringAsync(cancellationToken); + Sensors.Add(_elem270); + } + await iprot.ReadListEndAsync(cancellationToken); + } + isset_sensors = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.I32) + { + FetchSize = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.I64) + { + StatementId = await iprot.ReadI64Async(cancellationToken); + isset_statementId = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.Bool) + { + EnableRedirectQuery = await iprot.ReadBoolAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.Bool) + { + JdbcQuery = await iprot.ReadBoolAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 9: + if (field.Type == TType.I64) + { + Timeout = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 10: + if (field.Type == TType.Bool) + { + LegalPathNodes = await iprot.ReadBoolAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + if (!isset_sessionId) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_db) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_deviceId) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_sensors) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_statementId) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TSFastLastDataQueryForOneDeviceReq"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "sessionId"; + field.Type = TType.I64; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(SessionId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "db"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Db, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "deviceId"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(DeviceId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "sensors"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.String, Sensors.Count), cancellationToken); + foreach (string _iter271 in Sensors) + { + await oprot.WriteStringAsync(_iter271, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + if (__isset.fetchSize) + { + field.Name = "fetchSize"; + field.Type = TType.I32; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI32Async(FetchSize, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + field.Name = "statementId"; + field.Type = TType.I64; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(StatementId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + if (__isset.enableRedirectQuery) + { + field.Name = "enableRedirectQuery"; + field.Type = TType.Bool; + field.ID = 7; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBoolAsync(EnableRedirectQuery, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (__isset.jdbcQuery) + { + field.Name = "jdbcQuery"; + field.Type = TType.Bool; + field.ID = 8; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBoolAsync(JdbcQuery, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (__isset.timeout) + { + field.Name = "timeout"; + field.Type = TType.I64; + field.ID = 9; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(Timeout, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (__isset.legalPathNodes) + { + field.Name = "legalPathNodes"; + field.Type = TType.Bool; + field.ID = 10; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBoolAsync(LegalPathNodes, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TSFastLastDataQueryForOneDeviceReq; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return System.Object.Equals(SessionId, other.SessionId) + && System.Object.Equals(Db, other.Db) + && System.Object.Equals(DeviceId, other.DeviceId) + && TCollections.Equals(Sensors, other.Sensors) + && ((__isset.fetchSize == other.__isset.fetchSize) && ((!__isset.fetchSize) || (System.Object.Equals(FetchSize, other.FetchSize)))) + && System.Object.Equals(StatementId, other.StatementId) + && ((__isset.enableRedirectQuery == other.__isset.enableRedirectQuery) && ((!__isset.enableRedirectQuery) || (System.Object.Equals(EnableRedirectQuery, other.EnableRedirectQuery)))) + && ((__isset.jdbcQuery == other.__isset.jdbcQuery) && ((!__isset.jdbcQuery) || (System.Object.Equals(JdbcQuery, other.JdbcQuery)))) + && ((__isset.timeout == other.__isset.timeout) && ((!__isset.timeout) || (System.Object.Equals(Timeout, other.Timeout)))) + && ((__isset.legalPathNodes == other.__isset.legalPathNodes) && ((!__isset.legalPathNodes) || (System.Object.Equals(LegalPathNodes, other.LegalPathNodes)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + SessionId.GetHashCode(); + hashcode = (hashcode * 397) + Db.GetHashCode(); + hashcode = (hashcode * 397) + DeviceId.GetHashCode(); + hashcode = (hashcode * 397) + TCollections.GetHashCode(Sensors); + if(__isset.fetchSize) + hashcode = (hashcode * 397) + FetchSize.GetHashCode(); + hashcode = (hashcode * 397) + StatementId.GetHashCode(); + if(__isset.enableRedirectQuery) + hashcode = (hashcode * 397) + EnableRedirectQuery.GetHashCode(); + if(__isset.jdbcQuery) + hashcode = (hashcode * 397) + JdbcQuery.GetHashCode(); + if(__isset.timeout) + hashcode = (hashcode * 397) + Timeout.GetHashCode(); + if(__isset.legalPathNodes) + hashcode = (hashcode * 397) + LegalPathNodes.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TSFastLastDataQueryForOneDeviceReq("); + sb.Append(", SessionId: "); + sb.Append(SessionId); + sb.Append(", Db: "); + sb.Append(Db); + sb.Append(", DeviceId: "); + sb.Append(DeviceId); + sb.Append(", Sensors: "); + sb.Append(Sensors); + if (__isset.fetchSize) + { + sb.Append(", FetchSize: "); + sb.Append(FetchSize); + } + sb.Append(", StatementId: "); + sb.Append(StatementId); + if (__isset.enableRedirectQuery) + { + sb.Append(", EnableRedirectQuery: "); + sb.Append(EnableRedirectQuery); + } + if (__isset.jdbcQuery) + { + sb.Append(", JdbcQuery: "); + sb.Append(JdbcQuery); + } + if (__isset.timeout) + { + sb.Append(", Timeout: "); + sb.Append(Timeout); + } + if (__isset.legalPathNodes) + { + sb.Append(", LegalPathNodes: "); + sb.Append(LegalPathNodes); + } + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataReq.cs index 4b998c3..0c42284 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSFetchMetadataReq : TBase { @@ -67,23 +62,7 @@ public TSFetchMetadataReq(long sessionId, string type) : this() this.Type = type; } - public TSFetchMetadataReq DeepCopy() - { - var tmp101 = new TSFetchMetadataReq(); - tmp101.SessionId = this.SessionId; - if((Type != null)) - { - tmp101.Type = this.Type; - } - if((ColumnPath != null) && __isset.columnPath) - { - tmp101.ColumnPath = this.ColumnPath; - } - tmp101.__isset.columnPath = this.__isset.columnPath; - return tmp101; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -158,7 +137,7 @@ public TSFetchMetadataReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -172,16 +151,13 @@ public TSFetchMetadataReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((Type != null)) - { - field.Name = "type"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Type, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((ColumnPath != null) && __isset.columnPath) + field.Name = "type"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Type, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + if (ColumnPath != null && __isset.columnPath) { field.Name = "columnPath"; field.Type = TType.String; @@ -201,7 +177,8 @@ public TSFetchMetadataReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSFetchMetadataReq other)) return false; + var other = that as TSFetchMetadataReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(Type, other.Type) @@ -212,14 +189,9 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((Type != null)) - { - hashcode = (hashcode * 397) + Type.GetHashCode(); - } - if((ColumnPath != null) && __isset.columnPath) - { + hashcode = (hashcode * 397) + Type.GetHashCode(); + if(__isset.columnPath) hashcode = (hashcode * 397) + ColumnPath.GetHashCode(); - } } return hashcode; } @@ -228,18 +200,15 @@ public override string ToString() { var sb = new StringBuilder("TSFetchMetadataReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((Type != null)) - { - sb.Append(", Type: "); - Type.ToString(sb); - } - if((ColumnPath != null) && __isset.columnPath) + sb.Append(SessionId); + sb.Append(", Type: "); + sb.Append(Type); + if (ColumnPath != null && __isset.columnPath) { sb.Append(", ColumnPath: "); - ColumnPath.ToString(sb); + sb.Append(ColumnPath); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataResp.cs index 751f6d9..8e4f8dc 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSFetchMetadataResp : TBase { @@ -94,32 +89,7 @@ public TSFetchMetadataResp(TSStatus status) : this() this.Status = status; } - public TSFetchMetadataResp DeepCopy() - { - var tmp95 = new TSFetchMetadataResp(); - if((Status != null)) - { - tmp95.Status = (TSStatus)this.Status.DeepCopy(); - } - if((MetadataInJson != null) && __isset.metadataInJson) - { - tmp95.MetadataInJson = this.MetadataInJson; - } - tmp95.__isset.metadataInJson = this.__isset.metadataInJson; - if((ColumnsList != null) && __isset.columnsList) - { - tmp95.ColumnsList = this.ColumnsList.DeepCopy(); - } - tmp95.__isset.columnsList = this.__isset.columnsList; - if((DataType != null) && __isset.dataType) - { - tmp95.DataType = this.DataType; - } - tmp95.__isset.dataType = this.__isset.dataType; - return tmp95; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -163,13 +133,13 @@ public TSFetchMetadataResp DeepCopy() if (field.Type == TType.List) { { - TList _list96 = await iprot.ReadListBeginAsync(cancellationToken); - ColumnsList = new List(_list96.Count); - for(int _i97 = 0; _i97 < _list96.Count; ++_i97) + TList _list67 = await iprot.ReadListBeginAsync(cancellationToken); + ColumnsList = new List(_list67.Count); + for(int _i68 = 0; _i68 < _list67.Count; ++_i68) { - string _elem98; - _elem98 = await iprot.ReadStringAsync(cancellationToken); - ColumnsList.Add(_elem98); + string _elem69; + _elem69 = await iprot.ReadStringAsync(cancellationToken); + ColumnsList.Add(_elem69); } await iprot.ReadListEndAsync(cancellationToken); } @@ -209,7 +179,7 @@ public TSFetchMetadataResp DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -217,16 +187,13 @@ public TSFetchMetadataResp DeepCopy() var struc = new TStruct("TSFetchMetadataResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((Status != null)) - { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((MetadataInJson != null) && __isset.metadataInJson) + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + if (MetadataInJson != null && __isset.metadataInJson) { field.Name = "metadataInJson"; field.Type = TType.String; @@ -235,7 +202,7 @@ public TSFetchMetadataResp DeepCopy() await oprot.WriteStringAsync(MetadataInJson, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if((ColumnsList != null) && __isset.columnsList) + if (ColumnsList != null && __isset.columnsList) { field.Name = "columnsList"; field.Type = TType.List; @@ -243,15 +210,15 @@ public TSFetchMetadataResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, ColumnsList.Count), cancellationToken); - foreach (string _iter99 in ColumnsList) + foreach (string _iter70 in ColumnsList) { - await oprot.WriteStringAsync(_iter99, cancellationToken); + await oprot.WriteStringAsync(_iter70, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if((DataType != null) && __isset.dataType) + if (DataType != null && __isset.dataType) { field.Name = "dataType"; field.Type = TType.String; @@ -271,7 +238,8 @@ public TSFetchMetadataResp DeepCopy() public override bool Equals(object that) { - if (!(that is TSFetchMetadataResp other)) return false; + var other = that as TSFetchMetadataResp; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && ((__isset.metadataInJson == other.__isset.metadataInJson) && ((!__isset.metadataInJson) || (System.Object.Equals(MetadataInJson, other.MetadataInJson)))) @@ -282,22 +250,13 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((Status != null)) - { - hashcode = (hashcode * 397) + Status.GetHashCode(); - } - if((MetadataInJson != null) && __isset.metadataInJson) - { + hashcode = (hashcode * 397) + Status.GetHashCode(); + if(__isset.metadataInJson) hashcode = (hashcode * 397) + MetadataInJson.GetHashCode(); - } - if((ColumnsList != null) && __isset.columnsList) - { + if(__isset.columnsList) hashcode = (hashcode * 397) + TCollections.GetHashCode(ColumnsList); - } - if((DataType != null) && __isset.dataType) - { + if(__isset.dataType) hashcode = (hashcode * 397) + DataType.GetHashCode(); - } } return hashcode; } @@ -305,27 +264,24 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSFetchMetadataResp("); - if((Status != null)) - { - sb.Append(", Status: "); - Status.ToString(sb); - } - if((MetadataInJson != null) && __isset.metadataInJson) + sb.Append(", Status: "); + sb.Append(Status== null ? "" : Status.ToString()); + if (MetadataInJson != null && __isset.metadataInJson) { sb.Append(", MetadataInJson: "); - MetadataInJson.ToString(sb); + sb.Append(MetadataInJson); } - if((ColumnsList != null) && __isset.columnsList) + if (ColumnsList != null && __isset.columnsList) { sb.Append(", ColumnsList: "); - ColumnsList.ToString(sb); + sb.Append(ColumnsList); } - if((DataType != null) && __isset.dataType) + if (DataType != null && __isset.dataType) { sb.Append(", DataType: "); - DataType.ToString(sb); + sb.Append(DataType); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsReq.cs index a361ca0..2c42f2a 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSFetchResultsReq : TBase { @@ -76,26 +71,7 @@ public TSFetchResultsReq(long sessionId, string statement, int fetchSize, long q this.IsAlign = isAlign; } - public TSFetchResultsReq DeepCopy() - { - var tmp87 = new TSFetchResultsReq(); - tmp87.SessionId = this.SessionId; - if((Statement != null)) - { - tmp87.Statement = this.Statement; - } - tmp87.FetchSize = this.FetchSize; - tmp87.QueryId = this.QueryId; - tmp87.IsAlign = this.IsAlign; - if(__isset.timeout) - { - tmp87.Timeout = this.Timeout; - } - tmp87.__isset.timeout = this.__isset.timeout; - return tmp87; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -218,7 +194,7 @@ public TSFetchResultsReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -232,15 +208,12 @@ public TSFetchResultsReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((Statement != null)) - { - field.Name = "statement"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Statement, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "statement"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Statement, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "fetchSize"; field.Type = TType.I32; field.ID = 3; @@ -259,7 +232,7 @@ public TSFetchResultsReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(IsAlign, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if(__isset.timeout) + if (__isset.timeout) { field.Name = "timeout"; field.Type = TType.I64; @@ -279,7 +252,8 @@ public TSFetchResultsReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSFetchResultsReq other)) return false; + var other = that as TSFetchResultsReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(Statement, other.Statement) @@ -293,17 +267,12 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((Statement != null)) - { - hashcode = (hashcode * 397) + Statement.GetHashCode(); - } + hashcode = (hashcode * 397) + Statement.GetHashCode(); hashcode = (hashcode * 397) + FetchSize.GetHashCode(); hashcode = (hashcode * 397) + QueryId.GetHashCode(); hashcode = (hashcode * 397) + IsAlign.GetHashCode(); if(__isset.timeout) - { hashcode = (hashcode * 397) + Timeout.GetHashCode(); - } } return hashcode; } @@ -312,24 +281,21 @@ public override string ToString() { var sb = new StringBuilder("TSFetchResultsReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((Statement != null)) - { - sb.Append(", Statement: "); - Statement.ToString(sb); - } + sb.Append(SessionId); + sb.Append(", Statement: "); + sb.Append(Statement); sb.Append(", FetchSize: "); - FetchSize.ToString(sb); + sb.Append(FetchSize); sb.Append(", QueryId: "); - QueryId.ToString(sb); + sb.Append(QueryId); sb.Append(", IsAlign: "); - IsAlign.ToString(sb); - if(__isset.timeout) + sb.Append(IsAlign); + if (__isset.timeout) { sb.Append(", Timeout: "); - Timeout.ToString(sb); + sb.Append(Timeout); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsResp.cs index 5da2723..3e12bd0 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSFetchResultsResp : TBase { @@ -115,39 +110,7 @@ public TSFetchResultsResp(TSStatus status, bool hasResultSet, bool isAlign) : th this.IsAlign = isAlign; } - public TSFetchResultsResp DeepCopy() - { - var tmp89 = new TSFetchResultsResp(); - if((Status != null)) - { - tmp89.Status = (TSStatus)this.Status.DeepCopy(); - } - tmp89.HasResultSet = this.HasResultSet; - tmp89.IsAlign = this.IsAlign; - if((QueryDataSet != null) && __isset.queryDataSet) - { - tmp89.QueryDataSet = (TSQueryDataSet)this.QueryDataSet.DeepCopy(); - } - tmp89.__isset.queryDataSet = this.__isset.queryDataSet; - if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) - { - tmp89.NonAlignQueryDataSet = (TSQueryNonAlignDataSet)this.NonAlignQueryDataSet.DeepCopy(); - } - tmp89.__isset.nonAlignQueryDataSet = this.__isset.nonAlignQueryDataSet; - if((QueryResult != null) && __isset.queryResult) - { - tmp89.QueryResult = this.QueryResult.DeepCopy(); - } - tmp89.__isset.queryResult = this.__isset.queryResult; - if(__isset.moreData) - { - tmp89.MoreData = this.MoreData; - } - tmp89.__isset.moreData = this.__isset.moreData; - return tmp89; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -227,13 +190,13 @@ public TSFetchResultsResp DeepCopy() if (field.Type == TType.List) { { - TList _list90 = await iprot.ReadListBeginAsync(cancellationToken); - QueryResult = new List(_list90.Count); - for(int _i91 = 0; _i91 < _list90.Count; ++_i91) + TList _list63 = await iprot.ReadListBeginAsync(cancellationToken); + QueryResult = new List(_list63.Count); + for(int _i64 = 0; _i64 < _list63.Count; ++_i64) { - byte[] _elem92; - _elem92 = await iprot.ReadBinaryAsync(cancellationToken); - QueryResult.Add(_elem92); + byte[] _elem65; + _elem65 = await iprot.ReadBinaryAsync(cancellationToken); + QueryResult.Add(_elem65); } await iprot.ReadListEndAsync(cancellationToken); } @@ -281,7 +244,7 @@ public TSFetchResultsResp DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -289,15 +252,12 @@ public TSFetchResultsResp DeepCopy() var struc = new TStruct("TSFetchResultsResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((Status != null)) - { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "hasResultSet"; field.Type = TType.Bool; field.ID = 2; @@ -310,7 +270,7 @@ public TSFetchResultsResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(IsAlign, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((QueryDataSet != null) && __isset.queryDataSet) + if (QueryDataSet != null && __isset.queryDataSet) { field.Name = "queryDataSet"; field.Type = TType.Struct; @@ -319,7 +279,7 @@ public TSFetchResultsResp DeepCopy() await QueryDataSet.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) + if (NonAlignQueryDataSet != null && __isset.nonAlignQueryDataSet) { field.Name = "nonAlignQueryDataSet"; field.Type = TType.Struct; @@ -328,7 +288,7 @@ public TSFetchResultsResp DeepCopy() await NonAlignQueryDataSet.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if((QueryResult != null) && __isset.queryResult) + if (QueryResult != null && __isset.queryResult) { field.Name = "queryResult"; field.Type = TType.List; @@ -336,15 +296,15 @@ public TSFetchResultsResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, QueryResult.Count), cancellationToken); - foreach (byte[] _iter93 in QueryResult) + foreach (byte[] _iter66 in QueryResult) { - await oprot.WriteBinaryAsync(_iter93, cancellationToken); + await oprot.WriteBinaryAsync(_iter66, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.moreData) + if (__isset.moreData) { field.Name = "moreData"; field.Type = TType.Bool; @@ -364,7 +324,8 @@ public TSFetchResultsResp DeepCopy() public override bool Equals(object that) { - if (!(that is TSFetchResultsResp other)) return false; + var other = that as TSFetchResultsResp; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && System.Object.Equals(HasResultSet, other.HasResultSet) @@ -378,28 +339,17 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((Status != null)) - { - hashcode = (hashcode * 397) + Status.GetHashCode(); - } + hashcode = (hashcode * 397) + Status.GetHashCode(); hashcode = (hashcode * 397) + HasResultSet.GetHashCode(); hashcode = (hashcode * 397) + IsAlign.GetHashCode(); - if((QueryDataSet != null) && __isset.queryDataSet) - { + if(__isset.queryDataSet) hashcode = (hashcode * 397) + QueryDataSet.GetHashCode(); - } - if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) - { + if(__isset.nonAlignQueryDataSet) hashcode = (hashcode * 397) + NonAlignQueryDataSet.GetHashCode(); - } - if((QueryResult != null) && __isset.queryResult) - { + if(__isset.queryResult) hashcode = (hashcode * 397) + TCollections.GetHashCode(QueryResult); - } if(__isset.moreData) - { hashcode = (hashcode * 397) + MoreData.GetHashCode(); - } } return hashcode; } @@ -407,36 +357,33 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSFetchResultsResp("); - if((Status != null)) - { - sb.Append(", Status: "); - Status.ToString(sb); - } + sb.Append(", Status: "); + sb.Append(Status== null ? "" : Status.ToString()); sb.Append(", HasResultSet: "); - HasResultSet.ToString(sb); + sb.Append(HasResultSet); sb.Append(", IsAlign: "); - IsAlign.ToString(sb); - if((QueryDataSet != null) && __isset.queryDataSet) + sb.Append(IsAlign); + if (QueryDataSet != null && __isset.queryDataSet) { sb.Append(", QueryDataSet: "); - QueryDataSet.ToString(sb); + sb.Append(QueryDataSet== null ? "" : QueryDataSet.ToString()); } - if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) + if (NonAlignQueryDataSet != null && __isset.nonAlignQueryDataSet) { sb.Append(", NonAlignQueryDataSet: "); - NonAlignQueryDataSet.ToString(sb); + sb.Append(NonAlignQueryDataSet== null ? "" : NonAlignQueryDataSet.ToString()); } - if((QueryResult != null) && __isset.queryResult) + if (QueryResult != null && __isset.queryResult) { sb.Append(", QueryResult: "); - QueryResult.ToString(sb); + sb.Append(QueryResult); } - if(__isset.moreData) + if (__isset.moreData) { sb.Append(", MoreData: "); - MoreData.ToString(sb); + sb.Append(MoreData); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSGetOperationStatusReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSGetOperationStatusReq.cs index 7f35755..c44aec0 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSGetOperationStatusReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSGetOperationStatusReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSGetOperationStatusReq : TBase { @@ -46,15 +41,7 @@ public TSGetOperationStatusReq(long sessionId, long queryId) : this() this.QueryId = queryId; } - public TSGetOperationStatusReq DeepCopy() - { - var tmp81 = new TSGetOperationStatusReq(); - tmp81.SessionId = this.SessionId; - tmp81.QueryId = this.QueryId; - return tmp81; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -119,7 +106,7 @@ public TSGetOperationStatusReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -150,7 +137,8 @@ public TSGetOperationStatusReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSGetOperationStatusReq other)) return false; + var other = that as TSGetOperationStatusReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(QueryId, other.QueryId); @@ -169,10 +157,10 @@ public override string ToString() { var sb = new StringBuilder("TSGetOperationStatusReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); + sb.Append(SessionId); sb.Append(", QueryId: "); - QueryId.ToString(sb); - sb.Append(')'); + sb.Append(QueryId); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSGetTimeZoneResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSGetTimeZoneResp.cs index 4dca3ad..37bdbf2 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSGetTimeZoneResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSGetTimeZoneResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSGetTimeZoneResp : TBase { @@ -46,21 +41,7 @@ public TSGetTimeZoneResp(TSStatus status, string timeZone) : this() this.TimeZone = timeZone; } - public TSGetTimeZoneResp DeepCopy() - { - var tmp103 = new TSGetTimeZoneResp(); - if((Status != null)) - { - tmp103.Status = (TSStatus)this.Status.DeepCopy(); - } - if((TimeZone != null)) - { - tmp103.TimeZone = this.TimeZone; - } - return tmp103; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -126,7 +107,7 @@ public TSGetTimeZoneResp DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -134,24 +115,18 @@ public TSGetTimeZoneResp DeepCopy() var struc = new TStruct("TSGetTimeZoneResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((Status != null)) - { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((TimeZone != null)) - { - field.Name = "timeZone"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(TimeZone, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "timeZone"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(TimeZone, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -163,7 +138,8 @@ public TSGetTimeZoneResp DeepCopy() public override bool Equals(object that) { - if (!(that is TSGetTimeZoneResp other)) return false; + var other = that as TSGetTimeZoneResp; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && System.Object.Equals(TimeZone, other.TimeZone); @@ -172,14 +148,8 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((Status != null)) - { - hashcode = (hashcode * 397) + Status.GetHashCode(); - } - if((TimeZone != null)) - { - hashcode = (hashcode * 397) + TimeZone.GetHashCode(); - } + hashcode = (hashcode * 397) + Status.GetHashCode(); + hashcode = (hashcode * 397) + TimeZone.GetHashCode(); } return hashcode; } @@ -187,17 +157,11 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSGetTimeZoneResp("); - if((Status != null)) - { - sb.Append(", Status: "); - Status.ToString(sb); - } - if((TimeZone != null)) - { - sb.Append(", TimeZone: "); - TimeZone.ToString(sb); - } - sb.Append(')'); + sb.Append(", Status: "); + sb.Append(Status== null ? "" : Status.ToString()); + sb.Append(", TimeZone: "); + sb.Append(TimeZone); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSGroupByQueryIntervalReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSGroupByQueryIntervalReq.cs new file mode 100644 index 0000000..92e5bbf --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TSGroupByQueryIntervalReq.cs @@ -0,0 +1,545 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TSGroupByQueryIntervalReq : TBase +{ + private string _database; + private long _startTime; + private long _endTime; + private long _interval; + private int _fetchSize; + private long _timeout; + + public long SessionId { get; set; } + + public long StatementId { get; set; } + + public string Device { get; set; } + + public string Measurement { get; set; } + + public int DataType { get; set; } + + /// + /// + /// + /// + public TAggregationType AggregationType { get; set; } + + public string Database + { + get + { + return _database; + } + set + { + __isset.database = true; + this._database = value; + } + } + + public long StartTime + { + get + { + return _startTime; + } + set + { + __isset.startTime = true; + this._startTime = value; + } + } + + public long EndTime + { + get + { + return _endTime; + } + set + { + __isset.endTime = true; + this._endTime = value; + } + } + + public long Interval + { + get + { + return _interval; + } + set + { + __isset.interval = true; + this._interval = value; + } + } + + public int FetchSize + { + get + { + return _fetchSize; + } + set + { + __isset.fetchSize = true; + this._fetchSize = value; + } + } + + public long Timeout + { + get + { + return _timeout; + } + set + { + __isset.timeout = true; + this._timeout = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool database; + public bool startTime; + public bool endTime; + public bool interval; + public bool fetchSize; + public bool timeout; + } + + public TSGroupByQueryIntervalReq() + { + } + + public TSGroupByQueryIntervalReq(long sessionId, long statementId, string device, string measurement, int dataType, TAggregationType aggregationType) : this() + { + this.SessionId = sessionId; + this.StatementId = statementId; + this.Device = device; + this.Measurement = measurement; + this.DataType = dataType; + this.AggregationType = aggregationType; + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_sessionId = false; + bool isset_statementId = false; + bool isset_device = false; + bool isset_measurement = false; + bool isset_dataType = false; + bool isset_aggregationType = false; + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I64) + { + SessionId = await iprot.ReadI64Async(cancellationToken); + isset_sessionId = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I64) + { + StatementId = await iprot.ReadI64Async(cancellationToken); + isset_statementId = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Device = await iprot.ReadStringAsync(cancellationToken); + isset_device = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Measurement = await iprot.ReadStringAsync(cancellationToken); + isset_measurement = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.I32) + { + DataType = await iprot.ReadI32Async(cancellationToken); + isset_dataType = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.I32) + { + AggregationType = (TAggregationType)await iprot.ReadI32Async(cancellationToken); + isset_aggregationType = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + Database = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.I64) + { + StartTime = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 9: + if (field.Type == TType.I64) + { + EndTime = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 10: + if (field.Type == TType.I64) + { + Interval = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 11: + if (field.Type == TType.I32) + { + FetchSize = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 12: + if (field.Type == TType.I64) + { + Timeout = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + if (!isset_sessionId) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_statementId) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_device) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_measurement) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_dataType) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_aggregationType) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TSGroupByQueryIntervalReq"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "sessionId"; + field.Type = TType.I64; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(SessionId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "statementId"; + field.Type = TType.I64; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(StatementId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "device"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Device, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "measurement"; + field.Type = TType.String; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Measurement, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "dataType"; + field.Type = TType.I32; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI32Async(DataType, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "aggregationType"; + field.Type = TType.I32; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI32Async((int)AggregationType, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + if (Database != null && __isset.database) + { + field.Name = "database"; + field.Type = TType.String; + field.ID = 7; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Database, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (__isset.startTime) + { + field.Name = "startTime"; + field.Type = TType.I64; + field.ID = 8; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(StartTime, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (__isset.endTime) + { + field.Name = "endTime"; + field.Type = TType.I64; + field.ID = 9; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(EndTime, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (__isset.interval) + { + field.Name = "interval"; + field.Type = TType.I64; + field.ID = 10; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(Interval, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (__isset.fetchSize) + { + field.Name = "fetchSize"; + field.Type = TType.I32; + field.ID = 11; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI32Async(FetchSize, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (__isset.timeout) + { + field.Name = "timeout"; + field.Type = TType.I64; + field.ID = 12; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(Timeout, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TSGroupByQueryIntervalReq; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return System.Object.Equals(SessionId, other.SessionId) + && System.Object.Equals(StatementId, other.StatementId) + && System.Object.Equals(Device, other.Device) + && System.Object.Equals(Measurement, other.Measurement) + && System.Object.Equals(DataType, other.DataType) + && System.Object.Equals(AggregationType, other.AggregationType) + && ((__isset.database == other.__isset.database) && ((!__isset.database) || (System.Object.Equals(Database, other.Database)))) + && ((__isset.startTime == other.__isset.startTime) && ((!__isset.startTime) || (System.Object.Equals(StartTime, other.StartTime)))) + && ((__isset.endTime == other.__isset.endTime) && ((!__isset.endTime) || (System.Object.Equals(EndTime, other.EndTime)))) + && ((__isset.interval == other.__isset.interval) && ((!__isset.interval) || (System.Object.Equals(Interval, other.Interval)))) + && ((__isset.fetchSize == other.__isset.fetchSize) && ((!__isset.fetchSize) || (System.Object.Equals(FetchSize, other.FetchSize)))) + && ((__isset.timeout == other.__isset.timeout) && ((!__isset.timeout) || (System.Object.Equals(Timeout, other.Timeout)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + SessionId.GetHashCode(); + hashcode = (hashcode * 397) + StatementId.GetHashCode(); + hashcode = (hashcode * 397) + Device.GetHashCode(); + hashcode = (hashcode * 397) + Measurement.GetHashCode(); + hashcode = (hashcode * 397) + DataType.GetHashCode(); + hashcode = (hashcode * 397) + AggregationType.GetHashCode(); + if(__isset.database) + hashcode = (hashcode * 397) + Database.GetHashCode(); + if(__isset.startTime) + hashcode = (hashcode * 397) + StartTime.GetHashCode(); + if(__isset.endTime) + hashcode = (hashcode * 397) + EndTime.GetHashCode(); + if(__isset.interval) + hashcode = (hashcode * 397) + Interval.GetHashCode(); + if(__isset.fetchSize) + hashcode = (hashcode * 397) + FetchSize.GetHashCode(); + if(__isset.timeout) + hashcode = (hashcode * 397) + Timeout.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TSGroupByQueryIntervalReq("); + sb.Append(", SessionId: "); + sb.Append(SessionId); + sb.Append(", StatementId: "); + sb.Append(StatementId); + sb.Append(", Device: "); + sb.Append(Device); + sb.Append(", Measurement: "); + sb.Append(Measurement); + sb.Append(", DataType: "); + sb.Append(DataType); + sb.Append(", AggregationType: "); + sb.Append(AggregationType); + if (Database != null && __isset.database) + { + sb.Append(", Database: "); + sb.Append(Database); + } + if (__isset.startTime) + { + sb.Append(", StartTime: "); + sb.Append(StartTime); + } + if (__isset.endTime) + { + sb.Append(", EndTime: "); + sb.Append(EndTime); + } + if (__isset.interval) + { + sb.Append(", Interval: "); + sb.Append(Interval); + } + if (__isset.fetchSize) + { + sb.Append(", FetchSize: "); + sb.Append(FetchSize); + } + if (__isset.timeout) + { + sb.Append(", Timeout: "); + sb.Append(Timeout); + } + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordReq.cs index ebd4a21..a0c0d63 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSInsertRecordReq : TBase { @@ -76,32 +71,7 @@ public TSInsertRecordReq(long sessionId, string prefixPath, List measure this.Timestamp = timestamp; } - public TSInsertRecordReq DeepCopy() - { - var tmp107 = new TSInsertRecordReq(); - tmp107.SessionId = this.SessionId; - if((PrefixPath != null)) - { - tmp107.PrefixPath = this.PrefixPath; - } - if((Measurements != null)) - { - tmp107.Measurements = this.Measurements.DeepCopy(); - } - if((Values != null)) - { - tmp107.Values = this.Values.ToArray(); - } - tmp107.Timestamp = this.Timestamp; - if(__isset.isAligned) - { - tmp107.IsAligned = this.IsAligned; - } - tmp107.__isset.isAligned = this.__isset.isAligned; - return tmp107; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -149,13 +119,13 @@ public TSInsertRecordReq DeepCopy() if (field.Type == TType.List) { { - TList _list108 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list108.Count); - for(int _i109 = 0; _i109 < _list108.Count; ++_i109) + TList _list71 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list71.Count); + for(int _i72 = 0; _i72 < _list71.Count; ++_i72) { - string _elem110; - _elem110 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem110); + string _elem73; + _elem73 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem73); } await iprot.ReadListEndAsync(cancellationToken); } @@ -234,7 +204,7 @@ public TSInsertRecordReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -248,47 +218,38 @@ public TSInsertRecordReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((PrefixPath != null)) - { - field.Name = "prefixPath"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(PrefixPath, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((Measurements != null)) + field.Name = "prefixPath"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(PrefixPath, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "measurements"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "measurements"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); + foreach (string _iter74 in Measurements) { - await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter111 in Measurements) - { - await oprot.WriteStringAsync(_iter111, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter74, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((Values != null)) - { - field.Name = "values"; - field.Type = TType.String; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteBinaryAsync(Values, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "values"; + field.Type = TType.String; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBinaryAsync(Values, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "timestamp"; field.Type = TType.I64; field.ID = 5; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(Timestamp, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if(__isset.isAligned) + if (__isset.isAligned) { field.Name = "isAligned"; field.Type = TType.Bool; @@ -308,7 +269,8 @@ public TSInsertRecordReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSInsertRecordReq other)) return false; + var other = that as TSInsertRecordReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(PrefixPath, other.PrefixPath) @@ -322,23 +284,12 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((PrefixPath != null)) - { - hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); - } - if((Measurements != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); - } - if((Values != null)) - { - hashcode = (hashcode * 397) + Values.GetHashCode(); - } + hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); + hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); + hashcode = (hashcode * 397) + Values.GetHashCode(); hashcode = (hashcode * 397) + Timestamp.GetHashCode(); if(__isset.isAligned) - { hashcode = (hashcode * 397) + IsAligned.GetHashCode(); - } } return hashcode; } @@ -347,30 +298,21 @@ public override string ToString() { var sb = new StringBuilder("TSInsertRecordReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((PrefixPath != null)) - { - sb.Append(", PrefixPath: "); - PrefixPath.ToString(sb); - } - if((Measurements != null)) - { - sb.Append(", Measurements: "); - Measurements.ToString(sb); - } - if((Values != null)) - { - sb.Append(", Values: "); - Values.ToString(sb); - } + sb.Append(SessionId); + sb.Append(", PrefixPath: "); + sb.Append(PrefixPath); + sb.Append(", Measurements: "); + sb.Append(Measurements); + sb.Append(", Values: "); + sb.Append(Values); sb.Append(", Timestamp: "); - Timestamp.ToString(sb); - if(__isset.isAligned) + sb.Append(Timestamp); + if (__isset.isAligned) { sb.Append(", IsAligned: "); - IsAligned.ToString(sb); + sb.Append(IsAligned); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsOfOneDeviceReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsOfOneDeviceReq.cs index 5117ce8..e10602f 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsOfOneDeviceReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsOfOneDeviceReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSInsertRecordsOfOneDeviceReq : TBase { @@ -76,35 +71,7 @@ public TSInsertRecordsOfOneDeviceReq(long sessionId, string prefixPath, List>(_list190.Count); - for(int _i191 = 0; _i191 < _list190.Count; ++_i191) + TList _list143 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list143.Count); + for(int _i144 = 0; _i144 < _list143.Count; ++_i144) { - List _elem192; + List _elem145; { - TList _list193 = await iprot.ReadListBeginAsync(cancellationToken); - _elem192 = new List(_list193.Count); - for(int _i194 = 0; _i194 < _list193.Count; ++_i194) + TList _list146 = await iprot.ReadListBeginAsync(cancellationToken); + _elem145 = new List(_list146.Count); + for(int _i147 = 0; _i147 < _list146.Count; ++_i147) { - string _elem195; - _elem195 = await iprot.ReadStringAsync(cancellationToken); - _elem192.Add(_elem195); + string _elem148; + _elem148 = await iprot.ReadStringAsync(cancellationToken); + _elem145.Add(_elem148); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem192); + MeasurementsList.Add(_elem145); } await iprot.ReadListEndAsync(cancellationToken); } @@ -183,13 +150,13 @@ public TSInsertRecordsOfOneDeviceReq DeepCopy() if (field.Type == TType.List) { { - TList _list196 = await iprot.ReadListBeginAsync(cancellationToken); - ValuesList = new List(_list196.Count); - for(int _i197 = 0; _i197 < _list196.Count; ++_i197) + TList _list149 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List(_list149.Count); + for(int _i150 = 0; _i150 < _list149.Count; ++_i150) { - byte[] _elem198; - _elem198 = await iprot.ReadBinaryAsync(cancellationToken); - ValuesList.Add(_elem198); + byte[] _elem151; + _elem151 = await iprot.ReadBinaryAsync(cancellationToken); + ValuesList.Add(_elem151); } await iprot.ReadListEndAsync(cancellationToken); } @@ -204,13 +171,13 @@ public TSInsertRecordsOfOneDeviceReq DeepCopy() if (field.Type == TType.List) { { - TList _list199 = await iprot.ReadListBeginAsync(cancellationToken); - Timestamps = new List(_list199.Count); - for(int _i200 = 0; _i200 < _list199.Count; ++_i200) + TList _list152 = await iprot.ReadListBeginAsync(cancellationToken); + Timestamps = new List(_list152.Count); + for(int _i153 = 0; _i153 < _list152.Count; ++_i153) { - long _elem201; - _elem201 = await iprot.ReadI64Async(cancellationToken); - Timestamps.Add(_elem201); + long _elem154; + _elem154 = await iprot.ReadI64Async(cancellationToken); + Timestamps.Add(_elem154); } await iprot.ReadListEndAsync(cancellationToken); } @@ -267,7 +234,7 @@ public TSInsertRecordsOfOneDeviceReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -281,71 +248,59 @@ public TSInsertRecordsOfOneDeviceReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((PrefixPath != null)) - { - field.Name = "prefixPath"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(PrefixPath, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((MeasurementsList != null)) + field.Name = "prefixPath"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(PrefixPath, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "measurementsList"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "measurementsList"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); + foreach (List _iter155 in MeasurementsList) { - await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); - foreach (List _iter202 in MeasurementsList) { + await oprot.WriteListBeginAsync(new TList(TType.String, _iter155.Count), cancellationToken); + foreach (string _iter156 in _iter155) { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter202.Count), cancellationToken); - foreach (string _iter203 in _iter202) - { - await oprot.WriteStringAsync(_iter203, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter156, cancellationToken); } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((ValuesList != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "valuesList"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "valuesList"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, ValuesList.Count), cancellationToken); + foreach (byte[] _iter157 in ValuesList) { - await oprot.WriteListBeginAsync(new TList(TType.String, ValuesList.Count), cancellationToken); - foreach (byte[] _iter204 in ValuesList) - { - await oprot.WriteBinaryAsync(_iter204, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteBinaryAsync(_iter157, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((Timestamps != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "timestamps"; + field.Type = TType.List; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "timestamps"; - field.Type = TType.List; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); + foreach (long _iter158 in Timestamps) { - await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); - foreach (long _iter205 in Timestamps) - { - await oprot.WriteI64Async(_iter205, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteI64Async(_iter158, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if(__isset.isAligned) + await oprot.WriteFieldEndAsync(cancellationToken); + if (__isset.isAligned) { field.Name = "isAligned"; field.Type = TType.Bool; @@ -365,7 +320,8 @@ public TSInsertRecordsOfOneDeviceReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSInsertRecordsOfOneDeviceReq other)) return false; + var other = that as TSInsertRecordsOfOneDeviceReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(PrefixPath, other.PrefixPath) @@ -379,26 +335,12 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((PrefixPath != null)) - { - hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); - } - if((MeasurementsList != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementsList); - } - if((ValuesList != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(ValuesList); - } - if((Timestamps != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Timestamps); - } + hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); + hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementsList); + hashcode = (hashcode * 397) + TCollections.GetHashCode(ValuesList); + hashcode = (hashcode * 397) + TCollections.GetHashCode(Timestamps); if(__isset.isAligned) - { hashcode = (hashcode * 397) + IsAligned.GetHashCode(); - } } return hashcode; } @@ -407,33 +349,21 @@ public override string ToString() { var sb = new StringBuilder("TSInsertRecordsOfOneDeviceReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((PrefixPath != null)) - { - sb.Append(", PrefixPath: "); - PrefixPath.ToString(sb); - } - if((MeasurementsList != null)) - { - sb.Append(", MeasurementsList: "); - MeasurementsList.ToString(sb); - } - if((ValuesList != null)) - { - sb.Append(", ValuesList: "); - ValuesList.ToString(sb); - } - if((Timestamps != null)) - { - sb.Append(", Timestamps: "); - Timestamps.ToString(sb); - } - if(__isset.isAligned) + sb.Append(SessionId); + sb.Append(", PrefixPath: "); + sb.Append(PrefixPath); + sb.Append(", MeasurementsList: "); + sb.Append(MeasurementsList); + sb.Append(", ValuesList: "); + sb.Append(ValuesList); + sb.Append(", Timestamps: "); + sb.Append(Timestamps); + if (__isset.isAligned) { sb.Append(", IsAligned: "); - IsAligned.ToString(sb); + sb.Append(IsAligned); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsReq.cs index 6d1fc41..4678db8 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSInsertRecordsReq : TBase { @@ -76,35 +71,7 @@ public TSInsertRecordsReq(long sessionId, List prefixPaths, List(_list168.Count); - for(int _i169 = 0; _i169 < _list168.Count; ++_i169) + TList _list123 = await iprot.ReadListBeginAsync(cancellationToken); + PrefixPaths = new List(_list123.Count); + for(int _i124 = 0; _i124 < _list123.Count; ++_i124) { - string _elem170; - _elem170 = await iprot.ReadStringAsync(cancellationToken); - PrefixPaths.Add(_elem170); + string _elem125; + _elem125 = await iprot.ReadStringAsync(cancellationToken); + PrefixPaths.Add(_elem125); } await iprot.ReadListEndAsync(cancellationToken); } @@ -162,23 +129,23 @@ public TSInsertRecordsReq DeepCopy() if (field.Type == TType.List) { { - TList _list171 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementsList = new List>(_list171.Count); - for(int _i172 = 0; _i172 < _list171.Count; ++_i172) + TList _list126 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list126.Count); + for(int _i127 = 0; _i127 < _list126.Count; ++_i127) { - List _elem173; + List _elem128; { - TList _list174 = await iprot.ReadListBeginAsync(cancellationToken); - _elem173 = new List(_list174.Count); - for(int _i175 = 0; _i175 < _list174.Count; ++_i175) + TList _list129 = await iprot.ReadListBeginAsync(cancellationToken); + _elem128 = new List(_list129.Count); + for(int _i130 = 0; _i130 < _list129.Count; ++_i130) { - string _elem176; - _elem176 = await iprot.ReadStringAsync(cancellationToken); - _elem173.Add(_elem176); + string _elem131; + _elem131 = await iprot.ReadStringAsync(cancellationToken); + _elem128.Add(_elem131); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem173); + MeasurementsList.Add(_elem128); } await iprot.ReadListEndAsync(cancellationToken); } @@ -193,13 +160,13 @@ public TSInsertRecordsReq DeepCopy() if (field.Type == TType.List) { { - TList _list177 = await iprot.ReadListBeginAsync(cancellationToken); - ValuesList = new List(_list177.Count); - for(int _i178 = 0; _i178 < _list177.Count; ++_i178) + TList _list132 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List(_list132.Count); + for(int _i133 = 0; _i133 < _list132.Count; ++_i133) { - byte[] _elem179; - _elem179 = await iprot.ReadBinaryAsync(cancellationToken); - ValuesList.Add(_elem179); + byte[] _elem134; + _elem134 = await iprot.ReadBinaryAsync(cancellationToken); + ValuesList.Add(_elem134); } await iprot.ReadListEndAsync(cancellationToken); } @@ -214,13 +181,13 @@ public TSInsertRecordsReq DeepCopy() if (field.Type == TType.List) { { - TList _list180 = await iprot.ReadListBeginAsync(cancellationToken); - Timestamps = new List(_list180.Count); - for(int _i181 = 0; _i181 < _list180.Count; ++_i181) + TList _list135 = await iprot.ReadListBeginAsync(cancellationToken); + Timestamps = new List(_list135.Count); + for(int _i136 = 0; _i136 < _list135.Count; ++_i136) { - long _elem182; - _elem182 = await iprot.ReadI64Async(cancellationToken); - Timestamps.Add(_elem182); + long _elem137; + _elem137 = await iprot.ReadI64Async(cancellationToken); + Timestamps.Add(_elem137); } await iprot.ReadListEndAsync(cancellationToken); } @@ -277,7 +244,7 @@ public TSInsertRecordsReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -291,78 +258,66 @@ public TSInsertRecordsReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((PrefixPaths != null)) + field.Name = "prefixPaths"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "prefixPaths"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, PrefixPaths.Count), cancellationToken); + foreach (string _iter138 in PrefixPaths) { - await oprot.WriteListBeginAsync(new TList(TType.String, PrefixPaths.Count), cancellationToken); - foreach (string _iter183 in PrefixPaths) - { - await oprot.WriteStringAsync(_iter183, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter138, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((MeasurementsList != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "measurementsList"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "measurementsList"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); + foreach (List _iter139 in MeasurementsList) { - await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); - foreach (List _iter184 in MeasurementsList) { + await oprot.WriteListBeginAsync(new TList(TType.String, _iter139.Count), cancellationToken); + foreach (string _iter140 in _iter139) { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter184.Count), cancellationToken); - foreach (string _iter185 in _iter184) - { - await oprot.WriteStringAsync(_iter185, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter140, cancellationToken); } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((ValuesList != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "valuesList"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "valuesList"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, ValuesList.Count), cancellationToken); + foreach (byte[] _iter141 in ValuesList) { - await oprot.WriteListBeginAsync(new TList(TType.String, ValuesList.Count), cancellationToken); - foreach (byte[] _iter186 in ValuesList) - { - await oprot.WriteBinaryAsync(_iter186, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteBinaryAsync(_iter141, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((Timestamps != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "timestamps"; + field.Type = TType.List; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "timestamps"; - field.Type = TType.List; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); + foreach (long _iter142 in Timestamps) { - await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); - foreach (long _iter187 in Timestamps) - { - await oprot.WriteI64Async(_iter187, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteI64Async(_iter142, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if(__isset.isAligned) + await oprot.WriteFieldEndAsync(cancellationToken); + if (__isset.isAligned) { field.Name = "isAligned"; field.Type = TType.Bool; @@ -382,7 +337,8 @@ public TSInsertRecordsReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSInsertRecordsReq other)) return false; + var other = that as TSInsertRecordsReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && TCollections.Equals(PrefixPaths, other.PrefixPaths) @@ -396,26 +352,12 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((PrefixPaths != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(PrefixPaths); - } - if((MeasurementsList != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementsList); - } - if((ValuesList != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(ValuesList); - } - if((Timestamps != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Timestamps); - } + hashcode = (hashcode * 397) + TCollections.GetHashCode(PrefixPaths); + hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementsList); + hashcode = (hashcode * 397) + TCollections.GetHashCode(ValuesList); + hashcode = (hashcode * 397) + TCollections.GetHashCode(Timestamps); if(__isset.isAligned) - { hashcode = (hashcode * 397) + IsAligned.GetHashCode(); - } } return hashcode; } @@ -424,33 +366,21 @@ public override string ToString() { var sb = new StringBuilder("TSInsertRecordsReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((PrefixPaths != null)) - { - sb.Append(", PrefixPaths: "); - PrefixPaths.ToString(sb); - } - if((MeasurementsList != null)) - { - sb.Append(", MeasurementsList: "); - MeasurementsList.ToString(sb); - } - if((ValuesList != null)) - { - sb.Append(", ValuesList: "); - ValuesList.ToString(sb); - } - if((Timestamps != null)) - { - sb.Append(", Timestamps: "); - Timestamps.ToString(sb); - } - if(__isset.isAligned) + sb.Append(SessionId); + sb.Append(", PrefixPaths: "); + sb.Append(PrefixPaths); + sb.Append(", MeasurementsList: "); + sb.Append(MeasurementsList); + sb.Append(", ValuesList: "); + sb.Append(ValuesList); + sb.Append(", Timestamps: "); + sb.Append(Timestamps); + if (__isset.isAligned) { sb.Append(", IsAligned: "); - IsAligned.ToString(sb); + sb.Append(IsAligned); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordReq.cs index 1b28e55..26c5db4 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSInsertStringRecordReq : TBase { @@ -91,37 +86,7 @@ public TSInsertStringRecordReq(long sessionId, string prefixPath, List m this.Timestamp = timestamp; } - public TSInsertStringRecordReq DeepCopy() - { - var tmp113 = new TSInsertStringRecordReq(); - tmp113.SessionId = this.SessionId; - if((PrefixPath != null)) - { - tmp113.PrefixPath = this.PrefixPath; - } - if((Measurements != null)) - { - tmp113.Measurements = this.Measurements.DeepCopy(); - } - if((Values != null)) - { - tmp113.Values = this.Values.DeepCopy(); - } - tmp113.Timestamp = this.Timestamp; - if(__isset.isAligned) - { - tmp113.IsAligned = this.IsAligned; - } - tmp113.__isset.isAligned = this.__isset.isAligned; - if(__isset.timeout) - { - tmp113.Timeout = this.Timeout; - } - tmp113.__isset.timeout = this.__isset.timeout; - return tmp113; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -169,13 +134,13 @@ public TSInsertStringRecordReq DeepCopy() if (field.Type == TType.List) { { - TList _list114 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list114.Count); - for(int _i115 = 0; _i115 < _list114.Count; ++_i115) + TList _list75 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list75.Count); + for(int _i76 = 0; _i76 < _list75.Count; ++_i76) { - string _elem116; - _elem116 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem116); + string _elem77; + _elem77 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem77); } await iprot.ReadListEndAsync(cancellationToken); } @@ -190,13 +155,13 @@ public TSInsertStringRecordReq DeepCopy() if (field.Type == TType.List) { { - TList _list117 = await iprot.ReadListBeginAsync(cancellationToken); - Values = new List(_list117.Count); - for(int _i118 = 0; _i118 < _list117.Count; ++_i118) + TList _list78 = await iprot.ReadListBeginAsync(cancellationToken); + Values = new List(_list78.Count); + for(int _i79 = 0; _i79 < _list78.Count; ++_i79) { - string _elem119; - _elem119 = await iprot.ReadStringAsync(cancellationToken); - Values.Add(_elem119); + string _elem80; + _elem80 = await iprot.ReadStringAsync(cancellationToken); + Values.Add(_elem80); } await iprot.ReadListEndAsync(cancellationToken); } @@ -274,7 +239,7 @@ public TSInsertStringRecordReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -288,54 +253,45 @@ public TSInsertStringRecordReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((PrefixPath != null)) - { - field.Name = "prefixPath"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(PrefixPath, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((Measurements != null)) + field.Name = "prefixPath"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(PrefixPath, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "measurements"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "measurements"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); + foreach (string _iter81 in Measurements) { - await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter120 in Measurements) - { - await oprot.WriteStringAsync(_iter120, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter81, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((Values != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "values"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "values"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Values.Count), cancellationToken); + foreach (string _iter82 in Values) { - await oprot.WriteListBeginAsync(new TList(TType.String, Values.Count), cancellationToken); - foreach (string _iter121 in Values) - { - await oprot.WriteStringAsync(_iter121, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter82, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } + await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "timestamp"; field.Type = TType.I64; field.ID = 5; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(Timestamp, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if(__isset.isAligned) + if (__isset.isAligned) { field.Name = "isAligned"; field.Type = TType.Bool; @@ -344,7 +300,7 @@ public TSInsertStringRecordReq DeepCopy() await oprot.WriteBoolAsync(IsAligned, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.timeout) + if (__isset.timeout) { field.Name = "timeout"; field.Type = TType.I64; @@ -364,7 +320,8 @@ public TSInsertStringRecordReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSInsertStringRecordReq other)) return false; + var other = that as TSInsertStringRecordReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(PrefixPath, other.PrefixPath) @@ -379,27 +336,14 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((PrefixPath != null)) - { - hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); - } - if((Measurements != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); - } - if((Values != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Values); - } + hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); + hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); + hashcode = (hashcode * 397) + TCollections.GetHashCode(Values); hashcode = (hashcode * 397) + Timestamp.GetHashCode(); if(__isset.isAligned) - { hashcode = (hashcode * 397) + IsAligned.GetHashCode(); - } if(__isset.timeout) - { hashcode = (hashcode * 397) + Timeout.GetHashCode(); - } } return hashcode; } @@ -408,35 +352,26 @@ public override string ToString() { var sb = new StringBuilder("TSInsertStringRecordReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((PrefixPath != null)) - { - sb.Append(", PrefixPath: "); - PrefixPath.ToString(sb); - } - if((Measurements != null)) - { - sb.Append(", Measurements: "); - Measurements.ToString(sb); - } - if((Values != null)) - { - sb.Append(", Values: "); - Values.ToString(sb); - } + sb.Append(SessionId); + sb.Append(", PrefixPath: "); + sb.Append(PrefixPath); + sb.Append(", Measurements: "); + sb.Append(Measurements); + sb.Append(", Values: "); + sb.Append(Values); sb.Append(", Timestamp: "); - Timestamp.ToString(sb); - if(__isset.isAligned) + sb.Append(Timestamp); + if (__isset.isAligned) { sb.Append(", IsAligned: "); - IsAligned.ToString(sb); + sb.Append(IsAligned); } - if(__isset.timeout) + if (__isset.timeout) { sb.Append(", Timeout: "); - Timeout.ToString(sb); + sb.Append(Timeout); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsOfOneDeviceReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsOfOneDeviceReq.cs index 6e5fefb..288edbc 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsOfOneDeviceReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsOfOneDeviceReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSInsertStringRecordsOfOneDeviceReq : TBase { @@ -76,35 +71,7 @@ public TSInsertStringRecordsOfOneDeviceReq(long sessionId, string prefixPath, Li this.Timestamps = timestamps; } - public TSInsertStringRecordsOfOneDeviceReq DeepCopy() - { - var tmp207 = new TSInsertStringRecordsOfOneDeviceReq(); - tmp207.SessionId = this.SessionId; - if((PrefixPath != null)) - { - tmp207.PrefixPath = this.PrefixPath; - } - if((MeasurementsList != null)) - { - tmp207.MeasurementsList = this.MeasurementsList.DeepCopy(); - } - if((ValuesList != null)) - { - tmp207.ValuesList = this.ValuesList.DeepCopy(); - } - if((Timestamps != null)) - { - tmp207.Timestamps = this.Timestamps.DeepCopy(); - } - if(__isset.isAligned) - { - tmp207.IsAligned = this.IsAligned; - } - tmp207.__isset.isAligned = this.__isset.isAligned; - return tmp207; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -152,23 +119,23 @@ public TSInsertStringRecordsOfOneDeviceReq DeepCopy() if (field.Type == TType.List) { { - TList _list208 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementsList = new List>(_list208.Count); - for(int _i209 = 0; _i209 < _list208.Count; ++_i209) + TList _list159 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list159.Count); + for(int _i160 = 0; _i160 < _list159.Count; ++_i160) { - List _elem210; + List _elem161; { - TList _list211 = await iprot.ReadListBeginAsync(cancellationToken); - _elem210 = new List(_list211.Count); - for(int _i212 = 0; _i212 < _list211.Count; ++_i212) + TList _list162 = await iprot.ReadListBeginAsync(cancellationToken); + _elem161 = new List(_list162.Count); + for(int _i163 = 0; _i163 < _list162.Count; ++_i163) { - string _elem213; - _elem213 = await iprot.ReadStringAsync(cancellationToken); - _elem210.Add(_elem213); + string _elem164; + _elem164 = await iprot.ReadStringAsync(cancellationToken); + _elem161.Add(_elem164); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem210); + MeasurementsList.Add(_elem161); } await iprot.ReadListEndAsync(cancellationToken); } @@ -183,23 +150,23 @@ public TSInsertStringRecordsOfOneDeviceReq DeepCopy() if (field.Type == TType.List) { { - TList _list214 = await iprot.ReadListBeginAsync(cancellationToken); - ValuesList = new List>(_list214.Count); - for(int _i215 = 0; _i215 < _list214.Count; ++_i215) + TList _list165 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List>(_list165.Count); + for(int _i166 = 0; _i166 < _list165.Count; ++_i166) { - List _elem216; + List _elem167; { - TList _list217 = await iprot.ReadListBeginAsync(cancellationToken); - _elem216 = new List(_list217.Count); - for(int _i218 = 0; _i218 < _list217.Count; ++_i218) + TList _list168 = await iprot.ReadListBeginAsync(cancellationToken); + _elem167 = new List(_list168.Count); + for(int _i169 = 0; _i169 < _list168.Count; ++_i169) { - string _elem219; - _elem219 = await iprot.ReadStringAsync(cancellationToken); - _elem216.Add(_elem219); + string _elem170; + _elem170 = await iprot.ReadStringAsync(cancellationToken); + _elem167.Add(_elem170); } await iprot.ReadListEndAsync(cancellationToken); } - ValuesList.Add(_elem216); + ValuesList.Add(_elem167); } await iprot.ReadListEndAsync(cancellationToken); } @@ -214,13 +181,13 @@ public TSInsertStringRecordsOfOneDeviceReq DeepCopy() if (field.Type == TType.List) { { - TList _list220 = await iprot.ReadListBeginAsync(cancellationToken); - Timestamps = new List(_list220.Count); - for(int _i221 = 0; _i221 < _list220.Count; ++_i221) + TList _list171 = await iprot.ReadListBeginAsync(cancellationToken); + Timestamps = new List(_list171.Count); + for(int _i172 = 0; _i172 < _list171.Count; ++_i172) { - long _elem222; - _elem222 = await iprot.ReadI64Async(cancellationToken); - Timestamps.Add(_elem222); + long _elem173; + _elem173 = await iprot.ReadI64Async(cancellationToken); + Timestamps.Add(_elem173); } await iprot.ReadListEndAsync(cancellationToken); } @@ -277,7 +244,7 @@ public TSInsertStringRecordsOfOneDeviceReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -291,78 +258,66 @@ public TSInsertStringRecordsOfOneDeviceReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((PrefixPath != null)) - { - field.Name = "prefixPath"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(PrefixPath, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((MeasurementsList != null)) + field.Name = "prefixPath"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(PrefixPath, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "measurementsList"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "measurementsList"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); + foreach (List _iter174 in MeasurementsList) { - await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); - foreach (List _iter223 in MeasurementsList) { + await oprot.WriteListBeginAsync(new TList(TType.String, _iter174.Count), cancellationToken); + foreach (string _iter175 in _iter174) { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter223.Count), cancellationToken); - foreach (string _iter224 in _iter223) - { - await oprot.WriteStringAsync(_iter224, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter175, cancellationToken); } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((ValuesList != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "valuesList"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "valuesList"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.List, ValuesList.Count), cancellationToken); + foreach (List _iter176 in ValuesList) { - await oprot.WriteListBeginAsync(new TList(TType.List, ValuesList.Count), cancellationToken); - foreach (List _iter225 in ValuesList) { + await oprot.WriteListBeginAsync(new TList(TType.String, _iter176.Count), cancellationToken); + foreach (string _iter177 in _iter176) { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter225.Count), cancellationToken); - foreach (string _iter226 in _iter225) - { - await oprot.WriteStringAsync(_iter226, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter177, cancellationToken); } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((Timestamps != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "timestamps"; + field.Type = TType.List; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "timestamps"; - field.Type = TType.List; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); + foreach (long _iter178 in Timestamps) { - await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); - foreach (long _iter227 in Timestamps) - { - await oprot.WriteI64Async(_iter227, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteI64Async(_iter178, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if(__isset.isAligned) + await oprot.WriteFieldEndAsync(cancellationToken); + if (__isset.isAligned) { field.Name = "isAligned"; field.Type = TType.Bool; @@ -382,7 +337,8 @@ public TSInsertStringRecordsOfOneDeviceReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSInsertStringRecordsOfOneDeviceReq other)) return false; + var other = that as TSInsertStringRecordsOfOneDeviceReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(PrefixPath, other.PrefixPath) @@ -396,26 +352,12 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((PrefixPath != null)) - { - hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); - } - if((MeasurementsList != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementsList); - } - if((ValuesList != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(ValuesList); - } - if((Timestamps != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Timestamps); - } + hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); + hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementsList); + hashcode = (hashcode * 397) + TCollections.GetHashCode(ValuesList); + hashcode = (hashcode * 397) + TCollections.GetHashCode(Timestamps); if(__isset.isAligned) - { hashcode = (hashcode * 397) + IsAligned.GetHashCode(); - } } return hashcode; } @@ -424,33 +366,21 @@ public override string ToString() { var sb = new StringBuilder("TSInsertStringRecordsOfOneDeviceReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((PrefixPath != null)) - { - sb.Append(", PrefixPath: "); - PrefixPath.ToString(sb); - } - if((MeasurementsList != null)) - { - sb.Append(", MeasurementsList: "); - MeasurementsList.ToString(sb); - } - if((ValuesList != null)) - { - sb.Append(", ValuesList: "); - ValuesList.ToString(sb); - } - if((Timestamps != null)) - { - sb.Append(", Timestamps: "); - Timestamps.ToString(sb); - } - if(__isset.isAligned) + sb.Append(SessionId); + sb.Append(", PrefixPath: "); + sb.Append(PrefixPath); + sb.Append(", MeasurementsList: "); + sb.Append(MeasurementsList); + sb.Append(", ValuesList: "); + sb.Append(ValuesList); + sb.Append(", Timestamps: "); + sb.Append(Timestamps); + if (__isset.isAligned) { sb.Append(", IsAligned: "); - IsAligned.ToString(sb); + sb.Append(IsAligned); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsReq.cs index 82dc577..4ce9f38 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSInsertStringRecordsReq : TBase { @@ -76,35 +71,7 @@ public TSInsertStringRecordsReq(long sessionId, List prefixPaths, List(_list230.Count); - for(int _i231 = 0; _i231 < _list230.Count; ++_i231) + TList _list179 = await iprot.ReadListBeginAsync(cancellationToken); + PrefixPaths = new List(_list179.Count); + for(int _i180 = 0; _i180 < _list179.Count; ++_i180) { - string _elem232; - _elem232 = await iprot.ReadStringAsync(cancellationToken); - PrefixPaths.Add(_elem232); + string _elem181; + _elem181 = await iprot.ReadStringAsync(cancellationToken); + PrefixPaths.Add(_elem181); } await iprot.ReadListEndAsync(cancellationToken); } @@ -162,23 +129,23 @@ public TSInsertStringRecordsReq DeepCopy() if (field.Type == TType.List) { { - TList _list233 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementsList = new List>(_list233.Count); - for(int _i234 = 0; _i234 < _list233.Count; ++_i234) + TList _list182 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list182.Count); + for(int _i183 = 0; _i183 < _list182.Count; ++_i183) { - List _elem235; + List _elem184; { - TList _list236 = await iprot.ReadListBeginAsync(cancellationToken); - _elem235 = new List(_list236.Count); - for(int _i237 = 0; _i237 < _list236.Count; ++_i237) + TList _list185 = await iprot.ReadListBeginAsync(cancellationToken); + _elem184 = new List(_list185.Count); + for(int _i186 = 0; _i186 < _list185.Count; ++_i186) { - string _elem238; - _elem238 = await iprot.ReadStringAsync(cancellationToken); - _elem235.Add(_elem238); + string _elem187; + _elem187 = await iprot.ReadStringAsync(cancellationToken); + _elem184.Add(_elem187); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem235); + MeasurementsList.Add(_elem184); } await iprot.ReadListEndAsync(cancellationToken); } @@ -193,23 +160,23 @@ public TSInsertStringRecordsReq DeepCopy() if (field.Type == TType.List) { { - TList _list239 = await iprot.ReadListBeginAsync(cancellationToken); - ValuesList = new List>(_list239.Count); - for(int _i240 = 0; _i240 < _list239.Count; ++_i240) + TList _list188 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List>(_list188.Count); + for(int _i189 = 0; _i189 < _list188.Count; ++_i189) { - List _elem241; + List _elem190; { - TList _list242 = await iprot.ReadListBeginAsync(cancellationToken); - _elem241 = new List(_list242.Count); - for(int _i243 = 0; _i243 < _list242.Count; ++_i243) + TList _list191 = await iprot.ReadListBeginAsync(cancellationToken); + _elem190 = new List(_list191.Count); + for(int _i192 = 0; _i192 < _list191.Count; ++_i192) { - string _elem244; - _elem244 = await iprot.ReadStringAsync(cancellationToken); - _elem241.Add(_elem244); + string _elem193; + _elem193 = await iprot.ReadStringAsync(cancellationToken); + _elem190.Add(_elem193); } await iprot.ReadListEndAsync(cancellationToken); } - ValuesList.Add(_elem241); + ValuesList.Add(_elem190); } await iprot.ReadListEndAsync(cancellationToken); } @@ -224,13 +191,13 @@ public TSInsertStringRecordsReq DeepCopy() if (field.Type == TType.List) { { - TList _list245 = await iprot.ReadListBeginAsync(cancellationToken); - Timestamps = new List(_list245.Count); - for(int _i246 = 0; _i246 < _list245.Count; ++_i246) + TList _list194 = await iprot.ReadListBeginAsync(cancellationToken); + Timestamps = new List(_list194.Count); + for(int _i195 = 0; _i195 < _list194.Count; ++_i195) { - long _elem247; - _elem247 = await iprot.ReadI64Async(cancellationToken); - Timestamps.Add(_elem247); + long _elem196; + _elem196 = await iprot.ReadI64Async(cancellationToken); + Timestamps.Add(_elem196); } await iprot.ReadListEndAsync(cancellationToken); } @@ -287,7 +254,7 @@ public TSInsertStringRecordsReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -301,85 +268,73 @@ public TSInsertStringRecordsReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((PrefixPaths != null)) + field.Name = "prefixPaths"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "prefixPaths"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, PrefixPaths.Count), cancellationToken); + foreach (string _iter197 in PrefixPaths) { - await oprot.WriteListBeginAsync(new TList(TType.String, PrefixPaths.Count), cancellationToken); - foreach (string _iter248 in PrefixPaths) - { - await oprot.WriteStringAsync(_iter248, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter197, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((MeasurementsList != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "measurementsList"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "measurementsList"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); + foreach (List _iter198 in MeasurementsList) { - await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); - foreach (List _iter249 in MeasurementsList) { + await oprot.WriteListBeginAsync(new TList(TType.String, _iter198.Count), cancellationToken); + foreach (string _iter199 in _iter198) { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter249.Count), cancellationToken); - foreach (string _iter250 in _iter249) - { - await oprot.WriteStringAsync(_iter250, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter199, cancellationToken); } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((ValuesList != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "valuesList"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "valuesList"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.List, ValuesList.Count), cancellationToken); + foreach (List _iter200 in ValuesList) { - await oprot.WriteListBeginAsync(new TList(TType.List, ValuesList.Count), cancellationToken); - foreach (List _iter251 in ValuesList) { + await oprot.WriteListBeginAsync(new TList(TType.String, _iter200.Count), cancellationToken); + foreach (string _iter201 in _iter200) { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter251.Count), cancellationToken); - foreach (string _iter252 in _iter251) - { - await oprot.WriteStringAsync(_iter252, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter201, cancellationToken); } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((Timestamps != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "timestamps"; + field.Type = TType.List; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "timestamps"; - field.Type = TType.List; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); + foreach (long _iter202 in Timestamps) { - await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); - foreach (long _iter253 in Timestamps) - { - await oprot.WriteI64Async(_iter253, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteI64Async(_iter202, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if(__isset.isAligned) + await oprot.WriteFieldEndAsync(cancellationToken); + if (__isset.isAligned) { field.Name = "isAligned"; field.Type = TType.Bool; @@ -399,7 +354,8 @@ public TSInsertStringRecordsReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSInsertStringRecordsReq other)) return false; + var other = that as TSInsertStringRecordsReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && TCollections.Equals(PrefixPaths, other.PrefixPaths) @@ -413,26 +369,12 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((PrefixPaths != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(PrefixPaths); - } - if((MeasurementsList != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementsList); - } - if((ValuesList != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(ValuesList); - } - if((Timestamps != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Timestamps); - } + hashcode = (hashcode * 397) + TCollections.GetHashCode(PrefixPaths); + hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementsList); + hashcode = (hashcode * 397) + TCollections.GetHashCode(ValuesList); + hashcode = (hashcode * 397) + TCollections.GetHashCode(Timestamps); if(__isset.isAligned) - { hashcode = (hashcode * 397) + IsAligned.GetHashCode(); - } } return hashcode; } @@ -441,33 +383,21 @@ public override string ToString() { var sb = new StringBuilder("TSInsertStringRecordsReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((PrefixPaths != null)) - { - sb.Append(", PrefixPaths: "); - PrefixPaths.ToString(sb); - } - if((MeasurementsList != null)) - { - sb.Append(", MeasurementsList: "); - MeasurementsList.ToString(sb); - } - if((ValuesList != null)) - { - sb.Append(", ValuesList: "); - ValuesList.ToString(sb); - } - if((Timestamps != null)) - { - sb.Append(", Timestamps: "); - Timestamps.ToString(sb); - } - if(__isset.isAligned) + sb.Append(SessionId); + sb.Append(", PrefixPaths: "); + sb.Append(PrefixPaths); + sb.Append(", MeasurementsList: "); + sb.Append(MeasurementsList); + sb.Append(", ValuesList: "); + sb.Append(ValuesList); + sb.Append(", Timestamps: "); + sb.Append(Timestamps); + if (__isset.isAligned) { sb.Append(", IsAligned: "); - IsAligned.ToString(sb); + sb.Append(IsAligned); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletReq.cs index b57ef0c..8d8320b 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSInsertTabletReq : TBase { @@ -82,40 +77,7 @@ public TSInsertTabletReq(long sessionId, string prefixPath, List measure this.Size = size; } - public TSInsertTabletReq DeepCopy() - { - var tmp123 = new TSInsertTabletReq(); - tmp123.SessionId = this.SessionId; - if((PrefixPath != null)) - { - tmp123.PrefixPath = this.PrefixPath; - } - if((Measurements != null)) - { - tmp123.Measurements = this.Measurements.DeepCopy(); - } - if((Values != null)) - { - tmp123.Values = this.Values.ToArray(); - } - if((Timestamps != null)) - { - tmp123.Timestamps = this.Timestamps.ToArray(); - } - if((Types != null)) - { - tmp123.Types = this.Types.DeepCopy(); - } - tmp123.Size = this.Size; - if(__isset.isAligned) - { - tmp123.IsAligned = this.IsAligned; - } - tmp123.__isset.isAligned = this.__isset.isAligned; - return tmp123; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -165,13 +127,13 @@ public TSInsertTabletReq DeepCopy() if (field.Type == TType.List) { { - TList _list124 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list124.Count); - for(int _i125 = 0; _i125 < _list124.Count; ++_i125) + TList _list83 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list83.Count); + for(int _i84 = 0; _i84 < _list83.Count; ++_i84) { - string _elem126; - _elem126 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem126); + string _elem85; + _elem85 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem85); } await iprot.ReadListEndAsync(cancellationToken); } @@ -208,13 +170,13 @@ public TSInsertTabletReq DeepCopy() if (field.Type == TType.List) { { - TList _list127 = await iprot.ReadListBeginAsync(cancellationToken); - Types = new List(_list127.Count); - for(int _i128 = 0; _i128 < _list127.Count; ++_i128) + TList _list86 = await iprot.ReadListBeginAsync(cancellationToken); + Types = new List(_list86.Count); + for(int _i87 = 0; _i87 < _list86.Count; ++_i87) { - int _elem129; - _elem129 = await iprot.ReadI32Async(cancellationToken); - Types.Add(_elem129); + int _elem88; + _elem88 = await iprot.ReadI32Async(cancellationToken); + Types.Add(_elem88); } await iprot.ReadListEndAsync(cancellationToken); } @@ -290,7 +252,7 @@ public TSInsertTabletReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -304,72 +266,57 @@ public TSInsertTabletReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((PrefixPath != null)) - { - field.Name = "prefixPath"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(PrefixPath, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((Measurements != null)) + field.Name = "prefixPath"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(PrefixPath, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "measurements"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "measurements"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); + foreach (string _iter89 in Measurements) { - await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter130 in Measurements) - { - await oprot.WriteStringAsync(_iter130, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter89, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((Values != null)) - { - field.Name = "values"; - field.Type = TType.String; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteBinaryAsync(Values, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((Timestamps != null)) - { - field.Name = "timestamps"; - field.Type = TType.String; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteBinaryAsync(Timestamps, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((Types != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "values"; + field.Type = TType.String; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBinaryAsync(Values, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "timestamps"; + field.Type = TType.String; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBinaryAsync(Timestamps, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "types"; + field.Type = TType.List; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "types"; - field.Type = TType.List; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, Types.Count), cancellationToken); + foreach (int _iter90 in Types) { - await oprot.WriteListBeginAsync(new TList(TType.I32, Types.Count), cancellationToken); - foreach (int _iter131 in Types) - { - await oprot.WriteI32Async(_iter131, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteI32Async(_iter90, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } + await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "size"; field.Type = TType.I32; field.ID = 7; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(Size, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if(__isset.isAligned) + if (__isset.isAligned) { field.Name = "isAligned"; field.Type = TType.Bool; @@ -389,7 +336,8 @@ public TSInsertTabletReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSInsertTabletReq other)) return false; + var other = that as TSInsertTabletReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(PrefixPath, other.PrefixPath) @@ -405,31 +353,14 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((PrefixPath != null)) - { - hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); - } - if((Measurements != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); - } - if((Values != null)) - { - hashcode = (hashcode * 397) + Values.GetHashCode(); - } - if((Timestamps != null)) - { - hashcode = (hashcode * 397) + Timestamps.GetHashCode(); - } - if((Types != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Types); - } + hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); + hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); + hashcode = (hashcode * 397) + Values.GetHashCode(); + hashcode = (hashcode * 397) + Timestamps.GetHashCode(); + hashcode = (hashcode * 397) + TCollections.GetHashCode(Types); hashcode = (hashcode * 397) + Size.GetHashCode(); if(__isset.isAligned) - { hashcode = (hashcode * 397) + IsAligned.GetHashCode(); - } } return hashcode; } @@ -438,40 +369,25 @@ public override string ToString() { var sb = new StringBuilder("TSInsertTabletReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((PrefixPath != null)) - { - sb.Append(", PrefixPath: "); - PrefixPath.ToString(sb); - } - if((Measurements != null)) - { - sb.Append(", Measurements: "); - Measurements.ToString(sb); - } - if((Values != null)) - { - sb.Append(", Values: "); - Values.ToString(sb); - } - if((Timestamps != null)) - { - sb.Append(", Timestamps: "); - Timestamps.ToString(sb); - } - if((Types != null)) - { - sb.Append(", Types: "); - Types.ToString(sb); - } + sb.Append(SessionId); + sb.Append(", PrefixPath: "); + sb.Append(PrefixPath); + sb.Append(", Measurements: "); + sb.Append(Measurements); + sb.Append(", Values: "); + sb.Append(Values); + sb.Append(", Timestamps: "); + sb.Append(Timestamps); + sb.Append(", Types: "); + sb.Append(Types); sb.Append(", Size: "); - Size.ToString(sb); - if(__isset.isAligned) + sb.Append(Size); + if (__isset.isAligned) { sb.Append(", IsAligned: "); - IsAligned.ToString(sb); + sb.Append(IsAligned); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletsReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletsReq.cs index b33fd9c..b5dc693 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletsReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletsReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSInsertTabletsReq : TBase { @@ -82,43 +77,7 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List(_list134.Count); - for(int _i135 = 0; _i135 < _list134.Count; ++_i135) + TList _list91 = await iprot.ReadListBeginAsync(cancellationToken); + PrefixPaths = new List(_list91.Count); + for(int _i92 = 0; _i92 < _list91.Count; ++_i92) { - string _elem136; - _elem136 = await iprot.ReadStringAsync(cancellationToken); - PrefixPaths.Add(_elem136); + string _elem93; + _elem93 = await iprot.ReadStringAsync(cancellationToken); + PrefixPaths.Add(_elem93); } await iprot.ReadListEndAsync(cancellationToken); } @@ -178,23 +137,23 @@ public TSInsertTabletsReq DeepCopy() if (field.Type == TType.List) { { - TList _list137 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementsList = new List>(_list137.Count); - for(int _i138 = 0; _i138 < _list137.Count; ++_i138) + TList _list94 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list94.Count); + for(int _i95 = 0; _i95 < _list94.Count; ++_i95) { - List _elem139; + List _elem96; { - TList _list140 = await iprot.ReadListBeginAsync(cancellationToken); - _elem139 = new List(_list140.Count); - for(int _i141 = 0; _i141 < _list140.Count; ++_i141) + TList _list97 = await iprot.ReadListBeginAsync(cancellationToken); + _elem96 = new List(_list97.Count); + for(int _i98 = 0; _i98 < _list97.Count; ++_i98) { - string _elem142; - _elem142 = await iprot.ReadStringAsync(cancellationToken); - _elem139.Add(_elem142); + string _elem99; + _elem99 = await iprot.ReadStringAsync(cancellationToken); + _elem96.Add(_elem99); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem139); + MeasurementsList.Add(_elem96); } await iprot.ReadListEndAsync(cancellationToken); } @@ -209,13 +168,13 @@ public TSInsertTabletsReq DeepCopy() if (field.Type == TType.List) { { - TList _list143 = await iprot.ReadListBeginAsync(cancellationToken); - ValuesList = new List(_list143.Count); - for(int _i144 = 0; _i144 < _list143.Count; ++_i144) + TList _list100 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List(_list100.Count); + for(int _i101 = 0; _i101 < _list100.Count; ++_i101) { - byte[] _elem145; - _elem145 = await iprot.ReadBinaryAsync(cancellationToken); - ValuesList.Add(_elem145); + byte[] _elem102; + _elem102 = await iprot.ReadBinaryAsync(cancellationToken); + ValuesList.Add(_elem102); } await iprot.ReadListEndAsync(cancellationToken); } @@ -230,13 +189,13 @@ public TSInsertTabletsReq DeepCopy() if (field.Type == TType.List) { { - TList _list146 = await iprot.ReadListBeginAsync(cancellationToken); - TimestampsList = new List(_list146.Count); - for(int _i147 = 0; _i147 < _list146.Count; ++_i147) + TList _list103 = await iprot.ReadListBeginAsync(cancellationToken); + TimestampsList = new List(_list103.Count); + for(int _i104 = 0; _i104 < _list103.Count; ++_i104) { - byte[] _elem148; - _elem148 = await iprot.ReadBinaryAsync(cancellationToken); - TimestampsList.Add(_elem148); + byte[] _elem105; + _elem105 = await iprot.ReadBinaryAsync(cancellationToken); + TimestampsList.Add(_elem105); } await iprot.ReadListEndAsync(cancellationToken); } @@ -251,23 +210,23 @@ public TSInsertTabletsReq DeepCopy() if (field.Type == TType.List) { { - TList _list149 = await iprot.ReadListBeginAsync(cancellationToken); - TypesList = new List>(_list149.Count); - for(int _i150 = 0; _i150 < _list149.Count; ++_i150) + TList _list106 = await iprot.ReadListBeginAsync(cancellationToken); + TypesList = new List>(_list106.Count); + for(int _i107 = 0; _i107 < _list106.Count; ++_i107) { - List _elem151; + List _elem108; { - TList _list152 = await iprot.ReadListBeginAsync(cancellationToken); - _elem151 = new List(_list152.Count); - for(int _i153 = 0; _i153 < _list152.Count; ++_i153) + TList _list109 = await iprot.ReadListBeginAsync(cancellationToken); + _elem108 = new List(_list109.Count); + for(int _i110 = 0; _i110 < _list109.Count; ++_i110) { - int _elem154; - _elem154 = await iprot.ReadI32Async(cancellationToken); - _elem151.Add(_elem154); + int _elem111; + _elem111 = await iprot.ReadI32Async(cancellationToken); + _elem108.Add(_elem111); } await iprot.ReadListEndAsync(cancellationToken); } - TypesList.Add(_elem151); + TypesList.Add(_elem108); } await iprot.ReadListEndAsync(cancellationToken); } @@ -282,13 +241,13 @@ public TSInsertTabletsReq DeepCopy() if (field.Type == TType.List) { { - TList _list155 = await iprot.ReadListBeginAsync(cancellationToken); - SizeList = new List(_list155.Count); - for(int _i156 = 0; _i156 < _list155.Count; ++_i156) + TList _list112 = await iprot.ReadListBeginAsync(cancellationToken); + SizeList = new List(_list112.Count); + for(int _i113 = 0; _i113 < _list112.Count; ++_i113) { - int _elem157; - _elem157 = await iprot.ReadI32Async(cancellationToken); - SizeList.Add(_elem157); + int _elem114; + _elem114 = await iprot.ReadI32Async(cancellationToken); + SizeList.Add(_elem114); } await iprot.ReadListEndAsync(cancellationToken); } @@ -353,7 +312,7 @@ public TSInsertTabletsReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -367,117 +326,99 @@ public TSInsertTabletsReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((PrefixPaths != null)) + field.Name = "prefixPaths"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "prefixPaths"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, PrefixPaths.Count), cancellationToken); + foreach (string _iter115 in PrefixPaths) { - await oprot.WriteListBeginAsync(new TList(TType.String, PrefixPaths.Count), cancellationToken); - foreach (string _iter158 in PrefixPaths) - { - await oprot.WriteStringAsync(_iter158, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter115, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((MeasurementsList != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "measurementsList"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "measurementsList"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); + foreach (List _iter116 in MeasurementsList) { - await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); - foreach (List _iter159 in MeasurementsList) { + await oprot.WriteListBeginAsync(new TList(TType.String, _iter116.Count), cancellationToken); + foreach (string _iter117 in _iter116) { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter159.Count), cancellationToken); - foreach (string _iter160 in _iter159) - { - await oprot.WriteStringAsync(_iter160, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter117, cancellationToken); } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((ValuesList != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "valuesList"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "valuesList"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, ValuesList.Count), cancellationToken); + foreach (byte[] _iter118 in ValuesList) { - await oprot.WriteListBeginAsync(new TList(TType.String, ValuesList.Count), cancellationToken); - foreach (byte[] _iter161 in ValuesList) - { - await oprot.WriteBinaryAsync(_iter161, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteBinaryAsync(_iter118, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((TimestampsList != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "timestampsList"; + field.Type = TType.List; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "timestampsList"; - field.Type = TType.List; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, TimestampsList.Count), cancellationToken); + foreach (byte[] _iter119 in TimestampsList) { - await oprot.WriteListBeginAsync(new TList(TType.String, TimestampsList.Count), cancellationToken); - foreach (byte[] _iter162 in TimestampsList) - { - await oprot.WriteBinaryAsync(_iter162, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteBinaryAsync(_iter119, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((TypesList != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "typesList"; + field.Type = TType.List; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "typesList"; - field.Type = TType.List; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.List, TypesList.Count), cancellationToken); + foreach (List _iter120 in TypesList) { - await oprot.WriteListBeginAsync(new TList(TType.List, TypesList.Count), cancellationToken); - foreach (List _iter163 in TypesList) { + await oprot.WriteListBeginAsync(new TList(TType.I32, _iter120.Count), cancellationToken); + foreach (int _iter121 in _iter120) { - await oprot.WriteListBeginAsync(new TList(TType.I32, _iter163.Count), cancellationToken); - foreach (int _iter164 in _iter163) - { - await oprot.WriteI32Async(_iter164, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteI32Async(_iter121, cancellationToken); } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((SizeList != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "sizeList"; + field.Type = TType.List; + field.ID = 7; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "sizeList"; - field.Type = TType.List; - field.ID = 7; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, SizeList.Count), cancellationToken); + foreach (int _iter122 in SizeList) { - await oprot.WriteListBeginAsync(new TList(TType.I32, SizeList.Count), cancellationToken); - foreach (int _iter165 in SizeList) - { - await oprot.WriteI32Async(_iter165, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteI32Async(_iter122, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if(__isset.isAligned) + await oprot.WriteFieldEndAsync(cancellationToken); + if (__isset.isAligned) { field.Name = "isAligned"; field.Type = TType.Bool; @@ -497,7 +438,8 @@ public TSInsertTabletsReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSInsertTabletsReq other)) return false; + var other = that as TSInsertTabletsReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && TCollections.Equals(PrefixPaths, other.PrefixPaths) @@ -513,34 +455,14 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((PrefixPaths != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(PrefixPaths); - } - if((MeasurementsList != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementsList); - } - if((ValuesList != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(ValuesList); - } - if((TimestampsList != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(TimestampsList); - } - if((TypesList != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(TypesList); - } - if((SizeList != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(SizeList); - } + hashcode = (hashcode * 397) + TCollections.GetHashCode(PrefixPaths); + hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementsList); + hashcode = (hashcode * 397) + TCollections.GetHashCode(ValuesList); + hashcode = (hashcode * 397) + TCollections.GetHashCode(TimestampsList); + hashcode = (hashcode * 397) + TCollections.GetHashCode(TypesList); + hashcode = (hashcode * 397) + TCollections.GetHashCode(SizeList); if(__isset.isAligned) - { hashcode = (hashcode * 397) + IsAligned.GetHashCode(); - } } return hashcode; } @@ -549,43 +471,25 @@ public override string ToString() { var sb = new StringBuilder("TSInsertTabletsReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((PrefixPaths != null)) - { - sb.Append(", PrefixPaths: "); - PrefixPaths.ToString(sb); - } - if((MeasurementsList != null)) - { - sb.Append(", MeasurementsList: "); - MeasurementsList.ToString(sb); - } - if((ValuesList != null)) - { - sb.Append(", ValuesList: "); - ValuesList.ToString(sb); - } - if((TimestampsList != null)) - { - sb.Append(", TimestampsList: "); - TimestampsList.ToString(sb); - } - if((TypesList != null)) - { - sb.Append(", TypesList: "); - TypesList.ToString(sb); - } - if((SizeList != null)) - { - sb.Append(", SizeList: "); - SizeList.ToString(sb); - } - if(__isset.isAligned) + sb.Append(SessionId); + sb.Append(", PrefixPaths: "); + sb.Append(PrefixPaths); + sb.Append(", MeasurementsList: "); + sb.Append(MeasurementsList); + sb.Append(", ValuesList: "); + sb.Append(ValuesList); + sb.Append(", TimestampsList: "); + sb.Append(TimestampsList); + sb.Append(", TypesList: "); + sb.Append(TypesList); + sb.Append(", SizeList: "); + sb.Append(SizeList); + if (__isset.isAligned) { sb.Append(", IsAligned: "); - IsAligned.ToString(sb); + sb.Append(IsAligned); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSLastDataQueryReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSLastDataQueryReq.cs index cac7862..c35fbf1 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSLastDataQueryReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSLastDataQueryReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSLastDataQueryReq : TBase { @@ -35,6 +30,7 @@ public partial class TSLastDataQueryReq : TBase private bool _enableRedirectQuery; private bool _jdbcQuery; private long _timeout; + private bool _legalPathNodes; public long SessionId { get; set; } @@ -96,6 +92,19 @@ public long Timeout } } + public bool LegalPathNodes + { + get + { + return _legalPathNodes; + } + set + { + __isset.legalPathNodes = true; + this._legalPathNodes = value; + } + } + public Isset __isset; public struct Isset @@ -104,6 +113,7 @@ public struct Isset public bool enableRedirectQuery; public bool jdbcQuery; public bool timeout; + public bool legalPathNodes; } public TSLastDataQueryReq() @@ -118,40 +128,7 @@ public TSLastDataQueryReq(long sessionId, List paths, long time, long st this.StatementId = statementId; } - public TSLastDataQueryReq DeepCopy() - { - var tmp324 = new TSLastDataQueryReq(); - tmp324.SessionId = this.SessionId; - if((Paths != null)) - { - tmp324.Paths = this.Paths.DeepCopy(); - } - if(__isset.fetchSize) - { - tmp324.FetchSize = this.FetchSize; - } - tmp324.__isset.fetchSize = this.__isset.fetchSize; - tmp324.Time = this.Time; - tmp324.StatementId = this.StatementId; - if(__isset.enableRedirectQuery) - { - tmp324.EnableRedirectQuery = this.EnableRedirectQuery; - } - tmp324.__isset.enableRedirectQuery = this.__isset.enableRedirectQuery; - if(__isset.jdbcQuery) - { - tmp324.JdbcQuery = this.JdbcQuery; - } - tmp324.__isset.jdbcQuery = this.__isset.jdbcQuery; - if(__isset.timeout) - { - tmp324.Timeout = this.Timeout; - } - tmp324.__isset.timeout = this.__isset.timeout; - return tmp324; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -187,13 +164,13 @@ public TSLastDataQueryReq DeepCopy() if (field.Type == TType.List) { { - TList _list325 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list325.Count); - for(int _i326 = 0; _i326 < _list325.Count; ++_i326) + TList _list264 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list264.Count); + for(int _i265 = 0; _i265 < _list264.Count; ++_i265) { - string _elem327; - _elem327 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem327); + string _elem266; + _elem266 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem266); } await iprot.ReadListEndAsync(cancellationToken); } @@ -266,6 +243,16 @@ public TSLastDataQueryReq DeepCopy() await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; + case 9: + if (field.Type == TType.Bool) + { + LegalPathNodes = await iprot.ReadBoolAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); break; @@ -298,7 +285,7 @@ public TSLastDataQueryReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -312,23 +299,20 @@ public TSLastDataQueryReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((Paths != null)) + field.Name = "paths"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "paths"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); + foreach (string _iter267 in Paths) { - await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter328 in Paths) - { - await oprot.WriteStringAsync(_iter328, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter267, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if(__isset.fetchSize) + await oprot.WriteFieldEndAsync(cancellationToken); + if (__isset.fetchSize) { field.Name = "fetchSize"; field.Type = TType.I32; @@ -349,7 +333,7 @@ public TSLastDataQueryReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(StatementId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if(__isset.enableRedirectQuery) + if (__isset.enableRedirectQuery) { field.Name = "enableRedirectQuery"; field.Type = TType.Bool; @@ -358,7 +342,7 @@ public TSLastDataQueryReq DeepCopy() await oprot.WriteBoolAsync(EnableRedirectQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.jdbcQuery) + if (__isset.jdbcQuery) { field.Name = "jdbcQuery"; field.Type = TType.Bool; @@ -367,7 +351,7 @@ public TSLastDataQueryReq DeepCopy() await oprot.WriteBoolAsync(JdbcQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.timeout) + if (__isset.timeout) { field.Name = "timeout"; field.Type = TType.I64; @@ -376,6 +360,15 @@ public TSLastDataQueryReq DeepCopy() await oprot.WriteI64Async(Timeout, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + if (__isset.legalPathNodes) + { + field.Name = "legalPathNodes"; + field.Type = TType.Bool; + field.ID = 9; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBoolAsync(LegalPathNodes, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -387,7 +380,8 @@ public TSLastDataQueryReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSLastDataQueryReq other)) return false; + var other = that as TSLastDataQueryReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && TCollections.Equals(Paths, other.Paths) @@ -396,35 +390,27 @@ public override bool Equals(object that) && System.Object.Equals(StatementId, other.StatementId) && ((__isset.enableRedirectQuery == other.__isset.enableRedirectQuery) && ((!__isset.enableRedirectQuery) || (System.Object.Equals(EnableRedirectQuery, other.EnableRedirectQuery)))) && ((__isset.jdbcQuery == other.__isset.jdbcQuery) && ((!__isset.jdbcQuery) || (System.Object.Equals(JdbcQuery, other.JdbcQuery)))) - && ((__isset.timeout == other.__isset.timeout) && ((!__isset.timeout) || (System.Object.Equals(Timeout, other.Timeout)))); + && ((__isset.timeout == other.__isset.timeout) && ((!__isset.timeout) || (System.Object.Equals(Timeout, other.Timeout)))) + && ((__isset.legalPathNodes == other.__isset.legalPathNodes) && ((!__isset.legalPathNodes) || (System.Object.Equals(LegalPathNodes, other.LegalPathNodes)))); } public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((Paths != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); - } + hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); if(__isset.fetchSize) - { hashcode = (hashcode * 397) + FetchSize.GetHashCode(); - } hashcode = (hashcode * 397) + Time.GetHashCode(); hashcode = (hashcode * 397) + StatementId.GetHashCode(); if(__isset.enableRedirectQuery) - { hashcode = (hashcode * 397) + EnableRedirectQuery.GetHashCode(); - } if(__isset.jdbcQuery) - { hashcode = (hashcode * 397) + JdbcQuery.GetHashCode(); - } if(__isset.timeout) - { hashcode = (hashcode * 397) + Timeout.GetHashCode(); - } + if(__isset.legalPathNodes) + hashcode = (hashcode * 397) + LegalPathNodes.GetHashCode(); } return hashcode; } @@ -433,37 +419,39 @@ public override string ToString() { var sb = new StringBuilder("TSLastDataQueryReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((Paths != null)) - { - sb.Append(", Paths: "); - Paths.ToString(sb); - } - if(__isset.fetchSize) + sb.Append(SessionId); + sb.Append(", Paths: "); + sb.Append(Paths); + if (__isset.fetchSize) { sb.Append(", FetchSize: "); - FetchSize.ToString(sb); + sb.Append(FetchSize); } sb.Append(", Time: "); - Time.ToString(sb); + sb.Append(Time); sb.Append(", StatementId: "); - StatementId.ToString(sb); - if(__isset.enableRedirectQuery) + sb.Append(StatementId); + if (__isset.enableRedirectQuery) { sb.Append(", EnableRedirectQuery: "); - EnableRedirectQuery.ToString(sb); + sb.Append(EnableRedirectQuery); } - if(__isset.jdbcQuery) + if (__isset.jdbcQuery) { sb.Append(", JdbcQuery: "); - JdbcQuery.ToString(sb); + sb.Append(JdbcQuery); } - if(__isset.timeout) + if (__isset.timeout) { sb.Append(", Timeout: "); - Timeout.ToString(sb); + sb.Append(Timeout); + } + if (__isset.legalPathNodes) + { + sb.Append(", LegalPathNodes: "); + sb.Append(LegalPathNodes); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionReq.cs index f4d6916..d057bbe 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSOpenSessionReq : TBase { @@ -36,7 +31,7 @@ public partial class TSOpenSessionReq : TBase /// /// - /// + /// /// public TSProtocolVersion Client_protocol { get; set; } @@ -90,32 +85,7 @@ public TSOpenSessionReq(TSProtocolVersion client_protocol, string zoneId, string this.Username = username; } - public TSOpenSessionReq DeepCopy() - { - var tmp64 = new TSOpenSessionReq(); - tmp64.Client_protocol = this.Client_protocol; - if((ZoneId != null)) - { - tmp64.ZoneId = this.ZoneId; - } - if((Username != null)) - { - tmp64.Username = this.Username; - } - if((Password != null) && __isset.password) - { - tmp64.Password = this.Password; - } - tmp64.__isset.password = this.__isset.password; - if((Configuration != null) && __isset.configuration) - { - tmp64.Configuration = this.Configuration.DeepCopy(); - } - tmp64.__isset.configuration = this.__isset.configuration; - return tmp64; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -182,15 +152,15 @@ public TSOpenSessionReq DeepCopy() if (field.Type == TType.Map) { { - TMap _map65 = await iprot.ReadMapBeginAsync(cancellationToken); - Configuration = new Dictionary(_map65.Count); - for(int _i66 = 0; _i66 < _map65.Count; ++_i66) + TMap _map54 = await iprot.ReadMapBeginAsync(cancellationToken); + Configuration = new Dictionary(_map54.Count); + for(int _i55 = 0; _i55 < _map54.Count; ++_i55) { - string _key67; - string _val68; - _key67 = await iprot.ReadStringAsync(cancellationToken); - _val68 = await iprot.ReadStringAsync(cancellationToken); - Configuration[_key67] = _val68; + string _key56; + string _val57; + _key56 = await iprot.ReadStringAsync(cancellationToken); + _val57 = await iprot.ReadStringAsync(cancellationToken); + Configuration[_key56] = _val57; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -228,7 +198,7 @@ public TSOpenSessionReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -242,25 +212,19 @@ public TSOpenSessionReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async((int)Client_protocol, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((ZoneId != null)) - { - field.Name = "zoneId"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(ZoneId, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((Username != null)) - { - field.Name = "username"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Username, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((Password != null) && __isset.password) + field.Name = "zoneId"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(ZoneId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "username"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Username, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + if (Password != null && __isset.password) { field.Name = "password"; field.Type = TType.String; @@ -269,7 +233,7 @@ public TSOpenSessionReq DeepCopy() await oprot.WriteStringAsync(Password, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if((Configuration != null) && __isset.configuration) + if (Configuration != null && __isset.configuration) { field.Name = "configuration"; field.Type = TType.Map; @@ -277,10 +241,10 @@ public TSOpenSessionReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Configuration.Count), cancellationToken); - foreach (string _iter69 in Configuration.Keys) + foreach (string _iter58 in Configuration.Keys) { - await oprot.WriteStringAsync(_iter69, cancellationToken); - await oprot.WriteStringAsync(Configuration[_iter69], cancellationToken); + await oprot.WriteStringAsync(_iter58, cancellationToken); + await oprot.WriteStringAsync(Configuration[_iter58], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -297,7 +261,8 @@ public TSOpenSessionReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSOpenSessionReq other)) return false; + var other = that as TSOpenSessionReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Client_protocol, other.Client_protocol) && System.Object.Equals(ZoneId, other.ZoneId) @@ -310,22 +275,12 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + Client_protocol.GetHashCode(); - if((ZoneId != null)) - { - hashcode = (hashcode * 397) + ZoneId.GetHashCode(); - } - if((Username != null)) - { - hashcode = (hashcode * 397) + Username.GetHashCode(); - } - if((Password != null) && __isset.password) - { + hashcode = (hashcode * 397) + ZoneId.GetHashCode(); + hashcode = (hashcode * 397) + Username.GetHashCode(); + if(__isset.password) hashcode = (hashcode * 397) + Password.GetHashCode(); - } - if((Configuration != null) && __isset.configuration) - { + if(__isset.configuration) hashcode = (hashcode * 397) + TCollections.GetHashCode(Configuration); - } } return hashcode; } @@ -334,28 +289,22 @@ public override string ToString() { var sb = new StringBuilder("TSOpenSessionReq("); sb.Append(", Client_protocol: "); - Client_protocol.ToString(sb); - if((ZoneId != null)) - { - sb.Append(", ZoneId: "); - ZoneId.ToString(sb); - } - if((Username != null)) - { - sb.Append(", Username: "); - Username.ToString(sb); - } - if((Password != null) && __isset.password) + sb.Append(Client_protocol); + sb.Append(", ZoneId: "); + sb.Append(ZoneId); + sb.Append(", Username: "); + sb.Append(Username); + if (Password != null && __isset.password) { sb.Append(", Password: "); - Password.ToString(sb); + sb.Append(Password); } - if((Configuration != null) && __isset.configuration) + if (Configuration != null && __isset.configuration) { sb.Append(", Configuration: "); - Configuration.ToString(sb); + sb.Append(Configuration); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionResp.cs index 78237df..4fcc7d3 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSOpenSessionResp : TBase { @@ -38,7 +33,7 @@ public partial class TSOpenSessionResp : TBase /// /// - /// + /// /// public TSProtocolVersion ServerProtocolVersion { get; set; } @@ -87,28 +82,7 @@ public TSOpenSessionResp(TSStatus status, TSProtocolVersion serverProtocolVersio this.ServerProtocolVersion = serverProtocolVersion; } - public TSOpenSessionResp DeepCopy() - { - var tmp57 = new TSOpenSessionResp(); - if((Status != null)) - { - tmp57.Status = (TSStatus)this.Status.DeepCopy(); - } - tmp57.ServerProtocolVersion = this.ServerProtocolVersion; - if(__isset.sessionId) - { - tmp57.SessionId = this.SessionId; - } - tmp57.__isset.sessionId = this.__isset.sessionId; - if((Configuration != null) && __isset.configuration) - { - tmp57.Configuration = this.Configuration.DeepCopy(); - } - tmp57.__isset.configuration = this.__isset.configuration; - return tmp57; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -164,15 +138,15 @@ public TSOpenSessionResp DeepCopy() if (field.Type == TType.Map) { { - TMap _map58 = await iprot.ReadMapBeginAsync(cancellationToken); - Configuration = new Dictionary(_map58.Count); - for(int _i59 = 0; _i59 < _map58.Count; ++_i59) + TMap _map49 = await iprot.ReadMapBeginAsync(cancellationToken); + Configuration = new Dictionary(_map49.Count); + for(int _i50 = 0; _i50 < _map49.Count; ++_i50) { - string _key60; - string _val61; - _key60 = await iprot.ReadStringAsync(cancellationToken); - _val61 = await iprot.ReadStringAsync(cancellationToken); - Configuration[_key60] = _val61; + string _key51; + string _val52; + _key51 = await iprot.ReadStringAsync(cancellationToken); + _val52 = await iprot.ReadStringAsync(cancellationToken); + Configuration[_key51] = _val52; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -206,7 +180,7 @@ public TSOpenSessionResp DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -214,22 +188,19 @@ public TSOpenSessionResp DeepCopy() var struc = new TStruct("TSOpenSessionResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((Status != null)) - { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "serverProtocolVersion"; field.Type = TType.I32; field.ID = 2; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async((int)ServerProtocolVersion, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if(__isset.sessionId) + if (__isset.sessionId) { field.Name = "sessionId"; field.Type = TType.I64; @@ -238,7 +209,7 @@ public TSOpenSessionResp DeepCopy() await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if((Configuration != null) && __isset.configuration) + if (Configuration != null && __isset.configuration) { field.Name = "configuration"; field.Type = TType.Map; @@ -246,10 +217,10 @@ public TSOpenSessionResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Configuration.Count), cancellationToken); - foreach (string _iter62 in Configuration.Keys) + foreach (string _iter53 in Configuration.Keys) { - await oprot.WriteStringAsync(_iter62, cancellationToken); - await oprot.WriteStringAsync(Configuration[_iter62], cancellationToken); + await oprot.WriteStringAsync(_iter53, cancellationToken); + await oprot.WriteStringAsync(Configuration[_iter53], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -266,7 +237,8 @@ public TSOpenSessionResp DeepCopy() public override bool Equals(object that) { - if (!(that is TSOpenSessionResp other)) return false; + var other = that as TSOpenSessionResp; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && System.Object.Equals(ServerProtocolVersion, other.ServerProtocolVersion) @@ -277,19 +249,12 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((Status != null)) - { - hashcode = (hashcode * 397) + Status.GetHashCode(); - } + hashcode = (hashcode * 397) + Status.GetHashCode(); hashcode = (hashcode * 397) + ServerProtocolVersion.GetHashCode(); if(__isset.sessionId) - { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - } - if((Configuration != null) && __isset.configuration) - { + if(__isset.configuration) hashcode = (hashcode * 397) + TCollections.GetHashCode(Configuration); - } } return hashcode; } @@ -297,24 +262,21 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSOpenSessionResp("); - if((Status != null)) - { - sb.Append(", Status: "); - Status.ToString(sb); - } + sb.Append(", Status: "); + sb.Append(Status== null ? "" : Status.ToString()); sb.Append(", ServerProtocolVersion: "); - ServerProtocolVersion.ToString(sb); - if(__isset.sessionId) + sb.Append(ServerProtocolVersion); + if (__isset.sessionId) { sb.Append(", SessionId: "); - SessionId.ToString(sb); + sb.Append(SessionId); } - if((Configuration != null) && __isset.configuration) + if (Configuration != null && __isset.configuration) { sb.Append(", Configuration: "); - Configuration.ToString(sb); + sb.Append(Configuration); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSProtocolVersion.cs b/src/Apache.IoTDB/Rpc/Generated/TSProtocolVersion.cs index 02f3cba..73480ea 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSProtocolVersion.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSProtocolVersion.cs @@ -1,13 +1,10 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public enum TSProtocolVersion { IOTDB_SERVICE_PROTOCOL_V1 = 0, diff --git a/src/Apache.IoTDB/Rpc/Generated/TSPruneSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSPruneSchemaTemplateReq.cs index 00123f8..1bbfe97 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSPruneSchemaTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSPruneSchemaTemplateReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSPruneSchemaTemplateReq : TBase { @@ -49,22 +44,7 @@ public TSPruneSchemaTemplateReq(long sessionId, string name, string path) : this this.Path = path; } - public TSPruneSchemaTemplateReq DeepCopy() - { - var tmp407 = new TSPruneSchemaTemplateReq(); - tmp407.SessionId = this.SessionId; - if((Name != null)) - { - tmp407.Name = this.Name; - } - if((Path != null)) - { - tmp407.Path = this.Path; - } - return tmp407; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -145,7 +125,7 @@ public TSPruneSchemaTemplateReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -159,24 +139,18 @@ public TSPruneSchemaTemplateReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((Name != null)) - { - field.Name = "name"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Name, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((Path != null)) - { - field.Name = "path"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Path, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "name"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Name, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "path"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Path, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -188,7 +162,8 @@ public TSPruneSchemaTemplateReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSPruneSchemaTemplateReq other)) return false; + var other = that as TSPruneSchemaTemplateReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(Name, other.Name) @@ -199,14 +174,8 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((Name != null)) - { - hashcode = (hashcode * 397) + Name.GetHashCode(); - } - if((Path != null)) - { - hashcode = (hashcode * 397) + Path.GetHashCode(); - } + hashcode = (hashcode * 397) + Name.GetHashCode(); + hashcode = (hashcode * 397) + Path.GetHashCode(); } return hashcode; } @@ -215,18 +184,12 @@ public override string ToString() { var sb = new StringBuilder("TSPruneSchemaTemplateReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((Name != null)) - { - sb.Append(", Name: "); - Name.ToString(sb); - } - if((Path != null)) - { - sb.Append(", Path: "); - Path.ToString(sb); - } - sb.Append(')'); + sb.Append(SessionId); + sb.Append(", Name: "); + sb.Append(Name); + sb.Append(", Path: "); + sb.Append(Path); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSQueryDataSet.cs b/src/Apache.IoTDB/Rpc/Generated/TSQueryDataSet.cs index ea3c3f7..fe0d8d3 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSQueryDataSet.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSQueryDataSet.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSQueryDataSet : TBase { @@ -49,25 +44,7 @@ public TSQueryDataSet(byte[] time, List valueList, List bitmapLi this.BitmapList = bitmapList; } - public TSQueryDataSet DeepCopy() - { - var tmp0 = new TSQueryDataSet(); - if((Time != null)) - { - tmp0.Time = this.Time.ToArray(); - } - if((ValueList != null)) - { - tmp0.ValueList = this.ValueList.DeepCopy(); - } - if((BitmapList != null)) - { - tmp0.BitmapList = this.BitmapList.DeepCopy(); - } - return tmp0; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -102,13 +79,13 @@ public TSQueryDataSet DeepCopy() if (field.Type == TType.List) { { - TList _list1 = await iprot.ReadListBeginAsync(cancellationToken); - ValueList = new List(_list1.Count); - for(int _i2 = 0; _i2 < _list1.Count; ++_i2) + TList _list0 = await iprot.ReadListBeginAsync(cancellationToken); + ValueList = new List(_list0.Count); + for(int _i1 = 0; _i1 < _list0.Count; ++_i1) { - byte[] _elem3; - _elem3 = await iprot.ReadBinaryAsync(cancellationToken); - ValueList.Add(_elem3); + byte[] _elem2; + _elem2 = await iprot.ReadBinaryAsync(cancellationToken); + ValueList.Add(_elem2); } await iprot.ReadListEndAsync(cancellationToken); } @@ -123,13 +100,13 @@ public TSQueryDataSet DeepCopy() if (field.Type == TType.List) { { - TList _list4 = await iprot.ReadListBeginAsync(cancellationToken); - BitmapList = new List(_list4.Count); - for(int _i5 = 0; _i5 < _list4.Count; ++_i5) + TList _list3 = await iprot.ReadListBeginAsync(cancellationToken); + BitmapList = new List(_list3.Count); + for(int _i4 = 0; _i4 < _list3.Count; ++_i4) { - byte[] _elem6; - _elem6 = await iprot.ReadBinaryAsync(cancellationToken); - BitmapList.Add(_elem6); + byte[] _elem5; + _elem5 = await iprot.ReadBinaryAsync(cancellationToken); + BitmapList.Add(_elem5); } await iprot.ReadListEndAsync(cancellationToken); } @@ -168,7 +145,7 @@ public TSQueryDataSet DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -176,47 +153,38 @@ public TSQueryDataSet DeepCopy() var struc = new TStruct("TSQueryDataSet"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((Time != null)) - { - field.Name = "time"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteBinaryAsync(Time, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((ValueList != null)) + field.Name = "time"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBinaryAsync(Time, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "valueList"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "valueList"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, ValueList.Count), cancellationToken); + foreach (byte[] _iter6 in ValueList) { - await oprot.WriteListBeginAsync(new TList(TType.String, ValueList.Count), cancellationToken); - foreach (byte[] _iter7 in ValueList) - { - await oprot.WriteBinaryAsync(_iter7, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteBinaryAsync(_iter6, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((BitmapList != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "bitmapList"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "bitmapList"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, BitmapList.Count), cancellationToken); + foreach (byte[] _iter7 in BitmapList) { - await oprot.WriteListBeginAsync(new TList(TType.String, BitmapList.Count), cancellationToken); - foreach (byte[] _iter8 in BitmapList) - { - await oprot.WriteBinaryAsync(_iter8, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteBinaryAsync(_iter7, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -228,7 +196,8 @@ public TSQueryDataSet DeepCopy() public override bool Equals(object that) { - if (!(that is TSQueryDataSet other)) return false; + var other = that as TSQueryDataSet; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return TCollections.Equals(Time, other.Time) && TCollections.Equals(ValueList, other.ValueList) @@ -238,18 +207,9 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((Time != null)) - { - hashcode = (hashcode * 397) + Time.GetHashCode(); - } - if((ValueList != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(ValueList); - } - if((BitmapList != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(BitmapList); - } + hashcode = (hashcode * 397) + Time.GetHashCode(); + hashcode = (hashcode * 397) + TCollections.GetHashCode(ValueList); + hashcode = (hashcode * 397) + TCollections.GetHashCode(BitmapList); } return hashcode; } @@ -257,22 +217,13 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSQueryDataSet("); - if((Time != null)) - { - sb.Append(", Time: "); - Time.ToString(sb); - } - if((ValueList != null)) - { - sb.Append(", ValueList: "); - ValueList.ToString(sb); - } - if((BitmapList != null)) - { - sb.Append(", BitmapList: "); - BitmapList.ToString(sb); - } - sb.Append(')'); + sb.Append(", Time: "); + sb.Append(Time); + sb.Append(", ValueList: "); + sb.Append(ValueList); + sb.Append(", BitmapList: "); + sb.Append(BitmapList); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSQueryNonAlignDataSet.cs b/src/Apache.IoTDB/Rpc/Generated/TSQueryNonAlignDataSet.cs index 0b87ab1..df3408e 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSQueryNonAlignDataSet.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSQueryNonAlignDataSet.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSQueryNonAlignDataSet : TBase { @@ -46,21 +41,7 @@ public TSQueryNonAlignDataSet(List timeList, List valueList) : t this.ValueList = valueList; } - public TSQueryNonAlignDataSet DeepCopy() - { - var tmp10 = new TSQueryNonAlignDataSet(); - if((TimeList != null)) - { - tmp10.TimeList = this.TimeList.DeepCopy(); - } - if((ValueList != null)) - { - tmp10.ValueList = this.ValueList.DeepCopy(); - } - return tmp10; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -83,13 +64,13 @@ public TSQueryNonAlignDataSet DeepCopy() if (field.Type == TType.List) { { - TList _list11 = await iprot.ReadListBeginAsync(cancellationToken); - TimeList = new List(_list11.Count); - for(int _i12 = 0; _i12 < _list11.Count; ++_i12) + TList _list8 = await iprot.ReadListBeginAsync(cancellationToken); + TimeList = new List(_list8.Count); + for(int _i9 = 0; _i9 < _list8.Count; ++_i9) { - byte[] _elem13; - _elem13 = await iprot.ReadBinaryAsync(cancellationToken); - TimeList.Add(_elem13); + byte[] _elem10; + _elem10 = await iprot.ReadBinaryAsync(cancellationToken); + TimeList.Add(_elem10); } await iprot.ReadListEndAsync(cancellationToken); } @@ -104,13 +85,13 @@ public TSQueryNonAlignDataSet DeepCopy() if (field.Type == TType.List) { { - TList _list14 = await iprot.ReadListBeginAsync(cancellationToken); - ValueList = new List(_list14.Count); - for(int _i15 = 0; _i15 < _list14.Count; ++_i15) + TList _list11 = await iprot.ReadListBeginAsync(cancellationToken); + ValueList = new List(_list11.Count); + for(int _i12 = 0; _i12 < _list11.Count; ++_i12) { - byte[] _elem16; - _elem16 = await iprot.ReadBinaryAsync(cancellationToken); - ValueList.Add(_elem16); + byte[] _elem13; + _elem13 = await iprot.ReadBinaryAsync(cancellationToken); + ValueList.Add(_elem13); } await iprot.ReadListEndAsync(cancellationToken); } @@ -145,7 +126,7 @@ public TSQueryNonAlignDataSet DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -153,38 +134,32 @@ public TSQueryNonAlignDataSet DeepCopy() var struc = new TStruct("TSQueryNonAlignDataSet"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((TimeList != null)) + field.Name = "timeList"; + field.Type = TType.List; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "timeList"; - field.Type = TType.List; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, TimeList.Count), cancellationToken); + foreach (byte[] _iter14 in TimeList) { - await oprot.WriteListBeginAsync(new TList(TType.String, TimeList.Count), cancellationToken); - foreach (byte[] _iter17 in TimeList) - { - await oprot.WriteBinaryAsync(_iter17, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteBinaryAsync(_iter14, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((ValueList != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "valueList"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "valueList"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, ValueList.Count), cancellationToken); + foreach (byte[] _iter15 in ValueList) { - await oprot.WriteListBeginAsync(new TList(TType.String, ValueList.Count), cancellationToken); - foreach (byte[] _iter18 in ValueList) - { - await oprot.WriteBinaryAsync(_iter18, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteBinaryAsync(_iter15, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -196,7 +171,8 @@ public TSQueryNonAlignDataSet DeepCopy() public override bool Equals(object that) { - if (!(that is TSQueryNonAlignDataSet other)) return false; + var other = that as TSQueryNonAlignDataSet; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return TCollections.Equals(TimeList, other.TimeList) && TCollections.Equals(ValueList, other.ValueList); @@ -205,14 +181,8 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((TimeList != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(TimeList); - } - if((ValueList != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(ValueList); - } + hashcode = (hashcode * 397) + TCollections.GetHashCode(TimeList); + hashcode = (hashcode * 397) + TCollections.GetHashCode(ValueList); } return hashcode; } @@ -220,17 +190,11 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSQueryNonAlignDataSet("); - if((TimeList != null)) - { - sb.Append(", TimeList: "); - TimeList.ToString(sb); - } - if((ValueList != null)) - { - sb.Append(", ValueList: "); - ValueList.ToString(sb); - } - sb.Append(')'); + sb.Append(", TimeList: "); + sb.Append(TimeList); + sb.Append(", ValueList: "); + sb.Append(ValueList); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateReq.cs index e3680ff..e9b134a 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSQueryTemplateReq : TBase { @@ -70,24 +65,7 @@ public TSQueryTemplateReq(long sessionId, string name, int queryType) : this() this.QueryType = queryType; } - public TSQueryTemplateReq DeepCopy() - { - var tmp409 = new TSQueryTemplateReq(); - tmp409.SessionId = this.SessionId; - if((Name != null)) - { - tmp409.Name = this.Name; - } - tmp409.QueryType = this.QueryType; - if((Measurement != null) && __isset.measurement) - { - tmp409.Measurement = this.Measurement; - } - tmp409.__isset.measurement = this.__isset.measurement; - return tmp409; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -178,7 +156,7 @@ public TSQueryTemplateReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -192,22 +170,19 @@ public TSQueryTemplateReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((Name != null)) - { - field.Name = "name"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Name, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "name"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Name, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "queryType"; field.Type = TType.I32; field.ID = 3; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(QueryType, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((Measurement != null) && __isset.measurement) + if (Measurement != null && __isset.measurement) { field.Name = "measurement"; field.Type = TType.String; @@ -227,7 +202,8 @@ public TSQueryTemplateReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSQueryTemplateReq other)) return false; + var other = that as TSQueryTemplateReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(Name, other.Name) @@ -239,15 +215,10 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((Name != null)) - { - hashcode = (hashcode * 397) + Name.GetHashCode(); - } + hashcode = (hashcode * 397) + Name.GetHashCode(); hashcode = (hashcode * 397) + QueryType.GetHashCode(); - if((Measurement != null) && __isset.measurement) - { + if(__isset.measurement) hashcode = (hashcode * 397) + Measurement.GetHashCode(); - } } return hashcode; } @@ -256,20 +227,17 @@ public override string ToString() { var sb = new StringBuilder("TSQueryTemplateReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((Name != null)) - { - sb.Append(", Name: "); - Name.ToString(sb); - } + sb.Append(SessionId); + sb.Append(", Name: "); + sb.Append(Name); sb.Append(", QueryType: "); - QueryType.ToString(sb); - if((Measurement != null) && __isset.measurement) + sb.Append(QueryType); + if (Measurement != null && __isset.measurement) { sb.Append(", Measurement: "); - Measurement.ToString(sb); + sb.Append(Measurement); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateResp.cs index 3b4bc97..3ecbc4b 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSQueryTemplateResp : TBase { @@ -97,33 +92,7 @@ public TSQueryTemplateResp(TSStatus status, int queryType) : this() this.QueryType = queryType; } - public TSQueryTemplateResp DeepCopy() - { - var tmp411 = new TSQueryTemplateResp(); - if((Status != null)) - { - tmp411.Status = (TSStatus)this.Status.DeepCopy(); - } - tmp411.QueryType = this.QueryType; - if(__isset.result) - { - tmp411.Result = this.Result; - } - tmp411.__isset.result = this.__isset.result; - if(__isset.count) - { - tmp411.Count = this.Count; - } - tmp411.__isset.count = this.__isset.count; - if((Measurements != null) && __isset.measurements) - { - tmp411.Measurements = this.Measurements.DeepCopy(); - } - tmp411.__isset.measurements = this.__isset.measurements; - return tmp411; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -189,13 +158,13 @@ public TSQueryTemplateResp DeepCopy() if (field.Type == TType.List) { { - TList _list412 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list412.Count); - for(int _i413 = 0; _i413 < _list412.Count; ++_i413) + TList _list347 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list347.Count); + for(int _i348 = 0; _i348 < _list347.Count; ++_i348) { - string _elem414; - _elem414 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem414); + string _elem349; + _elem349 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem349); } await iprot.ReadListEndAsync(cancellationToken); } @@ -229,7 +198,7 @@ public TSQueryTemplateResp DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -237,22 +206,19 @@ public TSQueryTemplateResp DeepCopy() var struc = new TStruct("TSQueryTemplateResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((Status != null)) - { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "queryType"; field.Type = TType.I32; field.ID = 2; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(QueryType, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if(__isset.result) + if (__isset.result) { field.Name = "result"; field.Type = TType.Bool; @@ -261,7 +227,7 @@ public TSQueryTemplateResp DeepCopy() await oprot.WriteBoolAsync(Result, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.count) + if (__isset.count) { field.Name = "count"; field.Type = TType.I32; @@ -270,7 +236,7 @@ public TSQueryTemplateResp DeepCopy() await oprot.WriteI32Async(Count, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if((Measurements != null) && __isset.measurements) + if (Measurements != null && __isset.measurements) { field.Name = "measurements"; field.Type = TType.List; @@ -278,9 +244,9 @@ public TSQueryTemplateResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter415 in Measurements) + foreach (string _iter350 in Measurements) { - await oprot.WriteStringAsync(_iter415, cancellationToken); + await oprot.WriteStringAsync(_iter350, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -297,7 +263,8 @@ public TSQueryTemplateResp DeepCopy() public override bool Equals(object that) { - if (!(that is TSQueryTemplateResp other)) return false; + var other = that as TSQueryTemplateResp; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && System.Object.Equals(QueryType, other.QueryType) @@ -309,23 +276,14 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((Status != null)) - { - hashcode = (hashcode * 397) + Status.GetHashCode(); - } + hashcode = (hashcode * 397) + Status.GetHashCode(); hashcode = (hashcode * 397) + QueryType.GetHashCode(); if(__isset.result) - { hashcode = (hashcode * 397) + Result.GetHashCode(); - } if(__isset.count) - { hashcode = (hashcode * 397) + Count.GetHashCode(); - } - if((Measurements != null) && __isset.measurements) - { + if(__isset.measurements) hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); - } } return hashcode; } @@ -333,29 +291,26 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSQueryTemplateResp("); - if((Status != null)) - { - sb.Append(", Status: "); - Status.ToString(sb); - } + sb.Append(", Status: "); + sb.Append(Status== null ? "" : Status.ToString()); sb.Append(", QueryType: "); - QueryType.ToString(sb); - if(__isset.result) + sb.Append(QueryType); + if (__isset.result) { sb.Append(", Result: "); - Result.ToString(sb); + sb.Append(Result); } - if(__isset.count) + if (__isset.count) { sb.Append(", Count: "); - Count.ToString(sb); + sb.Append(Count); } - if((Measurements != null) && __isset.measurements) + if (Measurements != null && __isset.measurements) { sb.Append(", Measurements: "); - Measurements.ToString(sb); + sb.Append(Measurements); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSRawDataQueryReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSRawDataQueryReq.cs index 6663416..7f9b9f3 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSRawDataQueryReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSRawDataQueryReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSRawDataQueryReq : TBase { @@ -35,6 +30,7 @@ public partial class TSRawDataQueryReq : TBase private bool _enableRedirectQuery; private bool _jdbcQuery; private long _timeout; + private bool _legalPathNodes; public long SessionId { get; set; } @@ -98,6 +94,19 @@ public long Timeout } } + public bool LegalPathNodes + { + get + { + return _legalPathNodes; + } + set + { + __isset.legalPathNodes = true; + this._legalPathNodes = value; + } + } + public Isset __isset; public struct Isset @@ -106,6 +115,7 @@ public struct Isset public bool enableRedirectQuery; public bool jdbcQuery; public bool timeout; + public bool legalPathNodes; } public TSRawDataQueryReq() @@ -121,41 +131,7 @@ public TSRawDataQueryReq(long sessionId, List paths, long startTime, lon this.StatementId = statementId; } - public TSRawDataQueryReq DeepCopy() - { - var tmp318 = new TSRawDataQueryReq(); - tmp318.SessionId = this.SessionId; - if((Paths != null)) - { - tmp318.Paths = this.Paths.DeepCopy(); - } - if(__isset.fetchSize) - { - tmp318.FetchSize = this.FetchSize; - } - tmp318.__isset.fetchSize = this.__isset.fetchSize; - tmp318.StartTime = this.StartTime; - tmp318.EndTime = this.EndTime; - tmp318.StatementId = this.StatementId; - if(__isset.enableRedirectQuery) - { - tmp318.EnableRedirectQuery = this.EnableRedirectQuery; - } - tmp318.__isset.enableRedirectQuery = this.__isset.enableRedirectQuery; - if(__isset.jdbcQuery) - { - tmp318.JdbcQuery = this.JdbcQuery; - } - tmp318.__isset.jdbcQuery = this.__isset.jdbcQuery; - if(__isset.timeout) - { - tmp318.Timeout = this.Timeout; - } - tmp318.__isset.timeout = this.__isset.timeout; - return tmp318; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -192,13 +168,13 @@ public TSRawDataQueryReq DeepCopy() if (field.Type == TType.List) { { - TList _list319 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list319.Count); - for(int _i320 = 0; _i320 < _list319.Count; ++_i320) + TList _list260 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list260.Count); + for(int _i261 = 0; _i261 < _list260.Count; ++_i261) { - string _elem321; - _elem321 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem321); + string _elem262; + _elem262 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem262); } await iprot.ReadListEndAsync(cancellationToken); } @@ -282,6 +258,16 @@ public TSRawDataQueryReq DeepCopy() await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; + case 10: + if (field.Type == TType.Bool) + { + LegalPathNodes = await iprot.ReadBoolAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); break; @@ -318,7 +304,7 @@ public TSRawDataQueryReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -332,23 +318,20 @@ public TSRawDataQueryReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((Paths != null)) + field.Name = "paths"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "paths"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); + foreach (string _iter263 in Paths) { - await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter322 in Paths) - { - await oprot.WriteStringAsync(_iter322, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter263, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if(__isset.fetchSize) + await oprot.WriteFieldEndAsync(cancellationToken); + if (__isset.fetchSize) { field.Name = "fetchSize"; field.Type = TType.I32; @@ -375,7 +358,7 @@ public TSRawDataQueryReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(StatementId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if(__isset.enableRedirectQuery) + if (__isset.enableRedirectQuery) { field.Name = "enableRedirectQuery"; field.Type = TType.Bool; @@ -384,7 +367,7 @@ public TSRawDataQueryReq DeepCopy() await oprot.WriteBoolAsync(EnableRedirectQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.jdbcQuery) + if (__isset.jdbcQuery) { field.Name = "jdbcQuery"; field.Type = TType.Bool; @@ -393,7 +376,7 @@ public TSRawDataQueryReq DeepCopy() await oprot.WriteBoolAsync(JdbcQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.timeout) + if (__isset.timeout) { field.Name = "timeout"; field.Type = TType.I64; @@ -402,6 +385,15 @@ public TSRawDataQueryReq DeepCopy() await oprot.WriteI64Async(Timeout, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + if (__isset.legalPathNodes) + { + field.Name = "legalPathNodes"; + field.Type = TType.Bool; + field.ID = 10; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBoolAsync(LegalPathNodes, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -413,7 +405,8 @@ public TSRawDataQueryReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSRawDataQueryReq other)) return false; + var other = that as TSRawDataQueryReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && TCollections.Equals(Paths, other.Paths) @@ -423,36 +416,28 @@ public override bool Equals(object that) && System.Object.Equals(StatementId, other.StatementId) && ((__isset.enableRedirectQuery == other.__isset.enableRedirectQuery) && ((!__isset.enableRedirectQuery) || (System.Object.Equals(EnableRedirectQuery, other.EnableRedirectQuery)))) && ((__isset.jdbcQuery == other.__isset.jdbcQuery) && ((!__isset.jdbcQuery) || (System.Object.Equals(JdbcQuery, other.JdbcQuery)))) - && ((__isset.timeout == other.__isset.timeout) && ((!__isset.timeout) || (System.Object.Equals(Timeout, other.Timeout)))); + && ((__isset.timeout == other.__isset.timeout) && ((!__isset.timeout) || (System.Object.Equals(Timeout, other.Timeout)))) + && ((__isset.legalPathNodes == other.__isset.legalPathNodes) && ((!__isset.legalPathNodes) || (System.Object.Equals(LegalPathNodes, other.LegalPathNodes)))); } public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((Paths != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); - } + hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); if(__isset.fetchSize) - { hashcode = (hashcode * 397) + FetchSize.GetHashCode(); - } hashcode = (hashcode * 397) + StartTime.GetHashCode(); hashcode = (hashcode * 397) + EndTime.GetHashCode(); hashcode = (hashcode * 397) + StatementId.GetHashCode(); if(__isset.enableRedirectQuery) - { hashcode = (hashcode * 397) + EnableRedirectQuery.GetHashCode(); - } if(__isset.jdbcQuery) - { hashcode = (hashcode * 397) + JdbcQuery.GetHashCode(); - } if(__isset.timeout) - { hashcode = (hashcode * 397) + Timeout.GetHashCode(); - } + if(__isset.legalPathNodes) + hashcode = (hashcode * 397) + LegalPathNodes.GetHashCode(); } return hashcode; } @@ -461,39 +446,41 @@ public override string ToString() { var sb = new StringBuilder("TSRawDataQueryReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((Paths != null)) - { - sb.Append(", Paths: "); - Paths.ToString(sb); - } - if(__isset.fetchSize) + sb.Append(SessionId); + sb.Append(", Paths: "); + sb.Append(Paths); + if (__isset.fetchSize) { sb.Append(", FetchSize: "); - FetchSize.ToString(sb); + sb.Append(FetchSize); } sb.Append(", StartTime: "); - StartTime.ToString(sb); + sb.Append(StartTime); sb.Append(", EndTime: "); - EndTime.ToString(sb); + sb.Append(EndTime); sb.Append(", StatementId: "); - StatementId.ToString(sb); - if(__isset.enableRedirectQuery) + sb.Append(StatementId); + if (__isset.enableRedirectQuery) { sb.Append(", EnableRedirectQuery: "); - EnableRedirectQuery.ToString(sb); + sb.Append(EnableRedirectQuery); } - if(__isset.jdbcQuery) + if (__isset.jdbcQuery) { sb.Append(", JdbcQuery: "); - JdbcQuery.ToString(sb); + sb.Append(JdbcQuery); } - if(__isset.timeout) + if (__isset.timeout) { sb.Append(", Timeout: "); - Timeout.ToString(sb); + sb.Append(Timeout); + } + if (__isset.legalPathNodes) + { + sb.Append(", LegalPathNodes: "); + sb.Append(LegalPathNodes); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSSetSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSSetSchemaTemplateReq.cs index 4078cc6..94de4ba 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSSetSchemaTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSSetSchemaTemplateReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSSetSchemaTemplateReq : TBase { @@ -49,22 +44,7 @@ public TSSetSchemaTemplateReq(long sessionId, string templateName, string prefix this.PrefixPath = prefixPath; } - public TSSetSchemaTemplateReq DeepCopy() - { - var tmp385 = new TSSetSchemaTemplateReq(); - tmp385.SessionId = this.SessionId; - if((TemplateName != null)) - { - tmp385.TemplateName = this.TemplateName; - } - if((PrefixPath != null)) - { - tmp385.PrefixPath = this.PrefixPath; - } - return tmp385; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -145,7 +125,7 @@ public TSSetSchemaTemplateReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -159,24 +139,18 @@ public TSSetSchemaTemplateReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((TemplateName != null)) - { - field.Name = "templateName"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(TemplateName, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((PrefixPath != null)) - { - field.Name = "prefixPath"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(PrefixPath, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "templateName"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(TemplateName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "prefixPath"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(PrefixPath, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -188,7 +162,8 @@ public TSSetSchemaTemplateReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSSetSchemaTemplateReq other)) return false; + var other = that as TSSetSchemaTemplateReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(TemplateName, other.TemplateName) @@ -199,14 +174,8 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((TemplateName != null)) - { - hashcode = (hashcode * 397) + TemplateName.GetHashCode(); - } - if((PrefixPath != null)) - { - hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); - } + hashcode = (hashcode * 397) + TemplateName.GetHashCode(); + hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); } return hashcode; } @@ -215,18 +184,12 @@ public override string ToString() { var sb = new StringBuilder("TSSetSchemaTemplateReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((TemplateName != null)) - { - sb.Append(", TemplateName: "); - TemplateName.ToString(sb); - } - if((PrefixPath != null)) - { - sb.Append(", PrefixPath: "); - PrefixPath.ToString(sb); - } - sb.Append(')'); + sb.Append(SessionId); + sb.Append(", TemplateName: "); + sb.Append(TemplateName); + sb.Append(", PrefixPath: "); + sb.Append(PrefixPath); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSSetTimeZoneReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSSetTimeZoneReq.cs index 7d36632..963d8da 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSSetTimeZoneReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSSetTimeZoneReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSSetTimeZoneReq : TBase { @@ -46,18 +41,7 @@ public TSSetTimeZoneReq(long sessionId, string timeZone) : this() this.TimeZone = timeZone; } - public TSSetTimeZoneReq DeepCopy() - { - var tmp105 = new TSSetTimeZoneReq(); - tmp105.SessionId = this.SessionId; - if((TimeZone != null)) - { - tmp105.TimeZone = this.TimeZone; - } - return tmp105; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -122,7 +106,7 @@ public TSSetTimeZoneReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -136,15 +120,12 @@ public TSSetTimeZoneReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((TimeZone != null)) - { - field.Name = "timeZone"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(TimeZone, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "timeZone"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(TimeZone, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -156,7 +137,8 @@ public TSSetTimeZoneReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSSetTimeZoneReq other)) return false; + var other = that as TSSetTimeZoneReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(TimeZone, other.TimeZone); @@ -166,10 +148,7 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((TimeZone != null)) - { - hashcode = (hashcode * 397) + TimeZone.GetHashCode(); - } + hashcode = (hashcode * 397) + TimeZone.GetHashCode(); } return hashcode; } @@ -178,13 +157,10 @@ public override string ToString() { var sb = new StringBuilder("TSSetTimeZoneReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((TimeZone != null)) - { - sb.Append(", TimeZone: "); - TimeZone.ToString(sb); - } - sb.Append(')'); + sb.Append(SessionId); + sb.Append(", TimeZone: "); + sb.Append(TimeZone); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSStatus.cs b/src/Apache.IoTDB/Rpc/Generated/TSStatus.cs index fa36296..4abd282 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSStatus.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSStatus.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,15 +23,13 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSStatus : TBase { private string _message; private List _subStatus; private TEndPoint _redirectNode; + private bool _needRetry; public int Code { get; set; } @@ -76,6 +72,19 @@ public TEndPoint RedirectNode } } + public bool NeedRetry + { + get + { + return _needRetry; + } + set + { + __isset.needRetry = true; + this._needRetry = value; + } + } + public Isset __isset; public struct Isset @@ -83,6 +92,7 @@ public struct Isset public bool message; public bool subStatus; public bool redirectNode; + public bool needRetry; } public TSStatus() @@ -94,29 +104,7 @@ public TSStatus(int code) : this() this.Code = code; } - public TSStatus DeepCopy() - { - var tmp2 = new TSStatus(); - tmp2.Code = this.Code; - if((Message != null) && __isset.message) - { - tmp2.Message = this.Message; - } - tmp2.__isset.message = this.__isset.message; - if((SubStatus != null) && __isset.subStatus) - { - tmp2.SubStatus = this.SubStatus.DeepCopy(); - } - tmp2.__isset.subStatus = this.__isset.subStatus; - if((RedirectNode != null) && __isset.redirectNode) - { - tmp2.RedirectNode = (TEndPoint)this.RedirectNode.DeepCopy(); - } - tmp2.__isset.redirectNode = this.__isset.redirectNode; - return tmp2; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -159,14 +147,14 @@ public TSStatus DeepCopy() if (field.Type == TType.List) { { - TList _list3 = await iprot.ReadListBeginAsync(cancellationToken); - SubStatus = new List(_list3.Count); - for(int _i4 = 0; _i4 < _list3.Count; ++_i4) + TList _list0 = await iprot.ReadListBeginAsync(cancellationToken); + SubStatus = new List(_list0.Count); + for(int _i1 = 0; _i1 < _list0.Count; ++_i1) { - TSStatus _elem5; - _elem5 = new TSStatus(); - await _elem5.ReadAsync(iprot, cancellationToken); - SubStatus.Add(_elem5); + TSStatus _elem2; + _elem2 = new TSStatus(); + await _elem2.ReadAsync(iprot, cancellationToken); + SubStatus.Add(_elem2); } await iprot.ReadListEndAsync(cancellationToken); } @@ -187,6 +175,16 @@ public TSStatus DeepCopy() await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; + case 5: + if (field.Type == TType.Bool) + { + NeedRetry = await iprot.ReadBoolAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); break; @@ -207,7 +205,7 @@ public TSStatus DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -221,7 +219,7 @@ public TSStatus DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(Code, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((Message != null) && __isset.message) + if (Message != null && __isset.message) { field.Name = "message"; field.Type = TType.String; @@ -230,7 +228,7 @@ public TSStatus DeepCopy() await oprot.WriteStringAsync(Message, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if((SubStatus != null) && __isset.subStatus) + if (SubStatus != null && __isset.subStatus) { field.Name = "subStatus"; field.Type = TType.List; @@ -238,15 +236,15 @@ public TSStatus DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, SubStatus.Count), cancellationToken); - foreach (TSStatus _iter6 in SubStatus) + foreach (TSStatus _iter3 in SubStatus) { - await _iter6.WriteAsync(oprot, cancellationToken); + await _iter3.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if((RedirectNode != null) && __isset.redirectNode) + if (RedirectNode != null && __isset.redirectNode) { field.Name = "redirectNode"; field.Type = TType.Struct; @@ -255,6 +253,15 @@ public TSStatus DeepCopy() await RedirectNode.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + if (__isset.needRetry) + { + field.Name = "needRetry"; + field.Type = TType.Bool; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBoolAsync(NeedRetry, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -266,30 +273,28 @@ public TSStatus DeepCopy() public override bool Equals(object that) { - if (!(that is TSStatus other)) return false; + var other = that as TSStatus; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Code, other.Code) && ((__isset.message == other.__isset.message) && ((!__isset.message) || (System.Object.Equals(Message, other.Message)))) && ((__isset.subStatus == other.__isset.subStatus) && ((!__isset.subStatus) || (TCollections.Equals(SubStatus, other.SubStatus)))) - && ((__isset.redirectNode == other.__isset.redirectNode) && ((!__isset.redirectNode) || (System.Object.Equals(RedirectNode, other.RedirectNode)))); + && ((__isset.redirectNode == other.__isset.redirectNode) && ((!__isset.redirectNode) || (System.Object.Equals(RedirectNode, other.RedirectNode)))) + && ((__isset.needRetry == other.__isset.needRetry) && ((!__isset.needRetry) || (System.Object.Equals(NeedRetry, other.NeedRetry)))); } public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + Code.GetHashCode(); - if((Message != null) && __isset.message) - { + if(__isset.message) hashcode = (hashcode * 397) + Message.GetHashCode(); - } - if((SubStatus != null) && __isset.subStatus) - { + if(__isset.subStatus) hashcode = (hashcode * 397) + TCollections.GetHashCode(SubStatus); - } - if((RedirectNode != null) && __isset.redirectNode) - { + if(__isset.redirectNode) hashcode = (hashcode * 397) + RedirectNode.GetHashCode(); - } + if(__isset.needRetry) + hashcode = (hashcode * 397) + NeedRetry.GetHashCode(); } return hashcode; } @@ -298,23 +303,28 @@ public override string ToString() { var sb = new StringBuilder("TSStatus("); sb.Append(", Code: "); - Code.ToString(sb); - if((Message != null) && __isset.message) + sb.Append(Code); + if (Message != null && __isset.message) { sb.Append(", Message: "); - Message.ToString(sb); + sb.Append(Message); } - if((SubStatus != null) && __isset.subStatus) + if (SubStatus != null && __isset.subStatus) { sb.Append(", SubStatus: "); - SubStatus.ToString(sb); + sb.Append(SubStatus); } - if((RedirectNode != null) && __isset.redirectNode) + if (RedirectNode != null && __isset.redirectNode) { sb.Append(", RedirectNode: "); - RedirectNode.ToString(sb); + sb.Append(RedirectNode== null ? "" : RedirectNode.ToString()); + } + if (__isset.needRetry) + { + sb.Append(", NeedRetry: "); + sb.Append(NeedRetry); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSTracingInfo.cs b/src/Apache.IoTDB/Rpc/Generated/TSTracingInfo.cs index af09a6f..cc0d84b 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSTracingInfo.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSTracingInfo.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSTracingInfo : TBase { @@ -187,66 +182,7 @@ public TSTracingInfo(List activityList, List elapsedTimeList) : th this.ElapsedTimeList = elapsedTimeList; } - public TSTracingInfo DeepCopy() - { - var tmp20 = new TSTracingInfo(); - if((ActivityList != null)) - { - tmp20.ActivityList = this.ActivityList.DeepCopy(); - } - if((ElapsedTimeList != null)) - { - tmp20.ElapsedTimeList = this.ElapsedTimeList.DeepCopy(); - } - if(__isset.seriesPathNum) - { - tmp20.SeriesPathNum = this.SeriesPathNum; - } - tmp20.__isset.seriesPathNum = this.__isset.seriesPathNum; - if(__isset.seqFileNum) - { - tmp20.SeqFileNum = this.SeqFileNum; - } - tmp20.__isset.seqFileNum = this.__isset.seqFileNum; - if(__isset.unSeqFileNum) - { - tmp20.UnSeqFileNum = this.UnSeqFileNum; - } - tmp20.__isset.unSeqFileNum = this.__isset.unSeqFileNum; - if(__isset.sequenceChunkNum) - { - tmp20.SequenceChunkNum = this.SequenceChunkNum; - } - tmp20.__isset.sequenceChunkNum = this.__isset.sequenceChunkNum; - if(__isset.sequenceChunkPointNum) - { - tmp20.SequenceChunkPointNum = this.SequenceChunkPointNum; - } - tmp20.__isset.sequenceChunkPointNum = this.__isset.sequenceChunkPointNum; - if(__isset.unsequenceChunkNum) - { - tmp20.UnsequenceChunkNum = this.UnsequenceChunkNum; - } - tmp20.__isset.unsequenceChunkNum = this.__isset.unsequenceChunkNum; - if(__isset.unsequenceChunkPointNum) - { - tmp20.UnsequenceChunkPointNum = this.UnsequenceChunkPointNum; - } - tmp20.__isset.unsequenceChunkPointNum = this.__isset.unsequenceChunkPointNum; - if(__isset.totalPageNum) - { - tmp20.TotalPageNum = this.TotalPageNum; - } - tmp20.__isset.totalPageNum = this.__isset.totalPageNum; - if(__isset.overlappedPageNum) - { - tmp20.OverlappedPageNum = this.OverlappedPageNum; - } - tmp20.__isset.overlappedPageNum = this.__isset.overlappedPageNum; - return tmp20; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -269,13 +205,13 @@ public TSTracingInfo DeepCopy() if (field.Type == TType.List) { { - TList _list21 = await iprot.ReadListBeginAsync(cancellationToken); - ActivityList = new List(_list21.Count); - for(int _i22 = 0; _i22 < _list21.Count; ++_i22) + TList _list16 = await iprot.ReadListBeginAsync(cancellationToken); + ActivityList = new List(_list16.Count); + for(int _i17 = 0; _i17 < _list16.Count; ++_i17) { - string _elem23; - _elem23 = await iprot.ReadStringAsync(cancellationToken); - ActivityList.Add(_elem23); + string _elem18; + _elem18 = await iprot.ReadStringAsync(cancellationToken); + ActivityList.Add(_elem18); } await iprot.ReadListEndAsync(cancellationToken); } @@ -290,13 +226,13 @@ public TSTracingInfo DeepCopy() if (field.Type == TType.List) { { - TList _list24 = await iprot.ReadListBeginAsync(cancellationToken); - ElapsedTimeList = new List(_list24.Count); - for(int _i25 = 0; _i25 < _list24.Count; ++_i25) + TList _list19 = await iprot.ReadListBeginAsync(cancellationToken); + ElapsedTimeList = new List(_list19.Count); + for(int _i20 = 0; _i20 < _list19.Count; ++_i20) { - long _elem26; - _elem26 = await iprot.ReadI64Async(cancellationToken); - ElapsedTimeList.Add(_elem26); + long _elem21; + _elem21 = await iprot.ReadI64Async(cancellationToken); + ElapsedTimeList.Add(_elem21); } await iprot.ReadListEndAsync(cancellationToken); } @@ -421,7 +357,7 @@ public TSTracingInfo DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -429,39 +365,33 @@ public TSTracingInfo DeepCopy() var struc = new TStruct("TSTracingInfo"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((ActivityList != null)) + field.Name = "activityList"; + field.Type = TType.List; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "activityList"; - field.Type = TType.List; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, ActivityList.Count), cancellationToken); + foreach (string _iter22 in ActivityList) { - await oprot.WriteListBeginAsync(new TList(TType.String, ActivityList.Count), cancellationToken); - foreach (string _iter27 in ActivityList) - { - await oprot.WriteStringAsync(_iter27, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter22, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if((ElapsedTimeList != null)) + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "elapsedTimeList"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "elapsedTimeList"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I64, ElapsedTimeList.Count), cancellationToken); + foreach (long _iter23 in ElapsedTimeList) { - await oprot.WriteListBeginAsync(new TList(TType.I64, ElapsedTimeList.Count), cancellationToken); - foreach (long _iter28 in ElapsedTimeList) - { - await oprot.WriteI64Async(_iter28, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteI64Async(_iter23, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } - if(__isset.seriesPathNum) + await oprot.WriteFieldEndAsync(cancellationToken); + if (__isset.seriesPathNum) { field.Name = "seriesPathNum"; field.Type = TType.I32; @@ -470,7 +400,7 @@ public TSTracingInfo DeepCopy() await oprot.WriteI32Async(SeriesPathNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.seqFileNum) + if (__isset.seqFileNum) { field.Name = "seqFileNum"; field.Type = TType.I32; @@ -479,7 +409,7 @@ public TSTracingInfo DeepCopy() await oprot.WriteI32Async(SeqFileNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.unSeqFileNum) + if (__isset.unSeqFileNum) { field.Name = "unSeqFileNum"; field.Type = TType.I32; @@ -488,7 +418,7 @@ public TSTracingInfo DeepCopy() await oprot.WriteI32Async(UnSeqFileNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.sequenceChunkNum) + if (__isset.sequenceChunkNum) { field.Name = "sequenceChunkNum"; field.Type = TType.I32; @@ -497,7 +427,7 @@ public TSTracingInfo DeepCopy() await oprot.WriteI32Async(SequenceChunkNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.sequenceChunkPointNum) + if (__isset.sequenceChunkPointNum) { field.Name = "sequenceChunkPointNum"; field.Type = TType.I64; @@ -506,7 +436,7 @@ public TSTracingInfo DeepCopy() await oprot.WriteI64Async(SequenceChunkPointNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.unsequenceChunkNum) + if (__isset.unsequenceChunkNum) { field.Name = "unsequenceChunkNum"; field.Type = TType.I32; @@ -515,7 +445,7 @@ public TSTracingInfo DeepCopy() await oprot.WriteI32Async(UnsequenceChunkNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.unsequenceChunkPointNum) + if (__isset.unsequenceChunkPointNum) { field.Name = "unsequenceChunkPointNum"; field.Type = TType.I64; @@ -524,7 +454,7 @@ public TSTracingInfo DeepCopy() await oprot.WriteI64Async(UnsequenceChunkPointNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.totalPageNum) + if (__isset.totalPageNum) { field.Name = "totalPageNum"; field.Type = TType.I32; @@ -533,7 +463,7 @@ public TSTracingInfo DeepCopy() await oprot.WriteI32Async(TotalPageNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if(__isset.overlappedPageNum) + if (__isset.overlappedPageNum) { field.Name = "overlappedPageNum"; field.Type = TType.I32; @@ -553,7 +483,8 @@ public TSTracingInfo DeepCopy() public override bool Equals(object that) { - if (!(that is TSTracingInfo other)) return false; + var other = that as TSTracingInfo; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return TCollections.Equals(ActivityList, other.ActivityList) && TCollections.Equals(ElapsedTimeList, other.ElapsedTimeList) @@ -571,50 +502,26 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((ActivityList != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(ActivityList); - } - if((ElapsedTimeList != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(ElapsedTimeList); - } + hashcode = (hashcode * 397) + TCollections.GetHashCode(ActivityList); + hashcode = (hashcode * 397) + TCollections.GetHashCode(ElapsedTimeList); if(__isset.seriesPathNum) - { hashcode = (hashcode * 397) + SeriesPathNum.GetHashCode(); - } if(__isset.seqFileNum) - { hashcode = (hashcode * 397) + SeqFileNum.GetHashCode(); - } if(__isset.unSeqFileNum) - { hashcode = (hashcode * 397) + UnSeqFileNum.GetHashCode(); - } if(__isset.sequenceChunkNum) - { hashcode = (hashcode * 397) + SequenceChunkNum.GetHashCode(); - } if(__isset.sequenceChunkPointNum) - { hashcode = (hashcode * 397) + SequenceChunkPointNum.GetHashCode(); - } if(__isset.unsequenceChunkNum) - { hashcode = (hashcode * 397) + UnsequenceChunkNum.GetHashCode(); - } if(__isset.unsequenceChunkPointNum) - { hashcode = (hashcode * 397) + UnsequenceChunkPointNum.GetHashCode(); - } if(__isset.totalPageNum) - { hashcode = (hashcode * 397) + TotalPageNum.GetHashCode(); - } if(__isset.overlappedPageNum) - { hashcode = (hashcode * 397) + OverlappedPageNum.GetHashCode(); - } } return hashcode; } @@ -622,62 +529,56 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSTracingInfo("); - if((ActivityList != null)) - { - sb.Append(", ActivityList: "); - ActivityList.ToString(sb); - } - if((ElapsedTimeList != null)) - { - sb.Append(", ElapsedTimeList: "); - ElapsedTimeList.ToString(sb); - } - if(__isset.seriesPathNum) + sb.Append(", ActivityList: "); + sb.Append(ActivityList); + sb.Append(", ElapsedTimeList: "); + sb.Append(ElapsedTimeList); + if (__isset.seriesPathNum) { sb.Append(", SeriesPathNum: "); - SeriesPathNum.ToString(sb); + sb.Append(SeriesPathNum); } - if(__isset.seqFileNum) + if (__isset.seqFileNum) { sb.Append(", SeqFileNum: "); - SeqFileNum.ToString(sb); + sb.Append(SeqFileNum); } - if(__isset.unSeqFileNum) + if (__isset.unSeqFileNum) { sb.Append(", UnSeqFileNum: "); - UnSeqFileNum.ToString(sb); + sb.Append(UnSeqFileNum); } - if(__isset.sequenceChunkNum) + if (__isset.sequenceChunkNum) { sb.Append(", SequenceChunkNum: "); - SequenceChunkNum.ToString(sb); + sb.Append(SequenceChunkNum); } - if(__isset.sequenceChunkPointNum) + if (__isset.sequenceChunkPointNum) { sb.Append(", SequenceChunkPointNum: "); - SequenceChunkPointNum.ToString(sb); + sb.Append(SequenceChunkPointNum); } - if(__isset.unsequenceChunkNum) + if (__isset.unsequenceChunkNum) { sb.Append(", UnsequenceChunkNum: "); - UnsequenceChunkNum.ToString(sb); + sb.Append(UnsequenceChunkNum); } - if(__isset.unsequenceChunkPointNum) + if (__isset.unsequenceChunkPointNum) { sb.Append(", UnsequenceChunkPointNum: "); - UnsequenceChunkPointNum.ToString(sb); + sb.Append(UnsequenceChunkPointNum); } - if(__isset.totalPageNum) + if (__isset.totalPageNum) { sb.Append(", TotalPageNum: "); - TotalPageNum.ToString(sb); + sb.Append(TotalPageNum); } - if(__isset.overlappedPageNum) + if (__isset.overlappedPageNum) { sb.Append(", OverlappedPageNum: "); - OverlappedPageNum.ToString(sb); + sb.Append(OverlappedPageNum); } - sb.Append(')'); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSUnsetSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSUnsetSchemaTemplateReq.cs index 1d99924..432baef 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSUnsetSchemaTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSUnsetSchemaTemplateReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSUnsetSchemaTemplateReq : TBase { @@ -49,22 +44,7 @@ public TSUnsetSchemaTemplateReq(long sessionId, string prefixPath, string templa this.TemplateName = templateName; } - public TSUnsetSchemaTemplateReq DeepCopy() - { - var tmp417 = new TSUnsetSchemaTemplateReq(); - tmp417.SessionId = this.SessionId; - if((PrefixPath != null)) - { - tmp417.PrefixPath = this.PrefixPath; - } - if((TemplateName != null)) - { - tmp417.TemplateName = this.TemplateName; - } - return tmp417; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -145,7 +125,7 @@ public TSUnsetSchemaTemplateReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -159,24 +139,18 @@ public TSUnsetSchemaTemplateReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((PrefixPath != null)) - { - field.Name = "prefixPath"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(PrefixPath, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((TemplateName != null)) - { - field.Name = "templateName"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(TemplateName, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "prefixPath"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(PrefixPath, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "templateName"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(TemplateName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -188,7 +162,8 @@ public TSUnsetSchemaTemplateReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSUnsetSchemaTemplateReq other)) return false; + var other = that as TSUnsetSchemaTemplateReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(PrefixPath, other.PrefixPath) @@ -199,14 +174,8 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if((PrefixPath != null)) - { - hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); - } - if((TemplateName != null)) - { - hashcode = (hashcode * 397) + TemplateName.GetHashCode(); - } + hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); + hashcode = (hashcode * 397) + TemplateName.GetHashCode(); } return hashcode; } @@ -215,18 +184,12 @@ public override string ToString() { var sb = new StringBuilder("TSUnsetSchemaTemplateReq("); sb.Append(", SessionId: "); - SessionId.ToString(sb); - if((PrefixPath != null)) - { - sb.Append(", PrefixPath: "); - PrefixPath.ToString(sb); - } - if((TemplateName != null)) - { - sb.Append(", TemplateName: "); - TemplateName.ToString(sb); - } - sb.Append(')'); + sb.Append(SessionId); + sb.Append(", PrefixPath: "); + sb.Append(PrefixPath); + sb.Append(", TemplateName: "); + sb.Append(TemplateName); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs b/src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs index 0ddd5f6..a73e4b7 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSchemaNode : TBase { @@ -46,18 +41,7 @@ public TSchemaNode(string nodeName, sbyte nodeType) : this() this.NodeType = nodeType; } - public TSchemaNode DeepCopy() - { - var tmp34 = new TSchemaNode(); - if((NodeName != null)) - { - tmp34.NodeName = this.NodeName; - } - tmp34.NodeType = this.NodeType; - return tmp34; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -122,7 +106,7 @@ public TSchemaNode DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -130,15 +114,12 @@ public TSchemaNode DeepCopy() var struc = new TStruct("TSchemaNode"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((NodeName != null)) - { - field.Name = "nodeName"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(NodeName, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "nodeName"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(NodeName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "nodeType"; field.Type = TType.Byte; field.ID = 2; @@ -156,7 +137,8 @@ public TSchemaNode DeepCopy() public override bool Equals(object that) { - if (!(that is TSchemaNode other)) return false; + var other = that as TSchemaNode; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(NodeName, other.NodeName) && System.Object.Equals(NodeType, other.NodeType); @@ -165,10 +147,7 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((NodeName != null)) - { - hashcode = (hashcode * 397) + NodeName.GetHashCode(); - } + hashcode = (hashcode * 397) + NodeName.GetHashCode(); hashcode = (hashcode * 397) + NodeType.GetHashCode(); } return hashcode; @@ -177,14 +156,11 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSchemaNode("); - if((NodeName != null)) - { - sb.Append(", NodeName: "); - NodeName.ToString(sb); - } + sb.Append(", NodeName: "); + sb.Append(NodeName); sb.Append(", NodeType: "); - NodeType.ToString(sb); - sb.Append(')'); + sb.Append(NodeType); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSender.cs b/src/Apache.IoTDB/Rpc/Generated/TSender.cs new file mode 100644 index 0000000..9beddc2 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TSender.cs @@ -0,0 +1,202 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TSender : TBase +{ + private TDataNodeLocation _dataNodeLocation; + private TConfigNodeLocation _configNodeLocation; + + public TDataNodeLocation DataNodeLocation + { + get + { + return _dataNodeLocation; + } + set + { + __isset.dataNodeLocation = true; + this._dataNodeLocation = value; + } + } + + public TConfigNodeLocation ConfigNodeLocation + { + get + { + return _configNodeLocation; + } + set + { + __isset.configNodeLocation = true; + this._configNodeLocation = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool dataNodeLocation; + public bool configNodeLocation; + } + + public TSender() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + DataNodeLocation = new TDataNodeLocation(); + await DataNodeLocation.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.Struct) + { + ConfigNodeLocation = new TConfigNodeLocation(); + await ConfigNodeLocation.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TSender"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (DataNodeLocation != null && __isset.dataNodeLocation) + { + field.Name = "dataNodeLocation"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await DataNodeLocation.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (ConfigNodeLocation != null && __isset.configNodeLocation) + { + field.Name = "configNodeLocation"; + field.Type = TType.Struct; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await ConfigNodeLocation.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TSender; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.dataNodeLocation == other.__isset.dataNodeLocation) && ((!__isset.dataNodeLocation) || (System.Object.Equals(DataNodeLocation, other.DataNodeLocation)))) + && ((__isset.configNodeLocation == other.__isset.configNodeLocation) && ((!__isset.configNodeLocation) || (System.Object.Equals(ConfigNodeLocation, other.ConfigNodeLocation)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.dataNodeLocation) + hashcode = (hashcode * 397) + DataNodeLocation.GetHashCode(); + if(__isset.configNodeLocation) + hashcode = (hashcode * 397) + ConfigNodeLocation.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TSender("); + bool __first = true; + if (DataNodeLocation != null && __isset.dataNodeLocation) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("DataNodeLocation: "); + sb.Append(DataNodeLocation== null ? "" : DataNodeLocation.ToString()); + } + if (ConfigNodeLocation != null && __isset.configNodeLocation) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("ConfigNodeLocation: "); + sb.Append(ConfigNodeLocation== null ? "" : ConfigNodeLocation.ToString()); + } + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TSeriesPartitionSlot.cs b/src/Apache.IoTDB/Rpc/Generated/TSeriesPartitionSlot.cs index 744cdf1..7e3da37 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSeriesPartitionSlot.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSeriesPartitionSlot.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSeriesPartitionSlot : TBase { @@ -43,14 +38,7 @@ public TSeriesPartitionSlot(int slotId) : this() this.SlotId = slotId; } - public TSeriesPartitionSlot DeepCopy() - { - var tmp10 = new TSeriesPartitionSlot(); - tmp10.SlotId = this.SlotId; - return tmp10; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -99,7 +87,7 @@ public TSeriesPartitionSlot DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -124,7 +112,8 @@ public TSeriesPartitionSlot DeepCopy() public override bool Equals(object that) { - if (!(that is TSeriesPartitionSlot other)) return false; + var other = that as TSeriesPartitionSlot; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SlotId, other.SlotId); } @@ -141,8 +130,8 @@ public override string ToString() { var sb = new StringBuilder("TSeriesPartitionSlot("); sb.Append(", SlotId: "); - SlotId.ToString(sb); - sb.Append(')'); + sb.Append(SlotId); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TServiceProvider.cs b/src/Apache.IoTDB/Rpc/Generated/TServiceProvider.cs new file mode 100644 index 0000000..4a453d3 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TServiceProvider.cs @@ -0,0 +1,172 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TServiceProvider : TBase +{ + + public TEndPoint EndPoint { get; set; } + + /// + /// + /// + /// + public TServiceType ServiceType { get; set; } + + public TServiceProvider() + { + } + + public TServiceProvider(TEndPoint endPoint, TServiceType serviceType) : this() + { + this.EndPoint = endPoint; + this.ServiceType = serviceType; + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_endPoint = false; + bool isset_serviceType = false; + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + EndPoint = new TEndPoint(); + await EndPoint.ReadAsync(iprot, cancellationToken); + isset_endPoint = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + ServiceType = (TServiceType)await iprot.ReadI32Async(cancellationToken); + isset_serviceType = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + if (!isset_endPoint) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_serviceType) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TServiceProvider"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "endPoint"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await EndPoint.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "serviceType"; + field.Type = TType.I32; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI32Async((int)ServiceType, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TServiceProvider; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return System.Object.Equals(EndPoint, other.EndPoint) + && System.Object.Equals(ServiceType, other.ServiceType); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + EndPoint.GetHashCode(); + hashcode = (hashcode * 397) + ServiceType.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TServiceProvider("); + sb.Append(", EndPoint: "); + sb.Append(EndPoint== null ? "" : EndPoint.ToString()); + sb.Append(", ServiceType: "); + sb.Append(ServiceType); + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TServiceType.cs b/src/Apache.IoTDB/Rpc/Generated/TServiceType.cs new file mode 100644 index 0000000..3ce9cc1 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TServiceType.cs @@ -0,0 +1,14 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ + +public enum TServiceType +{ + ConfigNodeInternalService = 0, + DataNodeInternalService = 1, + DataNodeMPPService = 2, + DataNodeExternalService = 3, +} diff --git a/src/Apache.IoTDB/Rpc/Generated/TSetConfigurationReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSetConfigurationReq.cs new file mode 100644 index 0000000..bef5bbb --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TSetConfigurationReq.cs @@ -0,0 +1,187 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TSetConfigurationReq : TBase +{ + + public Dictionary Configs { get; set; } + + public int NodeId { get; set; } + + public TSetConfigurationReq() + { + } + + public TSetConfigurationReq(Dictionary configs, int nodeId) : this() + { + this.Configs = configs; + this.NodeId = nodeId; + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_configs = false; + bool isset_nodeId = false; + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + TMap _map16 = await iprot.ReadMapBeginAsync(cancellationToken); + Configs = new Dictionary(_map16.Count); + for(int _i17 = 0; _i17 < _map16.Count; ++_i17) + { + string _key18; + string _val19; + _key18 = await iprot.ReadStringAsync(cancellationToken); + _val19 = await iprot.ReadStringAsync(cancellationToken); + Configs[_key18] = _val19; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + isset_configs = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + NodeId = await iprot.ReadI32Async(cancellationToken); + isset_nodeId = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + if (!isset_configs) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_nodeId) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TSetConfigurationReq"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "configs"; + field.Type = TType.Map; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Configs.Count), cancellationToken); + foreach (string _iter20 in Configs.Keys) + { + await oprot.WriteStringAsync(_iter20, cancellationToken); + await oprot.WriteStringAsync(Configs[_iter20], cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "nodeId"; + field.Type = TType.I32; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI32Async(NodeId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TSetConfigurationReq; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return TCollections.Equals(Configs, other.Configs) + && System.Object.Equals(NodeId, other.NodeId); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Configs); + hashcode = (hashcode * 397) + NodeId.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TSetConfigurationReq("); + sb.Append(", Configs: "); + sb.Append(Configs); + sb.Append(", NodeId: "); + sb.Append(NodeId); + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TSetSpaceQuotaReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSetSpaceQuotaReq.cs new file mode 100644 index 0000000..95847e1 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TSetSpaceQuotaReq.cs @@ -0,0 +1,185 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TSetSpaceQuotaReq : TBase +{ + + public List Database { get; set; } + + public TSpaceQuota SpaceLimit { get; set; } + + public TSetSpaceQuotaReq() + { + } + + public TSetSpaceQuotaReq(List database, TSpaceQuota spaceLimit) : this() + { + this.Database = database; + this.SpaceLimit = spaceLimit; + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_database = false; + bool isset_spaceLimit = false; + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.List) + { + { + TList _list38 = await iprot.ReadListBeginAsync(cancellationToken); + Database = new List(_list38.Count); + for(int _i39 = 0; _i39 < _list38.Count; ++_i39) + { + string _elem40; + _elem40 = await iprot.ReadStringAsync(cancellationToken); + Database.Add(_elem40); + } + await iprot.ReadListEndAsync(cancellationToken); + } + isset_database = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.Struct) + { + SpaceLimit = new TSpaceQuota(); + await SpaceLimit.ReadAsync(iprot, cancellationToken); + isset_spaceLimit = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + if (!isset_database) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_spaceLimit) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TSetSpaceQuotaReq"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "database"; + field.Type = TType.List; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.String, Database.Count), cancellationToken); + foreach (string _iter41 in Database) + { + await oprot.WriteStringAsync(_iter41, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "spaceLimit"; + field.Type = TType.Struct; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await SpaceLimit.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TSetSpaceQuotaReq; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return TCollections.Equals(Database, other.Database) + && System.Object.Equals(SpaceLimit, other.SpaceLimit); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Database); + hashcode = (hashcode * 397) + SpaceLimit.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TSetSpaceQuotaReq("); + sb.Append(", Database: "); + sb.Append(Database); + sb.Append(", SpaceLimit: "); + sb.Append(SpaceLimit== null ? "" : SpaceLimit.ToString()); + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TSetTTLReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSetTTLReq.cs index 1d374a9..c2f191a 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSetTTLReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSetTTLReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,45 +23,35 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSetTTLReq : TBase { - public List StorageGroupPathPattern { get; set; } + public List PathPattern { get; set; } public long TTL { get; set; } + public bool IsDataBase { get; set; } + public TSetTTLReq() { } - public TSetTTLReq(List storageGroupPathPattern, long TTL) : this() + public TSetTTLReq(List pathPattern, long TTL, bool isDataBase) : this() { - this.StorageGroupPathPattern = storageGroupPathPattern; + this.PathPattern = pathPattern; this.TTL = TTL; + this.IsDataBase = isDataBase; } - public TSetTTLReq DeepCopy() - { - var tmp36 = new TSetTTLReq(); - if((StorageGroupPathPattern != null)) - { - tmp36.StorageGroupPathPattern = this.StorageGroupPathPattern.DeepCopy(); - } - tmp36.TTL = this.TTL; - return tmp36; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try { - bool isset_storageGroupPathPattern = false; + bool isset_pathPattern = false; bool isset_TTL = false; + bool isset_isDataBase = false; TField field; await iprot.ReadStructBeginAsync(cancellationToken); while (true) @@ -80,17 +68,17 @@ public TSetTTLReq DeepCopy() if (field.Type == TType.List) { { - TList _list37 = await iprot.ReadListBeginAsync(cancellationToken); - StorageGroupPathPattern = new List(_list37.Count); - for(int _i38 = 0; _i38 < _list37.Count; ++_i38) + TList _list21 = await iprot.ReadListBeginAsync(cancellationToken); + PathPattern = new List(_list21.Count); + for(int _i22 = 0; _i22 < _list21.Count; ++_i22) { - string _elem39; - _elem39 = await iprot.ReadStringAsync(cancellationToken); - StorageGroupPathPattern.Add(_elem39); + string _elem23; + _elem23 = await iprot.ReadStringAsync(cancellationToken); + PathPattern.Add(_elem23); } await iprot.ReadListEndAsync(cancellationToken); } - isset_storageGroupPathPattern = true; + isset_pathPattern = true; } else { @@ -108,6 +96,17 @@ public TSetTTLReq DeepCopy() await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; + case 3: + if (field.Type == TType.Bool) + { + IsDataBase = await iprot.ReadBoolAsync(cancellationToken); + isset_isDataBase = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); break; @@ -117,7 +116,7 @@ public TSetTTLReq DeepCopy() } await iprot.ReadStructEndAsync(cancellationToken); - if (!isset_storageGroupPathPattern) + if (!isset_pathPattern) { throw new TProtocolException(TProtocolException.INVALID_DATA); } @@ -125,6 +124,10 @@ public TSetTTLReq DeepCopy() { throw new TProtocolException(TProtocolException.INVALID_DATA); } + if (!isset_isDataBase) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } } finally { @@ -132,7 +135,7 @@ public TSetTTLReq DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -140,28 +143,31 @@ public TSetTTLReq DeepCopy() var struc = new TStruct("TSetTTLReq"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((StorageGroupPathPattern != null)) + field.Name = "pathPattern"; + field.Type = TType.List; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - field.Name = "storageGroupPathPattern"; - field.Type = TType.List; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, PathPattern.Count), cancellationToken); + foreach (string _iter24 in PathPattern) { - await oprot.WriteListBeginAsync(new TList(TType.String, StorageGroupPathPattern.Count), cancellationToken); - foreach (string _iter40 in StorageGroupPathPattern) - { - await oprot.WriteStringAsync(_iter40, cancellationToken); - } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteStringAsync(_iter24, cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteListEndAsync(cancellationToken); } + await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "TTL"; field.Type = TType.I64; field.ID = 2; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(TTL, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "isDataBase"; + field.Type = TType.Bool; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBoolAsync(IsDataBase, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -173,20 +179,20 @@ public TSetTTLReq DeepCopy() public override bool Equals(object that) { - if (!(that is TSetTTLReq other)) return false; + var other = that as TSetTTLReq; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; - return TCollections.Equals(StorageGroupPathPattern, other.StorageGroupPathPattern) - && System.Object.Equals(TTL, other.TTL); + return TCollections.Equals(PathPattern, other.PathPattern) + && System.Object.Equals(TTL, other.TTL) + && System.Object.Equals(IsDataBase, other.IsDataBase); } public override int GetHashCode() { int hashcode = 157; unchecked { - if((StorageGroupPathPattern != null)) - { - hashcode = (hashcode * 397) + TCollections.GetHashCode(StorageGroupPathPattern); - } + hashcode = (hashcode * 397) + TCollections.GetHashCode(PathPattern); hashcode = (hashcode * 397) + TTL.GetHashCode(); + hashcode = (hashcode * 397) + IsDataBase.GetHashCode(); } return hashcode; } @@ -194,14 +200,13 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSetTTLReq("); - if((StorageGroupPathPattern != null)) - { - sb.Append(", StorageGroupPathPattern: "); - StorageGroupPathPattern.ToString(sb); - } + sb.Append(", PathPattern: "); + sb.Append(PathPattern); sb.Append(", TTL: "); - TTL.ToString(sb); - sb.Append(')'); + sb.Append(TTL); + sb.Append(", IsDataBase: "); + sb.Append(IsDataBase); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSetThrottleQuotaReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSetThrottleQuotaReq.cs new file mode 100644 index 0000000..248cca3 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TSetThrottleQuotaReq.cs @@ -0,0 +1,168 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TSetThrottleQuotaReq : TBase +{ + + public string UserName { get; set; } + + public TThrottleQuota ThrottleQuota { get; set; } + + public TSetThrottleQuotaReq() + { + } + + public TSetThrottleQuotaReq(string userName, TThrottleQuota throttleQuota) : this() + { + this.UserName = userName; + this.ThrottleQuota = throttleQuota; + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_userName = false; + bool isset_throttleQuota = false; + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.String) + { + UserName = await iprot.ReadStringAsync(cancellationToken); + isset_userName = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.Struct) + { + ThrottleQuota = new TThrottleQuota(); + await ThrottleQuota.ReadAsync(iprot, cancellationToken); + isset_throttleQuota = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + if (!isset_userName) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_throttleQuota) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TSetThrottleQuotaReq"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "userName"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(UserName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "throttleQuota"; + field.Type = TType.Struct; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await ThrottleQuota.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TSetThrottleQuotaReq; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return System.Object.Equals(UserName, other.UserName) + && System.Object.Equals(ThrottleQuota, other.ThrottleQuota); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + UserName.GetHashCode(); + hashcode = (hashcode * 397) + ThrottleQuota.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TSetThrottleQuotaReq("); + sb.Append(", UserName: "); + sb.Append(UserName); + sb.Append(", ThrottleQuota: "); + sb.Append(ThrottleQuota== null ? "" : ThrottleQuota.ToString()); + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs new file mode 100644 index 0000000..df5d5ce --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs @@ -0,0 +1,155 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TSettleReq : TBase +{ + + public List Paths { get; set; } + + public TSettleReq() + { + } + + public TSettleReq(List paths) : this() + { + this.Paths = paths; + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_paths = false; + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.List) + { + { + TList _list12 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list12.Count); + for(int _i13 = 0; _i13 < _list12.Count; ++_i13) + { + string _elem14; + _elem14 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem14); + } + await iprot.ReadListEndAsync(cancellationToken); + } + isset_paths = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + if (!isset_paths) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TSettleReq"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "paths"; + field.Type = TType.List; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); + foreach (string _iter15 in Paths) + { + await oprot.WriteStringAsync(_iter15, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TSettleReq; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return TCollections.Equals(Paths, other.Paths); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TSettleReq("); + sb.Append(", Paths: "); + sb.Append(Paths); + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationResp.cs b/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationResp.cs new file mode 100644 index 0000000..499235b --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationResp.cs @@ -0,0 +1,168 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TShowConfigurationResp : TBase +{ + + public TSStatus Status { get; set; } + + public string Content { get; set; } + + public TShowConfigurationResp() + { + } + + public TShowConfigurationResp(TSStatus status, string content) : this() + { + this.Status = status; + this.Content = content; + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_status = false; + bool isset_content = false; + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Status = new TSStatus(); + await Status.ReadAsync(iprot, cancellationToken); + isset_status = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Content = await iprot.ReadStringAsync(cancellationToken); + isset_content = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + if (!isset_status) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_content) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TShowConfigurationResp"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "content"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Content, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TShowConfigurationResp; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return System.Object.Equals(Status, other.Status) + && System.Object.Equals(Content, other.Content); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + Status.GetHashCode(); + hashcode = (hashcode * 397) + Content.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TShowConfigurationResp("); + sb.Append(", Status: "); + sb.Append(Status== null ? "" : Status.ToString()); + sb.Append(", Content: "); + sb.Append(Content); + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationTemplateResp.cs b/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationTemplateResp.cs new file mode 100644 index 0000000..3437de5 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationTemplateResp.cs @@ -0,0 +1,168 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TShowConfigurationTemplateResp : TBase +{ + + public TSStatus Status { get; set; } + + public string Content { get; set; } + + public TShowConfigurationTemplateResp() + { + } + + public TShowConfigurationTemplateResp(TSStatus status, string content) : this() + { + this.Status = status; + this.Content = content; + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_status = false; + bool isset_content = false; + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Status = new TSStatus(); + await Status.ReadAsync(iprot, cancellationToken); + isset_status = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Content = await iprot.ReadStringAsync(cancellationToken); + isset_content = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + if (!isset_status) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_content) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TShowConfigurationTemplateResp"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "content"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Content, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TShowConfigurationTemplateResp; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return System.Object.Equals(Status, other.Status) + && System.Object.Equals(Content, other.Content); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + Status.GetHashCode(); + hashcode = (hashcode * 397) + Content.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TShowConfigurationTemplateResp("); + sb.Append(", Status: "); + sb.Append(Status== null ? "" : Status.ToString()); + sb.Append(", Content: "); + sb.Append(Content); + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs b/src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs new file mode 100644 index 0000000..52bb6df --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs @@ -0,0 +1,155 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TShowTTLReq : TBase +{ + + public List PathPattern { get; set; } + + public TShowTTLReq() + { + } + + public TShowTTLReq(List pathPattern) : this() + { + this.PathPattern = pathPattern; + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_pathPattern = false; + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.List) + { + { + TList _list25 = await iprot.ReadListBeginAsync(cancellationToken); + PathPattern = new List(_list25.Count); + for(int _i26 = 0; _i26 < _list25.Count; ++_i26) + { + string _elem27; + _elem27 = await iprot.ReadStringAsync(cancellationToken); + PathPattern.Add(_elem27); + } + await iprot.ReadListEndAsync(cancellationToken); + } + isset_pathPattern = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + if (!isset_pathPattern) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TShowTTLReq"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "pathPattern"; + field.Type = TType.List; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.String, PathPattern.Count), cancellationToken); + foreach (string _iter28 in PathPattern) + { + await oprot.WriteStringAsync(_iter28, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TShowTTLReq; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return TCollections.Equals(PathPattern, other.PathPattern); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + TCollections.GetHashCode(PathPattern); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TShowTTLReq("); + sb.Append(", PathPattern: "); + sb.Append(PathPattern); + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs b/src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs new file mode 100644 index 0000000..2fdebf4 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs @@ -0,0 +1,244 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TSpaceQuota : TBase +{ + private long _diskSize; + private long _deviceNum; + private long _timeserieNum; + + public long DiskSize + { + get + { + return _diskSize; + } + set + { + __isset.diskSize = true; + this._diskSize = value; + } + } + + public long DeviceNum + { + get + { + return _deviceNum; + } + set + { + __isset.deviceNum = true; + this._deviceNum = value; + } + } + + public long TimeserieNum + { + get + { + return _timeserieNum; + } + set + { + __isset.timeserieNum = true; + this._timeserieNum = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool diskSize; + public bool deviceNum; + public bool timeserieNum; + } + + public TSpaceQuota() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I64) + { + DiskSize = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I64) + { + DeviceNum = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I64) + { + TimeserieNum = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TSpaceQuota"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (__isset.diskSize) + { + field.Name = "diskSize"; + field.Type = TType.I64; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(DiskSize, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (__isset.deviceNum) + { + field.Name = "deviceNum"; + field.Type = TType.I64; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(DeviceNum, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (__isset.timeserieNum) + { + field.Name = "timeserieNum"; + field.Type = TType.I64; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(TimeserieNum, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TSpaceQuota; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.diskSize == other.__isset.diskSize) && ((!__isset.diskSize) || (System.Object.Equals(DiskSize, other.DiskSize)))) + && ((__isset.deviceNum == other.__isset.deviceNum) && ((!__isset.deviceNum) || (System.Object.Equals(DeviceNum, other.DeviceNum)))) + && ((__isset.timeserieNum == other.__isset.timeserieNum) && ((!__isset.timeserieNum) || (System.Object.Equals(TimeserieNum, other.TimeserieNum)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.diskSize) + hashcode = (hashcode * 397) + DiskSize.GetHashCode(); + if(__isset.deviceNum) + hashcode = (hashcode * 397) + DeviceNum.GetHashCode(); + if(__isset.timeserieNum) + hashcode = (hashcode * 397) + TimeserieNum.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TSpaceQuota("); + bool __first = true; + if (__isset.diskSize) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("DiskSize: "); + sb.Append(DiskSize); + } + if (__isset.deviceNum) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("DeviceNum: "); + sb.Append(DeviceNum); + } + if (__isset.timeserieNum) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("TimeserieNum: "); + sb.Append(TimeserieNum); + } + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TSyncIdentityInfo.cs b/src/Apache.IoTDB/Rpc/Generated/TSyncIdentityInfo.cs index a792a94..7abcb3a 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSyncIdentityInfo.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSyncIdentityInfo.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSyncIdentityInfo : TBase { @@ -52,26 +47,7 @@ public TSyncIdentityInfo(string pipeName, long createTime, string version, strin this.Database = database; } - public TSyncIdentityInfo DeepCopy() - { - var tmp421 = new TSyncIdentityInfo(); - if((PipeName != null)) - { - tmp421.PipeName = this.PipeName; - } - tmp421.CreateTime = this.CreateTime; - if((Version != null)) - { - tmp421.Version = this.Version; - } - if((Database != null)) - { - tmp421.Database = this.Database; - } - return tmp421; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -168,7 +144,7 @@ public TSyncIdentityInfo DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -176,39 +152,30 @@ public TSyncIdentityInfo DeepCopy() var struc = new TStruct("TSyncIdentityInfo"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((PipeName != null)) - { - field.Name = "pipeName"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(PipeName, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "pipeName"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(PipeName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "createTime"; field.Type = TType.I64; field.ID = 2; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(CreateTime, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if((Version != null)) - { - field.Name = "version"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Version, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if((Database != null)) - { - field.Name = "database"; - field.Type = TType.String; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Database, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "version"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Version, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "database"; + field.Type = TType.String; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Database, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -220,7 +187,8 @@ public TSyncIdentityInfo DeepCopy() public override bool Equals(object that) { - if (!(that is TSyncIdentityInfo other)) return false; + var other = that as TSyncIdentityInfo; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(PipeName, other.PipeName) && System.Object.Equals(CreateTime, other.CreateTime) @@ -231,19 +199,10 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((PipeName != null)) - { - hashcode = (hashcode * 397) + PipeName.GetHashCode(); - } + hashcode = (hashcode * 397) + PipeName.GetHashCode(); hashcode = (hashcode * 397) + CreateTime.GetHashCode(); - if((Version != null)) - { - hashcode = (hashcode * 397) + Version.GetHashCode(); - } - if((Database != null)) - { - hashcode = (hashcode * 397) + Database.GetHashCode(); - } + hashcode = (hashcode * 397) + Version.GetHashCode(); + hashcode = (hashcode * 397) + Database.GetHashCode(); } return hashcode; } @@ -251,24 +210,15 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSyncIdentityInfo("); - if((PipeName != null)) - { - sb.Append(", PipeName: "); - PipeName.ToString(sb); - } + sb.Append(", PipeName: "); + sb.Append(PipeName); sb.Append(", CreateTime: "); - CreateTime.ToString(sb); - if((Version != null)) - { - sb.Append(", Version: "); - Version.ToString(sb); - } - if((Database != null)) - { - sb.Append(", Database: "); - Database.ToString(sb); - } - sb.Append(')'); + sb.Append(CreateTime); + sb.Append(", Version: "); + sb.Append(Version); + sb.Append(", Database: "); + sb.Append(Database); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSyncTransportMetaInfo.cs b/src/Apache.IoTDB/Rpc/Generated/TSyncTransportMetaInfo.cs index 4d04dbf..95796c6 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSyncTransportMetaInfo.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSyncTransportMetaInfo.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TSyncTransportMetaInfo : TBase { @@ -46,18 +41,7 @@ public TSyncTransportMetaInfo(string fileName, long startIndex) : this() this.StartIndex = startIndex; } - public TSyncTransportMetaInfo DeepCopy() - { - var tmp423 = new TSyncTransportMetaInfo(); - if((FileName != null)) - { - tmp423.FileName = this.FileName; - } - tmp423.StartIndex = this.StartIndex; - return tmp423; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -122,7 +106,7 @@ public TSyncTransportMetaInfo DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -130,15 +114,12 @@ public TSyncTransportMetaInfo DeepCopy() var struc = new TStruct("TSyncTransportMetaInfo"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if((FileName != null)) - { - field.Name = "fileName"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(FileName, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + field.Name = "fileName"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(FileName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "startIndex"; field.Type = TType.I64; field.ID = 2; @@ -156,7 +137,8 @@ public TSyncTransportMetaInfo DeepCopy() public override bool Equals(object that) { - if (!(that is TSyncTransportMetaInfo other)) return false; + var other = that as TSyncTransportMetaInfo; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(FileName, other.FileName) && System.Object.Equals(StartIndex, other.StartIndex); @@ -165,10 +147,7 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if((FileName != null)) - { - hashcode = (hashcode * 397) + FileName.GetHashCode(); - } + hashcode = (hashcode * 397) + FileName.GetHashCode(); hashcode = (hashcode * 397) + StartIndex.GetHashCode(); } return hashcode; @@ -177,14 +156,11 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSyncTransportMetaInfo("); - if((FileName != null)) - { - sb.Append(", FileName: "); - FileName.ToString(sb); - } + sb.Append(", FileName: "); + sb.Append(FileName); sb.Append(", StartIndex: "); - StartIndex.ToString(sb); - sb.Append(')'); + sb.Append(StartIndex); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResp.cs b/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResp.cs new file mode 100644 index 0000000..4e43289 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResp.cs @@ -0,0 +1,186 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TTestConnectionResp : TBase +{ + + public TSStatus Status { get; set; } + + public List ResultList { get; set; } + + public TTestConnectionResp() + { + } + + public TTestConnectionResp(TSStatus status, List resultList) : this() + { + this.Status = status; + this.ResultList = resultList; + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_status = false; + bool isset_resultList = false; + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Status = new TSStatus(); + await Status.ReadAsync(iprot, cancellationToken); + isset_status = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.List) + { + { + TList _list42 = await iprot.ReadListBeginAsync(cancellationToken); + ResultList = new List(_list42.Count); + for(int _i43 = 0; _i43 < _list42.Count; ++_i43) + { + TTestConnectionResult _elem44; + _elem44 = new TTestConnectionResult(); + await _elem44.ReadAsync(iprot, cancellationToken); + ResultList.Add(_elem44); + } + await iprot.ReadListEndAsync(cancellationToken); + } + isset_resultList = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + if (!isset_status) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_resultList) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TTestConnectionResp"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "resultList"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.Struct, ResultList.Count), cancellationToken); + foreach (TTestConnectionResult _iter45 in ResultList) + { + await _iter45.WriteAsync(oprot, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TTestConnectionResp; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return System.Object.Equals(Status, other.Status) + && TCollections.Equals(ResultList, other.ResultList); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + Status.GetHashCode(); + hashcode = (hashcode * 397) + TCollections.GetHashCode(ResultList); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TTestConnectionResp("); + sb.Append(", Status: "); + sb.Append(Status== null ? "" : Status.ToString()); + sb.Append(", ResultList: "); + sb.Append(ResultList); + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResult.cs b/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResult.cs new file mode 100644 index 0000000..f438865 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResult.cs @@ -0,0 +1,246 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TTestConnectionResult : TBase +{ + private string _reason; + + public TServiceProvider ServiceProvider { get; set; } + + public TSender Sender { get; set; } + + public bool Success { get; set; } + + public string Reason + { + get + { + return _reason; + } + set + { + __isset.reason = true; + this._reason = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool reason; + } + + public TTestConnectionResult() + { + } + + public TTestConnectionResult(TServiceProvider serviceProvider, TSender sender, bool success) : this() + { + this.ServiceProvider = serviceProvider; + this.Sender = sender; + this.Success = success; + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_serviceProvider = false; + bool isset_sender = false; + bool isset_success = false; + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + ServiceProvider = new TServiceProvider(); + await ServiceProvider.ReadAsync(iprot, cancellationToken); + isset_serviceProvider = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.Struct) + { + Sender = new TSender(); + await Sender.ReadAsync(iprot, cancellationToken); + isset_sender = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.Bool) + { + Success = await iprot.ReadBoolAsync(cancellationToken); + isset_success = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Reason = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + if (!isset_serviceProvider) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_sender) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_success) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TTestConnectionResult"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "serviceProvider"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await ServiceProvider.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "sender"; + field.Type = TType.Struct; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Sender.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "success"; + field.Type = TType.Bool; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBoolAsync(Success, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + if (Reason != null && __isset.reason) + { + field.Name = "reason"; + field.Type = TType.String; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Reason, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TTestConnectionResult; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return System.Object.Equals(ServiceProvider, other.ServiceProvider) + && System.Object.Equals(Sender, other.Sender) + && System.Object.Equals(Success, other.Success) + && ((__isset.reason == other.__isset.reason) && ((!__isset.reason) || (System.Object.Equals(Reason, other.Reason)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + ServiceProvider.GetHashCode(); + hashcode = (hashcode * 397) + Sender.GetHashCode(); + hashcode = (hashcode * 397) + Success.GetHashCode(); + if(__isset.reason) + hashcode = (hashcode * 397) + Reason.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TTestConnectionResult("); + sb.Append(", ServiceProvider: "); + sb.Append(ServiceProvider== null ? "" : ServiceProvider.ToString()); + sb.Append(", Sender: "); + sb.Append(Sender== null ? "" : Sender.ToString()); + sb.Append(", Success: "); + sb.Append(Success); + if (Reason != null && __isset.reason) + { + sb.Append(", Reason: "); + sb.Append(Reason); + } + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TThrottleQuota.cs b/src/Apache.IoTDB/Rpc/Generated/TThrottleQuota.cs new file mode 100644 index 0000000..17e8f88 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TThrottleQuota.cs @@ -0,0 +1,265 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TThrottleQuota : TBase +{ + private Dictionary _throttleLimit; + private long _memLimit; + private int _cpuLimit; + + public Dictionary ThrottleLimit + { + get + { + return _throttleLimit; + } + set + { + __isset.throttleLimit = true; + this._throttleLimit = value; + } + } + + public long MemLimit + { + get + { + return _memLimit; + } + set + { + __isset.memLimit = true; + this._memLimit = value; + } + } + + public int CpuLimit + { + get + { + return _cpuLimit; + } + set + { + __isset.cpuLimit = true; + this._cpuLimit = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool throttleLimit; + public bool memLimit; + public bool cpuLimit; + } + + public TThrottleQuota() + { + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + TMap _map33 = await iprot.ReadMapBeginAsync(cancellationToken); + ThrottleLimit = new Dictionary(_map33.Count); + for(int _i34 = 0; _i34 < _map33.Count; ++_i34) + { + ThrottleType _key35; + TTimedQuota _val36; + _key35 = (ThrottleType)await iprot.ReadI32Async(cancellationToken); + _val36 = new TTimedQuota(); + await _val36.ReadAsync(iprot, cancellationToken); + ThrottleLimit[_key35] = _val36; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I64) + { + MemLimit = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + CpuLimit = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TThrottleQuota"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if (ThrottleLimit != null && __isset.throttleLimit) + { + field.Name = "throttleLimit"; + field.Type = TType.Map; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, ThrottleLimit.Count), cancellationToken); + foreach (ThrottleType _iter37 in ThrottleLimit.Keys) + { + await oprot.WriteI32Async((int)_iter37, cancellationToken); + await ThrottleLimit[_iter37].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (__isset.memLimit) + { + field.Name = "memLimit"; + field.Type = TType.I64; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(MemLimit, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if (__isset.cpuLimit) + { + field.Name = "cpuLimit"; + field.Type = TType.I32; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI32Async(CpuLimit, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TThrottleQuota; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.throttleLimit == other.__isset.throttleLimit) && ((!__isset.throttleLimit) || (TCollections.Equals(ThrottleLimit, other.ThrottleLimit)))) + && ((__isset.memLimit == other.__isset.memLimit) && ((!__isset.memLimit) || (System.Object.Equals(MemLimit, other.MemLimit)))) + && ((__isset.cpuLimit == other.__isset.cpuLimit) && ((!__isset.cpuLimit) || (System.Object.Equals(CpuLimit, other.CpuLimit)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.throttleLimit) + hashcode = (hashcode * 397) + TCollections.GetHashCode(ThrottleLimit); + if(__isset.memLimit) + hashcode = (hashcode * 397) + MemLimit.GetHashCode(); + if(__isset.cpuLimit) + hashcode = (hashcode * 397) + CpuLimit.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TThrottleQuota("); + bool __first = true; + if (ThrottleLimit != null && __isset.throttleLimit) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("ThrottleLimit: "); + sb.Append(ThrottleLimit); + } + if (__isset.memLimit) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("MemLimit: "); + sb.Append(MemLimit); + } + if (__isset.cpuLimit) + { + if(!__first) { sb.Append(", "); } + __first = false; + sb.Append("CpuLimit: "); + sb.Append(CpuLimit); + } + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TTimePartitionSlot.cs b/src/Apache.IoTDB/Rpc/Generated/TTimePartitionSlot.cs index 1adf4fa..24c9501 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TTimePartitionSlot.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TTimePartitionSlot.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.2) + * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,10 +9,8 @@ using System.Collections.Generic; using System.Text; using System.IO; -using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -25,9 +23,6 @@ using Thrift.Processor; -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - public partial class TTimePartitionSlot : TBase { @@ -43,14 +38,7 @@ public TTimePartitionSlot(long startTime) : this() this.StartTime = startTime; } - public TTimePartitionSlot DeepCopy() - { - var tmp12 = new TTimePartitionSlot(); - tmp12.StartTime = this.StartTime; - return tmp12; - } - - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -99,7 +87,7 @@ public TTimePartitionSlot DeepCopy() } } - public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -124,7 +112,8 @@ public TTimePartitionSlot DeepCopy() public override bool Equals(object that) { - if (!(that is TTimePartitionSlot other)) return false; + var other = that as TTimePartitionSlot; + if (other == null) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(StartTime, other.StartTime); } @@ -141,8 +130,8 @@ public override string ToString() { var sb = new StringBuilder("TTimePartitionSlot("); sb.Append(", StartTime: "); - StartTime.ToString(sb); - sb.Append(')'); + sb.Append(StartTime); + sb.Append(")"); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TTimedQuota.cs b/src/Apache.IoTDB/Rpc/Generated/TTimedQuota.cs new file mode 100644 index 0000000..fb46877 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TTimedQuota.cs @@ -0,0 +1,167 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; + +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; +using Thrift.Transport.Server; +using Thrift.Processor; + + + +public partial class TTimedQuota : TBase +{ + + public long TimeUnit { get; set; } + + public long SoftLimit { get; set; } + + public TTimedQuota() + { + } + + public TTimedQuota(long timeUnit, long softLimit) : this() + { + this.TimeUnit = timeUnit; + this.SoftLimit = softLimit; + } + + public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_timeUnit = false; + bool isset_softLimit = false; + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I64) + { + TimeUnit = await iprot.ReadI64Async(cancellationToken); + isset_timeUnit = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I64) + { + SoftLimit = await iprot.ReadI64Async(cancellationToken); + isset_softLimit = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + if (!isset_timeUnit) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_softLimit) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TTimedQuota"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "timeUnit"; + field.Type = TType.I64; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(TimeUnit, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + field.Name = "softLimit"; + field.Type = TType.I64; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(SoftLimit, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + var other = that as TTimedQuota; + if (other == null) return false; + if (ReferenceEquals(this, other)) return true; + return System.Object.Equals(TimeUnit, other.TimeUnit) + && System.Object.Equals(SoftLimit, other.SoftLimit); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + TimeUnit.GetHashCode(); + hashcode = (hashcode * 397) + SoftLimit.GetHashCode(); + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TTimedQuota("); + sb.Append(", TimeUnit: "); + sb.Append(TimeUnit); + sb.Append(", SoftLimit: "); + sb.Append(SoftLimit); + sb.Append(")"); + return sb.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/ThrottleType.cs b/src/Apache.IoTDB/Rpc/Generated/ThrottleType.cs new file mode 100644 index 0000000..90e06fe --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/ThrottleType.cs @@ -0,0 +1,16 @@ +/** + * Autogenerated by Thrift Compiler (0.13.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ + +public enum ThrottleType +{ + REQUEST_NUMBER = 0, + REQUEST_SIZE = 1, + WRITE_NUMBER = 2, + WRITE_SIZE = 3, + READ_NUMBER = 4, + READ_SIZE = 5, +} diff --git a/src/Apache.IoTDB/Rpc/Generated/client.Extensions.cs b/src/Apache.IoTDB/Rpc/Generated/client.Extensions.cs deleted file mode 100644 index a9abfa8..0000000 --- a/src/Apache.IoTDB/Rpc/Generated/client.Extensions.cs +++ /dev/null @@ -1,349 +0,0 @@ -/** - * Autogenerated by Thrift Compiler (0.14.2) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Text; -using System.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.Extensions.Logging; -using Thrift; -using Thrift.Collections; - - -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - -public static class clientExtensions -{ - public static bool Equals(this Dictionary instance, object that) - { - if (!(that is Dictionary other)) return false; - if (ReferenceEquals(instance, other)) return true; - - return TCollections.Equals(instance, other); - } - - - public static int GetHashCode(this Dictionary instance) - { - return TCollections.GetHashCode(instance); - } - - - public static Dictionary DeepCopy(this Dictionary source) - { - if (source == null) - return null; - - var tmp667 = new Dictionary(source.Count); - foreach (var pair in source) - tmp667.Add((pair.Key != null) ? pair.Key : null, pair.Value); - return tmp667; - } - - - public static bool Equals(this Dictionary instance, object that) - { - if (!(that is Dictionary other)) return false; - if (ReferenceEquals(instance, other)) return true; - - return TCollections.Equals(instance, other); - } - - - public static int GetHashCode(this Dictionary instance) - { - return TCollections.GetHashCode(instance); - } - - - public static Dictionary DeepCopy(this Dictionary source) - { - if (source == null) - return null; - - var tmp668 = new Dictionary(source.Count); - foreach (var pair in source) - tmp668.Add((pair.Key != null) ? pair.Key : null, (pair.Value != null) ? pair.Value : null); - return tmp668; - } - - - public static bool Equals(this List> instance, object that) - { - if (!(that is List> other)) return false; - if (ReferenceEquals(instance, other)) return true; - - return TCollections.Equals(instance, other); - } - - - public static int GetHashCode(this List> instance) - { - return TCollections.GetHashCode(instance); - } - - - public static List> DeepCopy(this List> source) - { - if (source == null) - return null; - - var tmp669 = new List>(source.Count); - foreach (var elem in source) - tmp669.Add((elem != null) ? elem.DeepCopy() : null); - return tmp669; - } - - - public static bool Equals(this List> instance, object that) - { - if (!(that is List> other)) return false; - if (ReferenceEquals(instance, other)) return true; - - return TCollections.Equals(instance, other); - } - - - public static int GetHashCode(this List> instance) - { - return TCollections.GetHashCode(instance); - } - - - public static List> DeepCopy(this List> source) - { - if (source == null) - return null; - - var tmp670 = new List>(source.Count); - foreach (var elem in source) - tmp670.Add((elem != null) ? elem.DeepCopy() : null); - return tmp670; - } - - - public static bool Equals(this List> instance, object that) - { - if (!(that is List> other)) return false; - if (ReferenceEquals(instance, other)) return true; - - return TCollections.Equals(instance, other); - } - - - public static int GetHashCode(this List> instance) - { - return TCollections.GetHashCode(instance); - } - - - public static List> DeepCopy(this List> source) - { - if (source == null) - return null; - - var tmp671 = new List>(source.Count); - foreach (var elem in source) - tmp671.Add((elem != null) ? elem.DeepCopy() : null); - return tmp671; - } - - - public static bool Equals(this List instance, object that) - { - if (!(that is List other)) return false; - if (ReferenceEquals(instance, other)) return true; - - return TCollections.Equals(instance, other); - } - - - public static int GetHashCode(this List instance) - { - return TCollections.GetHashCode(instance); - } - - - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp672 = new List(source.Count); - foreach (var elem in source) - tmp672.Add((elem != null) ? elem.DeepCopy() : null); - return tmp672; - } - - - public static bool Equals(this List instance, object that) - { - if (!(that is List other)) return false; - if (ReferenceEquals(instance, other)) return true; - - return TCollections.Equals(instance, other); - } - - - public static int GetHashCode(this List instance) - { - return TCollections.GetHashCode(instance); - } - - - // public static List DeepCopy(this List source) - // { - // if (source == null) - // return null; - - // var tmp673 = new List(source.Count); - // foreach (var elem in source) - // tmp673.Add((elem != null) ? elem.DeepCopy() : null); - // return tmp673; - // } - - - public static bool Equals(this List instance, object that) - { - if (!(that is List other)) return false; - if (ReferenceEquals(instance, other)) return true; - - return TCollections.Equals(instance, other); - } - - - public static int GetHashCode(this List instance) - { - return TCollections.GetHashCode(instance); - } - - - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp674 = new List(source.Count); - foreach (var elem in source) - tmp674.Add((elem != null) ? elem.ToArray() : null); - return tmp674; - } - - - public static bool Equals(this List instance, object that) - { - if (!(that is List other)) return false; - if (ReferenceEquals(instance, other)) return true; - - return TCollections.Equals(instance, other); - } - - - public static int GetHashCode(this List instance) - { - return TCollections.GetHashCode(instance); - } - - - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp675 = new List(source.Count); - foreach (var elem in source) - tmp675.Add(elem); - return tmp675; - } - - - public static bool Equals(this List instance, object that) - { - if (!(that is List other)) return false; - if (ReferenceEquals(instance, other)) return true; - - return TCollections.Equals(instance, other); - } - - - public static int GetHashCode(this List instance) - { - return TCollections.GetHashCode(instance); - } - - - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp676 = new List(source.Count); - foreach (var elem in source) - tmp676.Add(elem); - return tmp676; - } - - - public static bool Equals(this List instance, object that) - { - if (!(that is List other)) return false; - if (ReferenceEquals(instance, other)) return true; - - return TCollections.Equals(instance, other); - } - - - public static int GetHashCode(this List instance) - { - return TCollections.GetHashCode(instance); - } - - - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp677 = new List(source.Count); - foreach (var elem in source) - tmp677.Add(elem); - return tmp677; - } - - - public static bool Equals(this List instance, object that) - { - if (!(that is List other)) return false; - if (ReferenceEquals(instance, other)) return true; - - return TCollections.Equals(instance, other); - } - - - public static int GetHashCode(this List instance) - { - return TCollections.GetHashCode(instance); - } - - - // public static List DeepCopy(this List source) - // { - // if (source == null) - // return null; - - // var tmp678 = new List(source.Count); - // foreach (var elem in source) - // tmp678.Add((elem != null) ? elem : null); - // return tmp678; - // } - - -} diff --git a/src/Apache.IoTDB/Rpc/Generated/common.Extensions.cs b/src/Apache.IoTDB/Rpc/Generated/common.Extensions.cs deleted file mode 100644 index 84a370c..0000000 --- a/src/Apache.IoTDB/Rpc/Generated/common.Extensions.cs +++ /dev/null @@ -1,133 +0,0 @@ -/** - * Autogenerated by Thrift Compiler (0.14.2) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Text; -using System.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.Extensions.Logging; -using Thrift; -using Thrift.Collections; - - -#pragma warning disable IDE0079 // remove unnecessary pragmas -#pragma warning disable IDE1006 // parts of the code use IDL spelling - -public static class commonExtensions -{ - public static bool Equals(this List instance, object that) - { - if (!(that is List other)) return false; - if (ReferenceEquals(instance, other)) return true; - - return TCollections.Equals(instance, other); - } - - - public static int GetHashCode(this List instance) - { - return TCollections.GetHashCode(instance); - } - - - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp50 = new List(source.Count); - foreach (var elem in source) - tmp50.Add((elem != null) ? elem.DeepCopy() : null); - return tmp50; - } - - - public static bool Equals(this List instance, object that) - { - if (!(that is List other)) return false; - if (ReferenceEquals(instance, other)) return true; - - return TCollections.Equals(instance, other); - } - - - public static int GetHashCode(this List instance) - { - return TCollections.GetHashCode(instance); - } - - - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp51 = new List(source.Count); - foreach (var elem in source) - tmp51.Add((elem != null) ? elem.DeepCopy() : null); - return tmp51; - } - - - public static bool Equals(this List instance, object that) - { - if (!(that is List other)) return false; - if (ReferenceEquals(instance, other)) return true; - - return TCollections.Equals(instance, other); - } - - - public static int GetHashCode(this List instance) - { - return TCollections.GetHashCode(instance); - } - - - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp52 = new List(source.Count); - foreach (var elem in source) - tmp52.Add((elem != null) ? elem.DeepCopy() : null); - return tmp52; - } - - - public static bool Equals(this List instance, object that) - { - if (!(that is List other)) return false; - if (ReferenceEquals(instance, other)) return true; - - return TCollections.Equals(instance, other); - } - - - public static int GetHashCode(this List instance) - { - return TCollections.GetHashCode(instance); - } - - - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp53 = new List(source.Count); - foreach (var elem in source) - tmp53.Add((elem != null) ? elem : null); - return tmp53; - } - - -} From a34d56b8fb1de005b051738a51d83e2424aff8b6 Mon Sep 17 00:00:00 2001 From: luzhan <513964121@qq.com> Date: Sat, 6 Jul 2024 23:58:32 +0800 Subject: [PATCH 03/15] style:add tsstatus code and refactor verify success function --- src/Apache.IoTDB/Rpc/TSStatusCode.cs | 269 +++++++++++++++++++++++++++ src/Apache.IoTDB/SessionPool.cs | 131 ++++++++----- 2 files changed, 351 insertions(+), 49 deletions(-) create mode 100644 src/Apache.IoTDB/Rpc/TSStatusCode.cs diff --git a/src/Apache.IoTDB/Rpc/TSStatusCode.cs b/src/Apache.IoTDB/Rpc/TSStatusCode.cs new file mode 100644 index 0000000..6673d24 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/TSStatusCode.cs @@ -0,0 +1,269 @@ +using System; +using System.Collections.Generic; + +namespace Apache.IoTDB +{ + public enum TSStatusCode + { + SUCCESS_STATUS = 200, + + // System level + INCOMPATIBLE_VERSION = 201, + CONFIGURATION_ERROR = 202, + START_UP_ERROR = 203, + SHUT_DOWN_ERROR = 204, + + // General Error + UNSUPPORTED_OPERATION = 300, + EXECUTE_STATEMENT_ERROR = 301, + MULTIPLE_ERROR = 302, + ILLEGAL_PARAMETER = 303, + OVERLAP_WITH_EXISTING_TASK = 304, + INTERNAL_SERVER_ERROR = 305, + DISPATCH_ERROR = 306, + LICENSE_ERROR = 307, + + // Client + REDIRECTION_RECOMMEND = 400, + + // Schema Engine + DATABASE_NOT_EXIST = 500, + DATABASE_ALREADY_EXISTS = 501, + SERIES_OVERFLOW = 502, + TIMESERIES_ALREADY_EXIST = 503, + TIMESERIES_IN_BLACK_LIST = 504, + ALIAS_ALREADY_EXIST = 505, + PATH_ALREADY_EXIST = 506, + METADATA_ERROR = 507, + PATH_NOT_EXIST = 508, + ILLEGAL_PATH = 509, + CREATE_TEMPLATE_ERROR = 510, + DUPLICATED_TEMPLATE = 511, + UNDEFINED_TEMPLATE = 512, + TEMPLATE_NOT_SET = 513, + DIFFERENT_TEMPLATE = 514, + TEMPLATE_IS_IN_USE = 515, + TEMPLATE_INCOMPATIBLE = 516, + SEGMENT_NOT_FOUND = 517, + PAGE_OUT_OF_SPACE = 518, + RECORD_DUPLICATED = 519, + SEGMENT_OUT_OF_SPACE = 520, + PBTREE_FILE_NOT_EXISTS = 521, + OVERSIZE_RECORD = 522, + PBTREE_FILE_REDO_LOG_BROKEN = 523, + TEMPLATE_NOT_ACTIVATED = 524, + DATABASE_CONFIG_ERROR = 525, + SCHEMA_QUOTA_EXCEEDED = 526, + MEASUREMENT_ALREADY_EXISTS_IN_TEMPLATE = 527, + + // Storage Engine + SYSTEM_READ_ONLY = 600, + STORAGE_ENGINE_ERROR = 601, + STORAGE_ENGINE_NOT_READY = 602, + DATAREGION_PROCESS_ERROR = 603, + TSFILE_PROCESSOR_ERROR = 604, + WRITE_PROCESS_ERROR = 605, + WRITE_PROCESS_REJECT = 606, + OUT_OF_TTL = 607, + COMPACTION_ERROR = 608, + ALIGNED_TIMESERIES_ERROR = 609, + WAL_ERROR = 610, + DISK_SPACE_INSUFFICIENT = 611, + OVERSIZE_TTL = 612, + TTL_CONFIG_ERROR = 613, + + // Query Engine + SQL_PARSE_ERROR = 700, + SEMANTIC_ERROR = 701, + GENERATE_TIME_ZONE_ERROR = 702, + SET_TIME_ZONE_ERROR = 703, + QUERY_NOT_ALLOWED = 704, + LOGICAL_OPERATOR_ERROR = 705, + LOGICAL_OPTIMIZE_ERROR = 706, + UNSUPPORTED_FILL_TYPE = 707, + QUERY_PROCESS_ERROR = 708, + MPP_MEMORY_NOT_ENOUGH = 709, + CLOSE_OPERATION_ERROR = 710, + TSBLOCK_SERIALIZE_ERROR = 711, + INTERNAL_REQUEST_TIME_OUT = 712, + INTERNAL_REQUEST_RETRY_ERROR = 713, + NO_SUCH_QUERY = 714, + QUERY_WAS_KILLED = 715, + EXPLAIN_ANALYZE_FETCH_ERROR = 716, + + // Authentication + INIT_AUTH_ERROR = 800, + WRONG_LOGIN_PASSWORD = 801, + NOT_LOGIN = 802, + NO_PERMISSION = 803, + USER_NOT_EXIST = 804, + USER_ALREADY_EXIST = 805, + USER_ALREADY_HAS_ROLE = 806, + USER_NOT_HAS_ROLE = 807, + ROLE_NOT_EXIST = 808, + ROLE_ALREADY_EXIST = 809, + NOT_HAS_PRIVILEGE = 811, + CLEAR_PERMISSION_CACHE_ERROR = 812, + UNKNOWN_AUTH_PRIVILEGE = 813, + UNSUPPORTED_AUTH_OPERATION = 814, + AUTH_IO_EXCEPTION = 815, + ILLEGAL_PRIVILEGE = 816, + NOT_HAS_PRIVILEGE_GRANTOPT = 817, + AUTH_OPERATE_EXCEPTION = 818, + + // Partition Error + MIGRATE_REGION_ERROR = 900, + CREATE_REGION_ERROR = 901, + DELETE_REGION_ERROR = 902, + PARTITION_CACHE_UPDATE_ERROR = 903, + CONSENSUS_NOT_INITIALIZED = 904, + REGION_LEADER_CHANGE_ERROR = 905, + NO_AVAILABLE_REGION_GROUP = 906, + LACK_PARTITION_ALLOCATION = 907, + + // Cluster Manager + ADD_CONFIGNODE_ERROR = 1000, + REMOVE_CONFIGNODE_ERROR = 1001, + REJECT_NODE_START = 1002, + NO_ENOUGH_DATANODE = 1003, + DATANODE_NOT_EXIST = 1004, + DATANODE_STOP_ERROR = 1005, + REMOVE_DATANODE_ERROR = 1006, + CAN_NOT_CONNECT_DATANODE = 1007, + TRANSFER_LEADER_ERROR = 1008, + GET_CLUSTER_ID_ERROR = 1009, + CAN_NOT_CONNECT_CONFIGNODE = 1010, + + // Sync, Load TsFile + LOAD_FILE_ERROR = 1100, + LOAD_PIECE_OF_TSFILE_ERROR = 1101, + DESERIALIZE_PIECE_OF_TSFILE_ERROR = 1102, + SYNC_CONNECTION_ERROR = 1103, + SYNC_FILE_REDIRECTION_ERROR = 1104, + SYNC_FILE_ERROR = 1105, + CREATE_PIPE_SINK_ERROR = 1106, + PIPE_ERROR = 1107, + PIPESERVER_ERROR = 1108, + VERIFY_METADATA_ERROR = 1109, + + // UDF + UDF_LOAD_CLASS_ERROR = 1200, + UDF_DOWNLOAD_ERROR = 1201, + CREATE_UDF_ON_DATANODE_ERROR = 1202, + DROP_UDF_ON_DATANODE_ERROR = 1203, + + // Trigger + CREATE_TRIGGER_ERROR = 1300, + DROP_TRIGGER_ERROR = 1301, + TRIGGER_FIRE_ERROR = 1302, + TRIGGER_LOAD_CLASS_ERROR = 1303, + TRIGGER_DOWNLOAD_ERROR = 1304, + CREATE_TRIGGER_INSTANCE_ERROR = 1305, + ACTIVE_TRIGGER_INSTANCE_ERROR = 1306, + DROP_TRIGGER_INSTANCE_ERROR = 1307, + UPDATE_TRIGGER_LOCATION_ERROR = 1308, + + // Continuous Query + NO_SUCH_CQ = 1400, + CQ_ALREADY_ACTIVE = 1401, + CQ_ALREADY_EXIST = 1402, + CQ_UPDATE_LAST_EXEC_TIME_ERROR = 1403, + + // code 1500-1599 are used by IoTDB-ML + + // Pipe Plugin + CREATE_PIPE_PLUGIN_ERROR = 1600, + DROP_PIPE_PLUGIN_ERROR = 1601, + PIPE_PLUGIN_LOAD_CLASS_ERROR = 1602, + PIPE_PLUGIN_DOWNLOAD_ERROR = 1603, + CREATE_PIPE_PLUGIN_ON_DATANODE_ERROR = 1604, + DROP_PIPE_PLUGIN_ON_DATANODE_ERROR = 1605, + + // Quota + SPACE_QUOTA_EXCEEDED = 1700, + NUM_REQUESTS_EXCEEDED = 1701, + REQUEST_SIZE_EXCEEDED = 1702, + NUM_READ_REQUESTS_EXCEEDED = 1703, + NUM_WRITE_REQUESTS_EXCEEDED = 1704, + WRITE_SIZE_EXCEEDED = 1705, + READ_SIZE_EXCEEDED = 1706, + QUOTA_MEM_QUERY_NOT_ENOUGH = 1707, + QUERY_CPU_QUERY_NOT_ENOUGH = 1708, + + // Pipe + PIPE_VERSION_ERROR = 1800, + PIPE_TYPE_ERROR = 1801, + PIPE_HANDSHAKE_ERROR = 1802, + PIPE_TRANSFER_FILE_OFFSET_RESET = 1803, + PIPE_TRANSFER_FILE_ERROR = 1804, + PIPE_TRANSFER_EXECUTE_STATEMENT_ERROR = 1805, + PIPE_NOT_EXIST_ERROR = 1806, + PIPE_PUSH_META_ERROR = 1807, + PIPE_RECEIVER_TEMPORARY_UNAVAILABLE_EXCEPTION = 1808, + PIPE_RECEIVER_IDEMPOTENT_CONFLICT_EXCEPTION = 1809, + PIPE_RECEIVER_USER_CONFLICT_EXCEPTION = 1810, + PIPE_CONFIG_RECEIVER_HANDSHAKE_NEEDED = 1811, + + // Subscription + SUBSCRIPTION_VERSION_ERROR = 1900, + SUBSCRIPTION_TYPE_ERROR = 1901, + SUBSCRIPTION_HANDSHAKE_ERROR = 1902, + SUBSCRIPTION_HEARTBEAT_ERROR = 1903, + SUBSCRIPTION_POLL_ERROR = 1904, + SUBSCRIPTION_COMMIT_ERROR = 1905, + SUBSCRIPTION_CLOSE_ERROR = 1906, + SUBSCRIPTION_SUBSCRIBE_ERROR = 1907, + SUBSCRIPTION_UNSUBSCRIBE_ERROR = 1908, + SUBSCRIPTION_MISSING_CUSTOMER = 1909, + SHOW_SUBSCRIPTION_ERROR = 1910, + + // Topic + CREATE_TOPIC_ERROR = 2000, + DROP_TOPIC_ERROR = 2001, + ALTER_TOPIC_ERROR = 2002, + SHOW_TOPIC_ERROR = 2003, + TOPIC_PUSH_META_ERROR = 2004, + + // Consumer + CREATE_CONSUMER_ERROR = 2100, + DROP_CONSUMER_ERROR = 2101, + ALTER_CONSUMER_ERROR = 2102, + CONSUMER_PUSH_META_ERROR = 2103, + + // Pipe Consensus + PIPE_CONSENSUS_CONNECTOR_RESTART_ERROR = 2200, + PIPE_CONSENSUS_VERSION_ERROR = 2201, + PIPE_CONSENSUS_DEPRECATED_REQUEST = 2202, + PIPE_CONSENSUS_TRANSFER_FILE_OFFSET_RESET = 2203, + PIPE_CONSENSUS_TRANSFER_FILE_ERROR = 2204, + PIPE_CONSENSUS_TYPE_ERROR = 2205 + } + + public static class TSStatusExtensions + { + private static readonly Dictionary codeMap = new Dictionary(); + + static TSStatusExtensions() + { + foreach (TSStatusCode statusCode in Enum.GetValues(typeof(TSStatusCode))) + { + codeMap[statusCode.GetHashCode()] = statusCode; + } + } + + public static TSStatusCode RepresentOf(int statusCode) + { + if (codeMap.TryGetValue(statusCode, out TSStatusCode value)) + { + return value; + } + throw new ArgumentOutOfRangeException(nameof(statusCode), "Unknown status code."); + } + + public static string ToString(TSStatusCode statusCode) + { + return $"{statusCode}({(int)statusCode})"; + } + } + +} \ No newline at end of file diff --git a/src/Apache.IoTDB/SessionPool.cs b/src/Apache.IoTDB/SessionPool.cs index bed6310..0e4e92f 100644 --- a/src/Apache.IoTDB/SessionPool.cs +++ b/src/Apache.IoTDB/SessionPool.cs @@ -18,18 +18,15 @@ namespace Apache.IoTDB public class SessionPool : IDisposable { - private static int SuccessCode => 200; - private static int RedirectRecommendCode => 400; private static readonly TSProtocolVersion ProtocolVersion = TSProtocolVersion.IOTDB_SERVICE_PROTOCOL_V3; private readonly string _username; private readonly string _password; private bool _enableRpcCompression; private string _zoneId; + private readonly List _nodeUrls = new List(); private readonly string _host; - private readonly List _hosts; private readonly int _port; - private readonly List _ports; private readonly int _fetchSize; private readonly int _timeout; private readonly int _poolSize = 4; @@ -73,6 +70,43 @@ public SessionPool(string host, int port, string username, string password, int _enableRpcCompression = enableRpcCompression; _timeout = timeout; } + /// + /// Initializes a new instance of the class. + /// + /// The list of node URLs to connect to, multiple ip:rpcPort eg.127.0.0.1:9001 + /// The size of the session pool. + public SessionPool(List nodeUrls, int poolSize) + : this(nodeUrls, "root", "root", 1024, "UTC+08:00", poolSize, true, 60) + { + } + public SessionPool(List nodeUrls, string username, string password) + : this(nodeUrls, username, password, 1024, "UTC+08:00", 8, true, 60) + { + } + public SessionPool(List nodeUrls, string username, string password, int fetchSize) + : this(nodeUrls, username, password, fetchSize, "UTC+08:00", 8, true, 60) + { + } + public SessionPool(List nodeUrls, string username, string password, int fetchSize, string zoneId) + : this(nodeUrls, username, password, fetchSize, zoneId, 8, true, 60) + { + } + public SessionPool(List nodeUrls, string username, string password, int fetchSize, string zoneId, int poolSize, bool enableRpcCompression, int timeout) + { + if (nodeUrls.Count == 0) + { + throw new ArgumentException("nodeUrls shouldn't be empty."); + } + _nodeUrls = nodeUrls; + _username = username; + _password = password; + _zoneId = zoneId; + _fetchSize = fetchSize; + _debugMode = false; + _poolSize = poolSize; + _enableRpcCompression = enableRpcCompression; + _timeout = timeout; + } public async Task ExecuteClientOperationAsync(AsyncOperation operation, string errMsg, bool retryOnFailure = true) { Client client = _clients.Take(); @@ -107,7 +141,6 @@ public async Task ExecuteClientOperationAsync(AsyncOperation /// Gets or sets the amount of time a Session will wait for a send operation to complete successfully. /// @@ -286,7 +319,7 @@ public async Task SetStorageGroup(string groupName) { _logger.LogInformation("set storage group {0} successfully, server message is {1}", groupName, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when setting storage group" ); @@ -314,7 +347,7 @@ public async Task CreateTimeSeries( _logger.LogInformation("creating time series {0} successfully, server message is {1}", tsPath, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when creating time series" ); @@ -348,7 +381,7 @@ public async Task CreateAlignedTimeseriesAsync( _logger.LogInformation("creating aligned time series {0} successfully, server message is {1}", prefixPath, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when creating aligned time series" ); @@ -365,7 +398,7 @@ public async Task DeleteStorageGroupAsync(string groupName) _logger.LogInformation("delete storage group {0} successfully, server message is {1}", groupName, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when deleting storage group" ); @@ -382,7 +415,7 @@ public async Task DeleteStorageGroupsAsync(List groupNames) _logger.LogInformation("delete storage group(s) {0} successfully, server message is {1}", groupNames, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when deleting storage group(s)" ); @@ -410,7 +443,7 @@ public async Task CreateMultiTimeSeriesAsync( _logger.LogInformation("creating multiple time series {0}, server message is {1}", tsPathLst, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when creating multiple time series" ); @@ -427,7 +460,7 @@ public async Task DeleteTimeSeriesAsync(List pathList) _logger.LogInformation("deleting multiple time series {0}, server message is {1}", pathList, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when deleting multiple time series" ); @@ -469,7 +502,7 @@ public async Task DeleteDataAsync(List tsPathLst, long startTime, l status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when deleting data" ); @@ -489,7 +522,7 @@ public async Task InsertRecordAsync(string deviceId, RowRecord record) _logger.LogInformation("insert one record to device {0}, server message: {1}", deviceId, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when inserting record" ); @@ -512,7 +545,7 @@ public async Task InsertAlignedRecordAsync(string deviceId, RowRecord recor _logger.LogInformation("insert one record to device {0}, server message: {1}", deviceId, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when inserting record" ); @@ -570,7 +603,7 @@ public async Task InsertStringRecordAsync(string deviceId, List mea _logger.LogInformation("insert one string record to device {0}, server message: {1}", deviceId, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when inserting a string record" ); @@ -591,7 +624,7 @@ public async Task InsertAlignedStringRecordAsync(string deviceId, List InsertStringRecordsAsync(List deviceIds, List InsertAlignedStringRecordsAsync(List deviceIds, L _logger.LogInformation("insert string records to devices {0}, server message: {1}", deviceIds, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when inserting string records" ); @@ -653,7 +686,7 @@ public async Task InsertRecordsAsync(List deviceId, List _logger.LogInformation("insert multiple records to devices {0}, server message: {1}", deviceId, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when inserting records" ); @@ -676,7 +709,7 @@ public async Task InsertAlignedRecordsAsync(List deviceId, List InsertTabletAsync(Tablet tablet) _logger.LogInformation("insert one tablet to device {0}, server message: {1}", tablet.DeviceId, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when inserting tablet" ); @@ -728,7 +761,7 @@ public async Task InsertAlignedTabletAsync(Tablet tablet) _logger.LogInformation("insert one aligned tablet to device {0}, server message: {1}", tablet.DeviceId, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when inserting aligned tablet" ); @@ -779,7 +812,7 @@ public async Task InsertTabletsAsync(List tabletLst) _logger.LogInformation("insert multiple tablets, message: {0}", status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when inserting tablets" ); @@ -800,7 +833,7 @@ public async Task InsertAlignedTabletsAsync(List tabletLst) _logger.LogInformation("insert multiple aligned tablets, message: {0}", status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when inserting aligned tablets" ); @@ -863,7 +896,7 @@ public async Task InsertStringRecordsOfOneDeviceSortedAsync(string deviceId _logger.LogInformation("insert string records of one device, message: {0}", status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when inserting string records of one device" ); @@ -920,7 +953,7 @@ public async Task InsertRecordsOfOneDeviceSortedAsync(string deviceId, List _logger.LogInformation("insert records of one device, message: {0}", status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when inserting records of one device" ); @@ -948,7 +981,7 @@ public async Task InsertAlignedRecordsOfOneDeviceSortedAsync(string deviceI _logger.LogInformation("insert aligned records of one device, message: {0}", status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when inserting aligned records of one device" ); @@ -973,7 +1006,7 @@ public async Task TestInsertRecordAsync(string deviceId, RowRecord record) _logger.LogInformation("insert one record to device {0}, server message: {1}", deviceId, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when test inserting one record" ); @@ -993,7 +1026,7 @@ public async Task TestInsertRecordsAsync(List deviceId, List TestInsertTabletAsync(Tablet tablet) _logger.LogInformation("insert one tablet to device {0}, server message: {1}", tablet.DeviceId, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when test inserting one tablet" ); @@ -1033,7 +1066,7 @@ public async Task TestInsertTabletsAsync(List tabletLst) _logger.LogInformation("insert multiple tablets, message: {0}", status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when test inserting multiple tablets" ); @@ -1073,7 +1106,7 @@ public async Task ExecuteQueryStatementAsync(string sql) } } - if (_utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode) == -1) + if (_utilFunctions.VerifySuccess(status) == -1) { _clients.Add(client); @@ -1123,7 +1156,7 @@ public async Task ExecuteStatementAsync(string sql) } } - if (_utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode) == -1) + if (_utilFunctions.VerifySuccess(status) == -1) { _clients.Add(client); @@ -1155,7 +1188,7 @@ public async Task ExecuteNonQueryStatementAsync(string sql) _logger.LogInformation("execute non-query statement {0} message: {1}", sql, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when executing non-query statement" ); @@ -1195,7 +1228,7 @@ public async Task ExecuteRawDataQuery(List paths, long s } } - if (_utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode) == -1) + if (_utilFunctions.VerifySuccess(status) == -1) { _clients.Add(client); @@ -1246,7 +1279,7 @@ public async Task ExecuteLastDataQueryAsync(List paths, } } - if (_utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode) == -1) + if (_utilFunctions.VerifySuccess(status) == -1) { _clients.Add(client); @@ -1277,7 +1310,7 @@ public async Task CreateSchemaTemplateAsync(Template template) _logger.LogInformation("create schema template {0} message: {1}", template.Name, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when creating schema template" ); @@ -1297,7 +1330,7 @@ public async Task DropSchemaTemplateAsync(string templateName) _logger.LogInformation("drop schema template {0} message: {1}", templateName, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when dropping schema template" ); @@ -1317,7 +1350,7 @@ public async Task SetSchemaTemplateAsync(string templateName, string prefix _logger.LogInformation("set schema template {0} message: {1}", templateName, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when setting schema template" ); @@ -1337,7 +1370,7 @@ public async Task UnsetSchemaTemplateAsync(string prefixPath, string templa _logger.LogInformation("unset schema template {0} message: {1}", templateName, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when unsetting schema template" ); @@ -1357,7 +1390,7 @@ public async Task DeleteNodeInTemplateAsync(string templateName, string pat _logger.LogInformation("delete node in template {0} message: {1}", templateName, status.Message); } - return _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + return _utilFunctions.VerifySuccess(status); }, errMsg: "Error occurs when deleting node in template" ); @@ -1378,7 +1411,7 @@ public async Task CountMeasurementsInTemplateAsync(string name) _logger.LogInformation("count measurements in template {0} message: {1}", name, status.Message); } - _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + _utilFunctions.VerifySuccess(status); return resp.Count; }, errMsg: "Error occurs when counting measurements in template" @@ -1401,7 +1434,7 @@ public async Task IsMeasurementInTemplateAsync(string templateName, string _logger.LogInformation("is measurement in template {0} message: {1}", templateName, status.Message); } - _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + _utilFunctions.VerifySuccess(status); return resp.Result; }, errMsg: "Error occurs when checking measurement in template" @@ -1424,7 +1457,7 @@ public async Task IsPathExistInTemplateAsync(string templateName, string p _logger.LogInformation("is path exist in template {0} message: {1}", templateName, status.Message); } - _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + _utilFunctions.VerifySuccess(status); return resp.Result; }, errMsg: "Error occurs when checking path exist in template" @@ -1447,7 +1480,7 @@ public async Task> ShowMeasurementsInTemplateAsync(string templateN _logger.LogInformation("get measurements in template {0} message: {1}", templateName, status.Message); } - _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + _utilFunctions.VerifySuccess(status); return resp.Measurements; }, errMsg: "Error occurs when showing measurements in template" @@ -1470,7 +1503,7 @@ public async Task> ShowAllTemplatesAsync() _logger.LogInformation("get all templates message: {0}", status.Message); } - _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + _utilFunctions.VerifySuccess(status); return resp.Measurements; }, errMsg: "Error occurs when getting all templates" @@ -1493,7 +1526,7 @@ public async Task> ShowPathsTemplateSetOnAsync(string templateName) _logger.LogInformation("get paths template set on {0} message: {1}", templateName, status.Message); } - _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + _utilFunctions.VerifySuccess(status); return resp.Measurements; }, errMsg: "Error occurs when getting paths template set on" @@ -1515,7 +1548,7 @@ public async Task> ShowPathsTemplateUsingOnAsync(string templateNam _logger.LogInformation("get paths template using on {0} message: {1}", templateName, status.Message); } - _utilFunctions.VerifySuccess(status, SuccessCode, RedirectRecommendCode); + _utilFunctions.VerifySuccess(status); return resp.Measurements; }, errMsg: "Error occurs when getting paths template using on" From 3789d52b31b91ccb96c90bceb505dc647530d373 Mon Sep 17 00:00:00 2001 From: luzhan <513964121@qq.com> Date: Sun, 7 Jul 2024 00:00:25 +0800 Subject: [PATCH 04/15] style:refactor VerifySuccess function --- src/Apache.IoTDB/Utils.cs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/Apache.IoTDB/Utils.cs b/src/Apache.IoTDB/Utils.cs index 639ad35..1457110 100644 --- a/src/Apache.IoTDB/Utils.cs +++ b/src/Apache.IoTDB/Utils.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; using System.Linq; @@ -18,23 +19,24 @@ public bool IsSorted(IList collection) return true; } - public int VerifySuccess(TSStatus status, int successCode, int redirectRecommendCode) + public int VerifySuccess(TSStatus status) { - if (status.__isset.subStatus) + if (status.Code == (int)TSStatusCode.MULTIPLE_ERROR) { - if (status.SubStatus.Any(subStatus => VerifySuccess(subStatus, successCode, redirectRecommendCode) != 0)) + if (status.SubStatus.Any(subStatus => VerifySuccess(subStatus) != 0)) { return -1; } - return 0; } - - if (status.Code == successCode || status.Code == redirectRecommendCode) + if (status.Code == (int)TSStatusCode.REDIRECTION_RECOMMEND) + { + return 0; + } + if (status.Code == (int)TSStatusCode.SUCCESS_STATUS) { return 0; } - return -1; } } From c0c7081752613d6ed2f9676b15c8d8079f14eb73 Mon Sep 17 00:00:00 2001 From: luzhan <513964121@qq.com> Date: Sun, 7 Jul 2024 22:42:19 +0800 Subject: [PATCH 05/15] feat:enable node urls initialization --- samples/Apache.IoTDB.Samples/Program.cs | 2 + .../Apache.IoTDB.Samples/SessionPoolTest.cs | 35 ++ samples/Apache.IoTDB.Samples/UtilsTest.cs | 62 +++ src/Apache.IoTDB/SessionPool.cs | 427 ++++++++---------- src/Apache.IoTDB/Utils.cs | 35 ++ 5 files changed, 334 insertions(+), 227 deletions(-) create mode 100644 samples/Apache.IoTDB.Samples/UtilsTest.cs diff --git a/samples/Apache.IoTDB.Samples/Program.cs b/samples/Apache.IoTDB.Samples/Program.cs index b6ceebf..c77795c 100644 --- a/samples/Apache.IoTDB.Samples/Program.cs +++ b/samples/Apache.IoTDB.Samples/Program.cs @@ -9,6 +9,8 @@ public static class Program { public static async Task Main(string[] args) { + var utilsTest = new UtilsTest(); + utilsTest.TestParseEndPoint(); var sessionPoolTest = new SessionPoolTest("iotdb"); await sessionPoolTest.Test(); } diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.cs index e016185..9f54a7f 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.cs @@ -6,6 +6,7 @@ using Apache.IoTDB.DataStructure; using ConsoleTableExt; using System.Net.Sockets; +using System.Diagnostics; namespace Apache.IoTDB.Samples { @@ -15,6 +16,7 @@ public partial class SessionPoolTest public int port = 6667; public string user = "root"; public string passwd = "root"; + public List node_urls = ["localhost:6667"]; public int fetch_size = 500; public int processed_size = 4; public bool debug = false; @@ -40,6 +42,10 @@ public SessionPoolTest(string _host = "localhost") public async Task Test() { + await TestOpenWithNodeUrls(); + + await TestOpenWithNodeUrlsAndInsertOneRecord(); + await TestInsertOneRecord(); await TestInsertAlignedRecord(); @@ -112,6 +118,35 @@ public async Task Test() await TestNonSqlBy_ADO(); } + public async Task TestOpenWithNodeUrls() + { + var session_pool = new SessionPool(node_urls, 8); + await session_pool.Open(false); + Debug.Assert(session_pool.IsOpen()); + if (debug) session_pool.OpenDebugMode(); + await session_pool.Close(); + Console.WriteLine("TestOpenWithNodeUrls Passed!"); + } + public async Task TestOpenWithNodeUrlsAndInsertOneRecord() + { + var session_pool = new SessionPool(node_urls, 8); + await session_pool.Open(false); + if (debug) session_pool.OpenDebugMode(); + await session_pool.DeleteStorageGroupAsync(test_group_name); + var status = await session_pool.CreateTimeSeries( + string.Format("{0}.{1}.{2}", test_group_name, test_device, test_measurements[0]), + TSDataType.TEXT, TSEncoding.PLAIN, Compressor.SNAPPY); + status = await session_pool.CreateTimeSeries( + string.Format("{0}.{1}.{2}", test_group_name, test_device, test_measurements[1]), + TSDataType.TEXT, TSEncoding.PLAIN, Compressor.SNAPPY); + status = await session_pool.CreateTimeSeries( + string.Format("{0}.{1}.{2}", test_group_name, test_device, test_measurements[2]), + TSDataType.TEXT, TSEncoding.PLAIN, Compressor.SNAPPY); + var rowRecord = new RowRecord(1668404120807, new() { "1111111", "22222", "333333" }, new() { test_measurements[0], test_measurements[1], test_measurements[2] }); + status = await session_pool.InsertRecordsAsync(new List() { string.Format("{0}.{1}", test_group_name, test_device) }, new List() { rowRecord }); + Debug.Assert(status == 0); + Console.WriteLine("TestOpenWithNodeUrlsAndInsertOneRecord Passed!"); + } public async Task TestInsertOneRecord() { var session_pool = new SessionPool(host, port, 1); diff --git a/samples/Apache.IoTDB.Samples/UtilsTest.cs b/samples/Apache.IoTDB.Samples/UtilsTest.cs new file mode 100644 index 0000000..b5568b6 --- /dev/null +++ b/samples/Apache.IoTDB.Samples/UtilsTest.cs @@ -0,0 +1,62 @@ +using System; +using System.Diagnostics; + +namespace Apache.IoTDB.Samples +{ + public class UtilsTest + { + private Utils _utilFunctions = new Utils(); + public void Test() + { + TestParseEndPoint(); + } + + public void TestParseEndPoint() + { + TestIPv4Address(); + TestIPv6Address(); + TestInvalidInputs(); + } + + private void TestIPv4Address() + { + string correctEndpointIPv4 = "192.168.1.1:8080"; + var endpoint = _utilFunctions.ParseTEndPointIpv4AndIpv6Url(correctEndpointIPv4); + Debug.Assert(endpoint.Ip == "192.168.1.1", "IPv4 address mismatch."); + Debug.Assert(endpoint.Port == 8080, "IPv4 port mismatch."); + Console.WriteLine("TestIPv4Address passed."); + } + + private void TestIPv6Address() + { + string correctEndpointIPv6 = "[2001:db8:85a3::8a2e:370:7334]:443"; + var endpoint = _utilFunctions.ParseTEndPointIpv4AndIpv6Url(correctEndpointIPv6); + Debug.Assert(endpoint.Ip == "2001:db8:85a3::8a2e:370:7334", "IPv6 address mismatch."); + Debug.Assert(endpoint.Port == 443, "IPv6 port mismatch."); + Console.WriteLine("TestIPv6Address passed."); + } + + private void TestInvalidInputs() + { + string noPort = "192.168.1.1"; + var endpointNoPort = _utilFunctions.ParseTEndPointIpv4AndIpv6Url(noPort); + Debug.Assert(string.IsNullOrEmpty(endpointNoPort.Ip) && endpointNoPort.Port == 0, "Failed to handle missing port."); + + string emptyInput = ""; + var endpointEmpty = _utilFunctions.ParseTEndPointIpv4AndIpv6Url(emptyInput); + Debug.Assert(string.IsNullOrEmpty(endpointEmpty.Ip) && endpointEmpty.Port == 0, "Failed to handle empty input."); + + string invalidFormat = "192.168.1.1:port"; + try + { + var endpointInvalid = _utilFunctions.ParseTEndPointIpv4AndIpv6Url(invalidFormat); + Debug.Fail("Should have thrown an exception due to invalid port."); + } + catch (FormatException) + { + // Expected exception + } + Console.WriteLine("TestInvalidInputs passed."); + } + } +} diff --git a/src/Apache.IoTDB/SessionPool.cs b/src/Apache.IoTDB/SessionPool.cs index 0e4e92f..3a10381 100644 --- a/src/Apache.IoTDB/SessionPool.cs +++ b/src/Apache.IoTDB/SessionPool.cs @@ -24,13 +24,15 @@ public class SessionPool : IDisposable private readonly string _password; private bool _enableRpcCompression; private string _zoneId; - private readonly List _nodeUrls = new List(); + private readonly List _nodeUrls = []; + private readonly List _endPoints = []; private readonly string _host; private readonly int _port; private readonly int _fetchSize; private readonly int _timeout; private readonly int _poolSize = 4; - private readonly Utils _utilFunctions = new Utils(); + private readonly Utils _utilFunctions = new(); + private const int RetryNum = 3; private bool _debugMode; private bool _isClose = true; private ConcurrentClientQueue _clients; @@ -98,6 +100,7 @@ public SessionPool(List nodeUrls, string username, string password, int throw new ArgumentException("nodeUrls shouldn't be empty."); } _nodeUrls = nodeUrls; + _endPoints = _utilFunctions.ParseSeedNodeUrls(nodeUrls); _username = username; _password = password; _zoneId = zoneId; @@ -119,7 +122,7 @@ public async Task ExecuteClientOperationAsync(AsyncOperation ExecuteClientOperationAsync(AsyncOperation !_isClose; @@ -254,9 +331,9 @@ public async Task GetTimeZone() } } - private async Task CreateAndOpen(bool enableRpcCompression, int timeout, CancellationToken cancellationToken = default) + private async Task CreateAndOpen(string host, int port, bool enableRpcCompression, int timeout, CancellationToken cancellationToken = default) { - var tcpClient = new TcpClient(_host, _port); + var tcpClient = new TcpClient(host, port); tcpClient.SendTimeout = timeout; tcpClient.ReceiveTimeout = timeout; var transport = new TFramedTransport(new TSocketTransport(tcpClient, null)); @@ -420,7 +497,6 @@ public async Task DeleteStorageGroupsAsync(List groupNames) errMsg: "Error occurs when deleting storage group(s)" ); } - // use ExecuteClientOperationAsync to create multi public async Task CreateMultiTimeSeriesAsync( List tsPathLst, List dataTypeLst, @@ -507,7 +583,6 @@ public async Task DeleteDataAsync(List tsPathLst, long startTime, l errMsg: "Error occurs when deleting data" ); } - // use ExecuteClientOperationAsync to insert record public async Task InsertRecordAsync(string deviceId, RowRecord record) { return await ExecuteClientOperationAsync( @@ -527,7 +602,6 @@ public async Task InsertRecordAsync(string deviceId, RowRecord record) errMsg: "Error occurs when inserting record" ); } - // use ExecuteClientOperationAsync to insert record public async Task InsertAlignedRecordAsync(string deviceId, RowRecord record) { return await ExecuteClientOperationAsync( @@ -556,7 +630,7 @@ public TSInsertStringRecordReq GenInsertStrRecordReq(string deviceId, List deviceIds { if (valuesList.Count() != measurementsList.Count()) { - throw new TException("length of data types does not equal to length of values!", null); + throw new ArgumentException("length of data types does not equal to length of values!"); } return new TSInsertStringRecordsReq(sessionId, deviceIds, measurementsList, valuesList, timestamps) @@ -587,7 +661,6 @@ public TSInsertRecordsReq GenInsertRecordsReq(List deviceId, List InsertStringRecordAsync(string deviceId, List measurements, List values, long timestamp) { @@ -608,7 +681,6 @@ public async Task InsertStringRecordAsync(string deviceId, List mea errMsg: "Error occurs when inserting a string record" ); } - // use ExecuteClientOperationAsync to insert record public async Task InsertAlignedStringRecordAsync(string deviceId, List measurements, List values, long timestamp) { @@ -629,7 +701,6 @@ public async Task InsertAlignedStringRecordAsync(string deviceId, List InsertStringRecordsAsync(List deviceIds, List> measurements, List> values, List timestamps) { @@ -650,7 +721,6 @@ public async Task InsertStringRecordsAsync(List deviceIds, List InsertAlignedStringRecordsAsync(List deviceIds, List> measurements, List> values, List timestamps) { @@ -671,7 +741,6 @@ public async Task InsertAlignedStringRecordsAsync(List deviceIds, L errMsg: "Error occurs when inserting string records" ); } - // use ExecuteClientOperationAsync to insert record public async Task InsertRecordsAsync(List deviceId, List rowRecords) { return await ExecuteClientOperationAsync( @@ -691,7 +760,6 @@ public async Task InsertRecordsAsync(List deviceId, List errMsg: "Error occurs when inserting records" ); } - // use ExecuteClientOperationAsync to insert record public async Task InsertAlignedRecordsAsync(List deviceId, List rowRecords) { return await ExecuteClientOperationAsync( @@ -725,7 +793,6 @@ public TSInsertTabletReq GenInsertTabletReq(Tablet tablet, long sessionId) tablet.GetDataTypes(), tablet.RowNumber); } - // use ExecuteClientOperationAsync to insert tablet public async Task InsertTabletAsync(Tablet tablet) { return await ExecuteClientOperationAsync( @@ -745,7 +812,6 @@ public async Task InsertTabletAsync(Tablet tablet) errMsg: "Error occurs when inserting tablet" ); } - // use ExecuteClientOperationAsync to insert tablet public async Task InsertAlignedTabletAsync(Tablet tablet) { return await ExecuteClientOperationAsync( @@ -796,7 +862,6 @@ public TSInsertTabletsReq GenInsertTabletsReq(List tabletLst, long sessi typeLst, sizeLst); } - // use ExecuteClientOperationAsync to insert tablets public async Task InsertTabletsAsync(List tabletLst) { @@ -817,7 +882,6 @@ public async Task InsertTabletsAsync(List tabletLst) errMsg: "Error occurs when inserting tablets" ); } - // use ExecuteClientOperationAsync to insert tablets public async Task InsertAlignedTabletsAsync(List tabletLst) { return await ExecuteClientOperationAsync( @@ -875,7 +939,6 @@ public async Task InsertAlignedStringRecordsOfOneDeviceAsync(string deviceI return await InsertStringRecordsOfOneDeviceSortedAsync(deviceId, sortedTimestamps, sortedMeasurementsList, sortedValuesList, true); } - // use ExecuteClientOperationAsync to InsertStringRecordsOfOneDeviceSortedAsync public async Task InsertStringRecordsOfOneDeviceSortedAsync(string deviceId, List timestamps, List> measurementsList, List> valuesList, bool isAligned) { @@ -884,7 +947,7 @@ public async Task InsertStringRecordsOfOneDeviceSortedAsync(string deviceId { if (!_utilFunctions.IsSorted(timestamps)) { - throw new TException("insert string records of one device error: timestamp not sorted", null); + throw new ArgumentException("insert string records of one device error: timestamp not sorted"); } var req = GenInsertStringRecordsOfOneDeviceReq(deviceId, timestamps, measurementsList, valuesList, client.SessionId, isAligned); @@ -931,7 +994,6 @@ private TSInsertRecordsOfOneDeviceReq GenInsertRecordsOfOneDeviceRequest( values.ToList(), timestampLst); } - // use ExecuteClientOperationAsync to InsertRecordsOfOneDeviceSortedAsync public async Task InsertRecordsOfOneDeviceSortedAsync(string deviceId, List rowRecords) { return await ExecuteClientOperationAsync( @@ -941,7 +1003,7 @@ public async Task InsertRecordsOfOneDeviceSortedAsync(string deviceId, List if (!_utilFunctions.IsSorted(timestampLst)) { - throw new TException("insert records of one device error: timestamp not sorted", null); + throw new ArgumentException("insert records of one device error: timestamp not sorted"); } var req = GenInsertRecordsOfOneDeviceRequest(deviceId, rowRecords, client.SessionId); @@ -958,7 +1020,6 @@ public async Task InsertRecordsOfOneDeviceSortedAsync(string deviceId, List errMsg: "Error occurs when inserting records of one device" ); } - // use ExecuteClientOperationAsync to InsertAlignedRecordsOfOneDeviceSortedAsync public async Task InsertAlignedRecordsOfOneDeviceSortedAsync(string deviceId, List rowRecords) { return await ExecuteClientOperationAsync( @@ -968,7 +1029,7 @@ public async Task InsertAlignedRecordsOfOneDeviceSortedAsync(string deviceI if (!_utilFunctions.IsSorted(timestampLst)) { - throw new TException("insert records of one device error: timestamp not sorted", null); + throw new ArgumentException("insert records of one device error: timestamp not sorted"); } var req = GenInsertRecordsOfOneDeviceRequest(deviceId, rowRecords, client.SessionId); @@ -986,7 +1047,6 @@ public async Task InsertAlignedRecordsOfOneDeviceSortedAsync(string deviceI errMsg: "Error occurs when inserting aligned records of one device" ); } - // use ExecuteClientOperationAsync to TestInsertRecordAsync public async Task TestInsertRecordAsync(string deviceId, RowRecord record) { return await ExecuteClientOperationAsync( @@ -1011,7 +1071,6 @@ public async Task TestInsertRecordAsync(string deviceId, RowRecord record) errMsg: "Error occurs when test inserting one record" ); } - // use ExecuteClientOperationAsync to TestInsertRecordsAsync public async Task TestInsertRecordsAsync(List deviceId, List rowRecords) { return await ExecuteClientOperationAsync( @@ -1031,7 +1090,6 @@ public async Task TestInsertRecordsAsync(List deviceId, List TestInsertTabletAsync(Tablet tablet) { return await ExecuteClientOperationAsync( @@ -1051,7 +1109,6 @@ public async Task TestInsertTabletAsync(Tablet tablet) errMsg: "Error occurs when test inserting one tablet" ); } - // use ExecuteClientOperationAsync to TestInsertTabletsAsync public async Task TestInsertTabletsAsync(List tabletLst) { return await ExecuteClientOperationAsync( @@ -1074,105 +1131,59 @@ public async Task TestInsertTabletsAsync(List tabletLst) public async Task ExecuteQueryStatementAsync(string sql) { - TSExecuteStatementResp resp; - TSStatus status; - var client = _clients.Take(); - var req = new TSExecuteStatementReq(client.SessionId, sql, client.StatementId) - { - FetchSize = _fetchSize - }; - try - { - resp = await client.ServiceClient.executeQueryStatementAsync(req); - status = resp.Status; - } - catch (TException e) - { - _clients.Add(client); - - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - req.StatementId = client.StatementId; - try - { - resp = await client.ServiceClient.executeQueryStatementAsync(req); - status = resp.Status; - } - catch (TException ex) + return await ExecuteClientOperationAsync( + async client => { - _clients.Add(client); - throw new TException("Error occurs when executing query statement", ex); - } - } - - if (_utilFunctions.VerifySuccess(status) == -1) - { - _clients.Add(client); - - throw new TException("execute query failed", null); - } + var req = new TSExecuteStatementReq(client.SessionId, sql, client.StatementId) + { + FetchSize = _fetchSize + }; - _clients.Add(client); + var resp = await client.ServiceClient.executeQueryStatementAsync(req); + var status = resp.Status; - var sessionDataset = new SessionDataSet(sql, resp, _clients, client.StatementId) - { - FetchSize = _fetchSize, - }; + if (_utilFunctions.VerifySuccess(status) == -1) + { + throw new Exception(string.Format("execute query failed, sql: {0}, message: {1}", sql, status.Message)); + } - return sessionDataset; + return new SessionDataSet(sql, resp, _clients, client.StatementId) + { + FetchSize = _fetchSize, + }; + }, + errMsg: "Error occurs when executing query statement" + ); } - public async Task ExecuteStatementAsync(string sql) + public async Task ExecuteStatementAsync(string sql, long timeout) { - TSExecuteStatementResp resp; - TSStatus status; - var client = _clients.Take(); - var req = new TSExecuteStatementReq(client.SessionId, sql, client.StatementId) - { - FetchSize = _fetchSize - }; - try - { - resp = await client.ServiceClient.executeStatementAsync(req); - status = resp.Status; - } - catch (TException e) - { - _clients.Add(client); - - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - req.StatementId = client.StatementId; - try - { - resp = await client.ServiceClient.executeStatementAsync(req); - status = resp.Status; - } - catch (TException ex) + return await ExecuteClientOperationAsync( + async client => { - _clients.Add(client); - throw new TException("Error occurs when executing query statement", ex); - } - } + var req = new TSExecuteStatementReq(client.SessionId, sql, client.StatementId) + { + FetchSize = _fetchSize, + Timeout = timeout + }; - if (_utilFunctions.VerifySuccess(status) == -1) - { - _clients.Add(client); + var resp = await client.ServiceClient.executeStatementAsync(req); + var status = resp.Status; - throw new TException("execute query failed", null); - } + if (_utilFunctions.VerifySuccess(status) == -1) + { + throw new Exception(string.Format("execute query failed, sql: {0}, message: {1}", sql, status.Message)); + } - _clients.Add(client); + return new SessionDataSet(sql, resp, _clients, client.StatementId) + { + FetchSize = _fetchSize, + }; + }, + errMsg: "Error occurs when executing query statement" + ); + } - var sessionDataset = new SessionDataSet(sql, resp, _clients, client.StatementId) - { - FetchSize = _fetchSize, - }; - return sessionDataset; - } - // use ExecuteClientOperationAsync to ExecuteNonQueryStatementAsync public async Task ExecuteNonQueryStatementAsync(string sql) { return await ExecuteClientOperationAsync( @@ -1195,107 +1206,59 @@ public async Task ExecuteNonQueryStatementAsync(string sql) } public async Task ExecuteRawDataQuery(List paths, long startTime, long endTime) { - TSExecuteStatementResp resp; - TSStatus status; - var client = _clients.Take(); - var req = new TSRawDataQueryReq(client.SessionId, paths, startTime, endTime, client.StatementId) - { - FetchSize = _fetchSize, - EnableRedirectQuery = false - }; - try - { - resp = await client.ServiceClient.executeRawDataQueryAsync(req); - status = resp.Status; - } - catch (TException e) - { - _clients.Add(client); - - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - req.StatementId = client.StatementId; - try - { - resp = await client.ServiceClient.executeRawDataQueryAsync(req); - status = resp.Status; - } - catch (TException ex) + return await ExecuteClientOperationAsync( + async client => { - _clients.Add(client); - throw new TException("Error occurs when executing raw data query", ex); - } - } - - if (_utilFunctions.VerifySuccess(status) == -1) - { - _clients.Add(client); - - throw new TException("execute raw data query failed", null); - } + var req = new TSRawDataQueryReq(client.SessionId, paths, startTime, endTime, client.StatementId) + { + FetchSize = _fetchSize, + EnableRedirectQuery = false + }; - _clients.Add(client); + var resp = await client.ServiceClient.executeRawDataQueryAsync(req); + var status = resp.Status; - var sessionDataset = new SessionDataSet("", resp, _clients, client.StatementId) - { - FetchSize = _fetchSize, - }; + if (_utilFunctions.VerifySuccess(status) == -1) + { + throw new Exception(string.Format("execute raw data query failed, message: {0}", status.Message)); + } - return sessionDataset; + return new SessionDataSet("", resp, _clients, client.StatementId) + { + FetchSize = _fetchSize, + }; + }, + errMsg: "Error occurs when executing raw data query" + ); } public async Task ExecuteLastDataQueryAsync(List paths, long lastTime) { - TSExecuteStatementResp resp; - TSStatus status; - var client = _clients.Take(); - var req = new TSLastDataQueryReq(client.SessionId, paths, lastTime, client.StatementId) - { - FetchSize = _fetchSize, - EnableRedirectQuery = false - }; - try - { - resp = await client.ServiceClient.executeLastDataQueryAsync(req); - status = resp.Status; - } - catch (TException e) - { - _clients.Add(client); - - await Open(_enableRpcCompression); - client = _clients.Take(); - req.SessionId = client.SessionId; - req.StatementId = client.StatementId; - try - { - resp = await client.ServiceClient.executeLastDataQueryAsync(req); - status = resp.Status; - } - catch (TException ex) + return await ExecuteClientOperationAsync( + async client => { - _clients.Add(client); - throw new TException("Error occurs when executing last data query", ex); - } - } - - if (_utilFunctions.VerifySuccess(status) == -1) - { - _clients.Add(client); - - throw new TException("execute last data query failed", null); - } + var req = new TSLastDataQueryReq(client.SessionId, paths, lastTime, client.StatementId) + { + FetchSize = _fetchSize, + EnableRedirectQuery = false + }; - _clients.Add(client); + var resp = await client.ServiceClient.executeLastDataQueryAsync(req); + var status = resp.Status; - var sessionDataset = new SessionDataSet("", resp, _clients, client.StatementId) - { - FetchSize = _fetchSize, - }; + if (_utilFunctions.VerifySuccess(status) == -1) + { + throw new Exception(string.Format("execute last data query failed, message: {0}", status.Message)); + } - return sessionDataset; + return new SessionDataSet("", resp, _clients, client.StatementId) + { + FetchSize = _fetchSize, + }; + }, + errMsg: "Error occurs when executing last data query" + ); } - // use ExecuteClientOperationAsync to CreateSchemaTemplateAsync + public async Task CreateSchemaTemplateAsync(Template template) { return await ExecuteClientOperationAsync( @@ -1315,7 +1278,6 @@ public async Task CreateSchemaTemplateAsync(Template template) errMsg: "Error occurs when creating schema template" ); } - // use ExecuteClientOperationAsync to DropSchemaTemplateAsync public async Task DropSchemaTemplateAsync(string templateName) { return await ExecuteClientOperationAsync( @@ -1335,7 +1297,6 @@ public async Task DropSchemaTemplateAsync(string templateName) errMsg: "Error occurs when dropping schema template" ); } - // use ExecuteClientOperationAsync to SetSchemaTemplateAsync public async Task SetSchemaTemplateAsync(string templateName, string prefixPath) { return await ExecuteClientOperationAsync( @@ -1355,7 +1316,6 @@ public async Task SetSchemaTemplateAsync(string templateName, string prefix errMsg: "Error occurs when setting schema template" ); } - // use ExecuteClientOperationAsync to UnsetSchemaTemplateAsync public async Task UnsetSchemaTemplateAsync(string prefixPath, string templateName) { return await ExecuteClientOperationAsync( @@ -1375,7 +1335,6 @@ public async Task UnsetSchemaTemplateAsync(string prefixPath, string templa errMsg: "Error occurs when unsetting schema template" ); } - // use ExecuteClientOperationAsync to DeleteNodeInTemplateAsync public async Task DeleteNodeInTemplateAsync(string templateName, string path) { return await ExecuteClientOperationAsync( @@ -1395,7 +1354,6 @@ public async Task DeleteNodeInTemplateAsync(string templateName, string pat errMsg: "Error occurs when deleting node in template" ); } - // use ExecuteClientOperationAsync to CountMeasurementsInTemplateAsync public async Task CountMeasurementsInTemplateAsync(string name) { return await ExecuteClientOperationAsync( @@ -1411,13 +1369,15 @@ public async Task CountMeasurementsInTemplateAsync(string name) _logger.LogInformation("count measurements in template {0} message: {1}", name, status.Message); } - _utilFunctions.VerifySuccess(status); + if (_utilFunctions.VerifySuccess(status) == -1) + { + throw new Exception(string.Format("count measurements in template failed, template name: {0}, message: {1}", name, status.Message)); + } return resp.Count; }, errMsg: "Error occurs when counting measurements in template" ); } - // use ExecuteClientOperationAsync to IsMeasurementInTemplateAsync public async Task IsMeasurementInTemplateAsync(string templateName, string path) { return await ExecuteClientOperationAsync( @@ -1434,13 +1394,15 @@ public async Task IsMeasurementInTemplateAsync(string templateName, string _logger.LogInformation("is measurement in template {0} message: {1}", templateName, status.Message); } - _utilFunctions.VerifySuccess(status); + if (_utilFunctions.VerifySuccess(status) == -1) + { + throw new Exception(string.Format("is measurement in template failed, template name: {0}, message: {1}", templateName, status.Message)); + } return resp.Result; }, errMsg: "Error occurs when checking measurement in template" ); } - // use ExecuteClientOperationAsync to IsPathExistInTemplateAsync public async Task IsPathExistInTemplateAsync(string templateName, string path) { return await ExecuteClientOperationAsync( @@ -1457,13 +1419,15 @@ public async Task IsPathExistInTemplateAsync(string templateName, string p _logger.LogInformation("is path exist in template {0} message: {1}", templateName, status.Message); } - _utilFunctions.VerifySuccess(status); + if (_utilFunctions.VerifySuccess(status) == -1) + { + throw new Exception(string.Format("is path exist in template failed, template name: {0}, message: {1}", templateName, status.Message)); + } return resp.Result; }, errMsg: "Error occurs when checking path exist in template" ); } - // use ExecuteClientOperationAsync to ShowMeasurementsInTemplateAsync public async Task> ShowMeasurementsInTemplateAsync(string templateName, string pattern = "") { return await ExecuteClientOperationAsync>( @@ -1480,14 +1444,16 @@ public async Task> ShowMeasurementsInTemplateAsync(string templateN _logger.LogInformation("get measurements in template {0} message: {1}", templateName, status.Message); } - _utilFunctions.VerifySuccess(status); + if (_utilFunctions.VerifySuccess(status) == -1) + { + throw new Exception(string.Format("show measurements in template failed, template name: {0}, pattern: {1}, message: {2}", templateName, pattern, status.Message)); + } return resp.Measurements; }, errMsg: "Error occurs when showing measurements in template" ); } - // use ExecuteClientOperationAsync to ShowAllTemplatesAsync public async Task> ShowAllTemplatesAsync() { return await ExecuteClientOperationAsync>( @@ -1503,14 +1469,16 @@ public async Task> ShowAllTemplatesAsync() _logger.LogInformation("get all templates message: {0}", status.Message); } - _utilFunctions.VerifySuccess(status); + if (_utilFunctions.VerifySuccess(status) == -1) + { + throw new Exception(string.Format("show all templates failed, message: {0}", status.Message)); + } return resp.Measurements; }, errMsg: "Error occurs when getting all templates" ); } - // use ExecuteClientOperationAsync to ShowPathsTemplateSetOnAsync public async Task> ShowPathsTemplateSetOnAsync(string templateName) { return await ExecuteClientOperationAsync>( @@ -1526,13 +1494,15 @@ public async Task> ShowPathsTemplateSetOnAsync(string templateName) _logger.LogInformation("get paths template set on {0} message: {1}", templateName, status.Message); } - _utilFunctions.VerifySuccess(status); + if (_utilFunctions.VerifySuccess(status) == -1) + { + throw new Exception(string.Format("show paths template set on failed, template name: {0}, message: {1}", templateName, status.Message)); + } return resp.Measurements; }, errMsg: "Error occurs when getting paths template set on" ); } - // use ExecuteClientOperationAsync to ShowPathsTemplateUsingOnAsync public async Task> ShowPathsTemplateUsingOnAsync(string templateName) { return await ExecuteClientOperationAsync>( @@ -1548,7 +1518,10 @@ public async Task> ShowPathsTemplateUsingOnAsync(string templateNam _logger.LogInformation("get paths template using on {0} message: {1}", templateName, status.Message); } - _utilFunctions.VerifySuccess(status); + if (_utilFunctions.VerifySuccess(status) == -1) + { + throw new Exception(string.Format("show paths template using on failed, template name: {0}, message: {1}", templateName, status.Message)); + } return resp.Measurements; }, errMsg: "Error occurs when getting paths template using on" diff --git a/src/Apache.IoTDB/Utils.cs b/src/Apache.IoTDB/Utils.cs index 1457110..f7adc19 100644 --- a/src/Apache.IoTDB/Utils.cs +++ b/src/Apache.IoTDB/Utils.cs @@ -6,6 +6,8 @@ namespace Apache.IoTDB { public class Utils { + const string PointColon = ":"; + const string AbbColon = "["; public bool IsSorted(IList collection) { for (var i = 1; i < collection.Count; i++) @@ -39,5 +41,38 @@ public int VerifySuccess(TSStatus status) } return -1; } + /// + /// Parse TEndPoint from a given TEndPointUrl + /// example:[D80:0000:0000:0000:ABAA:0000:00C2:0002]:22227 + /// + /// ip:port + /// TEndPoint null if parse error + public TEndPoint ParseTEndPointIpv4AndIpv6Url(string endPointUrl) + { + TEndPoint endPoint = new(); + + if (endPointUrl.Contains(PointColon)) + { + int pointPosition = endPointUrl.LastIndexOf(PointColon); + string port = endPointUrl[(pointPosition + 1)..]; + string ip = endPointUrl[..pointPosition]; + if (ip.Contains(AbbColon)) + { + ip = ip[1..^1]; // Remove the square brackets from IPv6 + } + endPoint.Ip = ip; + endPoint.Port = int.Parse(port); + } + + return endPoint; + } + public List ParseSeedNodeUrls(List nodeUrls) + { + if (nodeUrls == null || nodeUrls.Count == 0) + { + throw new ArgumentException("No seed node URLs provided."); + } + return nodeUrls.Select(ParseTEndPointIpv4AndIpv6Url).ToList(); + } } } \ No newline at end of file From 23d43e4236291433f4fbc54932a8017b0517f890 Mon Sep 17 00:00:00 2001 From: luzhan <513964121@qq.com> Date: Sun, 7 Jul 2024 22:46:34 +0800 Subject: [PATCH 06/15] fix:revert [] to be compatable with dotnet 6.0 --- src/Apache.IoTDB/SessionPool.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Apache.IoTDB/SessionPool.cs b/src/Apache.IoTDB/SessionPool.cs index 3a10381..e079a82 100644 --- a/src/Apache.IoTDB/SessionPool.cs +++ b/src/Apache.IoTDB/SessionPool.cs @@ -24,8 +24,8 @@ public class SessionPool : IDisposable private readonly string _password; private bool _enableRpcCompression; private string _zoneId; - private readonly List _nodeUrls = []; - private readonly List _endPoints = []; + private readonly List _nodeUrls = new(); + private readonly List _endPoints = new(); private readonly string _host; private readonly int _port; private readonly int _fetchSize; From 4fd33651a8b880e86b7b9f8e7e8abf0a7b627464 Mon Sep 17 00:00:00 2001 From: luzhan <513964121@qq.com> Date: Sun, 7 Jul 2024 22:48:47 +0800 Subject: [PATCH 07/15] fix:revert [] to be compatable with dotnet 6.0 --- samples/Apache.IoTDB.Samples/SessionPoolTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.cs index 9f54a7f..b4e0de5 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.cs @@ -16,7 +16,7 @@ public partial class SessionPoolTest public int port = 6667; public string user = "root"; public string passwd = "root"; - public List node_urls = ["localhost:6667"]; + public List node_urls = new List { "localhost:6667" }; public int fetch_size = 500; public int processed_size = 4; public bool debug = false; From 8af64dafdb797df34a3e911a5cdf4260833d028e Mon Sep 17 00:00:00 2001 From: luzhan <513964121@qq.com> Date: Sun, 7 Jul 2024 22:53:29 +0800 Subject: [PATCH 08/15] fix:wrong host ip in test --- samples/Apache.IoTDB.Samples/SessionPoolTest.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.cs index b4e0de5..0883496 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.cs @@ -16,7 +16,7 @@ public partial class SessionPoolTest public int port = 6667; public string user = "root"; public string passwd = "root"; - public List node_urls = new List { "localhost:6667" }; + public List node_urls = new(); public int fetch_size = 500; public int processed_size = 4; public bool debug = false; @@ -38,6 +38,7 @@ public partial class SessionPoolTest public SessionPoolTest(string _host = "localhost") { host = _host; + node_urls.Add(host + ":" + port); } public async Task Test() From a6859d3053f8750bb24b3c17c38ff77807d64d24 Mon Sep 17 00:00:00 2001 From: luzhan <513964121@qq.com> Date: Sun, 7 Jul 2024 22:59:31 +0800 Subject: [PATCH 09/15] doc:add CI status and notes --- README.md | 7 +++++-- README_ZH.md | 8 +++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b134037..454db4d 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,8 @@ # Apache IoTDB Client for C# +[![E2E Tests](https://github.com/apache/iotdb-client-csharp/actions/workflows/e2e.yml/badge.svg)](https://github.com/apache/iotdb-client-csharp/actions/workflows/e2e.yml) +[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html) ## Overview This is the C# client of Apache IoTDB. @@ -41,7 +43,8 @@ We have prepared Nuget Package for C# users. Users can directly install the clie dotnet add package Apache.IoTDB ``` -Note that the `Apache.IoTDB` package only supports versions greater than `.net framework 4.6.1`. +> [!NOTE] +> The `Apache.IoTDB` package only supports versions greater than `.net framework 4.6.1`. ## Prerequisites @@ -65,7 +68,7 @@ NLog >= 4.7.9 ### OS -* Linux, Macos or other unix-like OS +* Linux, MacOS or other unix-like OS * Windows+bash(WSL, cygwin, Git Bash) ### Command Line Tools diff --git a/README_ZH.md b/README_ZH.md index 7a8216e..71fc56e 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -21,7 +21,8 @@ [English](./README.md) | [中文](./README_ZH.md) # Apache IoTDB C#语言客户端 - +[![E2E Tests](https://github.com/apache/iotdb-client-csharp/actions/workflows/e2e.yml/badge.svg)](https://github.com/apache/iotdb-client-csharp/actions/workflows/e2e.yml) +[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html) ## 概览 本仓库是Apache IoTDB的C#语言客户端,与其他语言支持相同语义的用户接口。 @@ -38,8 +39,9 @@ Apache IoTDB Github: https://github.com/apache/iotdb ```sh dotnet add package Apache.IoTDB ``` +> [!NOTE] +> 请注意,`Apache.IoTDB`这个包仅支持大于`.net framework 4.6.1`的版本。 -请注意,`Apache.IoTDB`这个包仅支持大于`.net framework 4.6.1`的版本。 ## 环境准备 .NET SDK Version >= 5.0 @@ -62,7 +64,7 @@ NLog >= 4.7.9 ### 操作系统 -* Linux、Macos或其他类unix系统 +* Linux、MacOS或其他类unix系统 * Windows+bash(WSL、cygwin、Git Bash) ### 命令行工具 From 8201c0809b1f402117b28a2473f4c4d4691754b4 Mon Sep 17 00:00:00 2001 From: luzhan <513964121@qq.com> Date: Sun, 7 Jul 2024 23:16:02 +0800 Subject: [PATCH 10/15] fix:change TException to Exception --- samples/Apache.IoTDB.Samples/SessionPoolTest.cs | 17 +++++++++++++++++ src/Apache.IoTDB/SessionPool.cs | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.cs index 0883496..cfdc9be 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.cs @@ -45,6 +45,8 @@ public async Task Test() { await TestOpenWithNodeUrls(); + await TestOpenWith2NodeUrls(); + await TestOpenWithNodeUrlsAndInsertOneRecord(); await TestInsertOneRecord(); @@ -128,6 +130,21 @@ public async Task TestOpenWithNodeUrls() await session_pool.Close(); Console.WriteLine("TestOpenWithNodeUrls Passed!"); } + public async Task TestOpenWith2NodeUrls() + { + var session_pool = new SessionPool(new List() { host + ":" + port, host + ":" + (port + 1) }, 8); + await session_pool.Open(false); + Debug.Assert(session_pool.IsOpen()); + if (debug) session_pool.OpenDebugMode(); + await session_pool.Close(); + + session_pool = new SessionPool(new List() { host + ":" + (port + 1), host + ":" + port }, 8); + await session_pool.Open(false); + Debug.Assert(session_pool.IsOpen()); + if (debug) session_pool.OpenDebugMode(); + await session_pool.Close(); + Console.WriteLine("TestOpenWith2NodeUrls Passed!"); + } public async Task TestOpenWithNodeUrlsAndInsertOneRecord() { var session_pool = new SessionPool(node_urls, 8); diff --git a/src/Apache.IoTDB/SessionPool.cs b/src/Apache.IoTDB/SessionPool.cs index e079a82..44c3d7b 100644 --- a/src/Apache.IoTDB/SessionPool.cs +++ b/src/Apache.IoTDB/SessionPool.cs @@ -195,7 +195,7 @@ public async Task Open(CancellationToken cancellationToken = default) } break; } - catch (TException e) + catch (Exception e) // CreateAndOpen will not throw TException { #if NET461_OR_GREATER || NETSTANDARD2_0 #else From a04926b77c27557dfbab24d489b164bd7244eeef Mon Sep 17 00:00:00 2001 From: luzhan <513964121@qq.com> Date: Mon, 8 Jul 2024 21:48:46 +0800 Subject: [PATCH 11/15] fix: update the automatically generated code's thrift compiler version to 0.14.1 --- .../Rpc/Generated/IClientRPCService.cs | 29406 ++++++++-------- .../Rpc/Generated/ServerProperties.cs | 202 +- .../Rpc/Generated/TAggregationType.cs | 5 +- .../Rpc/Generated/TConfigNodeLocation.cs | 87 +- .../Rpc/Generated/TConsensusGroupId.cs | 30 +- .../Rpc/Generated/TConsensusGroupType.cs | 5 +- ...TCreateTimeseriesUsingSchemaTemplateReq.cs | 74 +- .../Rpc/Generated/TDataNodeConfiguration.cs | 84 +- .../Rpc/Generated/TDataNodeLocation.cs | 180 +- src/Apache.IoTDB/Rpc/Generated/TEndPoint.cs | 56 +- src/Apache.IoTDB/Rpc/Generated/TFile.cs | 84 +- src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs | 104 +- src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs | 76 +- src/Apache.IoTDB/Rpc/Generated/TLicense.cs | 46 +- .../Rpc/Generated/TNodeLocations.cs | 96 +- .../Rpc/Generated/TNodeResource.cs | 28 +- .../Rpc/Generated/TPipeSubscribeReq.cs | 43 +- .../Rpc/Generated/TPipeSubscribeResp.cs | 90 +- .../Rpc/Generated/TPipeTransferReq.cs | 59 +- .../Rpc/Generated/TPipeTransferResp.cs | 68 +- .../Generated/TRegionMaintainTaskStatus.cs | 5 +- .../Rpc/Generated/TRegionMigrateFailedType.cs | 5 +- .../Rpc/Generated/TRegionReplicaSet.cs | 104 +- .../Rpc/Generated/TSAggregationQueryReq.cs | 217 +- .../Generated/TSAppendSchemaTemplateReq.cs | 255 +- .../Generated/TSBackupConfigurationResp.cs | 94 +- .../Rpc/Generated/TSCancelOperationReq.cs | 28 +- .../Rpc/Generated/TSCloseOperationReq.cs | 51 +- .../Rpc/Generated/TSCloseSessionReq.cs | 25 +- .../Rpc/Generated/TSConnectionInfo.cs | 92 +- .../Rpc/Generated/TSConnectionInfoResp.cs | 73 +- .../Rpc/Generated/TSConnectionType.cs | 5 +- .../Generated/TSCreateAlignedTimeseriesReq.cs | 385 +- .../Generated/TSCreateMultiTimeseriesReq.cs | 405 +- .../Generated/TSCreateSchemaTemplateReq.cs | 87 +- .../Rpc/Generated/TSCreateTimeseriesReq.cs | 191 +- .../Rpc/Generated/TSDeleteDataReq.cs | 80 +- .../Rpc/Generated/TSDropSchemaTemplateReq.cs | 56 +- .../Generated/TSExecuteBatchStatementReq.cs | 74 +- .../Rpc/Generated/TSExecuteStatementReq.cs | 111 +- .../Rpc/Generated/TSExecuteStatementResp.cs | 344 +- .../TSFastLastDataQueryForOneDeviceReq.cs | 204 +- .../Rpc/Generated/TSFetchMetadataReq.cs | 71 +- .../Rpc/Generated/TSFetchMetadataResp.cs | 114 +- .../Rpc/Generated/TSFetchResultsReq.cs | 78 +- .../Rpc/Generated/TSFetchResultsResp.cs | 133 +- .../Rpc/Generated/TSGetOperationStatusReq.cs | 28 +- .../Rpc/Generated/TSGetTimeZoneResp.cs | 84 +- .../Generated/TSGroupByQueryIntervalReq.cs | 178 +- .../Rpc/Generated/TSInsertRecordReq.cs | 152 +- .../TSInsertRecordsOfOneDeviceReq.cs | 232 +- .../Rpc/Generated/TSInsertRecordsReq.cs | 250 +- .../Rpc/Generated/TSInsertStringRecordReq.cs | 183 +- .../TSInsertStringRecordsOfOneDeviceReq.cs | 248 +- .../Rpc/Generated/TSInsertStringRecordsReq.cs | 266 +- .../Rpc/Generated/TSInsertTabletReq.cs | 232 +- .../Rpc/Generated/TSInsertTabletsReq.cs | 364 +- .../Rpc/Generated/TSLastDataQueryReq.cs | 145 +- .../Rpc/Generated/TSOpenSessionReq.cs | 141 +- .../Rpc/Generated/TSOpenSessionResp.cs | 108 +- .../Rpc/Generated/TSProtocolVersion.cs | 5 +- .../Rpc/Generated/TSPruneSchemaTemplateReq.cs | 87 +- .../Rpc/Generated/TSQueryDataSet.cs | 151 +- .../Rpc/Generated/TSQueryNonAlignDataSet.cs | 120 +- .../Rpc/Generated/TSQueryTemplateReq.cs | 74 +- .../Rpc/Generated/TSQueryTemplateResp.cs | 113 +- .../Rpc/Generated/TSRawDataQueryReq.cs | 148 +- .../Rpc/Generated/TSSetSchemaTemplateReq.cs | 87 +- .../Rpc/Generated/TSSetTimeZoneReq.cs | 56 +- src/Apache.IoTDB/Rpc/Generated/TSStatus.cs | 101 +- .../Rpc/Generated/TSTracingInfo.cs | 237 +- .../Rpc/Generated/TSUnsetSchemaTemplateReq.cs | 87 +- src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs | 56 +- src/Apache.IoTDB/Rpc/Generated/TSender.cs | 60 +- .../Rpc/Generated/TSeriesPartitionSlot.cs | 25 +- .../Rpc/Generated/TServiceProvider.cs | 58 +- .../Rpc/Generated/TServiceType.cs | 5 +- .../Rpc/Generated/TSetConfigurationReq.cs | 80 +- .../Rpc/Generated/TSetSpaceQuotaReq.cs | 102 +- src/Apache.IoTDB/Rpc/Generated/TSetTTLReq.cs | 77 +- .../Rpc/Generated/TSetThrottleQuotaReq.cs | 84 +- src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs | 71 +- .../Rpc/Generated/TShowConfigurationResp.cs | 84 +- .../TShowConfigurationTemplateResp.cs | 84 +- src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs | 71 +- src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs | 72 +- .../Rpc/Generated/TSyncIdentityInfo.cs | 118 +- .../Rpc/Generated/TSyncTransportMetaInfo.cs | 56 +- .../Rpc/Generated/TTestConnectionResp.cs | 104 +- .../Rpc/Generated/TTestConnectionResult.cs | 102 +- .../Rpc/Generated/TThrottleQuota.cs | 98 +- .../Rpc/Generated/TTimePartitionSlot.cs | 25 +- src/Apache.IoTDB/Rpc/Generated/TTimedQuota.cs | 28 +- .../Rpc/Generated/ThrottleType.cs | 5 +- .../Rpc/Generated/client.Extensions.cs | 376 + .../Rpc/Generated/common.Extensions.cs | 241 + 96 files changed, 23004 insertions(+), 17065 deletions(-) create mode 100644 src/Apache.IoTDB/Rpc/Generated/client.Extensions.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/common.Extensions.cs diff --git a/src/Apache.IoTDB/Rpc/Generated/IClientRPCService.cs b/src/Apache.IoTDB/Rpc/Generated/IClientRPCService.cs index 33235c7..d2771fc 100644 --- a/src/Apache.IoTDB/Rpc/Generated/IClientRPCService.cs +++ b/src/Apache.IoTDB/Rpc/Generated/IClientRPCService.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,144 +25,147 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class IClientRPCService { public interface IAsync { - Task executeQueryStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task executeQueryStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default); - Task executeUpdateStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task executeUpdateStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default); - Task executeStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task executeStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default); - Task executeRawDataQueryV2Async(TSRawDataQueryReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task executeRawDataQueryV2Async(TSRawDataQueryReq req, CancellationToken cancellationToken = default); - Task executeLastDataQueryV2Async(TSLastDataQueryReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task executeLastDataQueryV2Async(TSLastDataQueryReq req, CancellationToken cancellationToken = default); - Task executeFastLastDataQueryForOneDeviceV2Async(TSFastLastDataQueryForOneDeviceReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task executeFastLastDataQueryForOneDeviceV2Async(TSFastLastDataQueryForOneDeviceReq req, CancellationToken cancellationToken = default); - Task executeAggregationQueryV2Async(TSAggregationQueryReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task executeAggregationQueryV2Async(TSAggregationQueryReq req, CancellationToken cancellationToken = default); - Task executeGroupByQueryIntervalQueryAsync(TSGroupByQueryIntervalReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task executeGroupByQueryIntervalQueryAsync(TSGroupByQueryIntervalReq req, CancellationToken cancellationToken = default); - Task fetchResultsV2Async(TSFetchResultsReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task fetchResultsV2Async(TSFetchResultsReq req, CancellationToken cancellationToken = default); - Task openSessionAsync(TSOpenSessionReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task openSessionAsync(TSOpenSessionReq req, CancellationToken cancellationToken = default); - Task closeSessionAsync(TSCloseSessionReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task closeSessionAsync(TSCloseSessionReq req, CancellationToken cancellationToken = default); - Task executeStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task executeStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default); - Task executeBatchStatementAsync(TSExecuteBatchStatementReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task executeBatchStatementAsync(TSExecuteBatchStatementReq req, CancellationToken cancellationToken = default); - Task executeQueryStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task executeQueryStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default); - Task executeUpdateStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task executeUpdateStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default); - Task fetchResultsAsync(TSFetchResultsReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task fetchResultsAsync(TSFetchResultsReq req, CancellationToken cancellationToken = default); - Task fetchMetadataAsync(TSFetchMetadataReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task fetchMetadataAsync(TSFetchMetadataReq req, CancellationToken cancellationToken = default); - Task cancelOperationAsync(TSCancelOperationReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task cancelOperationAsync(TSCancelOperationReq req, CancellationToken cancellationToken = default); - Task closeOperationAsync(TSCloseOperationReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task closeOperationAsync(TSCloseOperationReq req, CancellationToken cancellationToken = default); - Task getTimeZoneAsync(long sessionId, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task getTimeZoneAsync(long sessionId, CancellationToken cancellationToken = default); - Task setTimeZoneAsync(TSSetTimeZoneReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task setTimeZoneAsync(TSSetTimeZoneReq req, CancellationToken cancellationToken = default); - Task getPropertiesAsync(CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task getPropertiesAsync(CancellationToken cancellationToken = default); - Task setStorageGroupAsync(long sessionId, string storageGroup, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task setStorageGroupAsync(long sessionId, string storageGroup, CancellationToken cancellationToken = default); - Task createTimeseriesAsync(TSCreateTimeseriesReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task createTimeseriesAsync(TSCreateTimeseriesReq req, CancellationToken cancellationToken = default); - Task createAlignedTimeseriesAsync(TSCreateAlignedTimeseriesReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task createAlignedTimeseriesAsync(TSCreateAlignedTimeseriesReq req, CancellationToken cancellationToken = default); - Task createMultiTimeseriesAsync(TSCreateMultiTimeseriesReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task createMultiTimeseriesAsync(TSCreateMultiTimeseriesReq req, CancellationToken cancellationToken = default); - Task deleteTimeseriesAsync(long sessionId, List path, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task deleteTimeseriesAsync(long sessionId, List path, CancellationToken cancellationToken = default); - Task deleteStorageGroupsAsync(long sessionId, List storageGroup, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task deleteStorageGroupsAsync(long sessionId, List storageGroup, CancellationToken cancellationToken = default); - Task insertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task insertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default); - Task insertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task insertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default); - Task insertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task insertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default); - Task insertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task insertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default); - Task insertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task insertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default); - Task insertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task insertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default); - Task insertStringRecordsOfOneDeviceAsync(TSInsertStringRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task insertStringRecordsOfOneDeviceAsync(TSInsertStringRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default); - Task insertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task insertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default); - Task testInsertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task testInsertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default); - Task testInsertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task testInsertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default); - Task testInsertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task testInsertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default); - Task testInsertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task testInsertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default); - Task testInsertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task testInsertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default); - Task testInsertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task testInsertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default); - Task testInsertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task testInsertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default); - Task deleteDataAsync(TSDeleteDataReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task deleteDataAsync(TSDeleteDataReq req, CancellationToken cancellationToken = default); - Task executeRawDataQueryAsync(TSRawDataQueryReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task executeRawDataQueryAsync(TSRawDataQueryReq req, CancellationToken cancellationToken = default); - Task executeLastDataQueryAsync(TSLastDataQueryReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task executeLastDataQueryAsync(TSLastDataQueryReq req, CancellationToken cancellationToken = default); - Task executeAggregationQueryAsync(TSAggregationQueryReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task executeAggregationQueryAsync(TSAggregationQueryReq req, CancellationToken cancellationToken = default); - Task requestStatementIdAsync(long sessionId, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task requestStatementIdAsync(long sessionId, CancellationToken cancellationToken = default); - Task createSchemaTemplateAsync(TSCreateSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task createSchemaTemplateAsync(TSCreateSchemaTemplateReq req, CancellationToken cancellationToken = default); - Task appendSchemaTemplateAsync(TSAppendSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task appendSchemaTemplateAsync(TSAppendSchemaTemplateReq req, CancellationToken cancellationToken = default); - Task pruneSchemaTemplateAsync(TSPruneSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task pruneSchemaTemplateAsync(TSPruneSchemaTemplateReq req, CancellationToken cancellationToken = default); - Task querySchemaTemplateAsync(TSQueryTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task querySchemaTemplateAsync(TSQueryTemplateReq req, CancellationToken cancellationToken = default); - Task showConfigurationTemplateAsync(CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task showConfigurationTemplateAsync(CancellationToken cancellationToken = default); - Task showConfigurationAsync(int nodeId, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task showConfigurationAsync(int nodeId, CancellationToken cancellationToken = default); - Task setSchemaTemplateAsync(TSSetSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task setSchemaTemplateAsync(TSSetSchemaTemplateReq req, CancellationToken cancellationToken = default); - Task unsetSchemaTemplateAsync(TSUnsetSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task unsetSchemaTemplateAsync(TSUnsetSchemaTemplateReq req, CancellationToken cancellationToken = default); - Task dropSchemaTemplateAsync(TSDropSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task dropSchemaTemplateAsync(TSDropSchemaTemplateReq req, CancellationToken cancellationToken = default); - Task createTimeseriesUsingSchemaTemplateAsync(TCreateTimeseriesUsingSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task createTimeseriesUsingSchemaTemplateAsync(TCreateTimeseriesUsingSchemaTemplateReq req, CancellationToken cancellationToken = default); - Task handshakeAsync(TSyncIdentityInfo info, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task handshakeAsync(TSyncIdentityInfo info, CancellationToken cancellationToken = default); - Task sendPipeDataAsync(byte[] buff, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task sendPipeDataAsync(byte[] buff, CancellationToken cancellationToken = default); - Task sendFileAsync(TSyncTransportMetaInfo metaInfo, byte[] buff, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task sendFileAsync(TSyncTransportMetaInfo metaInfo, byte[] buff, CancellationToken cancellationToken = default); - Task pipeTransferAsync(TPipeTransferReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task pipeTransferAsync(TPipeTransferReq req, CancellationToken cancellationToken = default); - Task pipeSubscribeAsync(TPipeSubscribeReq req, CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task pipeSubscribeAsync(TPipeSubscribeReq req, CancellationToken cancellationToken = default); - Task getBackupConfigurationAsync(CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task getBackupConfigurationAsync(CancellationToken cancellationToken = default); - Task fetchAllConnectionsInfoAsync(CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task fetchAllConnectionsInfoAsync(CancellationToken cancellationToken = default); /// /// For other node's call /// - Task testConnectionEmptyRPCAsync(CancellationToken cancellationToken = default(CancellationToken)); + global::System.Threading.Tasks.Task testConnectionEmptyRPCAsync(CancellationToken cancellationToken = default); } @@ -173,12 +178,13 @@ public Client(TProtocol protocol) : this(protocol, protocol) public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputProtocol, outputProtocol) { } - public async Task executeQueryStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task executeQueryStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeQueryStatementV2", TMessageType.Call, SeqId), cancellationToken); - var args = new executeQueryStatementV2Args(); - args.Req = req; + var args = new InternalStructs.executeQueryStatementV2Args() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -192,7 +198,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new executeQueryStatementV2Result(); + var result = new InternalStructs.executeQueryStatementV2Result(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -202,12 +208,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeQueryStatementV2 failed: unknown result"); } - public async Task executeUpdateStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task executeUpdateStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeUpdateStatementV2", TMessageType.Call, SeqId), cancellationToken); - var args = new executeUpdateStatementV2Args(); - args.Req = req; + var args = new InternalStructs.executeUpdateStatementV2Args() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -221,7 +228,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new executeUpdateStatementV2Result(); + var result = new InternalStructs.executeUpdateStatementV2Result(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -231,12 +238,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeUpdateStatementV2 failed: unknown result"); } - public async Task executeStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task executeStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeStatementV2", TMessageType.Call, SeqId), cancellationToken); - var args = new executeStatementV2Args(); - args.Req = req; + var args = new InternalStructs.executeStatementV2Args() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -250,7 +258,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new executeStatementV2Result(); + var result = new InternalStructs.executeStatementV2Result(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -260,12 +268,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeStatementV2 failed: unknown result"); } - public async Task executeRawDataQueryV2Async(TSRawDataQueryReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task executeRawDataQueryV2Async(TSRawDataQueryReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeRawDataQueryV2", TMessageType.Call, SeqId), cancellationToken); - var args = new executeRawDataQueryV2Args(); - args.Req = req; + var args = new InternalStructs.executeRawDataQueryV2Args() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -279,7 +288,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new executeRawDataQueryV2Result(); + var result = new InternalStructs.executeRawDataQueryV2Result(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -289,12 +298,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeRawDataQueryV2 failed: unknown result"); } - public async Task executeLastDataQueryV2Async(TSLastDataQueryReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task executeLastDataQueryV2Async(TSLastDataQueryReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeLastDataQueryV2", TMessageType.Call, SeqId), cancellationToken); - var args = new executeLastDataQueryV2Args(); - args.Req = req; + var args = new InternalStructs.executeLastDataQueryV2Args() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -308,7 +318,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new executeLastDataQueryV2Result(); + var result = new InternalStructs.executeLastDataQueryV2Result(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -318,12 +328,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeLastDataQueryV2 failed: unknown result"); } - public async Task executeFastLastDataQueryForOneDeviceV2Async(TSFastLastDataQueryForOneDeviceReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task executeFastLastDataQueryForOneDeviceV2Async(TSFastLastDataQueryForOneDeviceReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeFastLastDataQueryForOneDeviceV2", TMessageType.Call, SeqId), cancellationToken); - var args = new executeFastLastDataQueryForOneDeviceV2Args(); - args.Req = req; + var args = new InternalStructs.executeFastLastDataQueryForOneDeviceV2Args() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -337,7 +348,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new executeFastLastDataQueryForOneDeviceV2Result(); + var result = new InternalStructs.executeFastLastDataQueryForOneDeviceV2Result(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -347,12 +358,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeFastLastDataQueryForOneDeviceV2 failed: unknown result"); } - public async Task executeAggregationQueryV2Async(TSAggregationQueryReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task executeAggregationQueryV2Async(TSAggregationQueryReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeAggregationQueryV2", TMessageType.Call, SeqId), cancellationToken); - var args = new executeAggregationQueryV2Args(); - args.Req = req; + var args = new InternalStructs.executeAggregationQueryV2Args() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -366,7 +378,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new executeAggregationQueryV2Result(); + var result = new InternalStructs.executeAggregationQueryV2Result(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -376,12 +388,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeAggregationQueryV2 failed: unknown result"); } - public async Task executeGroupByQueryIntervalQueryAsync(TSGroupByQueryIntervalReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task executeGroupByQueryIntervalQueryAsync(TSGroupByQueryIntervalReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeGroupByQueryIntervalQuery", TMessageType.Call, SeqId), cancellationToken); - var args = new executeGroupByQueryIntervalQueryArgs(); - args.Req = req; + var args = new InternalStructs.executeGroupByQueryIntervalQueryArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -395,7 +408,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new executeGroupByQueryIntervalQueryResult(); + var result = new InternalStructs.executeGroupByQueryIntervalQueryResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -405,12 +418,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeGroupByQueryIntervalQuery failed: unknown result"); } - public async Task fetchResultsV2Async(TSFetchResultsReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task fetchResultsV2Async(TSFetchResultsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("fetchResultsV2", TMessageType.Call, SeqId), cancellationToken); - var args = new fetchResultsV2Args(); - args.Req = req; + var args = new InternalStructs.fetchResultsV2Args() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -424,7 +438,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new fetchResultsV2Result(); + var result = new InternalStructs.fetchResultsV2Result(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -434,12 +448,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "fetchResultsV2 failed: unknown result"); } - public async Task openSessionAsync(TSOpenSessionReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task openSessionAsync(TSOpenSessionReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("openSession", TMessageType.Call, SeqId), cancellationToken); - var args = new openSessionArgs(); - args.Req = req; + var args = new InternalStructs.openSessionArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -453,7 +468,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new openSessionResult(); + var result = new InternalStructs.openSessionResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -463,12 +478,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "openSession failed: unknown result"); } - public async Task closeSessionAsync(TSCloseSessionReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task closeSessionAsync(TSCloseSessionReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("closeSession", TMessageType.Call, SeqId), cancellationToken); - var args = new closeSessionArgs(); - args.Req = req; + var args = new InternalStructs.closeSessionArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -482,7 +498,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new closeSessionResult(); + var result = new InternalStructs.closeSessionResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -492,12 +508,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "closeSession failed: unknown result"); } - public async Task executeStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task executeStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeStatement", TMessageType.Call, SeqId), cancellationToken); - var args = new executeStatementArgs(); - args.Req = req; + var args = new InternalStructs.executeStatementArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -511,7 +528,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new executeStatementResult(); + var result = new InternalStructs.executeStatementResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -521,12 +538,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeStatement failed: unknown result"); } - public async Task executeBatchStatementAsync(TSExecuteBatchStatementReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task executeBatchStatementAsync(TSExecuteBatchStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeBatchStatement", TMessageType.Call, SeqId), cancellationToken); - var args = new executeBatchStatementArgs(); - args.Req = req; + var args = new InternalStructs.executeBatchStatementArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -540,7 +558,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new executeBatchStatementResult(); + var result = new InternalStructs.executeBatchStatementResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -550,12 +568,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeBatchStatement failed: unknown result"); } - public async Task executeQueryStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task executeQueryStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeQueryStatement", TMessageType.Call, SeqId), cancellationToken); - var args = new executeQueryStatementArgs(); - args.Req = req; + var args = new InternalStructs.executeQueryStatementArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -569,7 +588,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new executeQueryStatementResult(); + var result = new InternalStructs.executeQueryStatementResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -579,12 +598,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeQueryStatement failed: unknown result"); } - public async Task executeUpdateStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task executeUpdateStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeUpdateStatement", TMessageType.Call, SeqId), cancellationToken); - var args = new executeUpdateStatementArgs(); - args.Req = req; + var args = new InternalStructs.executeUpdateStatementArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -598,7 +618,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new executeUpdateStatementResult(); + var result = new InternalStructs.executeUpdateStatementResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -608,12 +628,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeUpdateStatement failed: unknown result"); } - public async Task fetchResultsAsync(TSFetchResultsReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task fetchResultsAsync(TSFetchResultsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("fetchResults", TMessageType.Call, SeqId), cancellationToken); - var args = new fetchResultsArgs(); - args.Req = req; + var args = new InternalStructs.fetchResultsArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -627,7 +648,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new fetchResultsResult(); + var result = new InternalStructs.fetchResultsResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -637,12 +658,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "fetchResults failed: unknown result"); } - public async Task fetchMetadataAsync(TSFetchMetadataReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task fetchMetadataAsync(TSFetchMetadataReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("fetchMetadata", TMessageType.Call, SeqId), cancellationToken); - var args = new fetchMetadataArgs(); - args.Req = req; + var args = new InternalStructs.fetchMetadataArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -656,7 +678,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new fetchMetadataResult(); + var result = new InternalStructs.fetchMetadataResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -666,12 +688,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "fetchMetadata failed: unknown result"); } - public async Task cancelOperationAsync(TSCancelOperationReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task cancelOperationAsync(TSCancelOperationReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("cancelOperation", TMessageType.Call, SeqId), cancellationToken); - var args = new cancelOperationArgs(); - args.Req = req; + var args = new InternalStructs.cancelOperationArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -685,7 +708,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new cancelOperationResult(); + var result = new InternalStructs.cancelOperationResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -695,12 +718,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "cancelOperation failed: unknown result"); } - public async Task closeOperationAsync(TSCloseOperationReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task closeOperationAsync(TSCloseOperationReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("closeOperation", TMessageType.Call, SeqId), cancellationToken); - var args = new closeOperationArgs(); - args.Req = req; + var args = new InternalStructs.closeOperationArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -714,7 +738,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new closeOperationResult(); + var result = new InternalStructs.closeOperationResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -724,12 +748,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "closeOperation failed: unknown result"); } - public async Task getTimeZoneAsync(long sessionId, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task getTimeZoneAsync(long sessionId, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("getTimeZone", TMessageType.Call, SeqId), cancellationToken); - var args = new getTimeZoneArgs(); - args.SessionId = sessionId; + var args = new InternalStructs.getTimeZoneArgs() { + SessionId = sessionId, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -743,7 +768,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new getTimeZoneResult(); + var result = new InternalStructs.getTimeZoneResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -753,12 +778,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getTimeZone failed: unknown result"); } - public async Task setTimeZoneAsync(TSSetTimeZoneReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task setTimeZoneAsync(TSSetTimeZoneReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("setTimeZone", TMessageType.Call, SeqId), cancellationToken); - var args = new setTimeZoneArgs(); - args.Req = req; + var args = new InternalStructs.setTimeZoneArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -772,7 +798,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new setTimeZoneResult(); + var result = new InternalStructs.setTimeZoneResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -782,11 +808,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "setTimeZone failed: unknown result"); } - public async Task getPropertiesAsync(CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task getPropertiesAsync(CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("getProperties", TMessageType.Call, SeqId), cancellationToken); - var args = new getPropertiesArgs(); + var args = new InternalStructs.getPropertiesArgs() { + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -800,7 +827,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new getPropertiesResult(); + var result = new InternalStructs.getPropertiesResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -810,13 +837,14 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getProperties failed: unknown result"); } - public async Task setStorageGroupAsync(long sessionId, string storageGroup, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task setStorageGroupAsync(long sessionId, string storageGroup, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("setStorageGroup", TMessageType.Call, SeqId), cancellationToken); - var args = new setStorageGroupArgs(); - args.SessionId = sessionId; - args.StorageGroup = storageGroup; + var args = new InternalStructs.setStorageGroupArgs() { + SessionId = sessionId, + StorageGroup = storageGroup, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -830,7 +858,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new setStorageGroupResult(); + var result = new InternalStructs.setStorageGroupResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -840,12 +868,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "setStorageGroup failed: unknown result"); } - public async Task createTimeseriesAsync(TSCreateTimeseriesReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task createTimeseriesAsync(TSCreateTimeseriesReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("createTimeseries", TMessageType.Call, SeqId), cancellationToken); - var args = new createTimeseriesArgs(); - args.Req = req; + var args = new InternalStructs.createTimeseriesArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -859,7 +888,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new createTimeseriesResult(); + var result = new InternalStructs.createTimeseriesResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -869,12 +898,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "createTimeseries failed: unknown result"); } - public async Task createAlignedTimeseriesAsync(TSCreateAlignedTimeseriesReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task createAlignedTimeseriesAsync(TSCreateAlignedTimeseriesReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("createAlignedTimeseries", TMessageType.Call, SeqId), cancellationToken); - var args = new createAlignedTimeseriesArgs(); - args.Req = req; + var args = new InternalStructs.createAlignedTimeseriesArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -888,7 +918,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new createAlignedTimeseriesResult(); + var result = new InternalStructs.createAlignedTimeseriesResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -898,12 +928,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "createAlignedTimeseries failed: unknown result"); } - public async Task createMultiTimeseriesAsync(TSCreateMultiTimeseriesReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task createMultiTimeseriesAsync(TSCreateMultiTimeseriesReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("createMultiTimeseries", TMessageType.Call, SeqId), cancellationToken); - var args = new createMultiTimeseriesArgs(); - args.Req = req; + var args = new InternalStructs.createMultiTimeseriesArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -917,7 +948,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new createMultiTimeseriesResult(); + var result = new InternalStructs.createMultiTimeseriesResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -927,13 +958,14 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "createMultiTimeseries failed: unknown result"); } - public async Task deleteTimeseriesAsync(long sessionId, List path, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task deleteTimeseriesAsync(long sessionId, List path, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("deleteTimeseries", TMessageType.Call, SeqId), cancellationToken); - var args = new deleteTimeseriesArgs(); - args.SessionId = sessionId; - args.Path = path; + var args = new InternalStructs.deleteTimeseriesArgs() { + SessionId = sessionId, + Path = path, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -947,7 +979,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new deleteTimeseriesResult(); + var result = new InternalStructs.deleteTimeseriesResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -957,13 +989,14 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "deleteTimeseries failed: unknown result"); } - public async Task deleteStorageGroupsAsync(long sessionId, List storageGroup, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task deleteStorageGroupsAsync(long sessionId, List storageGroup, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("deleteStorageGroups", TMessageType.Call, SeqId), cancellationToken); - var args = new deleteStorageGroupsArgs(); - args.SessionId = sessionId; - args.StorageGroup = storageGroup; + var args = new InternalStructs.deleteStorageGroupsArgs() { + SessionId = sessionId, + StorageGroup = storageGroup, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -977,7 +1010,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new deleteStorageGroupsResult(); + var result = new InternalStructs.deleteStorageGroupsResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -987,12 +1020,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "deleteStorageGroups failed: unknown result"); } - public async Task insertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task insertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertRecord", TMessageType.Call, SeqId), cancellationToken); - var args = new insertRecordArgs(); - args.Req = req; + var args = new InternalStructs.insertRecordArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1006,7 +1040,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new insertRecordResult(); + var result = new InternalStructs.insertRecordResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1016,12 +1050,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertRecord failed: unknown result"); } - public async Task insertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task insertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertStringRecord", TMessageType.Call, SeqId), cancellationToken); - var args = new insertStringRecordArgs(); - args.Req = req; + var args = new InternalStructs.insertStringRecordArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1035,7 +1070,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new insertStringRecordResult(); + var result = new InternalStructs.insertStringRecordResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1045,12 +1080,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertStringRecord failed: unknown result"); } - public async Task insertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task insertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertTablet", TMessageType.Call, SeqId), cancellationToken); - var args = new insertTabletArgs(); - args.Req = req; + var args = new InternalStructs.insertTabletArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1064,7 +1100,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new insertTabletResult(); + var result = new InternalStructs.insertTabletResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1074,12 +1110,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertTablet failed: unknown result"); } - public async Task insertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task insertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertTablets", TMessageType.Call, SeqId), cancellationToken); - var args = new insertTabletsArgs(); - args.Req = req; + var args = new InternalStructs.insertTabletsArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1093,7 +1130,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new insertTabletsResult(); + var result = new InternalStructs.insertTabletsResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1103,12 +1140,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertTablets failed: unknown result"); } - public async Task insertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task insertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertRecords", TMessageType.Call, SeqId), cancellationToken); - var args = new insertRecordsArgs(); - args.Req = req; + var args = new InternalStructs.insertRecordsArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1122,7 +1160,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new insertRecordsResult(); + var result = new InternalStructs.insertRecordsResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1132,12 +1170,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertRecords failed: unknown result"); } - public async Task insertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task insertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertRecordsOfOneDevice", TMessageType.Call, SeqId), cancellationToken); - var args = new insertRecordsOfOneDeviceArgs(); - args.Req = req; + var args = new InternalStructs.insertRecordsOfOneDeviceArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1151,7 +1190,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new insertRecordsOfOneDeviceResult(); + var result = new InternalStructs.insertRecordsOfOneDeviceResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1161,12 +1200,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertRecordsOfOneDevice failed: unknown result"); } - public async Task insertStringRecordsOfOneDeviceAsync(TSInsertStringRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task insertStringRecordsOfOneDeviceAsync(TSInsertStringRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertStringRecordsOfOneDevice", TMessageType.Call, SeqId), cancellationToken); - var args = new insertStringRecordsOfOneDeviceArgs(); - args.Req = req; + var args = new InternalStructs.insertStringRecordsOfOneDeviceArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1180,7 +1220,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new insertStringRecordsOfOneDeviceResult(); + var result = new InternalStructs.insertStringRecordsOfOneDeviceResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1190,12 +1230,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertStringRecordsOfOneDevice failed: unknown result"); } - public async Task insertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task insertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertStringRecords", TMessageType.Call, SeqId), cancellationToken); - var args = new insertStringRecordsArgs(); - args.Req = req; + var args = new InternalStructs.insertStringRecordsArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1209,7 +1250,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new insertStringRecordsResult(); + var result = new InternalStructs.insertStringRecordsResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1219,12 +1260,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertStringRecords failed: unknown result"); } - public async Task testInsertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task testInsertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertTablet", TMessageType.Call, SeqId), cancellationToken); - var args = new testInsertTabletArgs(); - args.Req = req; + var args = new InternalStructs.testInsertTabletArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1238,7 +1280,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new testInsertTabletResult(); + var result = new InternalStructs.testInsertTabletResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1248,12 +1290,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertTablet failed: unknown result"); } - public async Task testInsertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task testInsertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertTablets", TMessageType.Call, SeqId), cancellationToken); - var args = new testInsertTabletsArgs(); - args.Req = req; + var args = new InternalStructs.testInsertTabletsArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1267,7 +1310,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new testInsertTabletsResult(); + var result = new InternalStructs.testInsertTabletsResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1277,12 +1320,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertTablets failed: unknown result"); } - public async Task testInsertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task testInsertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertRecord", TMessageType.Call, SeqId), cancellationToken); - var args = new testInsertRecordArgs(); - args.Req = req; + var args = new InternalStructs.testInsertRecordArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1296,7 +1340,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new testInsertRecordResult(); + var result = new InternalStructs.testInsertRecordResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1306,12 +1350,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertRecord failed: unknown result"); } - public async Task testInsertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task testInsertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertStringRecord", TMessageType.Call, SeqId), cancellationToken); - var args = new testInsertStringRecordArgs(); - args.Req = req; + var args = new InternalStructs.testInsertStringRecordArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1325,7 +1370,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new testInsertStringRecordResult(); + var result = new InternalStructs.testInsertStringRecordResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1335,12 +1380,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertStringRecord failed: unknown result"); } - public async Task testInsertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task testInsertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertRecords", TMessageType.Call, SeqId), cancellationToken); - var args = new testInsertRecordsArgs(); - args.Req = req; + var args = new InternalStructs.testInsertRecordsArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1354,7 +1400,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new testInsertRecordsResult(); + var result = new InternalStructs.testInsertRecordsResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1364,12 +1410,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertRecords failed: unknown result"); } - public async Task testInsertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task testInsertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertRecordsOfOneDevice", TMessageType.Call, SeqId), cancellationToken); - var args = new testInsertRecordsOfOneDeviceArgs(); - args.Req = req; + var args = new InternalStructs.testInsertRecordsOfOneDeviceArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1383,7 +1430,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new testInsertRecordsOfOneDeviceResult(); + var result = new InternalStructs.testInsertRecordsOfOneDeviceResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1393,12 +1440,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertRecordsOfOneDevice failed: unknown result"); } - public async Task testInsertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task testInsertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertStringRecords", TMessageType.Call, SeqId), cancellationToken); - var args = new testInsertStringRecordsArgs(); - args.Req = req; + var args = new InternalStructs.testInsertStringRecordsArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1412,7 +1460,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new testInsertStringRecordsResult(); + var result = new InternalStructs.testInsertStringRecordsResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1422,12 +1470,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertStringRecords failed: unknown result"); } - public async Task deleteDataAsync(TSDeleteDataReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task deleteDataAsync(TSDeleteDataReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("deleteData", TMessageType.Call, SeqId), cancellationToken); - var args = new deleteDataArgs(); - args.Req = req; + var args = new InternalStructs.deleteDataArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1441,7 +1490,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new deleteDataResult(); + var result = new InternalStructs.deleteDataResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1451,12 +1500,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "deleteData failed: unknown result"); } - public async Task executeRawDataQueryAsync(TSRawDataQueryReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task executeRawDataQueryAsync(TSRawDataQueryReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeRawDataQuery", TMessageType.Call, SeqId), cancellationToken); - var args = new executeRawDataQueryArgs(); - args.Req = req; + var args = new InternalStructs.executeRawDataQueryArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1470,7 +1520,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new executeRawDataQueryResult(); + var result = new InternalStructs.executeRawDataQueryResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1480,12 +1530,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeRawDataQuery failed: unknown result"); } - public async Task executeLastDataQueryAsync(TSLastDataQueryReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task executeLastDataQueryAsync(TSLastDataQueryReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeLastDataQuery", TMessageType.Call, SeqId), cancellationToken); - var args = new executeLastDataQueryArgs(); - args.Req = req; + var args = new InternalStructs.executeLastDataQueryArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1499,7 +1550,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new executeLastDataQueryResult(); + var result = new InternalStructs.executeLastDataQueryResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1509,12 +1560,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeLastDataQuery failed: unknown result"); } - public async Task executeAggregationQueryAsync(TSAggregationQueryReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task executeAggregationQueryAsync(TSAggregationQueryReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeAggregationQuery", TMessageType.Call, SeqId), cancellationToken); - var args = new executeAggregationQueryArgs(); - args.Req = req; + var args = new InternalStructs.executeAggregationQueryArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1528,7 +1580,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new executeAggregationQueryResult(); + var result = new InternalStructs.executeAggregationQueryResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1538,12 +1590,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeAggregationQuery failed: unknown result"); } - public async Task requestStatementIdAsync(long sessionId, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task requestStatementIdAsync(long sessionId, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("requestStatementId", TMessageType.Call, SeqId), cancellationToken); - var args = new requestStatementIdArgs(); - args.SessionId = sessionId; + var args = new InternalStructs.requestStatementIdArgs() { + SessionId = sessionId, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1557,7 +1610,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new requestStatementIdResult(); + var result = new InternalStructs.requestStatementIdResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1567,12 +1620,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "requestStatementId failed: unknown result"); } - public async Task createSchemaTemplateAsync(TSCreateSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task createSchemaTemplateAsync(TSCreateSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("createSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new createSchemaTemplateArgs(); - args.Req = req; + var args = new InternalStructs.createSchemaTemplateArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1586,7 +1640,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new createSchemaTemplateResult(); + var result = new InternalStructs.createSchemaTemplateResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1596,12 +1650,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "createSchemaTemplate failed: unknown result"); } - public async Task appendSchemaTemplateAsync(TSAppendSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task appendSchemaTemplateAsync(TSAppendSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("appendSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new appendSchemaTemplateArgs(); - args.Req = req; + var args = new InternalStructs.appendSchemaTemplateArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1615,7 +1670,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new appendSchemaTemplateResult(); + var result = new InternalStructs.appendSchemaTemplateResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1625,12 +1680,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "appendSchemaTemplate failed: unknown result"); } - public async Task pruneSchemaTemplateAsync(TSPruneSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task pruneSchemaTemplateAsync(TSPruneSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("pruneSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new pruneSchemaTemplateArgs(); - args.Req = req; + var args = new InternalStructs.pruneSchemaTemplateArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1644,7 +1700,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new pruneSchemaTemplateResult(); + var result = new InternalStructs.pruneSchemaTemplateResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1654,12 +1710,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "pruneSchemaTemplate failed: unknown result"); } - public async Task querySchemaTemplateAsync(TSQueryTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task querySchemaTemplateAsync(TSQueryTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("querySchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new querySchemaTemplateArgs(); - args.Req = req; + var args = new InternalStructs.querySchemaTemplateArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1673,7 +1730,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new querySchemaTemplateResult(); + var result = new InternalStructs.querySchemaTemplateResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1683,11 +1740,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "querySchemaTemplate failed: unknown result"); } - public async Task showConfigurationTemplateAsync(CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task showConfigurationTemplateAsync(CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("showConfigurationTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new showConfigurationTemplateArgs(); + var args = new InternalStructs.showConfigurationTemplateArgs() { + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1701,7 +1759,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new showConfigurationTemplateResult(); + var result = new InternalStructs.showConfigurationTemplateResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1711,12 +1769,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "showConfigurationTemplate failed: unknown result"); } - public async Task showConfigurationAsync(int nodeId, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task showConfigurationAsync(int nodeId, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("showConfiguration", TMessageType.Call, SeqId), cancellationToken); - var args = new showConfigurationArgs(); - args.NodeId = nodeId; + var args = new InternalStructs.showConfigurationArgs() { + NodeId = nodeId, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1730,7 +1789,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new showConfigurationResult(); + var result = new InternalStructs.showConfigurationResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1740,12 +1799,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "showConfiguration failed: unknown result"); } - public async Task setSchemaTemplateAsync(TSSetSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task setSchemaTemplateAsync(TSSetSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("setSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new setSchemaTemplateArgs(); - args.Req = req; + var args = new InternalStructs.setSchemaTemplateArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1759,7 +1819,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new setSchemaTemplateResult(); + var result = new InternalStructs.setSchemaTemplateResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1769,12 +1829,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "setSchemaTemplate failed: unknown result"); } - public async Task unsetSchemaTemplateAsync(TSUnsetSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task unsetSchemaTemplateAsync(TSUnsetSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("unsetSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new unsetSchemaTemplateArgs(); - args.Req = req; + var args = new InternalStructs.unsetSchemaTemplateArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1788,7 +1849,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new unsetSchemaTemplateResult(); + var result = new InternalStructs.unsetSchemaTemplateResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1798,12 +1859,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "unsetSchemaTemplate failed: unknown result"); } - public async Task dropSchemaTemplateAsync(TSDropSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task dropSchemaTemplateAsync(TSDropSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("dropSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new dropSchemaTemplateArgs(); - args.Req = req; + var args = new InternalStructs.dropSchemaTemplateArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1817,7 +1879,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new dropSchemaTemplateResult(); + var result = new InternalStructs.dropSchemaTemplateResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1827,12 +1889,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "dropSchemaTemplate failed: unknown result"); } - public async Task createTimeseriesUsingSchemaTemplateAsync(TCreateTimeseriesUsingSchemaTemplateReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task createTimeseriesUsingSchemaTemplateAsync(TCreateTimeseriesUsingSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("createTimeseriesUsingSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new createTimeseriesUsingSchemaTemplateArgs(); - args.Req = req; + var args = new InternalStructs.createTimeseriesUsingSchemaTemplateArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1846,7 +1909,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new createTimeseriesUsingSchemaTemplateResult(); + var result = new InternalStructs.createTimeseriesUsingSchemaTemplateResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1856,12 +1919,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "createTimeseriesUsingSchemaTemplate failed: unknown result"); } - public async Task handshakeAsync(TSyncIdentityInfo info, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task handshakeAsync(TSyncIdentityInfo info, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("handshake", TMessageType.Call, SeqId), cancellationToken); - var args = new handshakeArgs(); - args.Info = info; + var args = new InternalStructs.handshakeArgs() { + Info = info, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1875,7 +1939,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new handshakeResult(); + var result = new InternalStructs.handshakeResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1885,12 +1949,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "handshake failed: unknown result"); } - public async Task sendPipeDataAsync(byte[] buff, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task sendPipeDataAsync(byte[] buff, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("sendPipeData", TMessageType.Call, SeqId), cancellationToken); - var args = new sendPipeDataArgs(); - args.Buff = buff; + var args = new InternalStructs.sendPipeDataArgs() { + Buff = buff, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1904,7 +1969,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new sendPipeDataResult(); + var result = new InternalStructs.sendPipeDataResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1914,13 +1979,14 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "sendPipeData failed: unknown result"); } - public async Task sendFileAsync(TSyncTransportMetaInfo metaInfo, byte[] buff, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task sendFileAsync(TSyncTransportMetaInfo metaInfo, byte[] buff, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("sendFile", TMessageType.Call, SeqId), cancellationToken); - var args = new sendFileArgs(); - args.MetaInfo = metaInfo; - args.Buff = buff; + var args = new InternalStructs.sendFileArgs() { + MetaInfo = metaInfo, + Buff = buff, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1934,7 +2000,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new sendFileResult(); + var result = new InternalStructs.sendFileResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1944,12 +2010,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "sendFile failed: unknown result"); } - public async Task pipeTransferAsync(TPipeTransferReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task pipeTransferAsync(TPipeTransferReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("pipeTransfer", TMessageType.Call, SeqId), cancellationToken); - var args = new pipeTransferArgs(); - args.Req = req; + var args = new InternalStructs.pipeTransferArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1963,7 +2030,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new pipeTransferResult(); + var result = new InternalStructs.pipeTransferResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -1973,12 +2040,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "pipeTransfer failed: unknown result"); } - public async Task pipeSubscribeAsync(TPipeSubscribeReq req, CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task pipeSubscribeAsync(TPipeSubscribeReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("pipeSubscribe", TMessageType.Call, SeqId), cancellationToken); - var args = new pipeSubscribeArgs(); - args.Req = req; + var args = new InternalStructs.pipeSubscribeArgs() { + Req = req, + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -1992,7 +2060,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new pipeSubscribeResult(); + var result = new InternalStructs.pipeSubscribeResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -2002,11 +2070,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "pipeSubscribe failed: unknown result"); } - public async Task getBackupConfigurationAsync(CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task getBackupConfigurationAsync(CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("getBackupConfiguration", TMessageType.Call, SeqId), cancellationToken); - var args = new getBackupConfigurationArgs(); + var args = new InternalStructs.getBackupConfigurationArgs() { + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -2020,7 +2089,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new getBackupConfigurationResult(); + var result = new InternalStructs.getBackupConfigurationResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -2030,11 +2099,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getBackupConfiguration failed: unknown result"); } - public async Task fetchAllConnectionsInfoAsync(CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task fetchAllConnectionsInfoAsync(CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("fetchAllConnectionsInfo", TMessageType.Call, SeqId), cancellationToken); - var args = new fetchAllConnectionsInfoArgs(); + var args = new InternalStructs.fetchAllConnectionsInfoArgs() { + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -2048,7 +2118,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new fetchAllConnectionsInfoResult(); + var result = new InternalStructs.fetchAllConnectionsInfoResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -2058,11 +2128,12 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "fetchAllConnectionsInfo failed: unknown result"); } - public async Task testConnectionEmptyRPCAsync(CancellationToken cancellationToken = default(CancellationToken)) + public async global::System.Threading.Tasks.Task testConnectionEmptyRPCAsync(CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testConnectionEmptyRPC", TMessageType.Call, SeqId), cancellationToken); - var args = new testConnectionEmptyRPCArgs(); + var args = new InternalStructs.testConnectionEmptyRPCArgs() { + }; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); @@ -2076,7 +2147,7 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro throw x; } - var result = new testConnectionEmptyRPCResult(); + var result = new InternalStructs.testConnectionEmptyRPCResult(); await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); if (result.__isset.success) @@ -2090,13 +2161,13 @@ public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputPro public class AsyncProcessor : ITAsyncProcessor { - private IAsync _iAsync; + private readonly IAsync _iAsync; + private readonly ILogger _logger; - public AsyncProcessor(IAsync iAsync) + public AsyncProcessor(IAsync iAsync, ILogger logger = default) { - if (iAsync == null) throw new ArgumentNullException(nameof(iAsync)); - - _iAsync = iAsync; + _iAsync = iAsync ?? throw new ArgumentNullException(nameof(iAsync)); + _logger = logger; processMap_["executeQueryStatementV2"] = executeQueryStatementV2_ProcessAsync; processMap_["executeUpdateStatementV2"] = executeUpdateStatementV2_ProcessAsync; processMap_["executeStatementV2"] = executeStatementV2_ProcessAsync; @@ -2165,7 +2236,7 @@ public AsyncProcessor(IAsync iAsync) processMap_["testConnectionEmptyRPC"] = testConnectionEmptyRPC_ProcessAsync; } - protected delegate Task ProcessFunction(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken); + protected delegate global::System.Threading.Tasks.Task ProcessFunction(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken); protected Dictionary processMap_ = new Dictionary(); public async Task ProcessAsync(TProtocol iprot, TProtocol oprot) @@ -2179,8 +2250,7 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat { var msg = await iprot.ReadMessageBeginAsync(cancellationToken); - ProcessFunction fn; - processMap_.TryGetValue(msg.Name, out fn); + processMap_.TryGetValue(msg.Name, out ProcessFunction fn); if (fn == null) { @@ -2205,12 +2275,12 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat return true; } - public async Task executeQueryStatementV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task executeQueryStatementV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new executeQueryStatementV2Args(); + var args = new InternalStructs.executeQueryStatementV2Args(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new executeQueryStatementV2Result(); + var result = new InternalStructs.executeQueryStatementV2Result(); try { result.Success = await _iAsync.executeQueryStatementV2Async(args.Req, cancellationToken); @@ -2223,8 +2293,11 @@ public async Task executeQueryStatementV2_ProcessAsync(int seqid, TProtocol ipro } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeQueryStatementV2", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2233,12 +2306,12 @@ public async Task executeQueryStatementV2_ProcessAsync(int seqid, TProtocol ipro await oprot.Transport.FlushAsync(cancellationToken); } - public async Task executeUpdateStatementV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task executeUpdateStatementV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new executeUpdateStatementV2Args(); + var args = new InternalStructs.executeUpdateStatementV2Args(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new executeUpdateStatementV2Result(); + var result = new InternalStructs.executeUpdateStatementV2Result(); try { result.Success = await _iAsync.executeUpdateStatementV2Async(args.Req, cancellationToken); @@ -2251,8 +2324,11 @@ public async Task executeUpdateStatementV2_ProcessAsync(int seqid, TProtocol ipr } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeUpdateStatementV2", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2261,12 +2337,12 @@ public async Task executeUpdateStatementV2_ProcessAsync(int seqid, TProtocol ipr await oprot.Transport.FlushAsync(cancellationToken); } - public async Task executeStatementV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task executeStatementV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new executeStatementV2Args(); + var args = new InternalStructs.executeStatementV2Args(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new executeStatementV2Result(); + var result = new InternalStructs.executeStatementV2Result(); try { result.Success = await _iAsync.executeStatementV2Async(args.Req, cancellationToken); @@ -2279,8 +2355,11 @@ public async Task executeStatementV2_ProcessAsync(int seqid, TProtocol iprot, TP } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeStatementV2", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2289,12 +2368,12 @@ public async Task executeStatementV2_ProcessAsync(int seqid, TProtocol iprot, TP await oprot.Transport.FlushAsync(cancellationToken); } - public async Task executeRawDataQueryV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task executeRawDataQueryV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new executeRawDataQueryV2Args(); + var args = new InternalStructs.executeRawDataQueryV2Args(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new executeRawDataQueryV2Result(); + var result = new InternalStructs.executeRawDataQueryV2Result(); try { result.Success = await _iAsync.executeRawDataQueryV2Async(args.Req, cancellationToken); @@ -2307,8 +2386,11 @@ public async Task executeRawDataQueryV2_ProcessAsync(int seqid, TProtocol iprot, } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeRawDataQueryV2", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2317,12 +2399,12 @@ public async Task executeRawDataQueryV2_ProcessAsync(int seqid, TProtocol iprot, await oprot.Transport.FlushAsync(cancellationToken); } - public async Task executeLastDataQueryV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task executeLastDataQueryV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new executeLastDataQueryV2Args(); + var args = new InternalStructs.executeLastDataQueryV2Args(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new executeLastDataQueryV2Result(); + var result = new InternalStructs.executeLastDataQueryV2Result(); try { result.Success = await _iAsync.executeLastDataQueryV2Async(args.Req, cancellationToken); @@ -2335,8 +2417,11 @@ public async Task executeLastDataQueryV2_ProcessAsync(int seqid, TProtocol iprot } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeLastDataQueryV2", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2345,12 +2430,12 @@ public async Task executeLastDataQueryV2_ProcessAsync(int seqid, TProtocol iprot await oprot.Transport.FlushAsync(cancellationToken); } - public async Task executeFastLastDataQueryForOneDeviceV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task executeFastLastDataQueryForOneDeviceV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new executeFastLastDataQueryForOneDeviceV2Args(); + var args = new InternalStructs.executeFastLastDataQueryForOneDeviceV2Args(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new executeFastLastDataQueryForOneDeviceV2Result(); + var result = new InternalStructs.executeFastLastDataQueryForOneDeviceV2Result(); try { result.Success = await _iAsync.executeFastLastDataQueryForOneDeviceV2Async(args.Req, cancellationToken); @@ -2363,8 +2448,11 @@ public async Task executeFastLastDataQueryForOneDeviceV2_ProcessAsync(int seqid, } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeFastLastDataQueryForOneDeviceV2", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2373,12 +2461,12 @@ public async Task executeFastLastDataQueryForOneDeviceV2_ProcessAsync(int seqid, await oprot.Transport.FlushAsync(cancellationToken); } - public async Task executeAggregationQueryV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task executeAggregationQueryV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new executeAggregationQueryV2Args(); + var args = new InternalStructs.executeAggregationQueryV2Args(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new executeAggregationQueryV2Result(); + var result = new InternalStructs.executeAggregationQueryV2Result(); try { result.Success = await _iAsync.executeAggregationQueryV2Async(args.Req, cancellationToken); @@ -2391,8 +2479,11 @@ public async Task executeAggregationQueryV2_ProcessAsync(int seqid, TProtocol ip } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeAggregationQueryV2", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2401,12 +2492,12 @@ public async Task executeAggregationQueryV2_ProcessAsync(int seqid, TProtocol ip await oprot.Transport.FlushAsync(cancellationToken); } - public async Task executeGroupByQueryIntervalQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task executeGroupByQueryIntervalQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new executeGroupByQueryIntervalQueryArgs(); + var args = new InternalStructs.executeGroupByQueryIntervalQueryArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new executeGroupByQueryIntervalQueryResult(); + var result = new InternalStructs.executeGroupByQueryIntervalQueryResult(); try { result.Success = await _iAsync.executeGroupByQueryIntervalQueryAsync(args.Req, cancellationToken); @@ -2419,8 +2510,11 @@ public async Task executeGroupByQueryIntervalQuery_ProcessAsync(int seqid, TProt } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeGroupByQueryIntervalQuery", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2429,12 +2523,12 @@ public async Task executeGroupByQueryIntervalQuery_ProcessAsync(int seqid, TProt await oprot.Transport.FlushAsync(cancellationToken); } - public async Task fetchResultsV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task fetchResultsV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new fetchResultsV2Args(); + var args = new InternalStructs.fetchResultsV2Args(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new fetchResultsV2Result(); + var result = new InternalStructs.fetchResultsV2Result(); try { result.Success = await _iAsync.fetchResultsV2Async(args.Req, cancellationToken); @@ -2447,8 +2541,11 @@ public async Task fetchResultsV2_ProcessAsync(int seqid, TProtocol iprot, TProto } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("fetchResultsV2", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2457,12 +2554,12 @@ public async Task fetchResultsV2_ProcessAsync(int seqid, TProtocol iprot, TProto await oprot.Transport.FlushAsync(cancellationToken); } - public async Task openSession_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task openSession_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new openSessionArgs(); + var args = new InternalStructs.openSessionArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new openSessionResult(); + var result = new InternalStructs.openSessionResult(); try { result.Success = await _iAsync.openSessionAsync(args.Req, cancellationToken); @@ -2475,8 +2572,11 @@ public async Task openSession_ProcessAsync(int seqid, TProtocol iprot, TProtocol } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("openSession", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2485,12 +2585,12 @@ public async Task openSession_ProcessAsync(int seqid, TProtocol iprot, TProtocol await oprot.Transport.FlushAsync(cancellationToken); } - public async Task closeSession_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task closeSession_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new closeSessionArgs(); + var args = new InternalStructs.closeSessionArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new closeSessionResult(); + var result = new InternalStructs.closeSessionResult(); try { result.Success = await _iAsync.closeSessionAsync(args.Req, cancellationToken); @@ -2503,8 +2603,11 @@ public async Task closeSession_ProcessAsync(int seqid, TProtocol iprot, TProtoco } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("closeSession", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2513,12 +2616,12 @@ public async Task closeSession_ProcessAsync(int seqid, TProtocol iprot, TProtoco await oprot.Transport.FlushAsync(cancellationToken); } - public async Task executeStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task executeStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new executeStatementArgs(); + var args = new InternalStructs.executeStatementArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new executeStatementResult(); + var result = new InternalStructs.executeStatementResult(); try { result.Success = await _iAsync.executeStatementAsync(args.Req, cancellationToken); @@ -2531,8 +2634,11 @@ public async Task executeStatement_ProcessAsync(int seqid, TProtocol iprot, TPro } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeStatement", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2541,12 +2647,12 @@ public async Task executeStatement_ProcessAsync(int seqid, TProtocol iprot, TPro await oprot.Transport.FlushAsync(cancellationToken); } - public async Task executeBatchStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task executeBatchStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new executeBatchStatementArgs(); + var args = new InternalStructs.executeBatchStatementArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new executeBatchStatementResult(); + var result = new InternalStructs.executeBatchStatementResult(); try { result.Success = await _iAsync.executeBatchStatementAsync(args.Req, cancellationToken); @@ -2559,8 +2665,11 @@ public async Task executeBatchStatement_ProcessAsync(int seqid, TProtocol iprot, } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeBatchStatement", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2569,12 +2678,12 @@ public async Task executeBatchStatement_ProcessAsync(int seqid, TProtocol iprot, await oprot.Transport.FlushAsync(cancellationToken); } - public async Task executeQueryStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task executeQueryStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new executeQueryStatementArgs(); + var args = new InternalStructs.executeQueryStatementArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new executeQueryStatementResult(); + var result = new InternalStructs.executeQueryStatementResult(); try { result.Success = await _iAsync.executeQueryStatementAsync(args.Req, cancellationToken); @@ -2587,8 +2696,11 @@ public async Task executeQueryStatement_ProcessAsync(int seqid, TProtocol iprot, } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeQueryStatement", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2597,12 +2709,12 @@ public async Task executeQueryStatement_ProcessAsync(int seqid, TProtocol iprot, await oprot.Transport.FlushAsync(cancellationToken); } - public async Task executeUpdateStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task executeUpdateStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new executeUpdateStatementArgs(); + var args = new InternalStructs.executeUpdateStatementArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new executeUpdateStatementResult(); + var result = new InternalStructs.executeUpdateStatementResult(); try { result.Success = await _iAsync.executeUpdateStatementAsync(args.Req, cancellationToken); @@ -2615,8 +2727,11 @@ public async Task executeUpdateStatement_ProcessAsync(int seqid, TProtocol iprot } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeUpdateStatement", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2625,12 +2740,12 @@ public async Task executeUpdateStatement_ProcessAsync(int seqid, TProtocol iprot await oprot.Transport.FlushAsync(cancellationToken); } - public async Task fetchResults_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task fetchResults_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new fetchResultsArgs(); + var args = new InternalStructs.fetchResultsArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new fetchResultsResult(); + var result = new InternalStructs.fetchResultsResult(); try { result.Success = await _iAsync.fetchResultsAsync(args.Req, cancellationToken); @@ -2643,8 +2758,11 @@ public async Task fetchResults_ProcessAsync(int seqid, TProtocol iprot, TProtoco } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("fetchResults", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2653,12 +2771,12 @@ public async Task fetchResults_ProcessAsync(int seqid, TProtocol iprot, TProtoco await oprot.Transport.FlushAsync(cancellationToken); } - public async Task fetchMetadata_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task fetchMetadata_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new fetchMetadataArgs(); + var args = new InternalStructs.fetchMetadataArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new fetchMetadataResult(); + var result = new InternalStructs.fetchMetadataResult(); try { result.Success = await _iAsync.fetchMetadataAsync(args.Req, cancellationToken); @@ -2671,8 +2789,11 @@ public async Task fetchMetadata_ProcessAsync(int seqid, TProtocol iprot, TProtoc } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("fetchMetadata", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2681,12 +2802,12 @@ public async Task fetchMetadata_ProcessAsync(int seqid, TProtocol iprot, TProtoc await oprot.Transport.FlushAsync(cancellationToken); } - public async Task cancelOperation_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task cancelOperation_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new cancelOperationArgs(); + var args = new InternalStructs.cancelOperationArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new cancelOperationResult(); + var result = new InternalStructs.cancelOperationResult(); try { result.Success = await _iAsync.cancelOperationAsync(args.Req, cancellationToken); @@ -2699,8 +2820,11 @@ public async Task cancelOperation_ProcessAsync(int seqid, TProtocol iprot, TProt } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("cancelOperation", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2709,12 +2833,12 @@ public async Task cancelOperation_ProcessAsync(int seqid, TProtocol iprot, TProt await oprot.Transport.FlushAsync(cancellationToken); } - public async Task closeOperation_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task closeOperation_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new closeOperationArgs(); + var args = new InternalStructs.closeOperationArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new closeOperationResult(); + var result = new InternalStructs.closeOperationResult(); try { result.Success = await _iAsync.closeOperationAsync(args.Req, cancellationToken); @@ -2727,8 +2851,11 @@ public async Task closeOperation_ProcessAsync(int seqid, TProtocol iprot, TProto } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("closeOperation", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2737,12 +2864,12 @@ public async Task closeOperation_ProcessAsync(int seqid, TProtocol iprot, TProto await oprot.Transport.FlushAsync(cancellationToken); } - public async Task getTimeZone_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task getTimeZone_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new getTimeZoneArgs(); + var args = new InternalStructs.getTimeZoneArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new getTimeZoneResult(); + var result = new InternalStructs.getTimeZoneResult(); try { result.Success = await _iAsync.getTimeZoneAsync(args.SessionId, cancellationToken); @@ -2755,8 +2882,11 @@ public async Task getTimeZone_ProcessAsync(int seqid, TProtocol iprot, TProtocol } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("getTimeZone", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2765,12 +2895,12 @@ public async Task getTimeZone_ProcessAsync(int seqid, TProtocol iprot, TProtocol await oprot.Transport.FlushAsync(cancellationToken); } - public async Task setTimeZone_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task setTimeZone_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new setTimeZoneArgs(); + var args = new InternalStructs.setTimeZoneArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new setTimeZoneResult(); + var result = new InternalStructs.setTimeZoneResult(); try { result.Success = await _iAsync.setTimeZoneAsync(args.Req, cancellationToken); @@ -2783,8 +2913,11 @@ public async Task setTimeZone_ProcessAsync(int seqid, TProtocol iprot, TProtocol } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("setTimeZone", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2793,12 +2926,12 @@ public async Task setTimeZone_ProcessAsync(int seqid, TProtocol iprot, TProtocol await oprot.Transport.FlushAsync(cancellationToken); } - public async Task getProperties_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task getProperties_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new getPropertiesArgs(); + var args = new InternalStructs.getPropertiesArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new getPropertiesResult(); + var result = new InternalStructs.getPropertiesResult(); try { result.Success = await _iAsync.getPropertiesAsync(cancellationToken); @@ -2811,8 +2944,11 @@ public async Task getProperties_ProcessAsync(int seqid, TProtocol iprot, TProtoc } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("getProperties", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2821,12 +2957,12 @@ public async Task getProperties_ProcessAsync(int seqid, TProtocol iprot, TProtoc await oprot.Transport.FlushAsync(cancellationToken); } - public async Task setStorageGroup_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task setStorageGroup_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new setStorageGroupArgs(); + var args = new InternalStructs.setStorageGroupArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new setStorageGroupResult(); + var result = new InternalStructs.setStorageGroupResult(); try { result.Success = await _iAsync.setStorageGroupAsync(args.SessionId, args.StorageGroup, cancellationToken); @@ -2839,8 +2975,11 @@ public async Task setStorageGroup_ProcessAsync(int seqid, TProtocol iprot, TProt } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("setStorageGroup", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2849,12 +2988,12 @@ public async Task setStorageGroup_ProcessAsync(int seqid, TProtocol iprot, TProt await oprot.Transport.FlushAsync(cancellationToken); } - public async Task createTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task createTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new createTimeseriesArgs(); + var args = new InternalStructs.createTimeseriesArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new createTimeseriesResult(); + var result = new InternalStructs.createTimeseriesResult(); try { result.Success = await _iAsync.createTimeseriesAsync(args.Req, cancellationToken); @@ -2867,8 +3006,11 @@ public async Task createTimeseries_ProcessAsync(int seqid, TProtocol iprot, TPro } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("createTimeseries", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2877,12 +3019,12 @@ public async Task createTimeseries_ProcessAsync(int seqid, TProtocol iprot, TPro await oprot.Transport.FlushAsync(cancellationToken); } - public async Task createAlignedTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task createAlignedTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new createAlignedTimeseriesArgs(); + var args = new InternalStructs.createAlignedTimeseriesArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new createAlignedTimeseriesResult(); + var result = new InternalStructs.createAlignedTimeseriesResult(); try { result.Success = await _iAsync.createAlignedTimeseriesAsync(args.Req, cancellationToken); @@ -2895,8 +3037,11 @@ public async Task createAlignedTimeseries_ProcessAsync(int seqid, TProtocol ipro } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("createAlignedTimeseries", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2905,12 +3050,12 @@ public async Task createAlignedTimeseries_ProcessAsync(int seqid, TProtocol ipro await oprot.Transport.FlushAsync(cancellationToken); } - public async Task createMultiTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task createMultiTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new createMultiTimeseriesArgs(); + var args = new InternalStructs.createMultiTimeseriesArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new createMultiTimeseriesResult(); + var result = new InternalStructs.createMultiTimeseriesResult(); try { result.Success = await _iAsync.createMultiTimeseriesAsync(args.Req, cancellationToken); @@ -2923,8 +3068,11 @@ public async Task createMultiTimeseries_ProcessAsync(int seqid, TProtocol iprot, } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("createMultiTimeseries", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2933,12 +3081,12 @@ public async Task createMultiTimeseries_ProcessAsync(int seqid, TProtocol iprot, await oprot.Transport.FlushAsync(cancellationToken); } - public async Task deleteTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task deleteTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new deleteTimeseriesArgs(); + var args = new InternalStructs.deleteTimeseriesArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new deleteTimeseriesResult(); + var result = new InternalStructs.deleteTimeseriesResult(); try { result.Success = await _iAsync.deleteTimeseriesAsync(args.SessionId, args.Path, cancellationToken); @@ -2951,8 +3099,11 @@ public async Task deleteTimeseries_ProcessAsync(int seqid, TProtocol iprot, TPro } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("deleteTimeseries", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2961,12 +3112,12 @@ public async Task deleteTimeseries_ProcessAsync(int seqid, TProtocol iprot, TPro await oprot.Transport.FlushAsync(cancellationToken); } - public async Task deleteStorageGroups_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task deleteStorageGroups_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new deleteStorageGroupsArgs(); + var args = new InternalStructs.deleteStorageGroupsArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new deleteStorageGroupsResult(); + var result = new InternalStructs.deleteStorageGroupsResult(); try { result.Success = await _iAsync.deleteStorageGroupsAsync(args.SessionId, args.StorageGroup, cancellationToken); @@ -2979,8 +3130,11 @@ public async Task deleteStorageGroups_ProcessAsync(int seqid, TProtocol iprot, T } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("deleteStorageGroups", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -2989,12 +3143,12 @@ public async Task deleteStorageGroups_ProcessAsync(int seqid, TProtocol iprot, T await oprot.Transport.FlushAsync(cancellationToken); } - public async Task insertRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task insertRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new insertRecordArgs(); + var args = new InternalStructs.insertRecordArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new insertRecordResult(); + var result = new InternalStructs.insertRecordResult(); try { result.Success = await _iAsync.insertRecordAsync(args.Req, cancellationToken); @@ -3007,8 +3161,11 @@ public async Task insertRecord_ProcessAsync(int seqid, TProtocol iprot, TProtoco } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertRecord", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3017,12 +3174,12 @@ public async Task insertRecord_ProcessAsync(int seqid, TProtocol iprot, TProtoco await oprot.Transport.FlushAsync(cancellationToken); } - public async Task insertStringRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task insertStringRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new insertStringRecordArgs(); + var args = new InternalStructs.insertStringRecordArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new insertStringRecordResult(); + var result = new InternalStructs.insertStringRecordResult(); try { result.Success = await _iAsync.insertStringRecordAsync(args.Req, cancellationToken); @@ -3035,8 +3192,11 @@ public async Task insertStringRecord_ProcessAsync(int seqid, TProtocol iprot, TP } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertStringRecord", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3045,12 +3205,12 @@ public async Task insertStringRecord_ProcessAsync(int seqid, TProtocol iprot, TP await oprot.Transport.FlushAsync(cancellationToken); } - public async Task insertTablet_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task insertTablet_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new insertTabletArgs(); + var args = new InternalStructs.insertTabletArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new insertTabletResult(); + var result = new InternalStructs.insertTabletResult(); try { result.Success = await _iAsync.insertTabletAsync(args.Req, cancellationToken); @@ -3063,8 +3223,11 @@ public async Task insertTablet_ProcessAsync(int seqid, TProtocol iprot, TProtoco } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertTablet", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3073,12 +3236,12 @@ public async Task insertTablet_ProcessAsync(int seqid, TProtocol iprot, TProtoco await oprot.Transport.FlushAsync(cancellationToken); } - public async Task insertTablets_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task insertTablets_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new insertTabletsArgs(); + var args = new InternalStructs.insertTabletsArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new insertTabletsResult(); + var result = new InternalStructs.insertTabletsResult(); try { result.Success = await _iAsync.insertTabletsAsync(args.Req, cancellationToken); @@ -3091,8 +3254,11 @@ public async Task insertTablets_ProcessAsync(int seqid, TProtocol iprot, TProtoc } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertTablets", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3101,12 +3267,12 @@ public async Task insertTablets_ProcessAsync(int seqid, TProtocol iprot, TProtoc await oprot.Transport.FlushAsync(cancellationToken); } - public async Task insertRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task insertRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new insertRecordsArgs(); + var args = new InternalStructs.insertRecordsArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new insertRecordsResult(); + var result = new InternalStructs.insertRecordsResult(); try { result.Success = await _iAsync.insertRecordsAsync(args.Req, cancellationToken); @@ -3119,8 +3285,11 @@ public async Task insertRecords_ProcessAsync(int seqid, TProtocol iprot, TProtoc } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertRecords", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3129,12 +3298,12 @@ public async Task insertRecords_ProcessAsync(int seqid, TProtocol iprot, TProtoc await oprot.Transport.FlushAsync(cancellationToken); } - public async Task insertRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task insertRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new insertRecordsOfOneDeviceArgs(); + var args = new InternalStructs.insertRecordsOfOneDeviceArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new insertRecordsOfOneDeviceResult(); + var result = new InternalStructs.insertRecordsOfOneDeviceResult(); try { result.Success = await _iAsync.insertRecordsOfOneDeviceAsync(args.Req, cancellationToken); @@ -3147,8 +3316,11 @@ public async Task insertRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol ipr } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertRecordsOfOneDevice", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3157,12 +3329,12 @@ public async Task insertRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol ipr await oprot.Transport.FlushAsync(cancellationToken); } - public async Task insertStringRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task insertStringRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new insertStringRecordsOfOneDeviceArgs(); + var args = new InternalStructs.insertStringRecordsOfOneDeviceArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new insertStringRecordsOfOneDeviceResult(); + var result = new InternalStructs.insertStringRecordsOfOneDeviceResult(); try { result.Success = await _iAsync.insertStringRecordsOfOneDeviceAsync(args.Req, cancellationToken); @@ -3175,8 +3347,11 @@ public async Task insertStringRecordsOfOneDevice_ProcessAsync(int seqid, TProtoc } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertStringRecordsOfOneDevice", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3185,12 +3360,12 @@ public async Task insertStringRecordsOfOneDevice_ProcessAsync(int seqid, TProtoc await oprot.Transport.FlushAsync(cancellationToken); } - public async Task insertStringRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task insertStringRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new insertStringRecordsArgs(); + var args = new InternalStructs.insertStringRecordsArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new insertStringRecordsResult(); + var result = new InternalStructs.insertStringRecordsResult(); try { result.Success = await _iAsync.insertStringRecordsAsync(args.Req, cancellationToken); @@ -3203,8 +3378,11 @@ public async Task insertStringRecords_ProcessAsync(int seqid, TProtocol iprot, T } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertStringRecords", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3213,12 +3391,12 @@ public async Task insertStringRecords_ProcessAsync(int seqid, TProtocol iprot, T await oprot.Transport.FlushAsync(cancellationToken); } - public async Task testInsertTablet_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task testInsertTablet_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new testInsertTabletArgs(); + var args = new InternalStructs.testInsertTabletArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new testInsertTabletResult(); + var result = new InternalStructs.testInsertTabletResult(); try { result.Success = await _iAsync.testInsertTabletAsync(args.Req, cancellationToken); @@ -3231,8 +3409,11 @@ public async Task testInsertTablet_ProcessAsync(int seqid, TProtocol iprot, TPro } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertTablet", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3241,12 +3422,12 @@ public async Task testInsertTablet_ProcessAsync(int seqid, TProtocol iprot, TPro await oprot.Transport.FlushAsync(cancellationToken); } - public async Task testInsertTablets_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task testInsertTablets_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new testInsertTabletsArgs(); + var args = new InternalStructs.testInsertTabletsArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new testInsertTabletsResult(); + var result = new InternalStructs.testInsertTabletsResult(); try { result.Success = await _iAsync.testInsertTabletsAsync(args.Req, cancellationToken); @@ -3259,8 +3440,11 @@ public async Task testInsertTablets_ProcessAsync(int seqid, TProtocol iprot, TPr } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertTablets", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3269,12 +3453,12 @@ public async Task testInsertTablets_ProcessAsync(int seqid, TProtocol iprot, TPr await oprot.Transport.FlushAsync(cancellationToken); } - public async Task testInsertRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task testInsertRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new testInsertRecordArgs(); + var args = new InternalStructs.testInsertRecordArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new testInsertRecordResult(); + var result = new InternalStructs.testInsertRecordResult(); try { result.Success = await _iAsync.testInsertRecordAsync(args.Req, cancellationToken); @@ -3287,8 +3471,11 @@ public async Task testInsertRecord_ProcessAsync(int seqid, TProtocol iprot, TPro } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertRecord", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3297,12 +3484,12 @@ public async Task testInsertRecord_ProcessAsync(int seqid, TProtocol iprot, TPro await oprot.Transport.FlushAsync(cancellationToken); } - public async Task testInsertStringRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task testInsertStringRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new testInsertStringRecordArgs(); + var args = new InternalStructs.testInsertStringRecordArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new testInsertStringRecordResult(); + var result = new InternalStructs.testInsertStringRecordResult(); try { result.Success = await _iAsync.testInsertStringRecordAsync(args.Req, cancellationToken); @@ -3315,8 +3502,11 @@ public async Task testInsertStringRecord_ProcessAsync(int seqid, TProtocol iprot } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertStringRecord", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3325,12 +3515,12 @@ public async Task testInsertStringRecord_ProcessAsync(int seqid, TProtocol iprot await oprot.Transport.FlushAsync(cancellationToken); } - public async Task testInsertRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task testInsertRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new testInsertRecordsArgs(); + var args = new InternalStructs.testInsertRecordsArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new testInsertRecordsResult(); + var result = new InternalStructs.testInsertRecordsResult(); try { result.Success = await _iAsync.testInsertRecordsAsync(args.Req, cancellationToken); @@ -3343,8 +3533,11 @@ public async Task testInsertRecords_ProcessAsync(int seqid, TProtocol iprot, TPr } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertRecords", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3353,12 +3546,12 @@ public async Task testInsertRecords_ProcessAsync(int seqid, TProtocol iprot, TPr await oprot.Transport.FlushAsync(cancellationToken); } - public async Task testInsertRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task testInsertRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new testInsertRecordsOfOneDeviceArgs(); + var args = new InternalStructs.testInsertRecordsOfOneDeviceArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new testInsertRecordsOfOneDeviceResult(); + var result = new InternalStructs.testInsertRecordsOfOneDeviceResult(); try { result.Success = await _iAsync.testInsertRecordsOfOneDeviceAsync(args.Req, cancellationToken); @@ -3371,8 +3564,11 @@ public async Task testInsertRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertRecordsOfOneDevice", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3381,12 +3577,12 @@ public async Task testInsertRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol await oprot.Transport.FlushAsync(cancellationToken); } - public async Task testInsertStringRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task testInsertStringRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new testInsertStringRecordsArgs(); + var args = new InternalStructs.testInsertStringRecordsArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new testInsertStringRecordsResult(); + var result = new InternalStructs.testInsertStringRecordsResult(); try { result.Success = await _iAsync.testInsertStringRecordsAsync(args.Req, cancellationToken); @@ -3399,8 +3595,11 @@ public async Task testInsertStringRecords_ProcessAsync(int seqid, TProtocol ipro } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertStringRecords", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3409,12 +3608,12 @@ public async Task testInsertStringRecords_ProcessAsync(int seqid, TProtocol ipro await oprot.Transport.FlushAsync(cancellationToken); } - public async Task deleteData_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task deleteData_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new deleteDataArgs(); + var args = new InternalStructs.deleteDataArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new deleteDataResult(); + var result = new InternalStructs.deleteDataResult(); try { result.Success = await _iAsync.deleteDataAsync(args.Req, cancellationToken); @@ -3427,8 +3626,11 @@ public async Task deleteData_ProcessAsync(int seqid, TProtocol iprot, TProtocol } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("deleteData", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3437,12 +3639,12 @@ public async Task deleteData_ProcessAsync(int seqid, TProtocol iprot, TProtocol await oprot.Transport.FlushAsync(cancellationToken); } - public async Task executeRawDataQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task executeRawDataQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new executeRawDataQueryArgs(); + var args = new InternalStructs.executeRawDataQueryArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new executeRawDataQueryResult(); + var result = new InternalStructs.executeRawDataQueryResult(); try { result.Success = await _iAsync.executeRawDataQueryAsync(args.Req, cancellationToken); @@ -3455,8 +3657,11 @@ public async Task executeRawDataQuery_ProcessAsync(int seqid, TProtocol iprot, T } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeRawDataQuery", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3465,12 +3670,12 @@ public async Task executeRawDataQuery_ProcessAsync(int seqid, TProtocol iprot, T await oprot.Transport.FlushAsync(cancellationToken); } - public async Task executeLastDataQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task executeLastDataQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new executeLastDataQueryArgs(); + var args = new InternalStructs.executeLastDataQueryArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new executeLastDataQueryResult(); + var result = new InternalStructs.executeLastDataQueryResult(); try { result.Success = await _iAsync.executeLastDataQueryAsync(args.Req, cancellationToken); @@ -3483,8 +3688,11 @@ public async Task executeLastDataQuery_ProcessAsync(int seqid, TProtocol iprot, } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeLastDataQuery", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3493,12 +3701,12 @@ public async Task executeLastDataQuery_ProcessAsync(int seqid, TProtocol iprot, await oprot.Transport.FlushAsync(cancellationToken); } - public async Task executeAggregationQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task executeAggregationQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new executeAggregationQueryArgs(); + var args = new InternalStructs.executeAggregationQueryArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new executeAggregationQueryResult(); + var result = new InternalStructs.executeAggregationQueryResult(); try { result.Success = await _iAsync.executeAggregationQueryAsync(args.Req, cancellationToken); @@ -3511,8 +3719,11 @@ public async Task executeAggregationQuery_ProcessAsync(int seqid, TProtocol ipro } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeAggregationQuery", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3521,12 +3732,12 @@ public async Task executeAggregationQuery_ProcessAsync(int seqid, TProtocol ipro await oprot.Transport.FlushAsync(cancellationToken); } - public async Task requestStatementId_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task requestStatementId_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new requestStatementIdArgs(); + var args = new InternalStructs.requestStatementIdArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new requestStatementIdResult(); + var result = new InternalStructs.requestStatementIdResult(); try { result.Success = await _iAsync.requestStatementIdAsync(args.SessionId, cancellationToken); @@ -3539,8 +3750,11 @@ public async Task requestStatementId_ProcessAsync(int seqid, TProtocol iprot, TP } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("requestStatementId", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3549,12 +3763,12 @@ public async Task requestStatementId_ProcessAsync(int seqid, TProtocol iprot, TP await oprot.Transport.FlushAsync(cancellationToken); } - public async Task createSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task createSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new createSchemaTemplateArgs(); + var args = new InternalStructs.createSchemaTemplateArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new createSchemaTemplateResult(); + var result = new InternalStructs.createSchemaTemplateResult(); try { result.Success = await _iAsync.createSchemaTemplateAsync(args.Req, cancellationToken); @@ -3567,8 +3781,11 @@ public async Task createSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("createSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3577,12 +3794,12 @@ public async Task createSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, await oprot.Transport.FlushAsync(cancellationToken); } - public async Task appendSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task appendSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new appendSchemaTemplateArgs(); + var args = new InternalStructs.appendSchemaTemplateArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new appendSchemaTemplateResult(); + var result = new InternalStructs.appendSchemaTemplateResult(); try { result.Success = await _iAsync.appendSchemaTemplateAsync(args.Req, cancellationToken); @@ -3595,8 +3812,11 @@ public async Task appendSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("appendSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3605,12 +3825,12 @@ public async Task appendSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, await oprot.Transport.FlushAsync(cancellationToken); } - public async Task pruneSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task pruneSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new pruneSchemaTemplateArgs(); + var args = new InternalStructs.pruneSchemaTemplateArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new pruneSchemaTemplateResult(); + var result = new InternalStructs.pruneSchemaTemplateResult(); try { result.Success = await _iAsync.pruneSchemaTemplateAsync(args.Req, cancellationToken); @@ -3623,8 +3843,11 @@ public async Task pruneSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, T } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("pruneSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3633,12 +3856,12 @@ public async Task pruneSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, T await oprot.Transport.FlushAsync(cancellationToken); } - public async Task querySchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task querySchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new querySchemaTemplateArgs(); + var args = new InternalStructs.querySchemaTemplateArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new querySchemaTemplateResult(); + var result = new InternalStructs.querySchemaTemplateResult(); try { result.Success = await _iAsync.querySchemaTemplateAsync(args.Req, cancellationToken); @@ -3651,8 +3874,11 @@ public async Task querySchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, T } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("querySchemaTemplate", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3661,12 +3887,12 @@ public async Task querySchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, T await oprot.Transport.FlushAsync(cancellationToken); } - public async Task showConfigurationTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task showConfigurationTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new showConfigurationTemplateArgs(); + var args = new InternalStructs.showConfigurationTemplateArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new showConfigurationTemplateResult(); + var result = new InternalStructs.showConfigurationTemplateResult(); try { result.Success = await _iAsync.showConfigurationTemplateAsync(cancellationToken); @@ -3679,8 +3905,11 @@ public async Task showConfigurationTemplate_ProcessAsync(int seqid, TProtocol ip } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("showConfigurationTemplate", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3689,12 +3918,12 @@ public async Task showConfigurationTemplate_ProcessAsync(int seqid, TProtocol ip await oprot.Transport.FlushAsync(cancellationToken); } - public async Task showConfiguration_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task showConfiguration_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new showConfigurationArgs(); + var args = new InternalStructs.showConfigurationArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new showConfigurationResult(); + var result = new InternalStructs.showConfigurationResult(); try { result.Success = await _iAsync.showConfigurationAsync(args.NodeId, cancellationToken); @@ -3707,8 +3936,11 @@ public async Task showConfiguration_ProcessAsync(int seqid, TProtocol iprot, TPr } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("showConfiguration", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3717,12 +3949,12 @@ public async Task showConfiguration_ProcessAsync(int seqid, TProtocol iprot, TPr await oprot.Transport.FlushAsync(cancellationToken); } - public async Task setSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task setSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new setSchemaTemplateArgs(); + var args = new InternalStructs.setSchemaTemplateArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new setSchemaTemplateResult(); + var result = new InternalStructs.setSchemaTemplateResult(); try { result.Success = await _iAsync.setSchemaTemplateAsync(args.Req, cancellationToken); @@ -3735,8 +3967,11 @@ public async Task setSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TPr } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("setSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3745,12 +3980,12 @@ public async Task setSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TPr await oprot.Transport.FlushAsync(cancellationToken); } - public async Task unsetSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task unsetSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new unsetSchemaTemplateArgs(); + var args = new InternalStructs.unsetSchemaTemplateArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new unsetSchemaTemplateResult(); + var result = new InternalStructs.unsetSchemaTemplateResult(); try { result.Success = await _iAsync.unsetSchemaTemplateAsync(args.Req, cancellationToken); @@ -3763,8 +3998,11 @@ public async Task unsetSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, T } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("unsetSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3773,12 +4011,12 @@ public async Task unsetSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, T await oprot.Transport.FlushAsync(cancellationToken); } - public async Task dropSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task dropSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new dropSchemaTemplateArgs(); + var args = new InternalStructs.dropSchemaTemplateArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new dropSchemaTemplateResult(); + var result = new InternalStructs.dropSchemaTemplateResult(); try { result.Success = await _iAsync.dropSchemaTemplateAsync(args.Req, cancellationToken); @@ -3791,8 +4029,11 @@ public async Task dropSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TP } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("dropSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3801,12 +4042,12 @@ public async Task dropSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TP await oprot.Transport.FlushAsync(cancellationToken); } - public async Task createTimeseriesUsingSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task createTimeseriesUsingSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new createTimeseriesUsingSchemaTemplateArgs(); + var args = new InternalStructs.createTimeseriesUsingSchemaTemplateArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new createTimeseriesUsingSchemaTemplateResult(); + var result = new InternalStructs.createTimeseriesUsingSchemaTemplateResult(); try { result.Success = await _iAsync.createTimeseriesUsingSchemaTemplateAsync(args.Req, cancellationToken); @@ -3819,8 +4060,11 @@ public async Task createTimeseriesUsingSchemaTemplate_ProcessAsync(int seqid, TP } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("createTimeseriesUsingSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3829,12 +4073,12 @@ public async Task createTimeseriesUsingSchemaTemplate_ProcessAsync(int seqid, TP await oprot.Transport.FlushAsync(cancellationToken); } - public async Task handshake_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task handshake_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new handshakeArgs(); + var args = new InternalStructs.handshakeArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new handshakeResult(); + var result = new InternalStructs.handshakeResult(); try { result.Success = await _iAsync.handshakeAsync(args.Info, cancellationToken); @@ -3847,8 +4091,11 @@ public async Task handshake_ProcessAsync(int seqid, TProtocol iprot, TProtocol o } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("handshake", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3857,12 +4104,12 @@ public async Task handshake_ProcessAsync(int seqid, TProtocol iprot, TProtocol o await oprot.Transport.FlushAsync(cancellationToken); } - public async Task sendPipeData_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task sendPipeData_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new sendPipeDataArgs(); + var args = new InternalStructs.sendPipeDataArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new sendPipeDataResult(); + var result = new InternalStructs.sendPipeDataResult(); try { result.Success = await _iAsync.sendPipeDataAsync(args.Buff, cancellationToken); @@ -3875,8 +4122,11 @@ public async Task sendPipeData_ProcessAsync(int seqid, TProtocol iprot, TProtoco } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("sendPipeData", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3885,12 +4135,12 @@ public async Task sendPipeData_ProcessAsync(int seqid, TProtocol iprot, TProtoco await oprot.Transport.FlushAsync(cancellationToken); } - public async Task sendFile_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task sendFile_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new sendFileArgs(); + var args = new InternalStructs.sendFileArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new sendFileResult(); + var result = new InternalStructs.sendFileResult(); try { result.Success = await _iAsync.sendFileAsync(args.MetaInfo, args.Buff, cancellationToken); @@ -3903,8 +4153,11 @@ public async Task sendFile_ProcessAsync(int seqid, TProtocol iprot, TProtocol op } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("sendFile", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3913,12 +4166,12 @@ public async Task sendFile_ProcessAsync(int seqid, TProtocol iprot, TProtocol op await oprot.Transport.FlushAsync(cancellationToken); } - public async Task pipeTransfer_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task pipeTransfer_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new pipeTransferArgs(); + var args = new InternalStructs.pipeTransferArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new pipeTransferResult(); + var result = new InternalStructs.pipeTransferResult(); try { result.Success = await _iAsync.pipeTransferAsync(args.Req, cancellationToken); @@ -3931,8 +4184,11 @@ public async Task pipeTransfer_ProcessAsync(int seqid, TProtocol iprot, TProtoco } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("pipeTransfer", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3941,12 +4197,12 @@ public async Task pipeTransfer_ProcessAsync(int seqid, TProtocol iprot, TProtoco await oprot.Transport.FlushAsync(cancellationToken); } - public async Task pipeSubscribe_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task pipeSubscribe_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new pipeSubscribeArgs(); + var args = new InternalStructs.pipeSubscribeArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new pipeSubscribeResult(); + var result = new InternalStructs.pipeSubscribeResult(); try { result.Success = await _iAsync.pipeSubscribeAsync(args.Req, cancellationToken); @@ -3959,8 +4215,11 @@ public async Task pipeSubscribe_ProcessAsync(int seqid, TProtocol iprot, TProtoc } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("pipeSubscribe", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3969,12 +4228,12 @@ public async Task pipeSubscribe_ProcessAsync(int seqid, TProtocol iprot, TProtoc await oprot.Transport.FlushAsync(cancellationToken); } - public async Task getBackupConfiguration_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task getBackupConfiguration_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new getBackupConfigurationArgs(); + var args = new InternalStructs.getBackupConfigurationArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new getBackupConfigurationResult(); + var result = new InternalStructs.getBackupConfigurationResult(); try { result.Success = await _iAsync.getBackupConfigurationAsync(cancellationToken); @@ -3987,8 +4246,11 @@ public async Task getBackupConfiguration_ProcessAsync(int seqid, TProtocol iprot } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("getBackupConfiguration", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -3997,12 +4259,12 @@ public async Task getBackupConfiguration_ProcessAsync(int seqid, TProtocol iprot await oprot.Transport.FlushAsync(cancellationToken); } - public async Task fetchAllConnectionsInfo_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task fetchAllConnectionsInfo_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new fetchAllConnectionsInfoArgs(); + var args = new InternalStructs.fetchAllConnectionsInfoArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new fetchAllConnectionsInfoResult(); + var result = new InternalStructs.fetchAllConnectionsInfoResult(); try { result.Success = await _iAsync.fetchAllConnectionsInfoAsync(cancellationToken); @@ -4015,8 +4277,11 @@ public async Task fetchAllConnectionsInfo_ProcessAsync(int seqid, TProtocol ipro } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("fetchAllConnectionsInfo", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -4025,12 +4290,12 @@ public async Task fetchAllConnectionsInfo_ProcessAsync(int seqid, TProtocol ipro await oprot.Transport.FlushAsync(cancellationToken); } - public async Task testConnectionEmptyRPC_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task testConnectionEmptyRPC_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new testConnectionEmptyRPCArgs(); + var args = new InternalStructs.testConnectionEmptyRPCArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new testConnectionEmptyRPCResult(); + var result = new InternalStructs.testConnectionEmptyRPCResult(); try { result.Success = await _iAsync.testConnectionEmptyRPCAsync(cancellationToken); @@ -4043,8 +4308,11 @@ public async Task testConnectionEmptyRPC_ProcessAsync(int seqid, TProtocol iprot } catch (Exception ex) { - Console.Error.WriteLine("Error occurred in processor:"); - Console.Error.WriteLine(ex.ToString()); + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + if(_logger != null) + _logger.LogError(ex, sErr); + else + Console.Error.WriteLine(sErr); var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testConnectionEmptyRPC", TMessageType.Exception, seqid), cancellationToken); await x.WriteAsync(oprot, cancellationToken); @@ -4055,17631 +4323,19081 @@ public async Task testConnectionEmptyRPC_ProcessAsync(int seqid, TProtocol iprot } - - public partial class executeQueryStatementV2Args : TBase + public class InternalStructs { - private TSExecuteStatementReq _req; - - public TSExecuteStatementReq Req - { - get - { - return _req; - } - set - { - __isset.req = true; - this._req = value; - } - } - - - public Isset __isset; - public struct Isset - { - public bool req; - } - public executeQueryStatementV2Args() + public partial class executeQueryStatementV2Args : TBase { - } + private TSExecuteStatementReq _req; - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public TSExecuteStatementReq Req { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + get { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } - - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSExecuteStatementReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + return _req; } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); - } - } - - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("executeQueryStatementV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + set { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + __isset.req = true; + this._req = value; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } - } - - public override bool Equals(object that) - { - var other = that as executeQueryStatementV2Args; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeQueryStatementV2_args("); - bool __first = true; - if (Req != null && __isset.req) + public Isset __isset; + public struct Isset { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + public bool req; } - sb.Append(")"); - return sb.ToString(); - } - } - - - public partial class executeQueryStatementV2Result : TBase - { - private TSExecuteStatementResp _success; - public TSExecuteStatementResp Success - { - get + public executeQueryStatementV2Args() { - return _success; } - set + + public executeQueryStatementV2Args DeepCopy() { - __isset.success = true; - this._success = value; + var tmp471 = new executeQueryStatementV2Args(); + if((Req != null) && __isset.req) + { + tmp471.Req = (TSExecuteStatementReq)this.Req.DeepCopy(); + } + tmp471.__isset.req = this.__isset.req; + return tmp471; } - } - - - public Isset __isset; - public struct Isset - { - public bool success; - } - - public executeQueryStatementV2Result() - { - } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSExecuteStatementReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeQueryStatementV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("executeQueryStatementV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeQueryStatementV2Args other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - public override bool Equals(object that) - { - var other = that as executeQueryStatementV2Result; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeQueryStatementV2_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("executeQueryStatementV2_args("); + int tmp472 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp472++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class executeUpdateStatementV2Args : TBase - { - private TSExecuteStatementReq _req; - - public TSExecuteStatementReq Req + public partial class executeQueryStatementV2Result : TBase { - get + private TSExecuteStatementResp _success; + + public TSExecuteStatementResp Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public executeQueryStatementV2Result() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public executeUpdateStatementV2Args() - { - } + public executeQueryStatementV2Result DeepCopy() + { + var tmp473 = new executeQueryStatementV2Result(); + if((Success != null) && __isset.success) + { + tmp473.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); + } + tmp473.__isset.success = this.__isset.success; + return tmp473; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSExecuteStatementReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeUpdateStatementV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeQueryStatementV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeQueryStatementV2Result other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as executeUpdateStatementV2Args; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeUpdateStatementV2_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("executeQueryStatementV2_result("); + int tmp474 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp474++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class executeUpdateStatementV2Result : TBase - { - private TSExecuteStatementResp _success; - public TSExecuteStatementResp Success + public partial class executeUpdateStatementV2Args : TBase { - get + private TSExecuteStatementReq _req; + + public TSExecuteStatementReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public executeUpdateStatementV2Args() + { + } - public executeUpdateStatementV2Result() - { - } + public executeUpdateStatementV2Args DeepCopy() + { + var tmp475 = new executeUpdateStatementV2Args(); + if((Req != null) && __isset.req) + { + tmp475.Req = (TSExecuteStatementReq)this.Req.DeepCopy(); + } + tmp475.__isset.req = this.__isset.req; + return tmp475; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSExecuteStatementReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeUpdateStatementV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("executeUpdateStatementV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeUpdateStatementV2Args other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as executeUpdateStatementV2Result; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeUpdateStatementV2_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("executeUpdateStatementV2_args("); + int tmp476 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp476++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class executeStatementV2Args : TBase - { - private TSExecuteStatementReq _req; - public TSExecuteStatementReq Req + public partial class executeUpdateStatementV2Result : TBase { - get + private TSExecuteStatementResp _success; + + public TSExecuteStatementResp Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool req; - } + public executeUpdateStatementV2Result() + { + } - public executeStatementV2Args() - { - } + public executeUpdateStatementV2Result DeepCopy() + { + var tmp477 = new executeUpdateStatementV2Result(); + if((Success != null) && __isset.success) + { + tmp477.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); + } + tmp477.__isset.success = this.__isset.success; + return tmp477; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSExecuteStatementReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeStatementV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeUpdateStatementV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeUpdateStatementV2Result other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as executeStatementV2Args; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeStatementV2_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("executeUpdateStatementV2_result("); + int tmp478 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp478++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class executeStatementV2Result : TBase - { - private TSExecuteStatementResp _success; - - public TSExecuteStatementResp Success + public partial class executeStatementV2Args : TBase { - get + private TSExecuteStatementReq _req; + + public TSExecuteStatementReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } + public executeStatementV2Args() + { + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public executeStatementV2Result() - { - } + public executeStatementV2Args DeepCopy() + { + var tmp479 = new executeStatementV2Args(); + if((Req != null) && __isset.req) + { + tmp479.Req = (TSExecuteStatementReq)this.Req.DeepCopy(); + } + tmp479.__isset.req = this.__isset.req; + return tmp479; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSExecuteStatementReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeStatementV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("executeStatementV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeStatementV2Args other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as executeStatementV2Result; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeStatementV2_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("executeStatementV2_args("); + int tmp480 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp480++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class executeRawDataQueryV2Args : TBase - { - private TSRawDataQueryReq _req; - - public TSRawDataQueryReq Req + public partial class executeStatementV2Result : TBase { - get + private TSExecuteStatementResp _success; + + public TSExecuteStatementResp Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public executeStatementV2Result() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public executeRawDataQueryV2Args() - { - } + public executeStatementV2Result DeepCopy() + { + var tmp481 = new executeStatementV2Result(); + if((Success != null) && __isset.success) + { + tmp481.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); + } + tmp481.__isset.success = this.__isset.success; + return tmp481; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSRawDataQueryReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeRawDataQueryV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeStatementV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeStatementV2Result other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - public override bool Equals(object that) - { - var other = that as executeRawDataQueryV2Args; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeRawDataQueryV2_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("executeStatementV2_result("); + int tmp482 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp482++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class executeRawDataQueryV2Result : TBase - { - private TSExecuteStatementResp _success; - public TSExecuteStatementResp Success + public partial class executeRawDataQueryV2Args : TBase { - get + private TSRawDataQueryReq _req; + + public TSRawDataQueryReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public executeRawDataQueryV2Args() + { + } - public executeRawDataQueryV2Result() - { - } + public executeRawDataQueryV2Args DeepCopy() + { + var tmp483 = new executeRawDataQueryV2Args(); + if((Req != null) && __isset.req) + { + tmp483.Req = (TSRawDataQueryReq)this.Req.DeepCopy(); + } + tmp483.__isset.req = this.__isset.req; + return tmp483; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSRawDataQueryReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeRawDataQueryV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("executeRawDataQueryV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeRawDataQueryV2Args other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - public override bool Equals(object that) - { - var other = that as executeRawDataQueryV2Result; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeRawDataQueryV2_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("executeRawDataQueryV2_args("); + int tmp484 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp484++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class executeLastDataQueryV2Args : TBase - { - private TSLastDataQueryReq _req; - public TSLastDataQueryReq Req + public partial class executeRawDataQueryV2Result : TBase { - get + private TSExecuteStatementResp _success; + + public TSExecuteStatementResp Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool req; - } + public executeRawDataQueryV2Result() + { + } - public executeLastDataQueryV2Args() - { - } + public executeRawDataQueryV2Result DeepCopy() + { + var tmp485 = new executeRawDataQueryV2Result(); + if((Success != null) && __isset.success) + { + tmp485.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); + } + tmp485.__isset.success = this.__isset.success; + return tmp485; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSLastDataQueryReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeLastDataQueryV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeRawDataQueryV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeRawDataQueryV2Result other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as executeLastDataQueryV2Args; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeLastDataQueryV2_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("executeRawDataQueryV2_result("); + int tmp486 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp486++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class executeLastDataQueryV2Result : TBase - { - private TSExecuteStatementResp _success; - - public TSExecuteStatementResp Success + public partial class executeLastDataQueryV2Args : TBase { - get + private TSLastDataQueryReq _req; + + public TSLastDataQueryReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } + public executeLastDataQueryV2Args() + { + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public executeLastDataQueryV2Result() - { - } + public executeLastDataQueryV2Args DeepCopy() + { + var tmp487 = new executeLastDataQueryV2Args(); + if((Req != null) && __isset.req) + { + tmp487.Req = (TSLastDataQueryReq)this.Req.DeepCopy(); + } + tmp487.__isset.req = this.__isset.req; + return tmp487; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSLastDataQueryReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeLastDataQueryV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("executeLastDataQueryV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeLastDataQueryV2Args other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - public override bool Equals(object that) - { - var other = that as executeLastDataQueryV2Result; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeLastDataQueryV2_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("executeLastDataQueryV2_args("); + int tmp488 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp488++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class executeFastLastDataQueryForOneDeviceV2Args : TBase - { - private TSFastLastDataQueryForOneDeviceReq _req; - - public TSFastLastDataQueryForOneDeviceReq Req + public partial class executeLastDataQueryV2Result : TBase { - get + private TSExecuteStatementResp _success; + + public TSExecuteStatementResp Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public executeLastDataQueryV2Result() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public executeFastLastDataQueryForOneDeviceV2Args() - { - } + public executeLastDataQueryV2Result DeepCopy() + { + var tmp489 = new executeLastDataQueryV2Result(); + if((Success != null) && __isset.success) + { + tmp489.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); + } + tmp489.__isset.success = this.__isset.success; + return tmp489; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSFastLastDataQueryForOneDeviceReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeFastLastDataQueryForOneDeviceV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeLastDataQueryV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeLastDataQueryV2Result other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - public override bool Equals(object that) - { - var other = that as executeFastLastDataQueryForOneDeviceV2Args; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override string ToString() + { + var sb = new StringBuilder("executeLastDataQueryV2_result("); + int tmp490 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp490++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - return hashcode; } - public override string ToString() + + public partial class executeFastLastDataQueryForOneDeviceV2Args : TBase { - var sb = new StringBuilder("executeFastLastDataQueryForOneDeviceV2_args("); - bool __first = true; - if (Req != null && __isset.req) + private TSFastLastDataQueryForOneDeviceReq _req; + + public TSFastLastDataQueryForOneDeviceReq Req { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - sb.Append(")"); - return sb.ToString(); - } - } - public partial class executeFastLastDataQueryForOneDeviceV2Result : TBase - { - private TSExecuteStatementResp _success; + public Isset __isset; + public struct Isset + { + public bool req; + } - public TSExecuteStatementResp Success - { - get + public executeFastLastDataQueryForOneDeviceV2Args() { - return _success; } - set + + public executeFastLastDataQueryForOneDeviceV2Args DeepCopy() { - __isset.success = true; - this._success = value; + var tmp491 = new executeFastLastDataQueryForOneDeviceV2Args(); + if((Req != null) && __isset.req) + { + tmp491.Req = (TSFastLastDataQueryForOneDeviceReq)this.Req.DeepCopy(); + } + tmp491.__isset.req = this.__isset.req; + return tmp491; } - } + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - public Isset __isset; - public struct Isset - { - public bool success; - } + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSFastLastDataQueryForOneDeviceReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } - public executeFastLastDataQueryForOneDeviceV2Result() - { - } + await iprot.ReadFieldEndAsync(cancellationToken); + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + oprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + var struc = new TStruct("executeFastLastDataQueryForOneDeviceV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - break; - } - - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - - await iprot.ReadFieldEndAsync(cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public override bool Equals(object that) { - var struc = new TStruct("executeFastLastDataQueryForOneDeviceV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + if (!(that is executeFastLastDataQueryForOneDeviceV2Args other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - if(this.__isset.success) - { - if (Success != null) + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + hashcode = (hashcode * 397) + Req.GetHashCode(); } } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); + return hashcode; } - finally + + public override string ToString() { - oprot.DecrementRecursionDepth(); + var sb = new StringBuilder("executeFastLastDataQueryForOneDeviceV2_args("); + int tmp492 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp492++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } } - public override bool Equals(object that) - { - var other = that as executeFastLastDataQueryForOneDeviceV2Result; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - return hashcode; - } - public override string ToString() + public partial class executeFastLastDataQueryForOneDeviceV2Result : TBase { - var sb = new StringBuilder("executeFastLastDataQueryForOneDeviceV2_result("); - bool __first = true; - if (Success != null && __isset.success) + private TSExecuteStatementResp _success; + + public TSExecuteStatementResp Success { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - sb.Append(")"); - return sb.ToString(); - } - } - - public partial class executeAggregationQueryV2Args : TBase - { - private TSAggregationQueryReq _req; - public TSAggregationQueryReq Req - { - get + public Isset __isset; + public struct Isset { - return _req; + public bool success; } - set + + public executeFastLastDataQueryForOneDeviceV2Result() { - __isset.req = true; - this._req = value; } - } - - - public Isset __isset; - public struct Isset - { - public bool req; - } - public executeAggregationQueryV2Args() - { - } + public executeFastLastDataQueryForOneDeviceV2Result DeepCopy() + { + var tmp493 = new executeFastLastDataQueryForOneDeviceV2Result(); + if((Success != null) && __isset.success) + { + tmp493.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); + } + tmp493.__isset.success = this.__isset.success; + return tmp493; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSAggregationQueryReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeAggregationQueryV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + var struc = new TStruct("executeFastLastDataQueryForOneDeviceV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeFastLastDataQueryForOneDeviceV2Result other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as executeAggregationQueryV2Args; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeAggregationQueryV2_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("executeFastLastDataQueryForOneDeviceV2_result("); + int tmp494 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp494++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class executeAggregationQueryV2Result : TBase - { - private TSExecuteStatementResp _success; - - public TSExecuteStatementResp Success + public partial class executeAggregationQueryV2Args : TBase { - get + private TSAggregationQueryReq _req; + + public TSAggregationQueryReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } + public executeAggregationQueryV2Args() + { + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public executeAggregationQueryV2Result() - { - } + public executeAggregationQueryV2Args DeepCopy() + { + var tmp495 = new executeAggregationQueryV2Args(); + if((Req != null) && __isset.req) + { + tmp495.Req = (TSAggregationQueryReq)this.Req.DeepCopy(); + } + tmp495.__isset.req = this.__isset.req; + return tmp495; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSAggregationQueryReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeAggregationQueryV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("executeAggregationQueryV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeAggregationQueryV2Args other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - public override bool Equals(object that) - { - var other = that as executeAggregationQueryV2Result; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeAggregationQueryV2_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("executeAggregationQueryV2_args("); + int tmp496 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp496++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class executeGroupByQueryIntervalQueryArgs : TBase - { - private TSGroupByQueryIntervalReq _req; - - public TSGroupByQueryIntervalReq Req + public partial class executeAggregationQueryV2Result : TBase { - get + private TSExecuteStatementResp _success; + + public TSExecuteStatementResp Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public executeAggregationQueryV2Result() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public executeGroupByQueryIntervalQueryArgs() - { - } + public executeAggregationQueryV2Result DeepCopy() + { + var tmp497 = new executeAggregationQueryV2Result(); + if((Success != null) && __isset.success) + { + tmp497.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); + } + tmp497.__isset.success = this.__isset.success; + return tmp497; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSGroupByQueryIntervalReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeGroupByQueryIntervalQuery_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeAggregationQueryV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeAggregationQueryV2Result other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - public override bool Equals(object that) - { - var other = that as executeGroupByQueryIntervalQueryArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override string ToString() + { + var sb = new StringBuilder("executeAggregationQueryV2_result("); + int tmp498 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp498++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - return hashcode; } - public override string ToString() + + public partial class executeGroupByQueryIntervalQueryArgs : TBase { - var sb = new StringBuilder("executeGroupByQueryIntervalQuery_args("); - bool __first = true; - if (Req != null && __isset.req) + private TSGroupByQueryIntervalReq _req; + + public TSGroupByQueryIntervalReq Req { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - sb.Append(")"); - return sb.ToString(); - } - } - - public partial class executeGroupByQueryIntervalQueryResult : TBase - { - private TSExecuteStatementResp _success; - public TSExecuteStatementResp Success - { - get + public Isset __isset; + public struct Isset { - return _success; + public bool req; } - set + + public executeGroupByQueryIntervalQueryArgs() { - __isset.success = true; - this._success = value; } - } + public executeGroupByQueryIntervalQueryArgs DeepCopy() + { + var tmp499 = new executeGroupByQueryIntervalQueryArgs(); + if((Req != null) && __isset.req) + { + tmp499.Req = (TSGroupByQueryIntervalReq)this.Req.DeepCopy(); + } + tmp499.__isset.req = this.__isset.req; + return tmp499; + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public executeGroupByQueryIntervalQueryResult() - { - } - - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSGroupByQueryIntervalReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeGroupByQueryIntervalQuery_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("executeGroupByQueryIntervalQuery_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeGroupByQueryIntervalQueryArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as executeGroupByQueryIntervalQueryResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeGroupByQueryIntervalQuery_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("executeGroupByQueryIntervalQuery_args("); + int tmp500 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp500++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class fetchResultsV2Args : TBase - { - private TSFetchResultsReq _req; - public TSFetchResultsReq Req + public partial class executeGroupByQueryIntervalQueryResult : TBase { - get + private TSExecuteStatementResp _success; + + public TSExecuteStatementResp Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool req; - } + public executeGroupByQueryIntervalQueryResult() + { + } - public fetchResultsV2Args() - { - } + public executeGroupByQueryIntervalQueryResult DeepCopy() + { + var tmp501 = new executeGroupByQueryIntervalQueryResult(); + if((Success != null) && __isset.success) + { + tmp501.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); + } + tmp501.__isset.success = this.__isset.success; + return tmp501; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSFetchResultsReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("fetchResultsV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeGroupByQueryIntervalQuery_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeGroupByQueryIntervalQueryResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as fetchResultsV2Args; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("fetchResultsV2_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("executeGroupByQueryIntervalQuery_result("); + int tmp502 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp502++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class fetchResultsV2Result : TBase - { - private TSFetchResultsResp _success; - - public TSFetchResultsResp Success + public partial class fetchResultsV2Args : TBase { - get + private TSFetchResultsReq _req; + + public TSFetchResultsReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } + public fetchResultsV2Args() + { + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public fetchResultsV2Result() - { - } + public fetchResultsV2Args DeepCopy() + { + var tmp503 = new fetchResultsV2Args(); + if((Req != null) && __isset.req) + { + tmp503.Req = (TSFetchResultsReq)this.Req.DeepCopy(); + } + tmp503.__isset.req = this.__isset.req; + return tmp503; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSFetchResultsResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSFetchResultsReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("fetchResultsV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("fetchResultsV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is fetchResultsV2Args other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as fetchResultsV2Result; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("fetchResultsV2_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("fetchResultsV2_args("); + int tmp504 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp504++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class openSessionArgs : TBase - { - private TSOpenSessionReq _req; - - public TSOpenSessionReq Req + public partial class fetchResultsV2Result : TBase { - get + private TSFetchResultsResp _success; + + public TSFetchResultsResp Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public fetchResultsV2Result() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public openSessionArgs() - { - } + public fetchResultsV2Result DeepCopy() + { + var tmp505 = new fetchResultsV2Result(); + if((Success != null) && __isset.success) + { + tmp505.Success = (TSFetchResultsResp)this.Success.DeepCopy(); + } + tmp505.__isset.success = this.__isset.success; + return tmp505; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSOpenSessionReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSFetchResultsResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("openSession_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("fetchResultsV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is fetchResultsV2Result other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - public override bool Equals(object that) - { - var other = that as openSessionArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - return hashcode; - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; + } - public override string ToString() - { - var sb = new StringBuilder("openSession_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("fetchResultsV2_result("); + int tmp506 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp506++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class openSessionResult : TBase - { - private TSOpenSessionResp _success; - public TSOpenSessionResp Success + public partial class openSessionArgs : TBase { - get + private TSOpenSessionReq _req; + + public TSOpenSessionReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public openSessionArgs() + { + } - public openSessionResult() - { - } + public openSessionArgs DeepCopy() + { + var tmp507 = new openSessionArgs(); + if((Req != null) && __isset.req) + { + tmp507.Req = (TSOpenSessionReq)this.Req.DeepCopy(); + } + tmp507.__isset.req = this.__isset.req; + return tmp507; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSOpenSessionResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSOpenSessionReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("openSession_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("openSession_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is openSessionArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as openSessionResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("openSession_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("openSession_args("); + int tmp508 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp508++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class closeSessionArgs : TBase - { - private TSCloseSessionReq _req; - public TSCloseSessionReq Req + public partial class openSessionResult : TBase { - get + private TSOpenSessionResp _success; + + public TSOpenSessionResp Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool req; - } + public openSessionResult() + { + } - public closeSessionArgs() - { - } + public openSessionResult DeepCopy() + { + var tmp509 = new openSessionResult(); + if((Success != null) && __isset.success) + { + tmp509.Success = (TSOpenSessionResp)this.Success.DeepCopy(); + } + tmp509.__isset.success = this.__isset.success; + return tmp509; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSCloseSessionReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSOpenSessionResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("closeSession_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("openSession_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is openSessionResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as closeSessionArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("closeSession_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("openSession_result("); + int tmp510 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp510++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class closeSessionResult : TBase - { - private TSStatus _success; - - public TSStatus Success + public partial class closeSessionArgs : TBase { - get + private TSCloseSessionReq _req; + + public TSCloseSessionReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } + public closeSessionArgs() + { + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public closeSessionResult() - { - } + public closeSessionArgs DeepCopy() + { + var tmp511 = new closeSessionArgs(); + if((Req != null) && __isset.req) + { + tmp511.Req = (TSCloseSessionReq)this.Req.DeepCopy(); + } + tmp511.__isset.req = this.__isset.req; + return tmp511; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSCloseSessionReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("closeSession_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("closeSession_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is closeSessionArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as closeSessionResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("closeSession_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("closeSession_args("); + int tmp512 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp512++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class executeStatementArgs : TBase - { - private TSExecuteStatementReq _req; - - public TSExecuteStatementReq Req + public partial class closeSessionResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public closeSessionResult() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public executeStatementArgs() - { - } + public closeSessionResult DeepCopy() + { + var tmp513 = new closeSessionResult(); + if((Success != null) && __isset.success) + { + tmp513.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp513.__isset.success = this.__isset.success; + return tmp513; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSExecuteStatementReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeStatement_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("closeSession_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is closeSessionResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - public override bool Equals(object that) - { - var other = that as executeStatementArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeStatement_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("closeSession_result("); + int tmp514 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp514++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class executeStatementResult : TBase - { - private TSExecuteStatementResp _success; - public TSExecuteStatementResp Success + public partial class executeStatementArgs : TBase { - get + private TSExecuteStatementReq _req; + + public TSExecuteStatementReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public executeStatementArgs() + { + } - public executeStatementResult() - { - } + public executeStatementArgs DeepCopy() + { + var tmp515 = new executeStatementArgs(); + if((Req != null) && __isset.req) + { + tmp515.Req = (TSExecuteStatementReq)this.Req.DeepCopy(); + } + tmp515.__isset.req = this.__isset.req; + return tmp515; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSExecuteStatementReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeStatement_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("executeStatement_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeStatementArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as executeStatementResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeStatement_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("executeStatement_args("); + int tmp516 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp516++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class executeBatchStatementArgs : TBase - { - private TSExecuteBatchStatementReq _req; - public TSExecuteBatchStatementReq Req + public partial class executeStatementResult : TBase { - get + private TSExecuteStatementResp _success; + + public TSExecuteStatementResp Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool req; - } + public executeStatementResult() + { + } - public executeBatchStatementArgs() - { - } + public executeStatementResult DeepCopy() + { + var tmp517 = new executeStatementResult(); + if((Success != null) && __isset.success) + { + tmp517.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); + } + tmp517.__isset.success = this.__isset.success; + return tmp517; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSExecuteBatchStatementReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeBatchStatement_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + var struc = new TStruct("executeStatement_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeStatementResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as executeBatchStatementArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeBatchStatement_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("executeStatement_result("); + int tmp518 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp518++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class executeBatchStatementResult : TBase - { - private TSStatus _success; - - public TSStatus Success + public partial class executeBatchStatementArgs : TBase { - get + private TSExecuteBatchStatementReq _req; + + public TSExecuteBatchStatementReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } + public executeBatchStatementArgs() + { + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public executeBatchStatementResult() - { - } + public executeBatchStatementArgs DeepCopy() + { + var tmp519 = new executeBatchStatementArgs(); + if((Req != null) && __isset.req) + { + tmp519.Req = (TSExecuteBatchStatementReq)this.Req.DeepCopy(); + } + tmp519.__isset.req = this.__isset.req; + return tmp519; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSExecuteBatchStatementReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeBatchStatement_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("executeBatchStatement_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeBatchStatementArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - public override bool Equals(object that) - { - var other = that as executeBatchStatementResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeBatchStatement_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("executeBatchStatement_args("); + int tmp520 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp520++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class executeQueryStatementArgs : TBase - { - private TSExecuteStatementReq _req; - - public TSExecuteStatementReq Req + public partial class executeBatchStatementResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public executeBatchStatementResult() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public executeQueryStatementArgs() - { - } + public executeBatchStatementResult DeepCopy() + { + var tmp521 = new executeBatchStatementResult(); + if((Success != null) && __isset.success) + { + tmp521.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp521.__isset.success = this.__isset.success; + return tmp521; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSExecuteStatementReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeQueryStatement_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeBatchStatement_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeBatchStatementResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as executeQueryStatementArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeQueryStatement_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("executeBatchStatement_result("); + int tmp522 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp522++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class executeQueryStatementResult : TBase - { - private TSExecuteStatementResp _success; - public TSExecuteStatementResp Success + public partial class executeQueryStatementArgs : TBase { - get + private TSExecuteStatementReq _req; + + public TSExecuteStatementReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public executeQueryStatementArgs() + { + } - public executeQueryStatementResult() - { - } + public executeQueryStatementArgs DeepCopy() + { + var tmp523 = new executeQueryStatementArgs(); + if((Req != null) && __isset.req) + { + tmp523.Req = (TSExecuteStatementReq)this.Req.DeepCopy(); + } + tmp523.__isset.req = this.__isset.req; + return tmp523; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSExecuteStatementReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeQueryStatement_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("executeQueryStatement_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeQueryStatementArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as executeQueryStatementResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeQueryStatement_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("executeQueryStatement_args("); + int tmp524 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp524++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class executeUpdateStatementArgs : TBase - { - private TSExecuteStatementReq _req; - public TSExecuteStatementReq Req + public partial class executeQueryStatementResult : TBase { - get + private TSExecuteStatementResp _success; + + public TSExecuteStatementResp Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool req; - } + public executeQueryStatementResult() + { + } - public executeUpdateStatementArgs() - { - } + public executeQueryStatementResult DeepCopy() + { + var tmp525 = new executeQueryStatementResult(); + if((Success != null) && __isset.success) + { + tmp525.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); + } + tmp525.__isset.success = this.__isset.success; + return tmp525; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSExecuteStatementReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeUpdateStatement_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeQueryStatement_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeQueryStatementResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as executeUpdateStatementArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeUpdateStatement_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("executeQueryStatement_result("); + int tmp526 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp526++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class executeUpdateStatementResult : TBase - { - private TSExecuteStatementResp _success; - - public TSExecuteStatementResp Success + public partial class executeUpdateStatementArgs : TBase { - get + private TSExecuteStatementReq _req; + + public TSExecuteStatementReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } + public executeUpdateStatementArgs() + { + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public executeUpdateStatementResult() - { - } + public executeUpdateStatementArgs DeepCopy() + { + var tmp527 = new executeUpdateStatementArgs(); + if((Req != null) && __isset.req) + { + tmp527.Req = (TSExecuteStatementReq)this.Req.DeepCopy(); + } + tmp527.__isset.req = this.__isset.req; + return tmp527; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSExecuteStatementReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeUpdateStatement_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("executeUpdateStatement_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeUpdateStatementArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as executeUpdateStatementResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeUpdateStatement_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("executeUpdateStatement_args("); + int tmp528 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp528++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class fetchResultsArgs : TBase - { - private TSFetchResultsReq _req; - - public TSFetchResultsReq Req + public partial class executeUpdateStatementResult : TBase { - get - { - return _req; - } - set + private TSExecuteStatementResp _success; + + public TSExecuteStatementResp Success { - __isset.req = true; - this._req = value; - } - } + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } + } - public Isset __isset; - public struct Isset - { - public bool req; - } + public Isset __isset; + public struct Isset + { + public bool success; + } - public fetchResultsArgs() - { - } + public executeUpdateStatementResult() + { + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public executeUpdateStatementResult DeepCopy() { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + var tmp529 = new executeUpdateStatementResult(); + if((Success != null) && __isset.success) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + tmp529.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); + } + tmp529.__isset.success = this.__isset.success; + return tmp529; + } - switch (field.ID) + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSFetchResultsReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { break; + } + + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("fetchResults_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeUpdateStatement_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeUpdateStatementResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - public override bool Equals(object that) - { - var other = that as fetchResultsArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("fetchResults_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("executeUpdateStatement_result("); + int tmp530 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp530++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class fetchResultsResult : TBase - { - private TSFetchResultsResp _success; - public TSFetchResultsResp Success + public partial class fetchResultsArgs : TBase { - get + private TSFetchResultsReq _req; + + public TSFetchResultsReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public fetchResultsArgs() + { + } - public fetchResultsResult() - { - } + public fetchResultsArgs DeepCopy() + { + var tmp531 = new fetchResultsArgs(); + if((Req != null) && __isset.req) + { + tmp531.Req = (TSFetchResultsReq)this.Req.DeepCopy(); + } + tmp531.__isset.req = this.__isset.req; + return tmp531; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSFetchResultsResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSFetchResultsReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("fetchResults_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("fetchResults_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is fetchResultsArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as fetchResultsResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("fetchResults_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("fetchResults_args("); + int tmp532 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp532++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class fetchMetadataArgs : TBase - { - private TSFetchMetadataReq _req; - public TSFetchMetadataReq Req + public partial class fetchResultsResult : TBase { - get + private TSFetchResultsResp _success; + + public TSFetchResultsResp Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool req; - } + public fetchResultsResult() + { + } - public fetchMetadataArgs() - { - } + public fetchResultsResult DeepCopy() + { + var tmp533 = new fetchResultsResult(); + if((Success != null) && __isset.success) + { + tmp533.Success = (TSFetchResultsResp)this.Success.DeepCopy(); + } + tmp533.__isset.success = this.__isset.success; + return tmp533; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSFetchMetadataReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSFetchResultsResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("fetchMetadata_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + var struc = new TStruct("fetchResults_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is fetchResultsResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as fetchMetadataArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("fetchMetadata_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("fetchResults_result("); + int tmp534 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp534++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class fetchMetadataResult : TBase - { - private TSFetchMetadataResp _success; - - public TSFetchMetadataResp Success + public partial class fetchMetadataArgs : TBase { - get + private TSFetchMetadataReq _req; + + public TSFetchMetadataReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } + public fetchMetadataArgs() + { + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public fetchMetadataResult() - { - } + public fetchMetadataArgs DeepCopy() + { + var tmp535 = new fetchMetadataArgs(); + if((Req != null) && __isset.req) + { + tmp535.Req = (TSFetchMetadataReq)this.Req.DeepCopy(); + } + tmp535.__isset.req = this.__isset.req; + return tmp535; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSFetchMetadataResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSFetchMetadataReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("fetchMetadata_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("fetchMetadata_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is fetchMetadataArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - public override bool Equals(object that) - { - var other = that as fetchMetadataResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("fetchMetadata_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("fetchMetadata_args("); + int tmp536 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp536++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class cancelOperationArgs : TBase - { - private TSCancelOperationReq _req; - - public TSCancelOperationReq Req + public partial class fetchMetadataResult : TBase { - get + private TSFetchMetadataResp _success; + + public TSFetchMetadataResp Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public fetchMetadataResult() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public cancelOperationArgs() - { - } + public fetchMetadataResult DeepCopy() + { + var tmp537 = new fetchMetadataResult(); + if((Success != null) && __isset.success) + { + tmp537.Success = (TSFetchMetadataResp)this.Success.DeepCopy(); + } + tmp537.__isset.success = this.__isset.success; + return tmp537; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSCancelOperationReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSFetchMetadataResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("cancelOperation_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("fetchMetadata_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is fetchMetadataResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as cancelOperationArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("cancelOperation_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("fetchMetadata_result("); + int tmp538 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp538++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class cancelOperationResult : TBase - { - private TSStatus _success; - public TSStatus Success + public partial class cancelOperationArgs : TBase { - get + private TSCancelOperationReq _req; + + public TSCancelOperationReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public cancelOperationArgs() + { + } - public cancelOperationResult() - { - } + public cancelOperationArgs DeepCopy() + { + var tmp539 = new cancelOperationArgs(); + if((Req != null) && __isset.req) + { + tmp539.Req = (TSCancelOperationReq)this.Req.DeepCopy(); + } + tmp539.__isset.req = this.__isset.req; + return tmp539; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSCancelOperationReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("cancelOperation_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("cancelOperation_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is cancelOperationArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as cancelOperationResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("cancelOperation_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("cancelOperation_args("); + int tmp540 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp540++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class closeOperationArgs : TBase - { - private TSCloseOperationReq _req; - public TSCloseOperationReq Req + public partial class cancelOperationResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool req; - } + public cancelOperationResult() + { + } - public closeOperationArgs() - { - } + public cancelOperationResult DeepCopy() + { + var tmp541 = new cancelOperationResult(); + if((Success != null) && __isset.success) + { + tmp541.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp541.__isset.success = this.__isset.success; + return tmp541; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSCloseOperationReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("closeOperation_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("cancelOperation_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is cancelOperationResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as closeOperationArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("closeOperation_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("cancelOperation_result("); + int tmp542 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp542++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class closeOperationResult : TBase - { - private TSStatus _success; - - public TSStatus Success + public partial class closeOperationArgs : TBase { - get - { - return _success; - } - set + private TSCloseOperationReq _req; + + public TSCloseOperationReq Req { - __isset.success = true; - this._success = value; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - } - public Isset __isset; - public struct Isset - { - public bool success; - } + public Isset __isset; + public struct Isset + { + public bool req; + } - public closeOperationResult() - { - } + public closeOperationArgs() + { + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public closeOperationArgs DeepCopy() { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + var tmp543 = new closeOperationArgs(); + if((Req != null) && __isset.req) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + tmp543.Req = (TSCloseOperationReq)this.Req.DeepCopy(); + } + tmp543.__isset.req = this.__isset.req; + return tmp543; + } - switch (field.ID) + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { break; - } + } - await iprot.ReadFieldEndAsync(cancellationToken); - } + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSCloseOperationReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("closeOperation_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("closeOperation_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is closeOperationArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as closeOperationResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("closeOperation_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("closeOperation_args("); + int tmp544 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp544++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class getTimeZoneArgs : TBase - { - private long _sessionId; - - public long SessionId + public partial class closeOperationResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _sessionId; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.sessionId = true; - this._sessionId = value; + public bool success; } - } + public closeOperationResult() + { + } - public Isset __isset; - public struct Isset - { - public bool sessionId; - } - - public getTimeZoneArgs() - { - } + public closeOperationResult DeepCopy() + { + var tmp545 = new closeOperationResult(); + if((Success != null) && __isset.success) + { + tmp545.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp545.__isset.success = this.__isset.success; + return tmp545; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.I64) - { - SessionId = await iprot.ReadI64Async(cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("getTimeZone_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (__isset.sessionId) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("closeOperation_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteI64Async(SessionId, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is closeOperationResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - public override bool Equals(object that) - { - var other = that as getTimeZoneArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.sessionId) - hashcode = (hashcode * 397) + SessionId.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("getTimeZone_args("); - bool __first = true; - if (__isset.sessionId) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("SessionId: "); - sb.Append(SessionId); + var sb = new StringBuilder("closeOperation_result("); + int tmp546 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp546++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class getTimeZoneResult : TBase - { - private TSGetTimeZoneResp _success; - - public TSGetTimeZoneResp Success + public partial class getTimeZoneArgs : TBase { - get + private long _sessionId; + + public long SessionId { - return _success; + get + { + return _sessionId; + } + set + { + __isset.sessionId = true; + this._sessionId = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool sessionId; } - } + public getTimeZoneArgs() + { + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public getTimeZoneResult() - { - } + public getTimeZoneArgs DeepCopy() + { + var tmp547 = new getTimeZoneArgs(); + if(__isset.sessionId) + { + tmp547.SessionId = this.SessionId; + } + tmp547.__isset.sessionId = this.__isset.sessionId; + return tmp547; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSGetTimeZoneResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.I64) + { + SessionId = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("getTimeZone_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("getTimeZone_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if(__isset.sessionId) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; + field.Name = "sessionId"; + field.Type = TType.I64; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is getTimeZoneArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))); } - } - public override bool Equals(object that) - { - var other = that as getTimeZoneResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.sessionId) + { + hashcode = (hashcode * 397) + SessionId.GetHashCode(); + } + } + return hashcode; + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override string ToString() + { + var sb = new StringBuilder("getTimeZone_args("); + int tmp548 = 0; + if(__isset.sessionId) + { + if(0 < tmp548++) { sb.Append(", "); } + sb.Append("SessionId: "); + SessionId.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - return hashcode; } - public override string ToString() + + public partial class getTimeZoneResult : TBase { - var sb = new StringBuilder("getTimeZone_result("); - bool __first = true; - if (Success != null && __isset.success) + private TSGetTimeZoneResp _success; + + public TSGetTimeZoneResp Success { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - sb.Append(")"); - return sb.ToString(); - } - } - public partial class setTimeZoneArgs : TBase - { - private TSSetTimeZoneReq _req; + public Isset __isset; + public struct Isset + { + public bool success; + } - public TSSetTimeZoneReq Req - { - get + public getTimeZoneResult() { - return _req; } - set + + public getTimeZoneResult DeepCopy() { - __isset.req = true; - this._req = value; + var tmp549 = new getTimeZoneResult(); + if((Success != null) && __isset.success) + { + tmp549.Success = (TSGetTimeZoneResp)this.Success.DeepCopy(); + } + tmp549.__isset.success = this.__isset.success; + return tmp549; } - } + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - public Isset __isset; - public struct Isset - { - public bool req; - } + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSGetTimeZoneResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } - public setTimeZoneArgs() - { - } + await iprot.ReadFieldEndAsync(cancellationToken); + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + oprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + var struc = new TStruct("getTimeZone_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - break; + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is getTimeZoneResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - switch (field.ID) + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSSetTimeZoneReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + hashcode = (hashcode * 397) + Success.GetHashCode(); } - - await iprot.ReadFieldEndAsync(cancellationToken); } - - await iprot.ReadStructEndAsync(cancellationToken); + return hashcode; } - finally + + public override string ToString() { - iprot.DecrementRecursionDepth(); + var sb = new StringBuilder("getTimeZone_result("); + int tmp550 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp550++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + + public partial class setTimeZoneArgs : TBase { - oprot.IncrementRecursionDepth(); - try + private TSSetTimeZoneReq _req; + + public TSSetTimeZoneReq Req { - var struc = new TStruct("setTimeZone_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + get { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + return _req; + } + set + { + __isset.req = true; + this._req = value; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } - } - public override bool Equals(object that) - { - var other = that as setTimeZoneArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public Isset __isset; + public struct Isset + { + public bool req; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("setTimeZone_args("); - bool __first = true; - if (Req != null && __isset.req) + public setTimeZoneArgs() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); } - sb.Append(")"); - return sb.ToString(); - } - } - - public partial class setTimeZoneResult : TBase - { - private TSStatus _success; - - public TSStatus Success - { - get - { - return _success; - } - set + public setTimeZoneArgs DeepCopy() { - __isset.success = true; - this._success = value; + var tmp551 = new setTimeZoneArgs(); + if((Req != null) && __isset.req) + { + tmp551.Req = (TSSetTimeZoneReq)this.Req.DeepCopy(); + } + tmp551.__isset.req = this.__isset.req; + return tmp551; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } - - public setTimeZoneResult() - { - } - - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSSetTimeZoneReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("setTimeZone_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("setTimeZone_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is setTimeZoneArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - public override bool Equals(object that) - { - var other = that as setTimeZoneResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override string ToString() + { + var sb = new StringBuilder("setTimeZone_args("); + int tmp552 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp552++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - return hashcode; } - public override string ToString() + + public partial class setTimeZoneResult : TBase { - var sb = new StringBuilder("setTimeZone_result("); - bool __first = true; - if (Success != null && __isset.success) + private TSStatus _success; + + public TSStatus Success { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - sb.Append(")"); - return sb.ToString(); - } - } - public partial class getPropertiesArgs : TBase - { + public Isset __isset; + public struct Isset + { + public bool success; + } - public getPropertiesArgs() - { - } + public setTimeZoneResult() + { + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public setTimeZoneResult DeepCopy() { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + var tmp553 = new setTimeZoneResult(); + if((Success != null) && __isset.success) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + tmp553.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp553.__isset.success = this.__isset.success; + return tmp553; + } - switch (field.ID) + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { break; + } + + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("getProperties_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("setTimeZone_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is setTimeZoneResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as getPropertiesArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return true; - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("getProperties_args("); - sb.Append(")"); - return sb.ToString(); + public override string ToString() + { + var sb = new StringBuilder("setTimeZone_result("); + int tmp554 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp554++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); + } } - } - - public partial class getPropertiesResult : TBase - { - private ServerProperties _success; - public ServerProperties Success + public partial class getPropertiesArgs : TBase { - get + + public getPropertiesArgs() { - return _success; } - set + + public getPropertiesArgs DeepCopy() { - __isset.success = true; - this._success = value; + var tmp555 = new getPropertiesArgs(); + return tmp555; } - } - - - public Isset __isset; - public struct Isset - { - public bool success; - } - public getPropertiesResult() - { - } - - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new ServerProperties(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("getProperties_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + var struc = new TStruct("getProperties_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is getPropertiesArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return true; } - } - - public override bool Equals(object that) - { - var other = that as getPropertiesResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("getProperties_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("getProperties_args("); + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class setStorageGroupArgs : TBase - { - private long _sessionId; - private string _storageGroup; - public long SessionId + public partial class getPropertiesResult : TBase { - get + private ServerProperties _success; + + public ServerProperties Success { - return _sessionId; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.sessionId = true; - this._sessionId = value; + public bool success; } - } - public string StorageGroup - { - get + public getPropertiesResult() { - return _storageGroup; } - set + + public getPropertiesResult DeepCopy() { - __isset.storageGroup = true; - this._storageGroup = value; + var tmp557 = new getPropertiesResult(); + if((Success != null) && __isset.success) + { + tmp557.Success = (ServerProperties)this.Success.DeepCopy(); + } + tmp557.__isset.success = this.__isset.success; + return tmp557; } - } + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - public Isset __isset; - public struct Isset - { - public bool sessionId; - public bool storageGroup; - } + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new ServerProperties(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } - public setStorageGroupArgs() - { - } + await iprot.ReadFieldEndAsync(cancellationToken); + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + oprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + var struc = new TStruct("getProperties_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - break; + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is getPropertiesResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - switch (field.ID) + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) { - case 1: - if (field.Type == TType.I64) - { - SessionId = await iprot.ReadI64Async(cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - case 2: - if (field.Type == TType.String) - { - StorageGroup = await iprot.ReadStringAsync(cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + hashcode = (hashcode * 397) + Success.GetHashCode(); } - - await iprot.ReadFieldEndAsync(cancellationToken); } - - await iprot.ReadStructEndAsync(cancellationToken); + return hashcode; } - finally + + public override string ToString() { - iprot.DecrementRecursionDepth(); + var sb = new StringBuilder("getProperties_result("); + int tmp558 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp558++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + + public partial class setStorageGroupArgs : TBase { - oprot.IncrementRecursionDepth(); - try + private long _sessionId; + private string _storageGroup; + + public long SessionId { - var struc = new TStruct("setStorageGroup_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (__isset.sessionId) + get { - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteI64Async(SessionId, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + return _sessionId; } - if (StorageGroup != null && __isset.storageGroup) + set { - field.Name = "storageGroup"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(StorageGroup, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + __isset.sessionId = true; + this._sessionId = value; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public string StorageGroup { - oprot.DecrementRecursionDepth(); - } - } - - public override bool Equals(object that) - { - var other = that as setStorageGroupArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))) - && ((__isset.storageGroup == other.__isset.storageGroup) && ((!__isset.storageGroup) || (System.Object.Equals(StorageGroup, other.StorageGroup)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.sessionId) - hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if(__isset.storageGroup) - hashcode = (hashcode * 397) + StorageGroup.GetHashCode(); + get + { + return _storageGroup; + } + set + { + __isset.storageGroup = true; + this._storageGroup = value; + } } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("setStorageGroup_args("); - bool __first = true; - if (__isset.sessionId) - { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("SessionId: "); - sb.Append(SessionId); - } - if (StorageGroup != null && __isset.storageGroup) + + public Isset __isset; + public struct Isset { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("StorageGroup: "); - sb.Append(StorageGroup); + public bool sessionId; + public bool storageGroup; } - sb.Append(")"); - return sb.ToString(); - } - } - - - public partial class setStorageGroupResult : TBase - { - private TSStatus _success; - public TSStatus Success - { - get + public setStorageGroupArgs() { - return _success; } - set + + public setStorageGroupArgs DeepCopy() { - __isset.success = true; - this._success = value; + var tmp559 = new setStorageGroupArgs(); + if(__isset.sessionId) + { + tmp559.SessionId = this.SessionId; + } + tmp559.__isset.sessionId = this.__isset.sessionId; + if((StorageGroup != null) && __isset.storageGroup) + { + tmp559.StorageGroup = this.StorageGroup; + } + tmp559.__isset.storageGroup = this.__isset.storageGroup; + return tmp559; } - } - - - public Isset __isset; - public struct Isset - { - public bool success; - } - public setStorageGroupResult() - { - } - - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.I64) + { + SessionId = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + StorageGroup = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("setStorageGroup_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("setStorageGroup_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if(__isset.sessionId) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; + field.Name = "sessionId"; + field.Type = TType.I64; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(SessionId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((StorageGroup != null) && __isset.storageGroup) + { + field.Name = "storageGroup"; + field.Type = TType.String; + field.ID = 2; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteStringAsync(StorageGroup, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is setStorageGroupArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))) + && ((__isset.storageGroup == other.__isset.storageGroup) && ((!__isset.storageGroup) || (System.Object.Equals(StorageGroup, other.StorageGroup)))); } - } - - public override bool Equals(object that) - { - var other = that as setStorageGroupResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.sessionId) + { + hashcode = (hashcode * 397) + SessionId.GetHashCode(); + } + if((StorageGroup != null) && __isset.storageGroup) + { + hashcode = (hashcode * 397) + StorageGroup.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("setStorageGroup_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("setStorageGroup_args("); + int tmp560 = 0; + if(__isset.sessionId) + { + if(0 < tmp560++) { sb.Append(", "); } + sb.Append("SessionId: "); + SessionId.ToString(sb); + } + if((StorageGroup != null) && __isset.storageGroup) + { + if(0 < tmp560++) { sb.Append(", "); } + sb.Append("StorageGroup: "); + StorageGroup.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class createTimeseriesArgs : TBase - { - private TSCreateTimeseriesReq _req; - - public TSCreateTimeseriesReq Req + public partial class setStorageGroupResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public setStorageGroupResult() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public createTimeseriesArgs() - { - } + public setStorageGroupResult DeepCopy() + { + var tmp561 = new setStorageGroupResult(); + if((Success != null) && __isset.success) + { + tmp561.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp561.__isset.success = this.__isset.success; + return tmp561; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSCreateTimeseriesReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("createTimeseries_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("setStorageGroup_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is setStorageGroupResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as createTimeseriesArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("createTimeseries_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("setStorageGroup_result("); + int tmp562 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp562++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class createTimeseriesResult : TBase - { - private TSStatus _success; - public TSStatus Success + public partial class createTimeseriesArgs : TBase { - get + private TSCreateTimeseriesReq _req; + + public TSCreateTimeseriesReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public createTimeseriesArgs() + { + } - public createTimeseriesResult() - { - } + public createTimeseriesArgs DeepCopy() + { + var tmp563 = new createTimeseriesArgs(); + if((Req != null) && __isset.req) + { + tmp563.Req = (TSCreateTimeseriesReq)this.Req.DeepCopy(); + } + tmp563.__isset.req = this.__isset.req; + return tmp563; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSCreateTimeseriesReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("createTimeseries_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("createTimeseries_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is createTimeseriesArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as createTimeseriesResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("createTimeseries_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("createTimeseries_args("); + int tmp564 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp564++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class createAlignedTimeseriesArgs : TBase - { - private TSCreateAlignedTimeseriesReq _req; - public TSCreateAlignedTimeseriesReq Req + public partial class createTimeseriesResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool req; - } + public createTimeseriesResult() + { + } - public createAlignedTimeseriesArgs() - { - } + public createTimeseriesResult DeepCopy() + { + var tmp565 = new createTimeseriesResult(); + if((Success != null) && __isset.success) + { + tmp565.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp565.__isset.success = this.__isset.success; + return tmp565; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSCreateAlignedTimeseriesReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("createAlignedTimeseries_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("createTimeseries_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is createTimeseriesResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as createAlignedTimeseriesArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("createAlignedTimeseries_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("createTimeseries_result("); + int tmp566 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp566++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class createAlignedTimeseriesResult : TBase - { - private TSStatus _success; - - public TSStatus Success + public partial class createAlignedTimeseriesArgs : TBase { - get + private TSCreateAlignedTimeseriesReq _req; + + public TSCreateAlignedTimeseriesReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } + public createAlignedTimeseriesArgs() + { + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public createAlignedTimeseriesResult() - { - } + public createAlignedTimeseriesArgs DeepCopy() + { + var tmp567 = new createAlignedTimeseriesArgs(); + if((Req != null) && __isset.req) + { + tmp567.Req = (TSCreateAlignedTimeseriesReq)this.Req.DeepCopy(); + } + tmp567.__isset.req = this.__isset.req; + return tmp567; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSCreateAlignedTimeseriesReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("createAlignedTimeseries_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("createAlignedTimeseries_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is createAlignedTimeseriesArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as createAlignedTimeseriesResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("createAlignedTimeseries_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("createAlignedTimeseries_args("); + int tmp568 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp568++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class createMultiTimeseriesArgs : TBase - { - private TSCreateMultiTimeseriesReq _req; - - public TSCreateMultiTimeseriesReq Req + public partial class createAlignedTimeseriesResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public createAlignedTimeseriesResult() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public createMultiTimeseriesArgs() - { - } + public createAlignedTimeseriesResult DeepCopy() + { + var tmp569 = new createAlignedTimeseriesResult(); + if((Success != null) && __isset.success) + { + tmp569.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp569.__isset.success = this.__isset.success; + return tmp569; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSCreateMultiTimeseriesReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("createMultiTimeseries_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("createAlignedTimeseries_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is createAlignedTimeseriesResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - public override bool Equals(object that) - { - var other = that as createMultiTimeseriesArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("createMultiTimeseries_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("createAlignedTimeseries_result("); + int tmp570 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp570++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class createMultiTimeseriesResult : TBase - { - private TSStatus _success; - public TSStatus Success + public partial class createMultiTimeseriesArgs : TBase { - get + private TSCreateMultiTimeseriesReq _req; + + public TSCreateMultiTimeseriesReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public createMultiTimeseriesArgs() + { + } - public createMultiTimeseriesResult() - { - } + public createMultiTimeseriesArgs DeepCopy() + { + var tmp571 = new createMultiTimeseriesArgs(); + if((Req != null) && __isset.req) + { + tmp571.Req = (TSCreateMultiTimeseriesReq)this.Req.DeepCopy(); + } + tmp571.__isset.req = this.__isset.req; + return tmp571; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSCreateMultiTimeseriesReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("createMultiTimeseries_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("createMultiTimeseries_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is createMultiTimeseriesArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as createMultiTimeseriesResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("createMultiTimeseries_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("createMultiTimeseries_args("); + int tmp572 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp572++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class deleteTimeseriesArgs : TBase - { - private long _sessionId; - private List _path; - public long SessionId + public partial class createMultiTimeseriesResult : TBase { - get - { - return _sessionId; - } - set + private TSStatus _success; + + public TSStatus Success { - __isset.sessionId = true; - this._sessionId = value; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - } - public List Path - { - get + + public Isset __isset; + public struct Isset { - return _path; + public bool success; } - set + + public createMultiTimeseriesResult() { - __isset.path = true; - this._path = value; } - } - - - public Isset __isset; - public struct Isset - { - public bool sessionId; - public bool path; - } - - public deleteTimeseriesArgs() - { - } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public createMultiTimeseriesResult DeepCopy() { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + var tmp573 = new createMultiTimeseriesResult(); + if((Success != null) && __isset.success) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + tmp573.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp573.__isset.success = this.__isset.success; + return tmp573; + } - switch (field.ID) + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - case 1: - if (field.Type == TType.I64) - { - SessionId = await iprot.ReadI64Async(cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { break; - case 2: - if (field.Type == TType.List) - { + } + + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) { - TList _list363 = await iprot.ReadListBeginAsync(cancellationToken); - Path = new List(_list363.Count); - for(int _i364 = 0; _i364 < _list363.Count; ++_i364) - { - string _elem365; - _elem365 = await iprot.ReadStringAsync(cancellationToken); - Path.Add(_elem365); - } - await iprot.ReadListEndAsync(cancellationToken); + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); } - } - else - { + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("deleteTimeseries_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (__isset.sessionId) - { - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteI64Async(SessionId, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if (Path != null && __isset.path) + oprot.IncrementRecursionDepth(); + try { - field.Name = "path"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var struc = new TStruct("createMultiTimeseries_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - await oprot.WriteListBeginAsync(new TList(TType.String, Path.Count), cancellationToken); - foreach (string _iter366 in Path) + if (Success != null) { - await oprot.WriteStringAsync(_iter366, cancellationToken); + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is createMultiTimeseriesResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - public override bool Equals(object that) - { - var other = that as deleteTimeseriesArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))) - && ((__isset.path == other.__isset.path) && ((!__isset.path) || (TCollections.Equals(Path, other.Path)))); - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.sessionId) - hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if(__isset.path) - hashcode = (hashcode * 397) + TCollections.GetHashCode(Path); + public override string ToString() + { + var sb = new StringBuilder("createMultiTimeseries_result("); + int tmp574 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp574++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - return hashcode; } - public override string ToString() + + public partial class deleteTimeseriesArgs : TBase { - var sb = new StringBuilder("deleteTimeseries_args("); - bool __first = true; - if (__isset.sessionId) + private long _sessionId; + private List _path; + + public long SessionId { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("SessionId: "); - sb.Append(SessionId); + get + { + return _sessionId; + } + set + { + __isset.sessionId = true; + this._sessionId = value; + } } - if (Path != null && __isset.path) + + public List Path { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Path: "); - sb.Append(Path); + get + { + return _path; + } + set + { + __isset.path = true; + this._path = value; + } } - sb.Append(")"); - return sb.ToString(); - } - } - - public partial class deleteTimeseriesResult : TBase - { - private TSStatus _success; - public TSStatus Success - { - get + public Isset __isset; + public struct Isset { - return _success; + public bool sessionId; + public bool path; } - set + + public deleteTimeseriesArgs() { - __isset.success = true; - this._success = value; } - } + public deleteTimeseriesArgs DeepCopy() + { + var tmp575 = new deleteTimeseriesArgs(); + if(__isset.sessionId) + { + tmp575.SessionId = this.SessionId; + } + tmp575.__isset.sessionId = this.__isset.sessionId; + if((Path != null) && __isset.path) + { + tmp575.Path = this.Path.DeepCopy(); + } + tmp575.__isset.path = this.__isset.path; + return tmp575; + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public deleteTimeseriesResult() - { - } - - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.I64) + { + SessionId = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.List) + { + { + TList _list576 = await iprot.ReadListBeginAsync(cancellationToken); + Path = new List(_list576.Count); + for(int _i577 = 0; _i577 < _list576.Count; ++_i577) + { + string _elem578; + _elem578 = await iprot.ReadStringAsync(cancellationToken); + Path.Add(_elem578); + } + await iprot.ReadListEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("deleteTimeseries_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("deleteTimeseries_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if(__isset.sessionId) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; + field.Name = "sessionId"; + field.Type = TType.I64; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(SessionId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Path != null) && __isset.path) + { + field.Name = "path"; + field.Type = TType.List; + field.ID = 2; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.String, Path.Count), cancellationToken); + foreach (string _iter579 in Path) + { + await oprot.WriteStringAsync(_iter579, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); + } await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is deleteTimeseriesArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))) + && ((__isset.path == other.__isset.path) && ((!__isset.path) || (TCollections.Equals(Path, other.Path)))); } - } - - public override bool Equals(object that) - { - var other = that as deleteTimeseriesResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.sessionId) + { + hashcode = (hashcode * 397) + SessionId.GetHashCode(); + } + if((Path != null) && __isset.path) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Path); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("deleteTimeseries_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("deleteTimeseries_args("); + int tmp580 = 0; + if(__isset.sessionId) + { + if(0 < tmp580++) { sb.Append(", "); } + sb.Append("SessionId: "); + SessionId.ToString(sb); + } + if((Path != null) && __isset.path) + { + if(0 < tmp580++) { sb.Append(", "); } + sb.Append("Path: "); + Path.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class deleteStorageGroupsArgs : TBase - { - private long _sessionId; - private List _storageGroup; - - public long SessionId + public partial class deleteTimeseriesResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _sessionId; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.sessionId = true; - this._sessionId = value; + public bool success; } - } - public List StorageGroup - { - get + public deleteTimeseriesResult() { - return _storageGroup; } - set + + public deleteTimeseriesResult DeepCopy() { - __isset.storageGroup = true; - this._storageGroup = value; + var tmp581 = new deleteTimeseriesResult(); + if((Success != null) && __isset.success) + { + tmp581.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp581.__isset.success = this.__isset.success; + return tmp581; } - } - - public Isset __isset; - public struct Isset - { - public bool sessionId; - public bool storageGroup; - } - - public deleteStorageGroupsArgs() - { - } - - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } - - switch (field.ID) - { - case 1: - if (field.Type == TType.I64) - { - SessionId = await iprot.ReadI64Async(cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { break; - case 2: - if (field.Type == TType.List) - { + } + + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) { - TList _list367 = await iprot.ReadListBeginAsync(cancellationToken); - StorageGroup = new List(_list367.Count); - for(int _i368 = 0; _i368 < _list367.Count; ++_i368) - { - string _elem369; - _elem369 = await iprot.ReadStringAsync(cancellationToken); - StorageGroup.Add(_elem369); - } - await iprot.ReadListEndAsync(cancellationToken); + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); } - } - else - { + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("deleteStorageGroups_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (__isset.sessionId) + oprot.IncrementRecursionDepth(); + try { - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteI64Async(SessionId, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } - if (StorageGroup != null && __isset.storageGroup) - { - field.Name = "storageGroup"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var struc = new TStruct("deleteTimeseries_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - await oprot.WriteListBeginAsync(new TList(TType.String, StorageGroup.Count), cancellationToken); - foreach (string _iter370 in StorageGroup) + if (Success != null) { - await oprot.WriteStringAsync(_iter370, cancellationToken); + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is deleteTimeseriesResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as deleteStorageGroupsArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))) - && ((__isset.storageGroup == other.__isset.storageGroup) && ((!__isset.storageGroup) || (TCollections.Equals(StorageGroup, other.StorageGroup)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.sessionId) - hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if(__isset.storageGroup) - hashcode = (hashcode * 397) + TCollections.GetHashCode(StorageGroup); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("deleteStorageGroups_args("); - bool __first = true; - if (__isset.sessionId) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("SessionId: "); - sb.Append(SessionId); - } - if (StorageGroup != null && __isset.storageGroup) - { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("StorageGroup: "); - sb.Append(StorageGroup); + var sb = new StringBuilder("deleteTimeseries_result("); + int tmp582 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp582++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class deleteStorageGroupsResult : TBase - { - private TSStatus _success; - public TSStatus Success + public partial class deleteStorageGroupsArgs : TBase { - get - { - return _success; - } - set + private long _sessionId; + private List _storageGroup; + + public long SessionId { - __isset.success = true; - this._success = value; + get + { + return _sessionId; + } + set + { + __isset.sessionId = true; + this._sessionId = value; + } } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public List StorageGroup + { + get + { + return _storageGroup; + } + set + { + __isset.storageGroup = true; + this._storageGroup = value; + } + } - public deleteStorageGroupsResult() - { - } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public Isset __isset; + public struct Isset + { + public bool sessionId; + public bool storageGroup; + } + + public deleteStorageGroupsArgs() + { + } + + public deleteStorageGroupsArgs DeepCopy() { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + var tmp583 = new deleteStorageGroupsArgs(); + if(__isset.sessionId) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + tmp583.SessionId = this.SessionId; + } + tmp583.__isset.sessionId = this.__isset.sessionId; + if((StorageGroup != null) && __isset.storageGroup) + { + tmp583.StorageGroup = this.StorageGroup.DeepCopy(); + } + tmp583.__isset.storageGroup = this.__isset.storageGroup; + return tmp583; + } - switch (field.ID) + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I64) + { + SessionId = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.List) + { + { + TList _list584 = await iprot.ReadListBeginAsync(cancellationToken); + StorageGroup = new List(_list584.Count); + for(int _i585 = 0; _i585 < _list584.Count; ++_i585) + { + string _elem586; + _elem586 = await iprot.ReadStringAsync(cancellationToken); + StorageGroup.Add(_elem586); + } + await iprot.ReadListEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("deleteStorageGroups_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("deleteStorageGroups_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if(__isset.sessionId) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; + field.Name = "sessionId"; + field.Type = TType.I64; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + if((StorageGroup != null) && __isset.storageGroup) + { + field.Name = "storageGroup"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.String, StorageGroup.Count), cancellationToken); + foreach (string _iter587 in StorageGroup) + { + await oprot.WriteStringAsync(_iter587, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is deleteStorageGroupsArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))) + && ((__isset.storageGroup == other.__isset.storageGroup) && ((!__isset.storageGroup) || (TCollections.Equals(StorageGroup, other.StorageGroup)))); } - } - public override bool Equals(object that) - { - var other = that as deleteStorageGroupsResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.sessionId) + { + hashcode = (hashcode * 397) + SessionId.GetHashCode(); + } + if((StorageGroup != null) && __isset.storageGroup) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(StorageGroup); + } + } + return hashcode; + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override string ToString() + { + var sb = new StringBuilder("deleteStorageGroups_args("); + int tmp588 = 0; + if(__isset.sessionId) + { + if(0 < tmp588++) { sb.Append(", "); } + sb.Append("SessionId: "); + SessionId.ToString(sb); + } + if((StorageGroup != null) && __isset.storageGroup) + { + if(0 < tmp588++) { sb.Append(", "); } + sb.Append("StorageGroup: "); + StorageGroup.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - return hashcode; } - public override string ToString() + + public partial class deleteStorageGroupsResult : TBase { - var sb = new StringBuilder("deleteStorageGroups_result("); - bool __first = true; - if (Success != null && __isset.success) + private TSStatus _success; + + public TSStatus Success { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - sb.Append(")"); - return sb.ToString(); - } - } - public partial class insertRecordArgs : TBase - { - private TSInsertRecordReq _req; + public Isset __isset; + public struct Isset + { + public bool success; + } - public TSInsertRecordReq Req - { - get + public deleteStorageGroupsResult() { - return _req; } - set + + public deleteStorageGroupsResult DeepCopy() { - __isset.req = true; - this._req = value; + var tmp589 = new deleteStorageGroupsResult(); + if((Success != null) && __isset.success) + { + tmp589.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp589.__isset.success = this.__isset.success; + return tmp589; } - } + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - public Isset __isset; - public struct Isset - { - public bool req; - } + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } - public insertRecordArgs() - { - } + await iprot.ReadFieldEndAsync(cancellationToken); + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + oprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + var struc = new TStruct("deleteStorageGroups_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - break; + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is deleteStorageGroupsResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - switch (field.ID) + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertRecordReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + hashcode = (hashcode * 397) + Success.GetHashCode(); } - - await iprot.ReadFieldEndAsync(cancellationToken); } - - await iprot.ReadStructEndAsync(cancellationToken); + return hashcode; } - finally + + public override string ToString() { - iprot.DecrementRecursionDepth(); + var sb = new StringBuilder("deleteStorageGroups_result("); + int tmp590 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp590++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + + public partial class insertRecordArgs : TBase { - oprot.IncrementRecursionDepth(); - try + private TSInsertRecordReq _req; + + public TSInsertRecordReq Req { - var struc = new TStruct("insertRecord_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + get { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + return _req; + } + set + { + __isset.req = true; + this._req = value; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + + public Isset __isset; + public struct Isset { - oprot.DecrementRecursionDepth(); + public bool req; } - } - - public override bool Equals(object that) - { - var other = that as insertRecordArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public insertRecordArgs() + { } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("insertRecord_args("); - bool __first = true; - if (Req != null && __isset.req) + public insertRecordArgs DeepCopy() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var tmp591 = new insertRecordArgs(); + if((Req != null) && __isset.req) + { + tmp591.Req = (TSInsertRecordReq)this.Req.DeepCopy(); + } + tmp591.__isset.req = this.__isset.req; + return tmp591; } - sb.Append(")"); - return sb.ToString(); - } - } + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertRecordReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } - public partial class insertRecordResult : TBase - { - private TSStatus _success; + await iprot.ReadFieldEndAsync(cancellationToken); + } - public TSStatus Success - { - get + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - return _success; + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("insertRecord_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) + { + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } } - set + + public override bool Equals(object that) { - __isset.success = true; - this._success = value; + if (!(that is insertRecordArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; + } - public Isset __isset; - public struct Isset - { - public bool success; + public override string ToString() + { + var sb = new StringBuilder("insertRecord_args("); + int tmp592 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp592++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); + } } - public insertRecordResult() - { - } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public partial class insertRecordResult : TBase { - iprot.IncrementRecursionDepth(); - try + private TSStatus _success; + + public TSStatus Success { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + get { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + return _success; + } + set + { + __isset.success = true; + this._success = value; + } + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - await iprot.ReadFieldEndAsync(cancellationToken); - } + public Isset __isset; + public struct Isset + { + public bool success; + } - await iprot.ReadStructEndAsync(cancellationToken); + public insertRecordResult() + { } - finally + + public insertRecordResult DeepCopy() { - iprot.DecrementRecursionDepth(); + var tmp593 = new insertRecordResult(); + if((Success != null) && __isset.success) + { + tmp593.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp593.__isset.success = this.__isset.success; + return tmp593; } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - var struc = new TStruct("insertRecord_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } - if(this.__isset.success) + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("insertRecord_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is insertRecordResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - public override bool Equals(object that) - { - var other = that as insertRecordResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override string ToString() + { + var sb = new StringBuilder("insertRecord_result("); + int tmp594 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp594++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - return hashcode; } - public override string ToString() + + public partial class insertStringRecordArgs : TBase { - var sb = new StringBuilder("insertRecord_result("); - bool __first = true; - if (Success != null && __isset.success) + private TSInsertStringRecordReq _req; + + public TSInsertStringRecordReq Req { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - sb.Append(")"); - return sb.ToString(); - } - } - public partial class insertStringRecordArgs : TBase - { - private TSInsertStringRecordReq _req; + public Isset __isset; + public struct Isset + { + public bool req; + } - public TSInsertStringRecordReq Req - { - get + public insertStringRecordArgs() { - return _req; } - set + + public insertStringRecordArgs DeepCopy() { - __isset.req = true; - this._req = value; + var tmp595 = new insertStringRecordArgs(); + if((Req != null) && __isset.req) + { + tmp595.Req = (TSInsertStringRecordReq)this.Req.DeepCopy(); + } + tmp595.__isset.req = this.__isset.req; + return tmp595; } - } + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - public Isset __isset; - public struct Isset - { - public bool req; - } + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertStringRecordReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } - public insertStringRecordArgs() - { - } + await iprot.ReadFieldEndAsync(cancellationToken); + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + oprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + var struc = new TStruct("insertStringRecord_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - break; + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is insertStringRecordArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); + } - switch (field.ID) + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertStringRecordReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + hashcode = (hashcode * 397) + Req.GetHashCode(); } - - await iprot.ReadFieldEndAsync(cancellationToken); } - - await iprot.ReadStructEndAsync(cancellationToken); + return hashcode; } - finally + + public override string ToString() { - iprot.DecrementRecursionDepth(); + var sb = new StringBuilder("insertStringRecord_args("); + int tmp596 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp596++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + + public partial class insertStringRecordResult : TBase { - oprot.IncrementRecursionDepth(); - try + private TSStatus _success; + + public TSStatus Success { - var struc = new TStruct("insertStringRecord_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + get { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + return _success; + } + set + { + __isset.success = true; + this._success = value; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + + public Isset __isset; + public struct Isset { - oprot.DecrementRecursionDepth(); + public bool success; } - } - public override bool Equals(object that) - { - var other = that as insertStringRecordArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } + public insertStringRecordResult() + { + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public insertStringRecordResult DeepCopy() + { + var tmp597 = new insertStringRecordResult(); + if((Success != null) && __isset.success) + { + tmp597.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp597.__isset.success = this.__isset.success; + return tmp597; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("insertStringRecord_args("); - bool __first = true; - if (Req != null && __isset.req) + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } } - sb.Append(")"); - return sb.ToString(); - } - } + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("insertStringRecord_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); - public partial class insertStringRecordResult : TBase - { - private TSStatus _success; + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } - public TSStatus Success - { - get + public override bool Equals(object that) { - return _success; + if (!(that is insertStringRecordResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - set + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() { - __isset.success = true; - this._success = value; + var sb = new StringBuilder("insertStringRecord_result("); + int tmp598 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp598++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } } - public Isset __isset; - public struct Isset + public partial class insertTabletArgs : TBase { - public bool success; - } + private TSInsertTabletReq _req; - public insertStringRecordResult() - { - } + public TSInsertTabletReq Req + { + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public insertTabletArgs() + { + } + + public insertTabletArgs DeepCopy() { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + var tmp599 = new insertTabletArgs(); + if((Req != null) && __isset.req) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + tmp599.Req = (TSInsertTabletReq)this.Req.DeepCopy(); + } + tmp599.__isset.req = this.__isset.req; + return tmp599; + } - switch (field.ID) + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertTabletReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("insertStringRecord_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("insertTablet_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is insertTabletArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - public override bool Equals(object that) - { - var other = that as insertStringRecordResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override string ToString() + { + var sb = new StringBuilder("insertTablet_args("); + int tmp600 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp600++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - return hashcode; } - public override string ToString() + + public partial class insertTabletResult : TBase { - var sb = new StringBuilder("insertStringRecord_result("); - bool __first = true; - if (Success != null && __isset.success) + private TSStatus _success; + + public TSStatus Success { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - sb.Append(")"); - return sb.ToString(); - } - } - public partial class insertTabletArgs : TBase - { - private TSInsertTabletReq _req; + public Isset __isset; + public struct Isset + { + public bool success; + } - public TSInsertTabletReq Req - { - get + public insertTabletResult() { - return _req; } - set + + public insertTabletResult DeepCopy() { - __isset.req = true; - this._req = value; + var tmp601 = new insertTabletResult(); + if((Success != null) && __isset.success) + { + tmp601.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp601.__isset.success = this.__isset.success; + return tmp601; } - } + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - public Isset __isset; - public struct Isset - { - public bool req; - } + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } - public insertTabletArgs() - { - } + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + oprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + var struc = new TStruct("insertTablet_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); - switch (field.ID) + if(this.__isset.success) { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertTabletReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } } - - await iprot.ReadFieldEndAsync(cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - iprot.DecrementRecursionDepth(); + if (!(that is insertTabletResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("insertTablet_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) - { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); + return hashcode; } - finally + + public override string ToString() { - oprot.DecrementRecursionDepth(); + var sb = new StringBuilder("insertTablet_result("); + int tmp602 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp602++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } } - public override bool Equals(object that) - { - var other = that as insertTabletArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - return hashcode; - } - public override string ToString() + public partial class insertTabletsArgs : TBase { - var sb = new StringBuilder("insertTablet_args("); - bool __first = true; - if (Req != null && __isset.req) + private TSInsertTabletsReq _req; + + public TSInsertTabletsReq Req { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - sb.Append(")"); - return sb.ToString(); - } - } - - public partial class insertTabletResult : TBase - { - private TSStatus _success; - public TSStatus Success - { - get + public Isset __isset; + public struct Isset { - return _success; + public bool req; } - set + + public insertTabletsArgs() { - __isset.success = true; - this._success = value; } - } + public insertTabletsArgs DeepCopy() + { + var tmp603 = new insertTabletsArgs(); + if((Req != null) && __isset.req) + { + tmp603.Req = (TSInsertTabletsReq)this.Req.DeepCopy(); + } + tmp603.__isset.req = this.__isset.req; + return tmp603; + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public insertTabletResult() - { - } - - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertTabletsReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("insertTablet_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("insertTablets_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is insertTabletsArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as insertTabletResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("insertTablet_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("insertTablets_args("); + int tmp604 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp604++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class insertTabletsArgs : TBase - { - private TSInsertTabletsReq _req; - public TSInsertTabletsReq Req + public partial class insertTabletsResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool req; - } + public insertTabletsResult() + { + } - public insertTabletsArgs() - { - } + public insertTabletsResult DeepCopy() + { + var tmp605 = new insertTabletsResult(); + if((Success != null) && __isset.success) + { + tmp605.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp605.__isset.success = this.__isset.success; + return tmp605; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertTabletsReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("insertTablets_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("insertTablets_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is insertTabletsResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as insertTabletsArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("insertTablets_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("insertTablets_result("); + int tmp606 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp606++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class insertTabletsResult : TBase - { - private TSStatus _success; - - public TSStatus Success + public partial class insertRecordsArgs : TBase { - get + private TSInsertRecordsReq _req; + + public TSInsertRecordsReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } + public insertRecordsArgs() + { + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public insertTabletsResult() - { - } + public insertRecordsArgs DeepCopy() + { + var tmp607 = new insertRecordsArgs(); + if((Req != null) && __isset.req) + { + tmp607.Req = (TSInsertRecordsReq)this.Req.DeepCopy(); + } + tmp607.__isset.req = this.__isset.req; + return tmp607; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertRecordsReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("insertTablets_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("insertRecords_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is insertRecordsArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as insertTabletsResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("insertTablets_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("insertRecords_args("); + int tmp608 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp608++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class insertRecordsArgs : TBase - { - private TSInsertRecordsReq _req; - - public TSInsertRecordsReq Req + public partial class insertRecordsResult : TBase { - get - { - return _req; - } - set + private TSStatus _success; + + public TSStatus Success { - __isset.req = true; - this._req = value; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - } - public Isset __isset; - public struct Isset - { - public bool req; - } + public Isset __isset; + public struct Isset + { + public bool success; + } - public insertRecordsArgs() - { - } + public insertRecordsResult() + { + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public insertRecordsResult DeepCopy() { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + var tmp609 = new insertRecordsResult(); + if((Success != null) && __isset.success) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + tmp609.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp609.__isset.success = this.__isset.success; + return tmp609; + } - switch (field.ID) + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertRecordsReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { break; + } + + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("insertRecords_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("insertRecords_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is insertRecordsResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as insertRecordsArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("insertRecords_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("insertRecords_result("); + int tmp610 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp610++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class insertRecordsResult : TBase - { - private TSStatus _success; - public TSStatus Success + public partial class insertRecordsOfOneDeviceArgs : TBase { - get + private TSInsertRecordsOfOneDeviceReq _req; + + public TSInsertRecordsOfOneDeviceReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public insertRecordsOfOneDeviceArgs() + { + } - public insertRecordsResult() - { - } + public insertRecordsOfOneDeviceArgs DeepCopy() + { + var tmp611 = new insertRecordsOfOneDeviceArgs(); + if((Req != null) && __isset.req) + { + tmp611.Req = (TSInsertRecordsOfOneDeviceReq)this.Req.DeepCopy(); + } + tmp611.__isset.req = this.__isset.req; + return tmp611; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertRecordsOfOneDeviceReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("insertRecords_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("insertRecordsOfOneDevice_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is insertRecordsOfOneDeviceArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as insertRecordsResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("insertRecords_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("insertRecordsOfOneDevice_args("); + int tmp612 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp612++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class insertRecordsOfOneDeviceArgs : TBase - { - private TSInsertRecordsOfOneDeviceReq _req; - public TSInsertRecordsOfOneDeviceReq Req + public partial class insertRecordsOfOneDeviceResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool req; - } + public insertRecordsOfOneDeviceResult() + { + } - public insertRecordsOfOneDeviceArgs() - { - } + public insertRecordsOfOneDeviceResult DeepCopy() + { + var tmp613 = new insertRecordsOfOneDeviceResult(); + if((Success != null) && __isset.success) + { + tmp613.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp613.__isset.success = this.__isset.success; + return tmp613; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertRecordsOfOneDeviceReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("insertRecordsOfOneDevice_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("insertRecordsOfOneDevice_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is insertRecordsOfOneDeviceResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as insertRecordsOfOneDeviceArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("insertRecordsOfOneDevice_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("insertRecordsOfOneDevice_result("); + int tmp614 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp614++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class insertRecordsOfOneDeviceResult : TBase - { - private TSStatus _success; - - public TSStatus Success + public partial class insertStringRecordsOfOneDeviceArgs : TBase { - get + private TSInsertStringRecordsOfOneDeviceReq _req; + + public TSInsertStringRecordsOfOneDeviceReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } + public insertStringRecordsOfOneDeviceArgs() + { + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public insertRecordsOfOneDeviceResult() - { - } + public insertStringRecordsOfOneDeviceArgs DeepCopy() + { + var tmp615 = new insertStringRecordsOfOneDeviceArgs(); + if((Req != null) && __isset.req) + { + tmp615.Req = (TSInsertStringRecordsOfOneDeviceReq)this.Req.DeepCopy(); + } + tmp615.__isset.req = this.__isset.req; + return tmp615; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertStringRecordsOfOneDeviceReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("insertRecordsOfOneDevice_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("insertStringRecordsOfOneDevice_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is insertStringRecordsOfOneDeviceArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as insertRecordsOfOneDeviceResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("insertRecordsOfOneDevice_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("insertStringRecordsOfOneDevice_args("); + int tmp616 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp616++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class insertStringRecordsOfOneDeviceArgs : TBase - { - private TSInsertStringRecordsOfOneDeviceReq _req; - - public TSInsertStringRecordsOfOneDeviceReq Req + public partial class insertStringRecordsOfOneDeviceResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public insertStringRecordsOfOneDeviceResult() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public insertStringRecordsOfOneDeviceArgs() - { - } + public insertStringRecordsOfOneDeviceResult DeepCopy() + { + var tmp617 = new insertStringRecordsOfOneDeviceResult(); + if((Success != null) && __isset.success) + { + tmp617.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp617.__isset.success = this.__isset.success; + return tmp617; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertStringRecordsOfOneDeviceReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("insertStringRecordsOfOneDevice_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("insertStringRecordsOfOneDevice_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is insertStringRecordsOfOneDeviceResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - public override bool Equals(object that) - { - var other = that as insertStringRecordsOfOneDeviceArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("insertStringRecordsOfOneDevice_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("insertStringRecordsOfOneDevice_result("); + int tmp618 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp618++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class insertStringRecordsOfOneDeviceResult : TBase - { - private TSStatus _success; - public TSStatus Success + public partial class insertStringRecordsArgs : TBase { - get + private TSInsertStringRecordsReq _req; + + public TSInsertStringRecordsReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public insertStringRecordsArgs() + { + } - public insertStringRecordsOfOneDeviceResult() - { - } + public insertStringRecordsArgs DeepCopy() + { + var tmp619 = new insertStringRecordsArgs(); + if((Req != null) && __isset.req) + { + tmp619.Req = (TSInsertStringRecordsReq)this.Req.DeepCopy(); + } + tmp619.__isset.req = this.__isset.req; + return tmp619; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertStringRecordsReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("insertStringRecordsOfOneDevice_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("insertStringRecords_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is insertStringRecordsArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as insertStringRecordsOfOneDeviceResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("insertStringRecordsOfOneDevice_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("insertStringRecords_args("); + int tmp620 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp620++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class insertStringRecordsArgs : TBase - { - private TSInsertStringRecordsReq _req; - public TSInsertStringRecordsReq Req + public partial class insertStringRecordsResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool req; - } + public insertStringRecordsResult() + { + } - public insertStringRecordsArgs() - { - } + public insertStringRecordsResult DeepCopy() + { + var tmp621 = new insertStringRecordsResult(); + if((Success != null) && __isset.success) + { + tmp621.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp621.__isset.success = this.__isset.success; + return tmp621; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertStringRecordsReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("insertStringRecords_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + var struc = new TStruct("insertStringRecords_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is insertStringRecordsResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as insertStringRecordsArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("insertStringRecords_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("insertStringRecords_result("); + int tmp622 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp622++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class insertStringRecordsResult : TBase - { - private TSStatus _success; - - public TSStatus Success + public partial class testInsertTabletArgs : TBase { - get + private TSInsertTabletReq _req; + + public TSInsertTabletReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } + public testInsertTabletArgs() + { + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public insertStringRecordsResult() - { - } + public testInsertTabletArgs DeepCopy() + { + var tmp623 = new testInsertTabletArgs(); + if((Req != null) && __isset.req) + { + tmp623.Req = (TSInsertTabletReq)this.Req.DeepCopy(); + } + tmp623.__isset.req = this.__isset.req; + return tmp623; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertTabletReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("insertStringRecords_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("testInsertTablet_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is testInsertTabletArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - public override bool Equals(object that) - { - var other = that as insertStringRecordsResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("insertStringRecords_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("testInsertTablet_args("); + int tmp624 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp624++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class testInsertTabletArgs : TBase - { - private TSInsertTabletReq _req; - - public TSInsertTabletReq Req + public partial class testInsertTabletResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public testInsertTabletResult() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public testInsertTabletArgs() - { - } + public testInsertTabletResult DeepCopy() + { + var tmp625 = new testInsertTabletResult(); + if((Success != null) && __isset.success) + { + tmp625.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp625.__isset.success = this.__isset.success; + return tmp625; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertTabletReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("testInsertTablet_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("testInsertTablet_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is testInsertTabletResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as testInsertTabletArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("testInsertTablet_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("testInsertTablet_result("); + int tmp626 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp626++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class testInsertTabletResult : TBase - { - private TSStatus _success; - public TSStatus Success + public partial class testInsertTabletsArgs : TBase { - get + private TSInsertTabletsReq _req; + + public TSInsertTabletsReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public testInsertTabletsArgs() + { + } - public testInsertTabletResult() - { - } + public testInsertTabletsArgs DeepCopy() + { + var tmp627 = new testInsertTabletsArgs(); + if((Req != null) && __isset.req) + { + tmp627.Req = (TSInsertTabletsReq)this.Req.DeepCopy(); + } + tmp627.__isset.req = this.__isset.req; + return tmp627; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertTabletsReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("testInsertTablet_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("testInsertTablets_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is testInsertTabletsArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as testInsertTabletResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("testInsertTablet_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("testInsertTablets_args("); + int tmp628 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp628++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class testInsertTabletsArgs : TBase - { - private TSInsertTabletsReq _req; - public TSInsertTabletsReq Req + public partial class testInsertTabletsResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool req; - } + public testInsertTabletsResult() + { + } - public testInsertTabletsArgs() - { - } + public testInsertTabletsResult DeepCopy() + { + var tmp629 = new testInsertTabletsResult(); + if((Success != null) && __isset.success) + { + tmp629.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp629.__isset.success = this.__isset.success; + return tmp629; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertTabletsReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("testInsertTablets_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("testInsertTablets_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is testInsertTabletsResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as testInsertTabletsArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("testInsertTablets_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("testInsertTablets_result("); + int tmp630 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp630++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class testInsertTabletsResult : TBase - { - private TSStatus _success; - - public TSStatus Success + public partial class testInsertRecordArgs : TBase { - get + private TSInsertRecordReq _req; + + public TSInsertRecordReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } + public testInsertRecordArgs() + { + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public testInsertTabletsResult() - { - } + public testInsertRecordArgs DeepCopy() + { + var tmp631 = new testInsertRecordArgs(); + if((Req != null) && __isset.req) + { + tmp631.Req = (TSInsertRecordReq)this.Req.DeepCopy(); + } + tmp631.__isset.req = this.__isset.req; + return tmp631; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertRecordReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("testInsertTablets_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("testInsertRecord_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is testInsertRecordArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as testInsertTabletsResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("testInsertTablets_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("testInsertRecord_args("); + int tmp632 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp632++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class testInsertRecordArgs : TBase - { - private TSInsertRecordReq _req; - - public TSInsertRecordReq Req + public partial class testInsertRecordResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public testInsertRecordResult() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public testInsertRecordArgs() - { - } + public testInsertRecordResult DeepCopy() + { + var tmp633 = new testInsertRecordResult(); + if((Success != null) && __isset.success) + { + tmp633.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp633.__isset.success = this.__isset.success; + return tmp633; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertRecordReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("testInsertRecord_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("testInsertRecord_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is testInsertRecordResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - public override bool Equals(object that) - { - var other = that as testInsertRecordArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("testInsertRecord_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("testInsertRecord_result("); + int tmp634 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp634++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class testInsertRecordResult : TBase - { - private TSStatus _success; - public TSStatus Success + public partial class testInsertStringRecordArgs : TBase { - get + private TSInsertStringRecordReq _req; + + public TSInsertStringRecordReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public testInsertStringRecordArgs() + { + } - public testInsertRecordResult() - { - } + public testInsertStringRecordArgs DeepCopy() + { + var tmp635 = new testInsertStringRecordArgs(); + if((Req != null) && __isset.req) + { + tmp635.Req = (TSInsertStringRecordReq)this.Req.DeepCopy(); + } + tmp635.__isset.req = this.__isset.req; + return tmp635; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertStringRecordReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("testInsertRecord_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("testInsertStringRecord_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is testInsertStringRecordArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as testInsertRecordResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("testInsertRecord_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("testInsertStringRecord_args("); + int tmp636 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp636++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class testInsertStringRecordArgs : TBase - { - private TSInsertStringRecordReq _req; - public TSInsertStringRecordReq Req + public partial class testInsertStringRecordResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool req; - } + public testInsertStringRecordResult() + { + } - public testInsertStringRecordArgs() - { - } + public testInsertStringRecordResult DeepCopy() + { + var tmp637 = new testInsertStringRecordResult(); + if((Success != null) && __isset.success) + { + tmp637.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp637.__isset.success = this.__isset.success; + return tmp637; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertStringRecordReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("testInsertStringRecord_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("testInsertStringRecord_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is testInsertStringRecordResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as testInsertStringRecordArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("testInsertStringRecord_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("testInsertStringRecord_result("); + int tmp638 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp638++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class testInsertStringRecordResult : TBase - { - private TSStatus _success; + public partial class testInsertRecordsArgs : TBase + { + private TSInsertRecordsReq _req; + + public TSInsertRecordsReq Req + { + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } + } + - public TSStatus Success - { - get + public Isset __isset; + public struct Isset { - return _success; + public bool req; } - set + + public testInsertRecordsArgs() { - __isset.success = true; - this._success = value; } - } - - - public Isset __isset; - public struct Isset - { - public bool success; - } - public testInsertStringRecordResult() - { - } + public testInsertRecordsArgs DeepCopy() + { + var tmp639 = new testInsertRecordsArgs(); + if((Req != null) && __isset.req) + { + tmp639.Req = (TSInsertRecordsReq)this.Req.DeepCopy(); + } + tmp639.__isset.req = this.__isset.req; + return tmp639; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertRecordsReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("testInsertStringRecord_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("testInsertRecords_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is testInsertRecordsArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as testInsertStringRecordResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("testInsertStringRecord_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("testInsertRecords_args("); + int tmp640 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp640++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class testInsertRecordsArgs : TBase - { - private TSInsertRecordsReq _req; - - public TSInsertRecordsReq Req + public partial class testInsertRecordsResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public testInsertRecordsResult() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public testInsertRecordsArgs() - { - } + public testInsertRecordsResult DeepCopy() + { + var tmp641 = new testInsertRecordsResult(); + if((Success != null) && __isset.success) + { + tmp641.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp641.__isset.success = this.__isset.success; + return tmp641; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertRecordsReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("testInsertRecords_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("testInsertRecords_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is testInsertRecordsResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - public override bool Equals(object that) - { - var other = that as testInsertRecordsArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("testInsertRecords_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("testInsertRecords_result("); + int tmp642 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp642++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class testInsertRecordsResult : TBase - { - private TSStatus _success; - public TSStatus Success + public partial class testInsertRecordsOfOneDeviceArgs : TBase { - get + private TSInsertRecordsOfOneDeviceReq _req; + + public TSInsertRecordsOfOneDeviceReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public testInsertRecordsOfOneDeviceArgs() + { + } - public testInsertRecordsResult() - { - } + public testInsertRecordsOfOneDeviceArgs DeepCopy() + { + var tmp643 = new testInsertRecordsOfOneDeviceArgs(); + if((Req != null) && __isset.req) + { + tmp643.Req = (TSInsertRecordsOfOneDeviceReq)this.Req.DeepCopy(); + } + tmp643.__isset.req = this.__isset.req; + return tmp643; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertRecordsOfOneDeviceReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("testInsertRecords_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("testInsertRecordsOfOneDevice_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is testInsertRecordsOfOneDeviceArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - public override bool Equals(object that) - { - var other = that as testInsertRecordsResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override string ToString() + { + var sb = new StringBuilder("testInsertRecordsOfOneDevice_args("); + int tmp644 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp644++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - return hashcode; } - public override string ToString() + + public partial class testInsertRecordsOfOneDeviceResult : TBase { - var sb = new StringBuilder("testInsertRecords_result("); - bool __first = true; - if (Success != null && __isset.success) + private TSStatus _success; + + public TSStatus Success { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - sb.Append(")"); - return sb.ToString(); - } - } - public partial class testInsertRecordsOfOneDeviceArgs : TBase - { - private TSInsertRecordsOfOneDeviceReq _req; + public Isset __isset; + public struct Isset + { + public bool success; + } - public TSInsertRecordsOfOneDeviceReq Req - { - get + public testInsertRecordsOfOneDeviceResult() { - return _req; } - set + + public testInsertRecordsOfOneDeviceResult DeepCopy() { - __isset.req = true; - this._req = value; + var tmp645 = new testInsertRecordsOfOneDeviceResult(); + if((Success != null) && __isset.success) + { + tmp645.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp645.__isset.success = this.__isset.success; + return tmp645; } - } + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - public Isset __isset; - public struct Isset - { - public bool req; - } + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } - public testInsertRecordsOfOneDeviceArgs() - { - } + await iprot.ReadFieldEndAsync(cancellationToken); + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + oprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + var struc = new TStruct("testInsertRecordsOfOneDevice_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); - switch (field.ID) + if(this.__isset.success) { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertRecordsOfOneDeviceReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is testInsertRecordsOfOneDeviceResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - await iprot.ReadFieldEndAsync(cancellationToken); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); + return hashcode; } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public override string ToString() { - var struc = new TStruct("testInsertRecordsOfOneDevice_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + var sb = new StringBuilder("testInsertRecordsOfOneDevice_result("); + int tmp646 = 0; + if((Success != null) && __isset.success) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if(0 < tmp646++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); + sb.Append(')'); + return sb.ToString(); } - finally - { - oprot.DecrementRecursionDepth(); - } - } - - public override bool Equals(object that) - { - var other = that as testInsertRecordsOfOneDeviceArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - return hashcode; - } - public override string ToString() + public partial class testInsertStringRecordsArgs : TBase { - var sb = new StringBuilder("testInsertRecordsOfOneDevice_args("); - bool __first = true; - if (Req != null && __isset.req) + private TSInsertStringRecordsReq _req; + + public TSInsertStringRecordsReq Req { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - sb.Append(")"); - return sb.ToString(); - } - } - public partial class testInsertRecordsOfOneDeviceResult : TBase - { - private TSStatus _success; - - public TSStatus Success - { - get + public Isset __isset; + public struct Isset { - return _success; + public bool req; } - set + + public testInsertStringRecordsArgs() { - __isset.success = true; - this._success = value; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } - - public testInsertRecordsOfOneDeviceResult() - { - } + public testInsertStringRecordsArgs DeepCopy() + { + var tmp647 = new testInsertStringRecordsArgs(); + if((Req != null) && __isset.req) + { + tmp647.Req = (TSInsertStringRecordsReq)this.Req.DeepCopy(); + } + tmp647.__isset.req = this.__isset.req; + return tmp647; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSInsertStringRecordsReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("testInsertRecordsOfOneDevice_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("testInsertStringRecords_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is testInsertStringRecordsArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - public override bool Equals(object that) - { - var other = that as testInsertRecordsOfOneDeviceResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("testInsertRecordsOfOneDevice_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("testInsertStringRecords_args("); + int tmp648 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp648++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class testInsertStringRecordsArgs : TBase - { - private TSInsertStringRecordsReq _req; - - public TSInsertStringRecordsReq Req + public partial class testInsertStringRecordsResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public testInsertStringRecordsResult() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public testInsertStringRecordsArgs() - { - } + public testInsertStringRecordsResult DeepCopy() + { + var tmp649 = new testInsertStringRecordsResult(); + if((Success != null) && __isset.success) + { + tmp649.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp649.__isset.success = this.__isset.success; + return tmp649; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSInsertStringRecordsReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("testInsertStringRecords_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("testInsertStringRecords_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is testInsertStringRecordsResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as testInsertStringRecordsArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("testInsertStringRecords_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("testInsertStringRecords_result("); + int tmp650 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp650++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class testInsertStringRecordsResult : TBase - { - private TSStatus _success; - public TSStatus Success + public partial class deleteDataArgs : TBase { - get + private TSDeleteDataReq _req; + + public TSDeleteDataReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public deleteDataArgs() + { + } - public testInsertStringRecordsResult() - { - } + public deleteDataArgs DeepCopy() + { + var tmp651 = new deleteDataArgs(); + if((Req != null) && __isset.req) + { + tmp651.Req = (TSDeleteDataReq)this.Req.DeepCopy(); + } + tmp651.__isset.req = this.__isset.req; + return tmp651; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSDeleteDataReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("testInsertStringRecords_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("deleteData_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is deleteDataArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - public override bool Equals(object that) - { - var other = that as testInsertStringRecordsResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override string ToString() + { + var sb = new StringBuilder("deleteData_args("); + int tmp652 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp652++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - return hashcode; } - public override string ToString() + + public partial class deleteDataResult : TBase { - var sb = new StringBuilder("testInsertStringRecords_result("); - bool __first = true; - if (Success != null && __isset.success) + private TSStatus _success; + + public TSStatus Success { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - sb.Append(")"); - return sb.ToString(); - } - } - public partial class deleteDataArgs : TBase - { - private TSDeleteDataReq _req; + public Isset __isset; + public struct Isset + { + public bool success; + } - public TSDeleteDataReq Req - { - get + public deleteDataResult() { - return _req; } - set + + public deleteDataResult DeepCopy() { - __isset.req = true; - this._req = value; + var tmp653 = new deleteDataResult(); + if((Success != null) && __isset.success) + { + tmp653.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp653.__isset.success = this.__isset.success; + return tmp653; } - } + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } - public Isset __isset; - public struct Isset - { - public bool req; - } + await iprot.ReadFieldEndAsync(cancellationToken); + } - public deleteDataArgs() - { - } + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + oprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + var struc = new TStruct("deleteData_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); - switch (field.ID) + if(this.__isset.success) { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSDeleteDataReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } } - - await iprot.ReadFieldEndAsync(cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - iprot.DecrementRecursionDepth(); + if (!(that is deleteDataResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("deleteData_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) - { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); + return hashcode; } - finally + + public override string ToString() { - oprot.DecrementRecursionDepth(); + var sb = new StringBuilder("deleteData_result("); + int tmp654 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp654++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } } - public override bool Equals(object that) - { - var other = that as deleteDataArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - return hashcode; - } - public override string ToString() + public partial class executeRawDataQueryArgs : TBase { - var sb = new StringBuilder("deleteData_args("); - bool __first = true; - if (Req != null && __isset.req) + private TSRawDataQueryReq _req; + + public TSRawDataQueryReq Req { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - sb.Append(")"); - return sb.ToString(); - } - } - public partial class deleteDataResult : TBase - { - private TSStatus _success; - - public TSStatus Success - { - get + public Isset __isset; + public struct Isset { - return _success; + public bool req; } - set + + public executeRawDataQueryArgs() { - __isset.success = true; - this._success = value; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } - - public deleteDataResult() - { - } + public executeRawDataQueryArgs DeepCopy() + { + var tmp655 = new executeRawDataQueryArgs(); + if((Req != null) && __isset.req) + { + tmp655.Req = (TSRawDataQueryReq)this.Req.DeepCopy(); + } + tmp655.__isset.req = this.__isset.req; + return tmp655; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSRawDataQueryReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("deleteData_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("executeRawDataQuery_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeRawDataQueryArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - public override bool Equals(object that) - { - var other = that as deleteDataResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("deleteData_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("executeRawDataQuery_args("); + int tmp656 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp656++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class executeRawDataQueryArgs : TBase - { - private TSRawDataQueryReq _req; - - public TSRawDataQueryReq Req + public partial class executeRawDataQueryResult : TBase { - get + private TSExecuteStatementResp _success; + + public TSExecuteStatementResp Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public executeRawDataQueryResult() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public executeRawDataQueryArgs() - { - } + public executeRawDataQueryResult DeepCopy() + { + var tmp657 = new executeRawDataQueryResult(); + if((Success != null) && __isset.success) + { + tmp657.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); + } + tmp657.__isset.success = this.__isset.success; + return tmp657; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSRawDataQueryReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeRawDataQuery_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeRawDataQuery_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeRawDataQueryResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as executeRawDataQueryArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeRawDataQuery_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("executeRawDataQuery_result("); + int tmp658 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp658++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class executeRawDataQueryResult : TBase - { - private TSExecuteStatementResp _success; - public TSExecuteStatementResp Success + public partial class executeLastDataQueryArgs : TBase { - get + private TSLastDataQueryReq _req; + + public TSLastDataQueryReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public executeLastDataQueryArgs() + { + } - public executeRawDataQueryResult() - { - } + public executeLastDataQueryArgs DeepCopy() + { + var tmp659 = new executeLastDataQueryArgs(); + if((Req != null) && __isset.req) + { + tmp659.Req = (TSLastDataQueryReq)this.Req.DeepCopy(); + } + tmp659.__isset.req = this.__isset.req; + return tmp659; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSLastDataQueryReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeRawDataQuery_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("executeLastDataQuery_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeLastDataQueryArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as executeRawDataQueryResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeRawDataQuery_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("executeLastDataQuery_args("); + int tmp660 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp660++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class executeLastDataQueryArgs : TBase - { - private TSLastDataQueryReq _req; - public TSLastDataQueryReq Req + public partial class executeLastDataQueryResult : TBase { - get + private TSExecuteStatementResp _success; + + public TSExecuteStatementResp Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool req; - } + public executeLastDataQueryResult() + { + } - public executeLastDataQueryArgs() - { - } + public executeLastDataQueryResult DeepCopy() + { + var tmp661 = new executeLastDataQueryResult(); + if((Success != null) && __isset.success) + { + tmp661.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); + } + tmp661.__isset.success = this.__isset.success; + return tmp661; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSLastDataQueryReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeLastDataQuery_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeLastDataQuery_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeLastDataQueryResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as executeLastDataQueryArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeLastDataQuery_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("executeLastDataQuery_result("); + int tmp662 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp662++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class executeLastDataQueryResult : TBase - { - private TSExecuteStatementResp _success; - - public TSExecuteStatementResp Success + public partial class executeAggregationQueryArgs : TBase { - get + private TSAggregationQueryReq _req; + + public TSAggregationQueryReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } + public executeAggregationQueryArgs() + { + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public executeLastDataQueryResult() - { - } + public executeAggregationQueryArgs DeepCopy() + { + var tmp663 = new executeAggregationQueryArgs(); + if((Req != null) && __isset.req) + { + tmp663.Req = (TSAggregationQueryReq)this.Req.DeepCopy(); + } + tmp663.__isset.req = this.__isset.req; + return tmp663; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSAggregationQueryReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeLastDataQuery_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("executeAggregationQuery_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeAggregationQueryArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as executeLastDataQueryResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeLastDataQuery_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("executeAggregationQuery_args("); + int tmp664 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp664++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class executeAggregationQueryArgs : TBase - { - private TSAggregationQueryReq _req; - - public TSAggregationQueryReq Req + public partial class executeAggregationQueryResult : TBase { - get + private TSExecuteStatementResp _success; + + public TSExecuteStatementResp Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public executeAggregationQueryResult() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public executeAggregationQueryArgs() - { - } + public executeAggregationQueryResult DeepCopy() + { + var tmp665 = new executeAggregationQueryResult(); + if((Success != null) && __isset.success) + { + tmp665.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); + } + tmp665.__isset.success = this.__isset.success; + return tmp665; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSAggregationQueryReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSExecuteStatementResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeAggregationQuery_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("executeAggregationQuery_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is executeAggregationQueryResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - public override bool Equals(object that) - { - var other = that as executeAggregationQueryArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeAggregationQuery_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("executeAggregationQuery_result("); + int tmp666 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp666++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class executeAggregationQueryResult : TBase - { - private TSExecuteStatementResp _success; - public TSExecuteStatementResp Success + public partial class requestStatementIdArgs : TBase { - get + private long _sessionId; + + public long SessionId { - return _success; + get + { + return _sessionId; + } + set + { + __isset.sessionId = true; + this._sessionId = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool sessionId; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public requestStatementIdArgs() + { + } - public executeAggregationQueryResult() - { - } + public requestStatementIdArgs DeepCopy() + { + var tmp667 = new requestStatementIdArgs(); + if(__isset.sessionId) + { + tmp667.SessionId = this.SessionId; + } + tmp667.__isset.sessionId = this.__isset.sessionId; + return tmp667; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSExecuteStatementResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.I64) + { + SessionId = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("executeAggregationQuery_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("requestStatementId_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if(__isset.sessionId) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; + field.Name = "sessionId"; + field.Type = TType.I64; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is requestStatementIdArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))); } - } - - public override bool Equals(object that) - { - var other = that as executeAggregationQueryResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.sessionId) + { + hashcode = (hashcode * 397) + SessionId.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("executeAggregationQuery_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("requestStatementId_args("); + int tmp668 = 0; + if(__isset.sessionId) + { + if(0 < tmp668++) { sb.Append(", "); } + sb.Append("SessionId: "); + SessionId.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class requestStatementIdArgs : TBase - { - private long _sessionId; - - public long SessionId + public partial class requestStatementIdResult : TBase { - get + private long _success; + + public long Success { - return _sessionId; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.sessionId = true; - this._sessionId = value; + public bool success; } - } + public requestStatementIdResult() + { + } - public Isset __isset; - public struct Isset - { - public bool sessionId; - } - - public requestStatementIdArgs() - { - } + public requestStatementIdResult DeepCopy() + { + var tmp669 = new requestStatementIdResult(); + if(__isset.success) + { + tmp669.Success = this.Success; + } + tmp669.__isset.success = this.__isset.success; + return tmp669; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.I64) - { - SessionId = await iprot.ReadI64Async(cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.I64) + { + Success = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("requestStatementId_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (__isset.sessionId) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("requestStatementId_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + field.Name = "Success"; + field.Type = TType.I64; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteI64Async(Success, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteI64Async(SessionId, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is requestStatementIdResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as requestStatementIdArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.sessionId) - hashcode = (hashcode * 397) + SessionId.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("requestStatementId_args("); - bool __first = true; - if (__isset.sessionId) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("SessionId: "); - sb.Append(SessionId); + var sb = new StringBuilder("requestStatementId_result("); + int tmp670 = 0; + if(__isset.success) + { + if(0 < tmp670++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class requestStatementIdResult : TBase - { - private long _success; - - public long Success + public partial class createSchemaTemplateArgs : TBase { - get + private TSCreateSchemaTemplateReq _req; + + public TSCreateSchemaTemplateReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } + public createSchemaTemplateArgs() + { + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public requestStatementIdResult() - { - } + public createSchemaTemplateArgs DeepCopy() + { + var tmp671 = new createSchemaTemplateArgs(); + if((Req != null) && __isset.req) + { + tmp671.Req = (TSCreateSchemaTemplateReq)this.Req.DeepCopy(); + } + tmp671.__isset.req = this.__isset.req; + return tmp671; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.I64) - { - Success = await iprot.ReadI64Async(cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSCreateSchemaTemplateReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("requestStatementId_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("createSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) + { + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "Success"; - field.Type = TType.I64; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteI64Async(Success, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is createSchemaTemplateArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as requestStatementIdResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("requestStatementId_result("); - bool __first = true; - if (__isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success); + var sb = new StringBuilder("createSchemaTemplate_args("); + int tmp672 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp672++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class createSchemaTemplateArgs : TBase - { - private TSCreateSchemaTemplateReq _req; - public TSCreateSchemaTemplateReq Req + public partial class createSchemaTemplateResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool req; - } + public createSchemaTemplateResult() + { + } - public createSchemaTemplateArgs() - { - } + public createSchemaTemplateResult DeepCopy() + { + var tmp673 = new createSchemaTemplateResult(); + if((Success != null) && __isset.success) + { + tmp673.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp673.__isset.success = this.__isset.success; + return tmp673; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSCreateSchemaTemplateReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("createSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + var struc = new TStruct("createSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is createSchemaTemplateResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as createSchemaTemplateArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("createSchemaTemplate_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("createSchemaTemplate_result("); + int tmp674 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp674++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class createSchemaTemplateResult : TBase - { - private TSStatus _success; - - public TSStatus Success + public partial class appendSchemaTemplateArgs : TBase { - get + private TSAppendSchemaTemplateReq _req; + + public TSAppendSchemaTemplateReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } + public appendSchemaTemplateArgs() + { + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public createSchemaTemplateResult() - { - } + public appendSchemaTemplateArgs DeepCopy() + { + var tmp675 = new appendSchemaTemplateArgs(); + if((Req != null) && __isset.req) + { + tmp675.Req = (TSAppendSchemaTemplateReq)this.Req.DeepCopy(); + } + tmp675.__isset.req = this.__isset.req; + return tmp675; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSAppendSchemaTemplateReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("createSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("appendSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is appendSchemaTemplateArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - public override bool Equals(object that) - { - var other = that as createSchemaTemplateResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("createSchemaTemplate_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("appendSchemaTemplate_args("); + int tmp676 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp676++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class appendSchemaTemplateArgs : TBase - { - private TSAppendSchemaTemplateReq _req; - - public TSAppendSchemaTemplateReq Req + public partial class appendSchemaTemplateResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public appendSchemaTemplateResult() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public appendSchemaTemplateArgs() - { - } + public appendSchemaTemplateResult DeepCopy() + { + var tmp677 = new appendSchemaTemplateResult(); + if((Success != null) && __isset.success) + { + tmp677.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp677.__isset.success = this.__isset.success; + return tmp677; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSAppendSchemaTemplateReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("appendSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("appendSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is appendSchemaTemplateResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as appendSchemaTemplateArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("appendSchemaTemplate_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("appendSchemaTemplate_result("); + int tmp678 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp678++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class appendSchemaTemplateResult : TBase - { - private TSStatus _success; - public TSStatus Success + public partial class pruneSchemaTemplateArgs : TBase { - get + private TSPruneSchemaTemplateReq _req; + + public TSPruneSchemaTemplateReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public pruneSchemaTemplateArgs() + { + } - public appendSchemaTemplateResult() - { - } + public pruneSchemaTemplateArgs DeepCopy() + { + var tmp679 = new pruneSchemaTemplateArgs(); + if((Req != null) && __isset.req) + { + tmp679.Req = (TSPruneSchemaTemplateReq)this.Req.DeepCopy(); + } + tmp679.__isset.req = this.__isset.req; + return tmp679; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSPruneSchemaTemplateReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("appendSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("pruneSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is pruneSchemaTemplateArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as appendSchemaTemplateResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("appendSchemaTemplate_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("pruneSchemaTemplate_args("); + int tmp680 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp680++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class pruneSchemaTemplateArgs : TBase - { - private TSPruneSchemaTemplateReq _req; - public TSPruneSchemaTemplateReq Req + public partial class pruneSchemaTemplateResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool req; - } + public pruneSchemaTemplateResult() + { + } - public pruneSchemaTemplateArgs() - { - } + public pruneSchemaTemplateResult DeepCopy() + { + var tmp681 = new pruneSchemaTemplateResult(); + if((Success != null) && __isset.success) + { + tmp681.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp681.__isset.success = this.__isset.success; + return tmp681; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSPruneSchemaTemplateReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("pruneSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("pruneSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is pruneSchemaTemplateResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as pruneSchemaTemplateArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("pruneSchemaTemplate_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("pruneSchemaTemplate_result("); + int tmp682 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp682++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class pruneSchemaTemplateResult : TBase - { - private TSStatus _success; - - public TSStatus Success + public partial class querySchemaTemplateArgs : TBase { - get - { - return _success; - } - set + private TSQueryTemplateReq _req; + + public TSQueryTemplateReq Req { - __isset.success = true; - this._success = value; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - } - public Isset __isset; - public struct Isset - { - public bool success; - } + public Isset __isset; + public struct Isset + { + public bool req; + } - public pruneSchemaTemplateResult() - { - } + public querySchemaTemplateArgs() + { + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public querySchemaTemplateArgs DeepCopy() { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + var tmp683 = new querySchemaTemplateArgs(); + if((Req != null) && __isset.req) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + tmp683.Req = (TSQueryTemplateReq)this.Req.DeepCopy(); + } + tmp683.__isset.req = this.__isset.req; + return tmp683; + } - switch (field.ID) + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSQueryTemplateReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("pruneSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("querySchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is querySchemaTemplateArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - public override bool Equals(object that) - { - var other = that as pruneSchemaTemplateResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("pruneSchemaTemplate_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("querySchemaTemplate_args("); + int tmp684 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp684++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class querySchemaTemplateArgs : TBase - { - private TSQueryTemplateReq _req; - - public TSQueryTemplateReq Req + public partial class querySchemaTemplateResult : TBase { - get + private TSQueryTemplateResp _success; + + public TSQueryTemplateResp Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public querySchemaTemplateResult() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public querySchemaTemplateArgs() - { - } + public querySchemaTemplateResult DeepCopy() + { + var tmp685 = new querySchemaTemplateResult(); + if((Success != null) && __isset.success) + { + tmp685.Success = (TSQueryTemplateResp)this.Success.DeepCopy(); + } + tmp685.__isset.success = this.__isset.success; + return tmp685; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSQueryTemplateReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSQueryTemplateResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("querySchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("querySchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is querySchemaTemplateResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as querySchemaTemplateArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("querySchemaTemplate_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("querySchemaTemplate_result("); + int tmp686 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp686++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class querySchemaTemplateResult : TBase - { - private TSQueryTemplateResp _success; - public TSQueryTemplateResp Success + public partial class showConfigurationTemplateArgs : TBase { - get + + public showConfigurationTemplateArgs() { - return _success; } - set + + public showConfigurationTemplateArgs DeepCopy() { - __isset.success = true; - this._success = value; + var tmp687 = new showConfigurationTemplateArgs(); + return tmp687; } - } - - - public Isset __isset; - public struct Isset - { - public bool success; - } - - public querySchemaTemplateResult() - { - } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSQueryTemplateResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("querySchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) - { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - } + var struc = new TStruct("showConfigurationTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is showConfigurationTemplateArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return true; } - } - public override bool Equals(object that) - { - var other = that as querySchemaTemplateResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + } + return hashcode; + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override string ToString() + { + var sb = new StringBuilder("showConfigurationTemplate_args("); + sb.Append(')'); + return sb.ToString(); } - return hashcode; } - public override string ToString() + + public partial class showConfigurationTemplateResult : TBase { - var sb = new StringBuilder("querySchemaTemplate_result("); - bool __first = true; - if (Success != null && __isset.success) + private TShowConfigurationTemplateResp _success; + + public TShowConfigurationTemplateResp Success { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - sb.Append(")"); - return sb.ToString(); - } - } - public partial class showConfigurationTemplateArgs : TBase - { + public Isset __isset; + public struct Isset + { + public bool success; + } - public showConfigurationTemplateArgs() - { - } + public showConfigurationTemplateResult() + { + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public showConfigurationTemplateResult DeepCopy() { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + var tmp689 = new showConfigurationTemplateResult(); + if((Success != null) && __isset.success) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + tmp689.Success = (TShowConfigurationTemplateResp)this.Success.DeepCopy(); + } + tmp689.__isset.success = this.__isset.success; + return tmp689; + } - switch (field.ID) + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { break; + } + + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TShowConfigurationTemplateResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("showConfigurationTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("showConfigurationTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is showConfigurationTemplateResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as showConfigurationTemplateArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return true; - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("showConfigurationTemplate_args("); - sb.Append(")"); - return sb.ToString(); + public override string ToString() + { + var sb = new StringBuilder("showConfigurationTemplate_result("); + int tmp690 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp690++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); + } } - } - public partial class showConfigurationTemplateResult : TBase - { - private TShowConfigurationTemplateResp _success; - - public TShowConfigurationTemplateResp Success + public partial class showConfigurationArgs : TBase { - get - { - return _success; - } - set + private int _nodeId; + + public int NodeId { - __isset.success = true; - this._success = value; + get + { + return _nodeId; + } + set + { + __isset.nodeId = true; + this._nodeId = value; + } } - } - public Isset __isset; - public struct Isset - { - public bool success; - } + public Isset __isset; + public struct Isset + { + public bool nodeId; + } - public showConfigurationTemplateResult() - { - } + public showConfigurationArgs() + { + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public showConfigurationArgs DeepCopy() { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + var tmp691 = new showConfigurationArgs(); + if(__isset.nodeId) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + tmp691.NodeId = this.NodeId; + } + tmp691.__isset.nodeId = this.__isset.nodeId; + return tmp691; + } - switch (field.ID) + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - case 0: - if (field.Type == TType.Struct) - { - Success = new TShowConfigurationTemplateResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + NodeId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("showConfigurationTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("showConfiguration_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if(__isset.nodeId) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; + field.Name = "nodeId"; + field.Type = TType.I32; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteI32Async(NodeId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is showConfigurationArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.nodeId == other.__isset.nodeId) && ((!__isset.nodeId) || (System.Object.Equals(NodeId, other.NodeId)))); } - } - - public override bool Equals(object that) - { - var other = that as showConfigurationTemplateResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.nodeId) + { + hashcode = (hashcode * 397) + NodeId.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("showConfigurationTemplate_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("showConfiguration_args("); + int tmp692 = 0; + if(__isset.nodeId) + { + if(0 < tmp692++) { sb.Append(", "); } + sb.Append("NodeId: "); + NodeId.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class showConfigurationArgs : TBase - { - private int _nodeId; - public int NodeId + public partial class showConfigurationResult : TBase { - get + private TShowConfigurationResp _success; + + public TShowConfigurationResp Success { - return _nodeId; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.nodeId = true; - this._nodeId = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool nodeId; - } + public showConfigurationResult() + { + } - public showConfigurationArgs() - { - } + public showConfigurationResult DeepCopy() + { + var tmp693 = new showConfigurationResult(); + if((Success != null) && __isset.success) + { + tmp693.Success = (TShowConfigurationResp)this.Success.DeepCopy(); + } + tmp693.__isset.success = this.__isset.success; + return tmp693; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.I32) - { - NodeId = await iprot.ReadI32Async(cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TShowConfigurationResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("showConfiguration_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (__isset.nodeId) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("showConfiguration_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "nodeId"; - field.Type = TType.I32; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteI32Async(NodeId, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is showConfigurationResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as showConfigurationArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.nodeId == other.__isset.nodeId) && ((!__isset.nodeId) || (System.Object.Equals(NodeId, other.NodeId)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.nodeId) - hashcode = (hashcode * 397) + NodeId.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("showConfiguration_args("); - bool __first = true; - if (__isset.nodeId) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("NodeId: "); - sb.Append(NodeId); + var sb = new StringBuilder("showConfiguration_result("); + int tmp694 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp694++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class showConfigurationResult : TBase - { - private TShowConfigurationResp _success; - public TShowConfigurationResp Success + public partial class setSchemaTemplateArgs : TBase { - get + private TSSetSchemaTemplateReq _req; + + public TSSetSchemaTemplateReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public setSchemaTemplateArgs() + { + } - public showConfigurationResult() - { - } + public setSchemaTemplateArgs DeepCopy() + { + var tmp695 = new setSchemaTemplateArgs(); + if((Req != null) && __isset.req) + { + tmp695.Req = (TSSetSchemaTemplateReq)this.Req.DeepCopy(); + } + tmp695.__isset.req = this.__isset.req; + return tmp695; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TShowConfigurationResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSSetSchemaTemplateReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("showConfiguration_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("setSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is setSchemaTemplateArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as showConfigurationResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("showConfiguration_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("setSchemaTemplate_args("); + int tmp696 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp696++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class setSchemaTemplateArgs : TBase - { - private TSSetSchemaTemplateReq _req; - public TSSetSchemaTemplateReq Req + public partial class setSchemaTemplateResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool req; - } + public setSchemaTemplateResult() + { + } - public setSchemaTemplateArgs() - { - } + public setSchemaTemplateResult DeepCopy() + { + var tmp697 = new setSchemaTemplateResult(); + if((Success != null) && __isset.success) + { + tmp697.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp697.__isset.success = this.__isset.success; + return tmp697; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSSetSchemaTemplateReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("setSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); - await iprot.ReadStructEndAsync(cancellationToken); + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } } - finally + + public override bool Equals(object that) { - iprot.DecrementRecursionDepth(); + if (!(that is setSchemaTemplateResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public override string ToString() { - var struc = new TStruct("setSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + var sb = new StringBuilder("setSchemaTemplate_result("); + int tmp698 = 0; + if((Success != null) && __isset.success) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if(0 < tmp698++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); + sb.Append(')'); + return sb.ToString(); } - finally - { - oprot.DecrementRecursionDepth(); - } - } - - public override bool Equals(object that) - { - var other = that as setSchemaTemplateArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - return hashcode; - } - public override string ToString() + public partial class unsetSchemaTemplateArgs : TBase { - var sb = new StringBuilder("setSchemaTemplate_args("); - bool __first = true; - if (Req != null && __isset.req) + private TSUnsetSchemaTemplateReq _req; + + public TSUnsetSchemaTemplateReq Req { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - sb.Append(")"); - return sb.ToString(); - } - } - public partial class setSchemaTemplateResult : TBase - { - private TSStatus _success; - - public TSStatus Success - { - get + public Isset __isset; + public struct Isset { - return _success; + public bool req; } - set + + public unsetSchemaTemplateArgs() { - __isset.success = true; - this._success = value; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } - - public setSchemaTemplateResult() - { - } + public unsetSchemaTemplateArgs DeepCopy() + { + var tmp699 = new unsetSchemaTemplateArgs(); + if((Req != null) && __isset.req) + { + tmp699.Req = (TSUnsetSchemaTemplateReq)this.Req.DeepCopy(); + } + tmp699.__isset.req = this.__isset.req; + return tmp699; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSUnsetSchemaTemplateReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("setSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("unsetSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is unsetSchemaTemplateArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - public override bool Equals(object that) - { - var other = that as setSchemaTemplateResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("setSchemaTemplate_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("unsetSchemaTemplate_args("); + int tmp700 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp700++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class unsetSchemaTemplateArgs : TBase - { - private TSUnsetSchemaTemplateReq _req; - - public TSUnsetSchemaTemplateReq Req + public partial class unsetSchemaTemplateResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public unsetSchemaTemplateResult() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public unsetSchemaTemplateArgs() - { - } + public unsetSchemaTemplateResult DeepCopy() + { + var tmp701 = new unsetSchemaTemplateResult(); + if((Success != null) && __isset.success) + { + tmp701.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp701.__isset.success = this.__isset.success; + return tmp701; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSUnsetSchemaTemplateReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("unsetSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("unsetSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is unsetSchemaTemplateResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as unsetSchemaTemplateArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("unsetSchemaTemplate_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("unsetSchemaTemplate_result("); + int tmp702 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp702++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class unsetSchemaTemplateResult : TBase - { - private TSStatus _success; - public TSStatus Success + public partial class dropSchemaTemplateArgs : TBase { - get + private TSDropSchemaTemplateReq _req; + + public TSDropSchemaTemplateReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public dropSchemaTemplateArgs() + { + } - public unsetSchemaTemplateResult() - { - } + public dropSchemaTemplateArgs DeepCopy() + { + var tmp703 = new dropSchemaTemplateArgs(); + if((Req != null) && __isset.req) + { + tmp703.Req = (TSDropSchemaTemplateReq)this.Req.DeepCopy(); + } + tmp703.__isset.req = this.__isset.req; + return tmp703; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TSDropSchemaTemplateReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("unsetSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("dropSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is dropSchemaTemplateArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as unsetSchemaTemplateResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("unsetSchemaTemplate_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("dropSchemaTemplate_args("); + int tmp704 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp704++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class dropSchemaTemplateArgs : TBase - { - private TSDropSchemaTemplateReq _req; - public TSDropSchemaTemplateReq Req + public partial class dropSchemaTemplateResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool req; - } + public dropSchemaTemplateResult() + { + } - public dropSchemaTemplateArgs() - { - } + public dropSchemaTemplateResult DeepCopy() + { + var tmp705 = new dropSchemaTemplateResult(); + if((Success != null) && __isset.success) + { + tmp705.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp705.__isset.success = this.__isset.success; + return tmp705; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TSDropSchemaTemplateReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("dropSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("dropSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is dropSchemaTemplateResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as dropSchemaTemplateArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("dropSchemaTemplate_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("dropSchemaTemplate_result("); + int tmp706 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp706++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class dropSchemaTemplateResult : TBase - { - private TSStatus _success; - - public TSStatus Success + public partial class createTimeseriesUsingSchemaTemplateArgs : TBase { - get + private TCreateTimeseriesUsingSchemaTemplateReq _req; + + public TCreateTimeseriesUsingSchemaTemplateReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } + public createTimeseriesUsingSchemaTemplateArgs() + { + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public dropSchemaTemplateResult() - { - } + public createTimeseriesUsingSchemaTemplateArgs DeepCopy() + { + var tmp707 = new createTimeseriesUsingSchemaTemplateArgs(); + if((Req != null) && __isset.req) + { + tmp707.Req = (TCreateTimeseriesUsingSchemaTemplateReq)this.Req.DeepCopy(); + } + tmp707.__isset.req = this.__isset.req; + return tmp707; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + Req = new TCreateTimeseriesUsingSchemaTemplateReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("dropSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("createTimeseriesUsingSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is createTimeseriesUsingSchemaTemplateArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - - public override bool Equals(object that) - { - var other = that as dropSchemaTemplateResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("dropSchemaTemplate_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("createTimeseriesUsingSchemaTemplate_args("); + int tmp708 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp708++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class createTimeseriesUsingSchemaTemplateArgs : TBase - { - private TCreateTimeseriesUsingSchemaTemplateReq _req; - - public TCreateTimeseriesUsingSchemaTemplateReq Req + public partial class createTimeseriesUsingSchemaTemplateResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _req; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.req = true; - this._req = value; + public bool success; } - } + public createTimeseriesUsingSchemaTemplateResult() + { + } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public createTimeseriesUsingSchemaTemplateArgs() - { - } + public createTimeseriesUsingSchemaTemplateResult DeepCopy() + { + var tmp709 = new createTimeseriesUsingSchemaTemplateResult(); + if((Success != null) && __isset.success) + { + tmp709.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp709.__isset.success = this.__isset.success; + return tmp709; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.Struct) - { - Req = new TCreateTimeseriesUsingSchemaTemplateReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("createTimeseriesUsingSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("createTimeseriesUsingSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is createTimeseriesUsingSchemaTemplateResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - public override bool Equals(object that) - { - var other = that as createTimeseriesUsingSchemaTemplateArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("createTimeseriesUsingSchemaTemplate_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("createTimeseriesUsingSchemaTemplate_result("); + int tmp710 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp710++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class createTimeseriesUsingSchemaTemplateResult : TBase - { - private TSStatus _success; - public TSStatus Success + public partial class handshakeArgs : TBase { - get + private TSyncIdentityInfo _info; + + public TSyncIdentityInfo Info { - return _success; + get + { + return _info; + } + set + { + __isset.info = true; + this._info = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool info; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public handshakeArgs() + { + } - public createTimeseriesUsingSchemaTemplateResult() - { - } + public handshakeArgs DeepCopy() + { + var tmp711 = new handshakeArgs(); + if((Info != null) && __isset.info) + { + tmp711.Info = (TSyncIdentityInfo)this.Info.DeepCopy(); + } + tmp711.__isset.info = this.__isset.info; + return tmp711; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case -1: + if (field.Type == TType.Struct) + { + Info = new TSyncIdentityInfo(); + await Info.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("createTimeseriesUsingSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("handshake_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Info != null) && __isset.info) { - field.Name = "Success"; + field.Name = "info"; field.Type = TType.Struct; - field.ID = 0; + field.ID = -1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Info.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is handshakeArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.info == other.__isset.info) && ((!__isset.info) || (System.Object.Equals(Info, other.Info)))); } - } - - public override bool Equals(object that) - { - var other = that as createTimeseriesUsingSchemaTemplateResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Info != null) && __isset.info) + { + hashcode = (hashcode * 397) + Info.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("createTimeseriesUsingSchemaTemplate_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("handshake_args("); + int tmp712 = 0; + if((Info != null) && __isset.info) + { + if(0 < tmp712++) { sb.Append(", "); } + sb.Append("Info: "); + Info.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class handshakeArgs : TBase - { - private TSyncIdentityInfo _info; - public TSyncIdentityInfo Info + public partial class handshakeResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _info; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.info = true; - this._info = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool info; - } + public handshakeResult() + { + } - public handshakeArgs() - { - } + public handshakeResult DeepCopy() + { + var tmp713 = new handshakeResult(); + if((Success != null) && __isset.success) + { + tmp713.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp713.__isset.success = this.__isset.success; + return tmp713; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case -1: - if (field.Type == TType.Struct) - { - Info = new TSyncIdentityInfo(); - await Info.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("handshake_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Info != null && __isset.info) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("handshake_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "info"; - field.Type = TType.Struct; - field.ID = -1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Info.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is handshakeResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as handshakeArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.info == other.__isset.info) && ((!__isset.info) || (System.Object.Equals(Info, other.Info)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.info) - hashcode = (hashcode * 397) + Info.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("handshake_args("); - bool __first = true; - if (Info != null && __isset.info) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Info: "); - sb.Append(Info== null ? "" : Info.ToString()); + var sb = new StringBuilder("handshake_result("); + int tmp714 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp714++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class handshakeResult : TBase - { - private TSStatus _success; - - public TSStatus Success + public partial class sendPipeDataArgs : TBase { - get + private byte[] _buff; + + public byte[] Buff { - return _success; + get + { + return _buff; + } + set + { + __isset.buff = true; + this._buff = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool buff; } - } + public sendPipeDataArgs() + { + } - public Isset __isset; - public struct Isset - { - public bool success; - } - - public handshakeResult() - { - } + public sendPipeDataArgs DeepCopy() + { + var tmp715 = new sendPipeDataArgs(); + if((Buff != null) && __isset.buff) + { + tmp715.Buff = this.Buff.ToArray(); + } + tmp715.__isset.buff = this.__isset.buff; + return tmp715; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 1: + if (field.Type == TType.String) + { + Buff = await iprot.ReadBinaryAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("handshake_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("sendPipeData_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Buff != null) && __isset.buff) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; + field.Name = "buff"; + field.Type = TType.String; + field.ID = 1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteBinaryAsync(Buff, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is sendPipeDataArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.buff == other.__isset.buff) && ((!__isset.buff) || (TCollections.Equals(Buff, other.Buff)))); } - } - - public override bool Equals(object that) - { - var other = that as handshakeResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Buff != null) && __isset.buff) + { + hashcode = (hashcode * 397) + Buff.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("handshake_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("sendPipeData_args("); + int tmp716 = 0; + if((Buff != null) && __isset.buff) + { + if(0 < tmp716++) { sb.Append(", "); } + sb.Append("Buff: "); + Buff.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class sendPipeDataArgs : TBase - { - private byte[] _buff; - public byte[] Buff + public partial class sendPipeDataResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _buff; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.buff = true; - this._buff = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool buff; - } + public sendPipeDataResult() + { + } - public sendPipeDataArgs() - { - } + public sendPipeDataResult DeepCopy() + { + var tmp717 = new sendPipeDataResult(); + if((Success != null) && __isset.success) + { + tmp717.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp717.__isset.success = this.__isset.success; + return tmp717; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 1: - if (field.Type == TType.String) - { - Buff = await iprot.ReadBinaryAsync(cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("sendPipeData_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Buff != null && __isset.buff) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("sendPipeData_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "buff"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteBinaryAsync(Buff, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is sendPipeDataResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - - public override bool Equals(object that) - { - var other = that as sendPipeDataArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.buff == other.__isset.buff) && ((!__isset.buff) || (TCollections.Equals(Buff, other.Buff)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.buff) - hashcode = (hashcode * 397) + Buff.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("sendPipeData_args("); - bool __first = true; - if (Buff != null && __isset.buff) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Buff: "); - sb.Append(Buff); + var sb = new StringBuilder("sendPipeData_result("); + int tmp718 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp718++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - public partial class sendPipeDataResult : TBase - { - private TSStatus _success; - - public TSStatus Success + public partial class sendFileArgs : TBase { - get + private TSyncTransportMetaInfo _metaInfo; + private byte[] _buff; + + public TSyncTransportMetaInfo MetaInfo { - return _success; + get + { + return _metaInfo; + } + set + { + __isset.metaInfo = true; + this._metaInfo = value; + } } - set + + public byte[] Buff { - __isset.success = true; - this._success = value; + get + { + return _buff; + } + set + { + __isset.buff = true; + this._buff = value; + } } - } - public Isset __isset; - public struct Isset - { - public bool success; - } + public Isset __isset; + public struct Isset + { + public bool metaInfo; + public bool buff; + } - public sendPipeDataResult() - { - } + public sendFileArgs() + { + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public sendFileArgs DeepCopy() { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + var tmp719 = new sendFileArgs(); + if((MetaInfo != null) && __isset.metaInfo) { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + tmp719.MetaInfo = (TSyncTransportMetaInfo)this.MetaInfo.DeepCopy(); + } + tmp719.__isset.metaInfo = this.__isset.metaInfo; + if((Buff != null) && __isset.buff) + { + tmp719.Buff = this.Buff.ToArray(); + } + tmp719.__isset.buff = this.__isset.buff; + return tmp719; + } - switch (field.ID) + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + MetaInfo = new TSyncTransportMetaInfo(); + await MetaInfo.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Buff = await iprot.ReadBinaryAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("sendPipeData_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("sendFile_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((MetaInfo != null) && __isset.metaInfo) { - field.Name = "Success"; + field.Name = "metaInfo"; field.Type = TType.Struct; - field.ID = 0; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await MetaInfo.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Buff != null) && __isset.buff) + { + field.Name = "buff"; + field.Type = TType.String; + field.ID = 2; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteBinaryAsync(Buff, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is sendFileArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.metaInfo == other.__isset.metaInfo) && ((!__isset.metaInfo) || (System.Object.Equals(MetaInfo, other.MetaInfo)))) + && ((__isset.buff == other.__isset.buff) && ((!__isset.buff) || (TCollections.Equals(Buff, other.Buff)))); } - } - - public override bool Equals(object that) - { - var other = that as sendPipeDataResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((MetaInfo != null) && __isset.metaInfo) + { + hashcode = (hashcode * 397) + MetaInfo.GetHashCode(); + } + if((Buff != null) && __isset.buff) + { + hashcode = (hashcode * 397) + Buff.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("sendPipeData_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("sendFile_args("); + int tmp720 = 0; + if((MetaInfo != null) && __isset.metaInfo) + { + if(0 < tmp720++) { sb.Append(", "); } + sb.Append("MetaInfo: "); + MetaInfo.ToString(sb); + } + if((Buff != null) && __isset.buff) + { + if(0 < tmp720++) { sb.Append(", "); } + sb.Append("Buff: "); + Buff.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class sendFileArgs : TBase - { - private TSyncTransportMetaInfo _metaInfo; - private byte[] _buff; - public TSyncTransportMetaInfo MetaInfo + public partial class sendFileResult : TBase { - get + private TSStatus _success; + + public TSStatus Success { - return _metaInfo; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.metaInfo = true; - this._metaInfo = value; + public bool success; } - } - public byte[] Buff - { - get + public sendFileResult() { - return _buff; } - set + + public sendFileResult DeepCopy() { - __isset.buff = true; - this._buff = value; + var tmp721 = new sendFileResult(); + if((Success != null) && __isset.success) + { + tmp721.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp721.__isset.success = this.__isset.success; + return tmp721; } - } - - public Isset __isset; - public struct Isset - { - public bool metaInfo; - public bool buff; - } - - public sendFileArgs() - { - } - - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } - - switch (field.ID) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - case 1: - if (field.Type == TType.Struct) - { - MetaInfo = new TSyncTransportMetaInfo(); - await MetaInfo.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { break; - case 2: - if (field.Type == TType.String) - { - Buff = await iprot.ReadBinaryAsync(cancellationToken); - } - else - { + } + + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("sendFile_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (MetaInfo != null && __isset.metaInfo) + oprot.IncrementRecursionDepth(); + try { - field.Name = "metaInfo"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await MetaInfo.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + var struc = new TStruct("sendFile_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); } - if (Buff != null && __isset.buff) + finally { - field.Name = "buff"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteBinaryAsync(Buff, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is sendFileResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - public override bool Equals(object that) - { - var other = that as sendFileArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.metaInfo == other.__isset.metaInfo) && ((!__isset.metaInfo) || (System.Object.Equals(MetaInfo, other.MetaInfo)))) - && ((__isset.buff == other.__isset.buff) && ((!__isset.buff) || (TCollections.Equals(Buff, other.Buff)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.metaInfo) - hashcode = (hashcode * 397) + MetaInfo.GetHashCode(); - if(__isset.buff) - hashcode = (hashcode * 397) + Buff.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("sendFile_args("); - bool __first = true; - if (MetaInfo != null && __isset.metaInfo) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("MetaInfo: "); - sb.Append(MetaInfo== null ? "" : MetaInfo.ToString()); - } - if (Buff != null && __isset.buff) - { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Buff: "); - sb.Append(Buff); + var sb = new StringBuilder("sendFile_result("); + int tmp722 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp722++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class sendFileResult : TBase - { - private TSStatus _success; - public TSStatus Success + public partial class pipeTransferArgs : TBase { - get + private TPipeTransferReq _req; + + public TPipeTransferReq Req { - return _success; + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool req; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public pipeTransferArgs() + { + } - public sendFileResult() - { - } + public pipeTransferArgs DeepCopy() + { + var tmp723 = new pipeTransferArgs(); + if((Req != null) && __isset.req) + { + tmp723.Req = (TPipeTransferReq)this.Req.DeepCopy(); + } + tmp723.__isset.req = this.__isset.req; + return tmp723; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case -1: + if (field.Type == TType.Struct) + { + Req = new TPipeTransferReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("sendFile_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("pipeTransfer_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) { - field.Name = "Success"; + field.Name = "req"; field.Type = TType.Struct; - field.ID = 0; + field.ID = -1; await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); - } - } - - public override bool Equals(object that) - { - var other = that as sendFileResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("sendFile_result("); - bool __first = true; - if (Success != null && __isset.success) + public override bool Equals(object that) { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + if (!(that is pipeTransferArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - sb.Append(")"); - return sb.ToString(); - } - } - - public partial class pipeTransferArgs : TBase - { - private TPipeTransferReq _req; - - public TPipeTransferReq Req - { - get - { - return _req; + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - set + + public override string ToString() { - __isset.req = true; - this._req = value; + var sb = new StringBuilder("pipeTransfer_args("); + int tmp724 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp724++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } } - public Isset __isset; - public struct Isset - { - public bool req; - } - - public pipeTransferArgs() + public partial class pipeTransferResult : TBase { - } + private TPipeTransferResp _success; - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public TPipeTransferResp Success { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + get { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } - - switch (field.ID) - { - case -1: - if (field.Type == TType.Struct) - { - Req = new TPipeTransferReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; - } - - await iprot.ReadFieldEndAsync(cancellationToken); + return _success; } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); - } - } - - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try - { - var struc = new TStruct("pipeTransfer_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + set { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = -1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + __isset.success = true; + this._success = value; } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); - } - finally - { - oprot.DecrementRecursionDepth(); } - } - - public override bool Equals(object that) - { - var other = that as pipeTransferArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); - } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("pipeTransfer_args("); - bool __first = true; - if (Req != null && __isset.req) + public Isset __isset; + public struct Isset { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + public bool success; } - sb.Append(")"); - return sb.ToString(); - } - } - - - public partial class pipeTransferResult : TBase - { - private TPipeTransferResp _success; - public TPipeTransferResp Success - { - get + public pipeTransferResult() { - return _success; } - set + + public pipeTransferResult DeepCopy() { - __isset.success = true; - this._success = value; + var tmp725 = new pipeTransferResult(); + if((Success != null) && __isset.success) + { + tmp725.Success = (TPipeTransferResp)this.Success.DeepCopy(); + } + tmp725.__isset.success = this.__isset.success; + return tmp725; } - } - - - public Isset __isset; - public struct Isset - { - public bool success; - } - - public pipeTransferResult() - { - } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TPipeTransferResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TPipeTransferResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); } - finally + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - iprot.DecrementRecursionDepth(); + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("pipeTransfer_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public override bool Equals(object that) { - var struc = new TStruct("pipeTransfer_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + if (!(that is pipeTransferResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - if(this.__isset.success) - { - if (Success != null) + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + hashcode = (hashcode * 397) + Success.GetHashCode(); } } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); + return hashcode; } - finally + + public override string ToString() { - oprot.DecrementRecursionDepth(); + var sb = new StringBuilder("pipeTransfer_result("); + int tmp726 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp726++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } } - public override bool Equals(object that) - { - var other = that as pipeTransferResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); - } - return hashcode; - } - public override string ToString() + public partial class pipeSubscribeArgs : TBase { - var sb = new StringBuilder("pipeTransfer_result("); - bool __first = true; - if (Success != null && __isset.success) + private TPipeSubscribeReq _req; + + public TPipeSubscribeReq Req { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } } - sb.Append(")"); - return sb.ToString(); - } - } - public partial class pipeSubscribeArgs : TBase - { - private TPipeSubscribeReq _req; - - public TPipeSubscribeReq Req - { - get + public Isset __isset; + public struct Isset { - return _req; + public bool req; } - set + + public pipeSubscribeArgs() { - __isset.req = true; - this._req = value; } - } - - - public Isset __isset; - public struct Isset - { - public bool req; - } - public pipeSubscribeArgs() - { - } + public pipeSubscribeArgs DeepCopy() + { + var tmp727 = new pipeSubscribeArgs(); + if((Req != null) && __isset.req) + { + tmp727.Req = (TPipeSubscribeReq)this.Req.DeepCopy(); + } + tmp727.__isset.req = this.__isset.req; + return tmp727; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case -1: - if (field.Type == TType.Struct) - { - Req = new TPipeSubscribeReq(); - await Req.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case -1: + if (field.Type == TType.Struct) + { + Req = new TPipeSubscribeReq(); + await Req.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("pipeSubscribe_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - if (Req != null && __isset.req) + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("pipeSubscribe_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((Req != null) && __isset.req) + { + field.Name = "req"; + field.Type = TType.Struct; + field.ID = -1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Req.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = -1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Req.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is pipeSubscribeArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } - } - public override bool Equals(object that) - { - var other = that as pipeSubscribeArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.req) - hashcode = (hashcode * 397) + Req.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Req != null) && __isset.req) + { + hashcode = (hashcode * 397) + Req.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("pipeSubscribe_args("); - bool __first = true; - if (Req != null && __isset.req) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Req: "); - sb.Append(Req== null ? "" : Req.ToString()); + var sb = new StringBuilder("pipeSubscribe_args("); + int tmp728 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp728++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } - } - - public partial class pipeSubscribeResult : TBase - { - private TPipeSubscribeResp _success; - public TPipeSubscribeResp Success + public partial class pipeSubscribeResult : TBase { - get + private TPipeSubscribeResp _success; + + public TPipeSubscribeResp Success { - return _success; + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - set + + + public Isset __isset; + public struct Isset { - __isset.success = true; - this._success = value; + public bool success; } - } - - public Isset __isset; - public struct Isset - { - public bool success; - } + public pipeSubscribeResult() + { + } - public pipeSubscribeResult() - { - } + public pipeSubscribeResult DeepCopy() + { + var tmp729 = new pipeSubscribeResult(); + if((Success != null) && __isset.success) + { + tmp729.Success = (TPipeSubscribeResp)this.Success.DeepCopy(); + } + tmp729.__isset.success = this.__isset.success; + return tmp729; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TPipeSubscribeResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TPipeSubscribeResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); } - finally + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - iprot.DecrementRecursionDepth(); + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("pipeSubscribe_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public override bool Equals(object that) { - var struc = new TStruct("pipeSubscribe_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + if (!(that is pipeSubscribeResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - if(this.__isset.success) - { - if (Success != null) + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + hashcode = (hashcode * 397) + Success.GetHashCode(); } } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); + return hashcode; } - finally + + public override string ToString() { - oprot.DecrementRecursionDepth(); + var sb = new StringBuilder("pipeSubscribe_result("); + int tmp730 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp730++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } } - public override bool Equals(object that) + + public partial class getBackupConfigurationArgs : TBase { - var other = that as pipeSubscribeResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public getBackupConfigurationArgs() + { } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("pipeSubscribe_result("); - bool __first = true; - if (Success != null && __isset.success) + public getBackupConfigurationArgs DeepCopy() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var tmp731 = new getBackupConfigurationArgs(); + return tmp731; } - sb.Append(")"); - return sb.ToString(); - } - } - - - public partial class getBackupConfigurationArgs : TBase - { - - public getBackupConfigurationArgs() - { - } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } - - switch (field.ID) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { break; + } + + switch (field.ID) + { + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); } - finally + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - iprot.DecrementRecursionDepth(); + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("getBackupConfiguration_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public override bool Equals(object that) { - var struc = new TStruct("getBackupConfiguration_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); + if (!(that is getBackupConfigurationArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return true; + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + } + return hashcode; } - finally + + public override string ToString() { - oprot.DecrementRecursionDepth(); + var sb = new StringBuilder("getBackupConfiguration_args("); + sb.Append(')'); + return sb.ToString(); } } - public override bool Equals(object that) + + public partial class getBackupConfigurationResult : TBase { - var other = that as getBackupConfigurationArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return true; - } + private TSBackupConfigurationResp _success; - public override int GetHashCode() { - int hashcode = 157; - unchecked { + public TSBackupConfigurationResp Success + { + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } } - return hashcode; - } - - public override string ToString() - { - var sb = new StringBuilder("getBackupConfiguration_args("); - sb.Append(")"); - return sb.ToString(); - } - } - public partial class getBackupConfigurationResult : TBase - { - private TSBackupConfigurationResp _success; + public Isset __isset; + public struct Isset + { + public bool success; + } - public TSBackupConfigurationResp Success - { - get + public getBackupConfigurationResult() { - return _success; } - set + + public getBackupConfigurationResult DeepCopy() { - __isset.success = true; - this._success = value; + var tmp733 = new getBackupConfigurationResult(); + if((Success != null) && __isset.success) + { + tmp733.Success = (TSBackupConfigurationResp)this.Success.DeepCopy(); + } + tmp733.__isset.success = this.__isset.success; + return tmp733; } - } + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSBackupConfigurationResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } - public Isset __isset; - public struct Isset - { - public bool success; - } + await iprot.ReadFieldEndAsync(cancellationToken); + } - public getBackupConfigurationResult() - { - } + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + oprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } + var struc = new TStruct("getBackupConfiguration_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); - switch (field.ID) + if(this.__isset.success) { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSBackupConfigurationResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } } - - await iprot.ReadFieldEndAsync(cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public override bool Equals(object that) { - var struc = new TStruct("getBackupConfiguration_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + if (!(that is getBackupConfigurationResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - if(this.__isset.success) - { - if (Success != null) + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + hashcode = (hashcode * 397) + Success.GetHashCode(); } } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); + return hashcode; } - finally + + public override string ToString() { - oprot.DecrementRecursionDepth(); + var sb = new StringBuilder("getBackupConfiguration_result("); + int tmp734 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp734++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } } - public override bool Equals(object that) + + public partial class fetchAllConnectionsInfoArgs : TBase { - var other = that as getBackupConfigurationResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public fetchAllConnectionsInfoArgs() + { } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("getBackupConfiguration_result("); - bool __first = true; - if (Success != null && __isset.success) + public fetchAllConnectionsInfoArgs DeepCopy() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var tmp735 = new fetchAllConnectionsInfoArgs(); + return tmp735; } - sb.Append(")"); - return sb.ToString(); - } - } - - - public partial class fetchAllConnectionsInfoArgs : TBase - { - - public fetchAllConnectionsInfoArgs() - { - } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } - - switch (field.ID) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { break; + } + + switch (field.ID) + { + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("fetchAllConnectionsInfo_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("fetchAllConnectionsInfo_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is fetchAllConnectionsInfoArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return true; } - } - public override bool Equals(object that) - { - var other = that as fetchAllConnectionsInfoArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return true; - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + } + return hashcode; + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { + public override string ToString() + { + var sb = new StringBuilder("fetchAllConnectionsInfo_args("); + sb.Append(')'); + return sb.ToString(); } - return hashcode; } - public override string ToString() + + public partial class fetchAllConnectionsInfoResult : TBase { - var sb = new StringBuilder("fetchAllConnectionsInfo_args("); - sb.Append(")"); - return sb.ToString(); - } - } + private TSConnectionInfoResp _success; + public TSConnectionInfoResp Success + { + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } + } - public partial class fetchAllConnectionsInfoResult : TBase - { - private TSConnectionInfoResp _success; - public TSConnectionInfoResp Success - { - get + public Isset __isset; + public struct Isset { - return _success; + public bool success; } - set + + public fetchAllConnectionsInfoResult() { - __isset.success = true; - this._success = value; } - } - - - public Isset __isset; - public struct Isset - { - public bool success; - } - public fetchAllConnectionsInfoResult() - { - } + public fetchAllConnectionsInfoResult DeepCopy() + { + var tmp737 = new fetchAllConnectionsInfoResult(); + if((Success != null) && __isset.success) + { + tmp737.Success = (TSConnectionInfoResp)this.Success.DeepCopy(); + } + tmp737.__isset.success = this.__isset.success; + return tmp737; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSConnectionInfoResp(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSConnectionInfoResp(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); } - finally + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - iprot.DecrementRecursionDepth(); + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("fetchAllConnectionsInfo_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public override bool Equals(object that) { - var struc = new TStruct("fetchAllConnectionsInfo_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + if (!(that is fetchAllConnectionsInfoResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); + } - if(this.__isset.success) - { - if (Success != null) + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + hashcode = (hashcode * 397) + Success.GetHashCode(); } } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); + return hashcode; } - finally + + public override string ToString() { - oprot.DecrementRecursionDepth(); + var sb = new StringBuilder("fetchAllConnectionsInfo_result("); + int tmp738 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp738++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } } - public override bool Equals(object that) + + public partial class testConnectionEmptyRPCArgs : TBase { - var other = that as fetchAllConnectionsInfoResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public testConnectionEmptyRPCArgs() + { } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("fetchAllConnectionsInfo_result("); - bool __first = true; - if (Success != null && __isset.success) + public testConnectionEmptyRPCArgs DeepCopy() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var tmp739 = new testConnectionEmptyRPCArgs(); + return tmp739; } - sb.Append(")"); - return sb.ToString(); - } - } - - - public partial class testConnectionEmptyRPCArgs : TBase - { - - public testConnectionEmptyRPCArgs() - { - } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) - { - break; - } - - switch (field.ID) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { break; + } + + switch (field.ID) + { + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("testConnectionEmptyRPC_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("testConnectionEmptyRPC_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is testConnectionEmptyRPCArgs other)) return false; + if (ReferenceEquals(this, other)) return true; + return true; } - } - public override bool Equals(object that) - { - var other = that as testConnectionEmptyRPCArgs; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return true; - } + public override int GetHashCode() { + int hashcode = 157; + unchecked { + } + return hashcode; + } - public override int GetHashCode() { - int hashcode = 157; - unchecked { + public override string ToString() + { + var sb = new StringBuilder("testConnectionEmptyRPC_args("); + sb.Append(')'); + return sb.ToString(); } - return hashcode; } - public override string ToString() + + public partial class testConnectionEmptyRPCResult : TBase { - var sb = new StringBuilder("testConnectionEmptyRPC_args("); - sb.Append(")"); - return sb.ToString(); - } - } + private TSStatus _success; + public TSStatus Success + { + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } + } - public partial class testConnectionEmptyRPCResult : TBase - { - private TSStatus _success; - public TSStatus Success - { - get + public Isset __isset; + public struct Isset { - return _success; + public bool success; } - set + + public testConnectionEmptyRPCResult() { - __isset.success = true; - this._success = value; } - } - - - public Isset __isset; - public struct Isset - { - public bool success; - } - public testConnectionEmptyRPCResult() - { - } + public testConnectionEmptyRPCResult DeepCopy() + { + var tmp741 = new testConnectionEmptyRPCResult(); + if((Success != null) && __isset.success) + { + tmp741.Success = (TSStatus)this.Success.DeepCopy(); + } + tmp741.__isset.success = this.__isset.success; + return tmp741; + } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) - { - iprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { - TField field; - await iprot.ReadStructBeginAsync(cancellationToken); - while (true) + iprot.IncrementRecursionDepth(); + try { - field = await iprot.ReadFieldBeginAsync(cancellationToken); - if (field.Type == TType.Stop) + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) { - break; - } + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } - switch (field.ID) - { - case 0: - if (field.Type == TType.Struct) - { - Success = new TSStatus(); - await Success.ReadAsync(iprot, cancellationToken); - } - else - { + switch (field.ID) + { + case 0: + if (field.Type == TType.Struct) + { + Success = new TSStatus(); + await Success.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - } - break; - default: - await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); - break; + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); } - await iprot.ReadFieldEndAsync(cancellationToken); + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); } - - await iprot.ReadStructEndAsync(cancellationToken); - } - finally - { - iprot.DecrementRecursionDepth(); } - } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) - { - oprot.IncrementRecursionDepth(); - try + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { - var struc = new TStruct("testConnectionEmptyRPC_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - - if(this.__isset.success) + oprot.IncrementRecursionDepth(); + try { - if (Success != null) + var struc = new TStruct("testConnectionEmptyRPC_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + + if(this.__isset.success) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Success.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if (Success != null) + { + field.Name = "Success"; + field.Type = TType.Struct; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Success.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); } - await oprot.WriteFieldStopAsync(cancellationToken); - await oprot.WriteStructEndAsync(cancellationToken); } - finally + + public override bool Equals(object that) { - oprot.DecrementRecursionDepth(); + if (!(that is testConnectionEmptyRPCResult other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } - } - public override bool Equals(object that) - { - var other = that as testConnectionEmptyRPCResult; - if (other == null) return false; - if (ReferenceEquals(this, other)) return true; - return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); - } - - public override int GetHashCode() { - int hashcode = 157; - unchecked { - if(__isset.success) - hashcode = (hashcode * 397) + Success.GetHashCode(); + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Success != null) && __isset.success) + { + hashcode = (hashcode * 397) + Success.GetHashCode(); + } + } + return hashcode; } - return hashcode; - } - public override string ToString() - { - var sb = new StringBuilder("testConnectionEmptyRPC_result("); - bool __first = true; - if (Success != null && __isset.success) + public override string ToString() { - if(!__first) { sb.Append(", "); } - __first = false; - sb.Append("Success: "); - sb.Append(Success== null ? "" : Success.ToString()); + var sb = new StringBuilder("testConnectionEmptyRPC_result("); + int tmp742 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp742++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); + } + sb.Append(')'); + return sb.ToString(); } - sb.Append(")"); - return sb.ToString(); } + } } diff --git a/src/Apache.IoTDB/Rpc/Generated/ServerProperties.cs b/src/Apache.IoTDB/Rpc/Generated/ServerProperties.cs index c5d6f35..f94b7e0 100644 --- a/src/Apache.IoTDB/Rpc/Generated/ServerProperties.cs +++ b/src/Apache.IoTDB/Rpc/Generated/ServerProperties.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class ServerProperties : TBase { @@ -125,7 +130,50 @@ public ServerProperties(string version, List supportedTimeAggregationOpe this.TimestampPrecision = timestampPrecision; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public ServerProperties DeepCopy() + { + var tmp397 = new ServerProperties(); + if((Version != null)) + { + tmp397.Version = this.Version; + } + if((SupportedTimeAggregationOperations != null)) + { + tmp397.SupportedTimeAggregationOperations = this.SupportedTimeAggregationOperations.DeepCopy(); + } + if((TimestampPrecision != null)) + { + tmp397.TimestampPrecision = this.TimestampPrecision; + } + if(__isset.maxConcurrentClientNum) + { + tmp397.MaxConcurrentClientNum = this.MaxConcurrentClientNum; + } + tmp397.__isset.maxConcurrentClientNum = this.__isset.maxConcurrentClientNum; + if(__isset.thriftMaxFrameSize) + { + tmp397.ThriftMaxFrameSize = this.ThriftMaxFrameSize; + } + tmp397.__isset.thriftMaxFrameSize = this.__isset.thriftMaxFrameSize; + if(__isset.isReadOnly) + { + tmp397.IsReadOnly = this.IsReadOnly; + } + tmp397.__isset.isReadOnly = this.__isset.isReadOnly; + if((BuildInfo != null) && __isset.buildInfo) + { + tmp397.BuildInfo = this.BuildInfo; + } + tmp397.__isset.buildInfo = this.__isset.buildInfo; + if((Logo != null) && __isset.logo) + { + tmp397.Logo = this.Logo; + } + tmp397.__isset.logo = this.__isset.logo; + return tmp397; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -160,13 +208,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list327 = await iprot.ReadListBeginAsync(cancellationToken); - SupportedTimeAggregationOperations = new List(_list327.Count); - for(int _i328 = 0; _i328 < _list327.Count; ++_i328) + TList _list398 = await iprot.ReadListBeginAsync(cancellationToken); + SupportedTimeAggregationOperations = new List(_list398.Count); + for(int _i399 = 0; _i399 < _list398.Count; ++_i399) { - string _elem329; - _elem329 = await iprot.ReadStringAsync(cancellationToken); - SupportedTimeAggregationOperations.Add(_elem329); + string _elem400; + _elem400 = await iprot.ReadStringAsync(cancellationToken); + SupportedTimeAggregationOperations.Add(_elem400); } await iprot.ReadListEndAsync(cancellationToken); } @@ -266,7 +314,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -274,32 +322,41 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("ServerProperties"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "version"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Version, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "supportedTimeAggregationOperations"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Version != null)) + { + field.Name = "version"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Version, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((SupportedTimeAggregationOperations != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, SupportedTimeAggregationOperations.Count), cancellationToken); - foreach (string _iter330 in SupportedTimeAggregationOperations) + field.Name = "supportedTimeAggregationOperations"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter330, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, SupportedTimeAggregationOperations.Count), cancellationToken); + foreach (string _iter401 in SupportedTimeAggregationOperations) + { + await oprot.WriteStringAsync(_iter401, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "timestampPrecision"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(TimestampPrecision, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.maxConcurrentClientNum) + if((TimestampPrecision != null)) + { + field.Name = "timestampPrecision"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(TimestampPrecision, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.maxConcurrentClientNum) { field.Name = "maxConcurrentClientNum"; field.Type = TType.I32; @@ -308,7 +365,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI32Async(MaxConcurrentClientNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.thriftMaxFrameSize) + if(__isset.thriftMaxFrameSize) { field.Name = "thriftMaxFrameSize"; field.Type = TType.I32; @@ -317,7 +374,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI32Async(ThriftMaxFrameSize, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.isReadOnly) + if(__isset.isReadOnly) { field.Name = "isReadOnly"; field.Type = TType.Bool; @@ -326,7 +383,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteBoolAsync(IsReadOnly, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (BuildInfo != null && __isset.buildInfo) + if((BuildInfo != null) && __isset.buildInfo) { field.Name = "buildInfo"; field.Type = TType.String; @@ -335,7 +392,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteStringAsync(BuildInfo, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (Logo != null && __isset.logo) + if((Logo != null) && __isset.logo) { field.Name = "logo"; field.Type = TType.String; @@ -355,8 +412,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as ServerProperties; - if (other == null) return false; + if (!(that is ServerProperties other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Version, other.Version) && TCollections.Equals(SupportedTimeAggregationOperations, other.SupportedTimeAggregationOperations) @@ -371,19 +427,38 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + Version.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(SupportedTimeAggregationOperations); - hashcode = (hashcode * 397) + TimestampPrecision.GetHashCode(); + if((Version != null)) + { + hashcode = (hashcode * 397) + Version.GetHashCode(); + } + if((SupportedTimeAggregationOperations != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(SupportedTimeAggregationOperations); + } + if((TimestampPrecision != null)) + { + hashcode = (hashcode * 397) + TimestampPrecision.GetHashCode(); + } if(__isset.maxConcurrentClientNum) + { hashcode = (hashcode * 397) + MaxConcurrentClientNum.GetHashCode(); + } if(__isset.thriftMaxFrameSize) + { hashcode = (hashcode * 397) + ThriftMaxFrameSize.GetHashCode(); + } if(__isset.isReadOnly) + { hashcode = (hashcode * 397) + IsReadOnly.GetHashCode(); - if(__isset.buildInfo) + } + if((BuildInfo != null) && __isset.buildInfo) + { hashcode = (hashcode * 397) + BuildInfo.GetHashCode(); - if(__isset.logo) + } + if((Logo != null) && __isset.logo) + { hashcode = (hashcode * 397) + Logo.GetHashCode(); + } } return hashcode; } @@ -391,38 +466,47 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("ServerProperties("); - sb.Append(", Version: "); - sb.Append(Version); - sb.Append(", SupportedTimeAggregationOperations: "); - sb.Append(SupportedTimeAggregationOperations); - sb.Append(", TimestampPrecision: "); - sb.Append(TimestampPrecision); - if (__isset.maxConcurrentClientNum) + if((Version != null)) + { + sb.Append(", Version: "); + Version.ToString(sb); + } + if((SupportedTimeAggregationOperations != null)) + { + sb.Append(", SupportedTimeAggregationOperations: "); + SupportedTimeAggregationOperations.ToString(sb); + } + if((TimestampPrecision != null)) + { + sb.Append(", TimestampPrecision: "); + TimestampPrecision.ToString(sb); + } + if(__isset.maxConcurrentClientNum) { sb.Append(", MaxConcurrentClientNum: "); - sb.Append(MaxConcurrentClientNum); + MaxConcurrentClientNum.ToString(sb); } - if (__isset.thriftMaxFrameSize) + if(__isset.thriftMaxFrameSize) { sb.Append(", ThriftMaxFrameSize: "); - sb.Append(ThriftMaxFrameSize); + ThriftMaxFrameSize.ToString(sb); } - if (__isset.isReadOnly) + if(__isset.isReadOnly) { sb.Append(", IsReadOnly: "); - sb.Append(IsReadOnly); + IsReadOnly.ToString(sb); } - if (BuildInfo != null && __isset.buildInfo) + if((BuildInfo != null) && __isset.buildInfo) { sb.Append(", BuildInfo: "); - sb.Append(BuildInfo); + BuildInfo.ToString(sb); } - if (Logo != null && __isset.logo) + if((Logo != null) && __isset.logo) { sb.Append(", Logo: "); - sb.Append(Logo); + Logo.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TAggregationType.cs b/src/Apache.IoTDB/Rpc/Generated/TAggregationType.cs index 754a899..fb8929f 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TAggregationType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TAggregationType.cs @@ -1,10 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public enum TAggregationType { COUNT = 0, diff --git a/src/Apache.IoTDB/Rpc/Generated/TConfigNodeLocation.cs b/src/Apache.IoTDB/Rpc/Generated/TConfigNodeLocation.cs index c4dd684..30536a5 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TConfigNodeLocation.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TConfigNodeLocation.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TConfigNodeLocation : TBase { @@ -44,7 +49,22 @@ public TConfigNodeLocation(int configNodeId, TEndPoint internalEndPoint, TEndPoi this.ConsensusEndPoint = consensusEndPoint; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TConfigNodeLocation DeepCopy() + { + var tmp22 = new TConfigNodeLocation(); + tmp22.ConfigNodeId = this.ConfigNodeId; + if((InternalEndPoint != null)) + { + tmp22.InternalEndPoint = (TEndPoint)this.InternalEndPoint.DeepCopy(); + } + if((ConsensusEndPoint != null)) + { + tmp22.ConsensusEndPoint = (TEndPoint)this.ConsensusEndPoint.DeepCopy(); + } + return tmp22; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -127,7 +147,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -141,18 +161,24 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(ConfigNodeId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "internalEndPoint"; - field.Type = TType.Struct; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await InternalEndPoint.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "consensusEndPoint"; - field.Type = TType.Struct; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await ConsensusEndPoint.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((InternalEndPoint != null)) + { + field.Name = "internalEndPoint"; + field.Type = TType.Struct; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await InternalEndPoint.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ConsensusEndPoint != null)) + { + field.Name = "consensusEndPoint"; + field.Type = TType.Struct; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await ConsensusEndPoint.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -164,8 +190,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TConfigNodeLocation; - if (other == null) return false; + if (!(that is TConfigNodeLocation other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(ConfigNodeId, other.ConfigNodeId) && System.Object.Equals(InternalEndPoint, other.InternalEndPoint) @@ -176,8 +201,14 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + ConfigNodeId.GetHashCode(); - hashcode = (hashcode * 397) + InternalEndPoint.GetHashCode(); - hashcode = (hashcode * 397) + ConsensusEndPoint.GetHashCode(); + if((InternalEndPoint != null)) + { + hashcode = (hashcode * 397) + InternalEndPoint.GetHashCode(); + } + if((ConsensusEndPoint != null)) + { + hashcode = (hashcode * 397) + ConsensusEndPoint.GetHashCode(); + } } return hashcode; } @@ -186,12 +217,18 @@ public override string ToString() { var sb = new StringBuilder("TConfigNodeLocation("); sb.Append(", ConfigNodeId: "); - sb.Append(ConfigNodeId); - sb.Append(", InternalEndPoint: "); - sb.Append(InternalEndPoint== null ? "" : InternalEndPoint.ToString()); - sb.Append(", ConsensusEndPoint: "); - sb.Append(ConsensusEndPoint== null ? "" : ConsensusEndPoint.ToString()); - sb.Append(")"); + ConfigNodeId.ToString(sb); + if((InternalEndPoint != null)) + { + sb.Append(", InternalEndPoint: "); + InternalEndPoint.ToString(sb); + } + if((ConsensusEndPoint != null)) + { + sb.Append(", ConsensusEndPoint: "); + ConsensusEndPoint.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupId.cs b/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupId.cs index 921da49..867226b 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupId.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupId.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,13 +25,16 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TConsensusGroupId : TBase { /// /// - /// + /// /// public TConsensusGroupType Type { get; set; } @@ -45,7 +50,15 @@ public TConsensusGroupId(TConsensusGroupType type, int id) : this() this.Id = id; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TConsensusGroupId DeepCopy() + { + var tmp8 = new TConsensusGroupId(); + tmp8.Type = this.Type; + tmp8.Id = this.Id; + return tmp8; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -110,7 +123,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -141,8 +154,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TConsensusGroupId; - if (other == null) return false; + if (!(that is TConsensusGroupId other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Type, other.Type) && System.Object.Equals(Id, other.Id); @@ -161,10 +173,10 @@ public override string ToString() { var sb = new StringBuilder("TConsensusGroupId("); sb.Append(", Type: "); - sb.Append(Type); + Type.ToString(sb); sb.Append(", Id: "); - sb.Append(Id); - sb.Append(")"); + Id.ToString(sb); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupType.cs b/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupType.cs index 19e5bc2..c4f3c78 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupType.cs @@ -1,10 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public enum TConsensusGroupType { ConfigRegion = 0, diff --git a/src/Apache.IoTDB/Rpc/Generated/TCreateTimeseriesUsingSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TCreateTimeseriesUsingSchemaTemplateReq.cs index c817b2e..c2627e2 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TCreateTimeseriesUsingSchemaTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TCreateTimeseriesUsingSchemaTemplateReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TCreateTimeseriesUsingSchemaTemplateReq : TBase { @@ -41,7 +46,18 @@ public TCreateTimeseriesUsingSchemaTemplateReq(long sessionId, List devi this.DevicePathList = devicePathList; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TCreateTimeseriesUsingSchemaTemplateReq DeepCopy() + { + var tmp439 = new TCreateTimeseriesUsingSchemaTemplateReq(); + tmp439.SessionId = this.SessionId; + if((DevicePathList != null)) + { + tmp439.DevicePathList = this.DevicePathList.DeepCopy(); + } + return tmp439; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -75,13 +91,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list351 = await iprot.ReadListBeginAsync(cancellationToken); - DevicePathList = new List(_list351.Count); - for(int _i352 = 0; _i352 < _list351.Count; ++_i352) + TList _list440 = await iprot.ReadListBeginAsync(cancellationToken); + DevicePathList = new List(_list440.Count); + for(int _i441 = 0; _i441 < _list440.Count; ++_i441) { - string _elem353; - _elem353 = await iprot.ReadStringAsync(cancellationToken); - DevicePathList.Add(_elem353); + string _elem442; + _elem442 = await iprot.ReadStringAsync(cancellationToken); + DevicePathList.Add(_elem442); } await iprot.ReadListEndAsync(cancellationToken); } @@ -116,7 +132,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -130,19 +146,22 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "devicePathList"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((DevicePathList != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, DevicePathList.Count), cancellationToken); - foreach (string _iter354 in DevicePathList) + field.Name = "devicePathList"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter354, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, DevicePathList.Count), cancellationToken); + foreach (string _iter443 in DevicePathList) + { + await oprot.WriteStringAsync(_iter443, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -154,8 +173,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TCreateTimeseriesUsingSchemaTemplateReq; - if (other == null) return false; + if (!(that is TCreateTimeseriesUsingSchemaTemplateReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && TCollections.Equals(DevicePathList, other.DevicePathList); @@ -165,7 +183,10 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(DevicePathList); + if((DevicePathList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(DevicePathList); + } } return hashcode; } @@ -174,10 +195,13 @@ public override string ToString() { var sb = new StringBuilder("TCreateTimeseriesUsingSchemaTemplateReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", DevicePathList: "); - sb.Append(DevicePathList); - sb.Append(")"); + SessionId.ToString(sb); + if((DevicePathList != null)) + { + sb.Append(", DevicePathList: "); + DevicePathList.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TDataNodeConfiguration.cs b/src/Apache.IoTDB/Rpc/Generated/TDataNodeConfiguration.cs index 12d11d1..1fca320 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TDataNodeConfiguration.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TDataNodeConfiguration.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TDataNodeConfiguration : TBase { @@ -41,7 +46,21 @@ public TDataNodeConfiguration(TDataNodeLocation location, TNodeResource resource this.Resource = resource; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TDataNodeConfiguration DeepCopy() + { + var tmp26 = new TDataNodeConfiguration(); + if((Location != null)) + { + tmp26.Location = (TDataNodeLocation)this.Location.DeepCopy(); + } + if((Resource != null)) + { + tmp26.Resource = (TNodeResource)this.Resource.DeepCopy(); + } + return tmp26; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -108,7 +127,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -116,18 +135,24 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TDataNodeConfiguration"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "location"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Location.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "resource"; - field.Type = TType.Struct; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Resource.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((Location != null)) + { + field.Name = "location"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Location.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Resource != null)) + { + field.Name = "resource"; + field.Type = TType.Struct; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Resource.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -139,8 +164,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TDataNodeConfiguration; - if (other == null) return false; + if (!(that is TDataNodeConfiguration other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Location, other.Location) && System.Object.Equals(Resource, other.Resource); @@ -149,8 +173,14 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + Location.GetHashCode(); - hashcode = (hashcode * 397) + Resource.GetHashCode(); + if((Location != null)) + { + hashcode = (hashcode * 397) + Location.GetHashCode(); + } + if((Resource != null)) + { + hashcode = (hashcode * 397) + Resource.GetHashCode(); + } } return hashcode; } @@ -158,11 +188,17 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TDataNodeConfiguration("); - sb.Append(", Location: "); - sb.Append(Location== null ? "" : Location.ToString()); - sb.Append(", Resource: "); - sb.Append(Resource== null ? "" : Resource.ToString()); - sb.Append(")"); + if((Location != null)) + { + sb.Append(", Location: "); + Location.ToString(sb); + } + if((Resource != null)) + { + sb.Append(", Resource: "); + Resource.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TDataNodeLocation.cs b/src/Apache.IoTDB/Rpc/Generated/TDataNodeLocation.cs index 00e6e8f..6d81c2c 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TDataNodeLocation.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TDataNodeLocation.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TDataNodeLocation : TBase { @@ -53,7 +58,34 @@ public TDataNodeLocation(int dataNodeId, TEndPoint clientRpcEndPoint, TEndPoint this.SchemaRegionConsensusEndPoint = schemaRegionConsensusEndPoint; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TDataNodeLocation DeepCopy() + { + var tmp24 = new TDataNodeLocation(); + tmp24.DataNodeId = this.DataNodeId; + if((ClientRpcEndPoint != null)) + { + tmp24.ClientRpcEndPoint = (TEndPoint)this.ClientRpcEndPoint.DeepCopy(); + } + if((InternalEndPoint != null)) + { + tmp24.InternalEndPoint = (TEndPoint)this.InternalEndPoint.DeepCopy(); + } + if((MPPDataExchangeEndPoint != null)) + { + tmp24.MPPDataExchangeEndPoint = (TEndPoint)this.MPPDataExchangeEndPoint.DeepCopy(); + } + if((DataRegionConsensusEndPoint != null)) + { + tmp24.DataRegionConsensusEndPoint = (TEndPoint)this.DataRegionConsensusEndPoint.DeepCopy(); + } + if((SchemaRegionConsensusEndPoint != null)) + { + tmp24.SchemaRegionConsensusEndPoint = (TEndPoint)this.SchemaRegionConsensusEndPoint.DeepCopy(); + } + return tmp24; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -187,7 +219,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -201,36 +233,51 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(DataNodeId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "clientRpcEndPoint"; - field.Type = TType.Struct; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await ClientRpcEndPoint.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "internalEndPoint"; - field.Type = TType.Struct; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await InternalEndPoint.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "mPPDataExchangeEndPoint"; - field.Type = TType.Struct; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await MPPDataExchangeEndPoint.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "dataRegionConsensusEndPoint"; - field.Type = TType.Struct; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await DataRegionConsensusEndPoint.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "schemaRegionConsensusEndPoint"; - field.Type = TType.Struct; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await SchemaRegionConsensusEndPoint.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((ClientRpcEndPoint != null)) + { + field.Name = "clientRpcEndPoint"; + field.Type = TType.Struct; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await ClientRpcEndPoint.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((InternalEndPoint != null)) + { + field.Name = "internalEndPoint"; + field.Type = TType.Struct; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await InternalEndPoint.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((MPPDataExchangeEndPoint != null)) + { + field.Name = "mPPDataExchangeEndPoint"; + field.Type = TType.Struct; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await MPPDataExchangeEndPoint.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((DataRegionConsensusEndPoint != null)) + { + field.Name = "dataRegionConsensusEndPoint"; + field.Type = TType.Struct; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await DataRegionConsensusEndPoint.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((SchemaRegionConsensusEndPoint != null)) + { + field.Name = "schemaRegionConsensusEndPoint"; + field.Type = TType.Struct; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await SchemaRegionConsensusEndPoint.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -242,8 +289,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TDataNodeLocation; - if (other == null) return false; + if (!(that is TDataNodeLocation other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(DataNodeId, other.DataNodeId) && System.Object.Equals(ClientRpcEndPoint, other.ClientRpcEndPoint) @@ -257,11 +303,26 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + DataNodeId.GetHashCode(); - hashcode = (hashcode * 397) + ClientRpcEndPoint.GetHashCode(); - hashcode = (hashcode * 397) + InternalEndPoint.GetHashCode(); - hashcode = (hashcode * 397) + MPPDataExchangeEndPoint.GetHashCode(); - hashcode = (hashcode * 397) + DataRegionConsensusEndPoint.GetHashCode(); - hashcode = (hashcode * 397) + SchemaRegionConsensusEndPoint.GetHashCode(); + if((ClientRpcEndPoint != null)) + { + hashcode = (hashcode * 397) + ClientRpcEndPoint.GetHashCode(); + } + if((InternalEndPoint != null)) + { + hashcode = (hashcode * 397) + InternalEndPoint.GetHashCode(); + } + if((MPPDataExchangeEndPoint != null)) + { + hashcode = (hashcode * 397) + MPPDataExchangeEndPoint.GetHashCode(); + } + if((DataRegionConsensusEndPoint != null)) + { + hashcode = (hashcode * 397) + DataRegionConsensusEndPoint.GetHashCode(); + } + if((SchemaRegionConsensusEndPoint != null)) + { + hashcode = (hashcode * 397) + SchemaRegionConsensusEndPoint.GetHashCode(); + } } return hashcode; } @@ -270,18 +331,33 @@ public override string ToString() { var sb = new StringBuilder("TDataNodeLocation("); sb.Append(", DataNodeId: "); - sb.Append(DataNodeId); - sb.Append(", ClientRpcEndPoint: "); - sb.Append(ClientRpcEndPoint== null ? "" : ClientRpcEndPoint.ToString()); - sb.Append(", InternalEndPoint: "); - sb.Append(InternalEndPoint== null ? "" : InternalEndPoint.ToString()); - sb.Append(", MPPDataExchangeEndPoint: "); - sb.Append(MPPDataExchangeEndPoint== null ? "" : MPPDataExchangeEndPoint.ToString()); - sb.Append(", DataRegionConsensusEndPoint: "); - sb.Append(DataRegionConsensusEndPoint== null ? "" : DataRegionConsensusEndPoint.ToString()); - sb.Append(", SchemaRegionConsensusEndPoint: "); - sb.Append(SchemaRegionConsensusEndPoint== null ? "" : SchemaRegionConsensusEndPoint.ToString()); - sb.Append(")"); + DataNodeId.ToString(sb); + if((ClientRpcEndPoint != null)) + { + sb.Append(", ClientRpcEndPoint: "); + ClientRpcEndPoint.ToString(sb); + } + if((InternalEndPoint != null)) + { + sb.Append(", InternalEndPoint: "); + InternalEndPoint.ToString(sb); + } + if((MPPDataExchangeEndPoint != null)) + { + sb.Append(", MPPDataExchangeEndPoint: "); + MPPDataExchangeEndPoint.ToString(sb); + } + if((DataRegionConsensusEndPoint != null)) + { + sb.Append(", DataRegionConsensusEndPoint: "); + DataRegionConsensusEndPoint.ToString(sb); + } + if((SchemaRegionConsensusEndPoint != null)) + { + sb.Append(", SchemaRegionConsensusEndPoint: "); + SchemaRegionConsensusEndPoint.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TEndPoint.cs b/src/Apache.IoTDB/Rpc/Generated/TEndPoint.cs index 1b9641f..23dbeb0 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TEndPoint.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TEndPoint.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TEndPoint : TBase { @@ -41,7 +46,18 @@ public TEndPoint(string ip, int port) : this() this.Port = port; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TEndPoint DeepCopy() + { + var tmp0 = new TEndPoint(); + if((Ip != null)) + { + tmp0.Ip = this.Ip; + } + tmp0.Port = this.Port; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -106,7 +122,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -114,12 +130,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TEndPoint"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "ip"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Ip, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((Ip != null)) + { + field.Name = "ip"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Ip, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } field.Name = "port"; field.Type = TType.I32; field.ID = 2; @@ -137,8 +156,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TEndPoint; - if (other == null) return false; + if (!(that is TEndPoint other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Ip, other.Ip) && System.Object.Equals(Port, other.Port); @@ -147,7 +165,10 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + Ip.GetHashCode(); + if((Ip != null)) + { + hashcode = (hashcode * 397) + Ip.GetHashCode(); + } hashcode = (hashcode * 397) + Port.GetHashCode(); } return hashcode; @@ -156,11 +177,14 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TEndPoint("); - sb.Append(", Ip: "); - sb.Append(Ip); + if((Ip != null)) + { + sb.Append(", Ip: "); + Ip.ToString(sb); + } sb.Append(", Port: "); - sb.Append(Port); - sb.Append(")"); + Port.ToString(sb); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TFile.cs b/src/Apache.IoTDB/Rpc/Generated/TFile.cs index d92a357..ac512da 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TFile.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TFile.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TFile : TBase { @@ -41,7 +46,21 @@ public TFile(string fileName, byte[] file) : this() this.File = file; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TFile DeepCopy() + { + var tmp61 = new TFile(); + if((FileName != null)) + { + tmp61.FileName = this.FileName; + } + if((File != null)) + { + tmp61.File = this.File.ToArray(); + } + return tmp61; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -106,7 +125,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -114,18 +133,24 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TFile"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "fileName"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(FileName, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "file"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteBinaryAsync(File, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((FileName != null)) + { + field.Name = "fileName"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(FileName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((File != null)) + { + field.Name = "file"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBinaryAsync(File, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -137,8 +162,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TFile; - if (other == null) return false; + if (!(that is TFile other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(FileName, other.FileName) && TCollections.Equals(File, other.File); @@ -147,8 +171,14 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + FileName.GetHashCode(); - hashcode = (hashcode * 397) + File.GetHashCode(); + if((FileName != null)) + { + hashcode = (hashcode * 397) + FileName.GetHashCode(); + } + if((File != null)) + { + hashcode = (hashcode * 397) + File.GetHashCode(); + } } return hashcode; } @@ -156,11 +186,17 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TFile("); - sb.Append(", FileName: "); - sb.Append(FileName); - sb.Append(", File: "); - sb.Append(File); - sb.Append(")"); + if((FileName != null)) + { + sb.Append(", FileName: "); + FileName.ToString(sb); + } + if((File != null)) + { + sb.Append(", File: "); + File.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs b/src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs index 29188fc..8d90050 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TFilesResp : TBase { @@ -41,7 +46,21 @@ public TFilesResp(TSStatus status, List files) : this() this.Files = files; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TFilesResp DeepCopy() + { + var tmp63 = new TFilesResp(); + if((Status != null)) + { + tmp63.Status = (TSStatus)this.Status.DeepCopy(); + } + if((Files != null)) + { + tmp63.Files = this.Files.DeepCopy(); + } + return tmp63; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -76,14 +95,14 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list29 = await iprot.ReadListBeginAsync(cancellationToken); - Files = new List(_list29.Count); - for(int _i30 = 0; _i30 < _list29.Count; ++_i30) + TList _list64 = await iprot.ReadListBeginAsync(cancellationToken); + Files = new List(_list64.Count); + for(int _i65 = 0; _i65 < _list64.Count; ++_i65) { - TFile _elem31; - _elem31 = new TFile(); - await _elem31.ReadAsync(iprot, cancellationToken); - Files.Add(_elem31); + TFile _elem66; + _elem66 = new TFile(); + await _elem66.ReadAsync(iprot, cancellationToken); + Files.Add(_elem66); } await iprot.ReadListEndAsync(cancellationToken); } @@ -118,7 +137,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -126,25 +145,31 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TFilesResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "files"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Status != null)) + { + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Files != null)) { - await oprot.WriteListBeginAsync(new TList(TType.Struct, Files.Count), cancellationToken); - foreach (TFile _iter32 in Files) + field.Name = "files"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await _iter32.WriteAsync(oprot, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.Struct, Files.Count), cancellationToken); + foreach (TFile _iter67 in Files) + { + await _iter67.WriteAsync(oprot, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -156,8 +181,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TFilesResp; - if (other == null) return false; + if (!(that is TFilesResp other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && TCollections.Equals(Files, other.Files); @@ -166,8 +190,14 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + Status.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Files); + if((Status != null)) + { + hashcode = (hashcode * 397) + Status.GetHashCode(); + } + if((Files != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Files); + } } return hashcode; } @@ -175,11 +205,17 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TFilesResp("); - sb.Append(", Status: "); - sb.Append(Status== null ? "" : Status.ToString()); - sb.Append(", Files: "); - sb.Append(Files); - sb.Append(")"); + if((Status != null)) + { + sb.Append(", Status: "); + Status.ToString(sb); + } + if((Files != null)) + { + sb.Append(", Files: "); + Files.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs b/src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs index b1e23e4..90e7024 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TFlushReq : TBase { @@ -67,7 +72,23 @@ public TFlushReq() { } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TFlushReq DeepCopy() + { + var tmp28 = new TFlushReq(); + if((IsSeq != null) && __isset.isSeq) + { + tmp28.IsSeq = this.IsSeq; + } + tmp28.__isset.isSeq = this.__isset.isSeq; + if((StorageGroups != null) && __isset.storageGroups) + { + tmp28.StorageGroups = this.StorageGroups.DeepCopy(); + } + tmp28.__isset.storageGroups = this.__isset.storageGroups; + return tmp28; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -98,13 +119,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list8 = await iprot.ReadListBeginAsync(cancellationToken); - StorageGroups = new List(_list8.Count); - for(int _i9 = 0; _i9 < _list8.Count; ++_i9) + TList _list29 = await iprot.ReadListBeginAsync(cancellationToken); + StorageGroups = new List(_list29.Count); + for(int _i30 = 0; _i30 < _list29.Count; ++_i30) { - string _elem10; - _elem10 = await iprot.ReadStringAsync(cancellationToken); - StorageGroups.Add(_elem10); + string _elem31; + _elem31 = await iprot.ReadStringAsync(cancellationToken); + StorageGroups.Add(_elem31); } await iprot.ReadListEndAsync(cancellationToken); } @@ -130,7 +151,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -138,7 +159,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TFlushReq"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if (IsSeq != null && __isset.isSeq) + if((IsSeq != null) && __isset.isSeq) { field.Name = "isSeq"; field.Type = TType.String; @@ -147,7 +168,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteStringAsync(IsSeq, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (StorageGroups != null && __isset.storageGroups) + if((StorageGroups != null) && __isset.storageGroups) { field.Name = "storageGroups"; field.Type = TType.List; @@ -155,9 +176,9 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, StorageGroups.Count), cancellationToken); - foreach (string _iter11 in StorageGroups) + foreach (string _iter32 in StorageGroups) { - await oprot.WriteStringAsync(_iter11, cancellationToken); + await oprot.WriteStringAsync(_iter32, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -174,8 +195,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TFlushReq; - if (other == null) return false; + if (!(that is TFlushReq other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.isSeq == other.__isset.isSeq) && ((!__isset.isSeq) || (System.Object.Equals(IsSeq, other.IsSeq)))) && ((__isset.storageGroups == other.__isset.storageGroups) && ((!__isset.storageGroups) || (TCollections.Equals(StorageGroups, other.StorageGroups)))); @@ -184,10 +204,14 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if(__isset.isSeq) + if((IsSeq != null) && __isset.isSeq) + { hashcode = (hashcode * 397) + IsSeq.GetHashCode(); - if(__isset.storageGroups) + } + if((StorageGroups != null) && __isset.storageGroups) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(StorageGroups); + } } return hashcode; } @@ -195,22 +219,20 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TFlushReq("); - bool __first = true; - if (IsSeq != null && __isset.isSeq) + int tmp33 = 0; + if((IsSeq != null) && __isset.isSeq) { - if(!__first) { sb.Append(", "); } - __first = false; + if(0 < tmp33++) { sb.Append(", "); } sb.Append("IsSeq: "); - sb.Append(IsSeq); + IsSeq.ToString(sb); } - if (StorageGroups != null && __isset.storageGroups) + if((StorageGroups != null) && __isset.storageGroups) { - if(!__first) { sb.Append(", "); } - __first = false; + if(0 < tmp33++) { sb.Append(", "); } sb.Append("StorageGroups: "); - sb.Append(StorageGroups); + StorageGroups.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TLicense.cs b/src/Apache.IoTDB/Rpc/Generated/TLicense.cs index 38e9d80..557765d 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TLicense.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TLicense.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TLicense : TBase { @@ -59,7 +64,21 @@ public TLicense(long licenseIssueTimestamp, long expireTimestamp, short dataNode this.MlNodeNumLimit = mlNodeNumLimit; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TLicense DeepCopy() + { + var tmp88 = new TLicense(); + tmp88.LicenseIssueTimestamp = this.LicenseIssueTimestamp; + tmp88.ExpireTimestamp = this.ExpireTimestamp; + tmp88.DataNodeNumLimit = this.DataNodeNumLimit; + tmp88.CpuCoreNumLimit = this.CpuCoreNumLimit; + tmp88.DeviceNumLimit = this.DeviceNumLimit; + tmp88.SensorNumLimit = this.SensorNumLimit; + tmp88.DisconnectionFromActiveNodeTimeLimit = this.DisconnectionFromActiveNodeTimeLimit; + tmp88.MlNodeNumLimit = this.MlNodeNumLimit; + return tmp88; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -220,7 +239,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -287,8 +306,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TLicense; - if (other == null) return false; + if (!(that is TLicense other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(LicenseIssueTimestamp, other.LicenseIssueTimestamp) && System.Object.Equals(ExpireTimestamp, other.ExpireTimestamp) @@ -319,22 +337,22 @@ public override string ToString() { var sb = new StringBuilder("TLicense("); sb.Append(", LicenseIssueTimestamp: "); - sb.Append(LicenseIssueTimestamp); + LicenseIssueTimestamp.ToString(sb); sb.Append(", ExpireTimestamp: "); - sb.Append(ExpireTimestamp); + ExpireTimestamp.ToString(sb); sb.Append(", DataNodeNumLimit: "); - sb.Append(DataNodeNumLimit); + DataNodeNumLimit.ToString(sb); sb.Append(", CpuCoreNumLimit: "); - sb.Append(CpuCoreNumLimit); + CpuCoreNumLimit.ToString(sb); sb.Append(", DeviceNumLimit: "); - sb.Append(DeviceNumLimit); + DeviceNumLimit.ToString(sb); sb.Append(", SensorNumLimit: "); - sb.Append(SensorNumLimit); + SensorNumLimit.ToString(sb); sb.Append(", DisconnectionFromActiveNodeTimeLimit: "); - sb.Append(DisconnectionFromActiveNodeTimeLimit); + DisconnectionFromActiveNodeTimeLimit.ToString(sb); sb.Append(", MlNodeNumLimit: "); - sb.Append(MlNodeNumLimit); - sb.Append(")"); + MlNodeNumLimit.ToString(sb); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TNodeLocations.cs b/src/Apache.IoTDB/Rpc/Generated/TNodeLocations.cs index 339e7fa..dd458d4 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TNodeLocations.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TNodeLocations.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TNodeLocations : TBase { @@ -67,7 +72,23 @@ public TNodeLocations() { } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TNodeLocations DeepCopy() + { + var tmp102 = new TNodeLocations(); + if((ConfigNodeLocations != null) && __isset.configNodeLocations) + { + tmp102.ConfigNodeLocations = this.ConfigNodeLocations.DeepCopy(); + } + tmp102.__isset.configNodeLocations = this.__isset.configNodeLocations; + if((DataNodeLocations != null) && __isset.dataNodeLocations) + { + tmp102.DataNodeLocations = this.DataNodeLocations.DeepCopy(); + } + tmp102.__isset.dataNodeLocations = this.__isset.dataNodeLocations; + return tmp102; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -88,14 +109,14 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list46 = await iprot.ReadListBeginAsync(cancellationToken); - ConfigNodeLocations = new List(_list46.Count); - for(int _i47 = 0; _i47 < _list46.Count; ++_i47) + TList _list103 = await iprot.ReadListBeginAsync(cancellationToken); + ConfigNodeLocations = new List(_list103.Count); + for(int _i104 = 0; _i104 < _list103.Count; ++_i104) { - TConfigNodeLocation _elem48; - _elem48 = new TConfigNodeLocation(); - await _elem48.ReadAsync(iprot, cancellationToken); - ConfigNodeLocations.Add(_elem48); + TConfigNodeLocation _elem105; + _elem105 = new TConfigNodeLocation(); + await _elem105.ReadAsync(iprot, cancellationToken); + ConfigNodeLocations.Add(_elem105); } await iprot.ReadListEndAsync(cancellationToken); } @@ -109,14 +130,14 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list49 = await iprot.ReadListBeginAsync(cancellationToken); - DataNodeLocations = new List(_list49.Count); - for(int _i50 = 0; _i50 < _list49.Count; ++_i50) + TList _list106 = await iprot.ReadListBeginAsync(cancellationToken); + DataNodeLocations = new List(_list106.Count); + for(int _i107 = 0; _i107 < _list106.Count; ++_i107) { - TDataNodeLocation _elem51; - _elem51 = new TDataNodeLocation(); - await _elem51.ReadAsync(iprot, cancellationToken); - DataNodeLocations.Add(_elem51); + TDataNodeLocation _elem108; + _elem108 = new TDataNodeLocation(); + await _elem108.ReadAsync(iprot, cancellationToken); + DataNodeLocations.Add(_elem108); } await iprot.ReadListEndAsync(cancellationToken); } @@ -142,7 +163,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -150,7 +171,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TNodeLocations"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if (ConfigNodeLocations != null && __isset.configNodeLocations) + if((ConfigNodeLocations != null) && __isset.configNodeLocations) { field.Name = "configNodeLocations"; field.Type = TType.List; @@ -158,15 +179,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, ConfigNodeLocations.Count), cancellationToken); - foreach (TConfigNodeLocation _iter52 in ConfigNodeLocations) + foreach (TConfigNodeLocation _iter109 in ConfigNodeLocations) { - await _iter52.WriteAsync(oprot, cancellationToken); + await _iter109.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if (DataNodeLocations != null && __isset.dataNodeLocations) + if((DataNodeLocations != null) && __isset.dataNodeLocations) { field.Name = "dataNodeLocations"; field.Type = TType.List; @@ -174,9 +195,9 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, DataNodeLocations.Count), cancellationToken); - foreach (TDataNodeLocation _iter53 in DataNodeLocations) + foreach (TDataNodeLocation _iter110 in DataNodeLocations) { - await _iter53.WriteAsync(oprot, cancellationToken); + await _iter110.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -193,8 +214,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TNodeLocations; - if (other == null) return false; + if (!(that is TNodeLocations other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.configNodeLocations == other.__isset.configNodeLocations) && ((!__isset.configNodeLocations) || (TCollections.Equals(ConfigNodeLocations, other.ConfigNodeLocations)))) && ((__isset.dataNodeLocations == other.__isset.dataNodeLocations) && ((!__isset.dataNodeLocations) || (TCollections.Equals(DataNodeLocations, other.DataNodeLocations)))); @@ -203,10 +223,14 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if(__isset.configNodeLocations) + if((ConfigNodeLocations != null) && __isset.configNodeLocations) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(ConfigNodeLocations); - if(__isset.dataNodeLocations) + } + if((DataNodeLocations != null) && __isset.dataNodeLocations) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(DataNodeLocations); + } } return hashcode; } @@ -214,22 +238,20 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TNodeLocations("); - bool __first = true; - if (ConfigNodeLocations != null && __isset.configNodeLocations) + int tmp111 = 0; + if((ConfigNodeLocations != null) && __isset.configNodeLocations) { - if(!__first) { sb.Append(", "); } - __first = false; + if(0 < tmp111++) { sb.Append(", "); } sb.Append("ConfigNodeLocations: "); - sb.Append(ConfigNodeLocations); + ConfigNodeLocations.ToString(sb); } - if (DataNodeLocations != null && __isset.dataNodeLocations) + if((DataNodeLocations != null) && __isset.dataNodeLocations) { - if(!__first) { sb.Append(", "); } - __first = false; + if(0 < tmp111++) { sb.Append(", "); } sb.Append("DataNodeLocations: "); - sb.Append(DataNodeLocations); + DataNodeLocations.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TNodeResource.cs b/src/Apache.IoTDB/Rpc/Generated/TNodeResource.cs index 76f8295..fc2083c 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TNodeResource.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TNodeResource.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TNodeResource : TBase { @@ -41,7 +46,15 @@ public TNodeResource(int cpuCoreNum, long maxMemory) : this() this.MaxMemory = maxMemory; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TNodeResource DeepCopy() + { + var tmp20 = new TNodeResource(); + tmp20.CpuCoreNum = this.CpuCoreNum; + tmp20.MaxMemory = this.MaxMemory; + return tmp20; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -106,7 +119,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -137,8 +150,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TNodeResource; - if (other == null) return false; + if (!(that is TNodeResource other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(CpuCoreNum, other.CpuCoreNum) && System.Object.Equals(MaxMemory, other.MaxMemory); @@ -157,10 +169,10 @@ public override string ToString() { var sb = new StringBuilder("TNodeResource("); sb.Append(", CpuCoreNum: "); - sb.Append(CpuCoreNum); + CpuCoreNum.ToString(sb); sb.Append(", MaxMemory: "); - sb.Append(MaxMemory); - sb.Append(")"); + MaxMemory.ToString(sb); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeReq.cs b/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeReq.cs index aec3ce7..5322c69 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TPipeSubscribeReq : TBase { @@ -62,7 +67,20 @@ public TPipeSubscribeReq(sbyte version, short type) : this() this.Type = type; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TPipeSubscribeReq DeepCopy() + { + var tmp453 = new TPipeSubscribeReq(); + tmp453.Version = this.Version; + tmp453.Type = this.Type; + if((Body != null) && __isset.body) + { + tmp453.Body = this.Body.ToArray(); + } + tmp453.__isset.body = this.__isset.body; + return tmp453; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -137,7 +155,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -157,7 +175,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI16Async(Type, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if (Body != null && __isset.body) + if((Body != null) && __isset.body) { field.Name = "body"; field.Type = TType.String; @@ -177,8 +195,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TPipeSubscribeReq; - if (other == null) return false; + if (!(that is TPipeSubscribeReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Version, other.Version) && System.Object.Equals(Type, other.Type) @@ -190,8 +207,10 @@ public override int GetHashCode() { unchecked { hashcode = (hashcode * 397) + Version.GetHashCode(); hashcode = (hashcode * 397) + Type.GetHashCode(); - if(__isset.body) + if((Body != null) && __isset.body) + { hashcode = (hashcode * 397) + Body.GetHashCode(); + } } return hashcode; } @@ -200,15 +219,15 @@ public override string ToString() { var sb = new StringBuilder("TPipeSubscribeReq("); sb.Append(", Version: "); - sb.Append(Version); + Version.ToString(sb); sb.Append(", Type: "); - sb.Append(Type); - if (Body != null && __isset.body) + Type.ToString(sb); + if((Body != null) && __isset.body) { sb.Append(", Body: "); - sb.Append(Body); + Body.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeResp.cs b/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeResp.cs index 7e91270..ce31469 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TPipeSubscribeResp : TBase { @@ -65,7 +70,24 @@ public TPipeSubscribeResp(TSStatus status, sbyte version, short type) : this() this.Type = type; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TPipeSubscribeResp DeepCopy() + { + var tmp455 = new TPipeSubscribeResp(); + if((Status != null)) + { + tmp455.Status = (TSStatus)this.Status.DeepCopy(); + } + tmp455.Version = this.Version; + tmp455.Type = this.Type; + if((Body != null) && __isset.body) + { + tmp455.Body = this.Body.DeepCopy(); + } + tmp455.__isset.body = this.__isset.body; + return tmp455; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -123,13 +145,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list355 = await iprot.ReadListBeginAsync(cancellationToken); - Body = new List(_list355.Count); - for(int _i356 = 0; _i356 < _list355.Count; ++_i356) + TList _list456 = await iprot.ReadListBeginAsync(cancellationToken); + Body = new List(_list456.Count); + for(int _i457 = 0; _i457 < _list456.Count; ++_i457) { - byte[] _elem357; - _elem357 = await iprot.ReadBinaryAsync(cancellationToken); - Body.Add(_elem357); + byte[] _elem458; + _elem458 = await iprot.ReadBinaryAsync(cancellationToken); + Body.Add(_elem458); } await iprot.ReadListEndAsync(cancellationToken); } @@ -167,7 +189,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -175,12 +197,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TPipeSubscribeResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((Status != null)) + { + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } field.Name = "version"; field.Type = TType.Byte; field.ID = 2; @@ -193,7 +218,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI16Async(Type, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if (Body != null && __isset.body) + if((Body != null) && __isset.body) { field.Name = "body"; field.Type = TType.List; @@ -201,9 +226,9 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Body.Count), cancellationToken); - foreach (byte[] _iter358 in Body) + foreach (byte[] _iter459 in Body) { - await oprot.WriteBinaryAsync(_iter358, cancellationToken); + await oprot.WriteBinaryAsync(_iter459, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -220,8 +245,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TPipeSubscribeResp; - if (other == null) return false; + if (!(that is TPipeSubscribeResp other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && System.Object.Equals(Version, other.Version) @@ -232,11 +256,16 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + Status.GetHashCode(); + if((Status != null)) + { + hashcode = (hashcode * 397) + Status.GetHashCode(); + } hashcode = (hashcode * 397) + Version.GetHashCode(); hashcode = (hashcode * 397) + Type.GetHashCode(); - if(__isset.body) + if((Body != null) && __isset.body) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(Body); + } } return hashcode; } @@ -244,18 +273,21 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TPipeSubscribeResp("); - sb.Append(", Status: "); - sb.Append(Status== null ? "" : Status.ToString()); + if((Status != null)) + { + sb.Append(", Status: "); + Status.ToString(sb); + } sb.Append(", Version: "); - sb.Append(Version); + Version.ToString(sb); sb.Append(", Type: "); - sb.Append(Type); - if (Body != null && __isset.body) + Type.ToString(sb); + if((Body != null) && __isset.body) { sb.Append(", Body: "); - sb.Append(Body); + Body.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TPipeTransferReq.cs b/src/Apache.IoTDB/Rpc/Generated/TPipeTransferReq.cs index 790f77f..74a98a4 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TPipeTransferReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TPipeTransferReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TPipeTransferReq : TBase { @@ -44,7 +49,19 @@ public TPipeTransferReq(sbyte version, short type, byte[] body) : this() this.Body = body; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TPipeTransferReq DeepCopy() + { + var tmp449 = new TPipeTransferReq(); + tmp449.Version = this.Version; + tmp449.Type = this.Type; + if((Body != null)) + { + tmp449.Body = this.Body.ToArray(); + } + return tmp449; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -125,7 +142,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -145,12 +162,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI16Async(Type, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "body"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteBinaryAsync(Body, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((Body != null)) + { + field.Name = "body"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBinaryAsync(Body, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -162,8 +182,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TPipeTransferReq; - if (other == null) return false; + if (!(that is TPipeTransferReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Version, other.Version) && System.Object.Equals(Type, other.Type) @@ -175,7 +194,10 @@ public override int GetHashCode() { unchecked { hashcode = (hashcode * 397) + Version.GetHashCode(); hashcode = (hashcode * 397) + Type.GetHashCode(); - hashcode = (hashcode * 397) + Body.GetHashCode(); + if((Body != null)) + { + hashcode = (hashcode * 397) + Body.GetHashCode(); + } } return hashcode; } @@ -184,12 +206,15 @@ public override string ToString() { var sb = new StringBuilder("TPipeTransferReq("); sb.Append(", Version: "); - sb.Append(Version); + Version.ToString(sb); sb.Append(", Type: "); - sb.Append(Type); - sb.Append(", Body: "); - sb.Append(Body); - sb.Append(")"); + Type.ToString(sb); + if((Body != null)) + { + sb.Append(", Body: "); + Body.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TPipeTransferResp.cs b/src/Apache.IoTDB/Rpc/Generated/TPipeTransferResp.cs index 71c3eea..bafabd4 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TPipeTransferResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TPipeTransferResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TPipeTransferResp : TBase { @@ -59,7 +64,22 @@ public TPipeTransferResp(TSStatus status) : this() this.Status = status; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TPipeTransferResp DeepCopy() + { + var tmp451 = new TPipeTransferResp(); + if((Status != null)) + { + tmp451.Status = (TSStatus)this.Status.DeepCopy(); + } + if((Body != null) && __isset.body) + { + tmp451.Body = this.Body.ToArray(); + } + tmp451.__isset.body = this.__isset.body; + return tmp451; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -119,7 +139,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -127,13 +147,16 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TPipeTransferResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - if (Body != null && __isset.body) + if((Status != null)) + { + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Body != null) && __isset.body) { field.Name = "body"; field.Type = TType.String; @@ -153,8 +176,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TPipeTransferResp; - if (other == null) return false; + if (!(that is TPipeTransferResp other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && ((__isset.body == other.__isset.body) && ((!__isset.body) || (TCollections.Equals(Body, other.Body)))); @@ -163,9 +185,14 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + Status.GetHashCode(); - if(__isset.body) + if((Status != null)) + { + hashcode = (hashcode * 397) + Status.GetHashCode(); + } + if((Body != null) && __isset.body) + { hashcode = (hashcode * 397) + Body.GetHashCode(); + } } return hashcode; } @@ -173,14 +200,17 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TPipeTransferResp("); - sb.Append(", Status: "); - sb.Append(Status== null ? "" : Status.ToString()); - if (Body != null && __isset.body) + if((Status != null)) + { + sb.Append(", Status: "); + Status.ToString(sb); + } + if((Body != null) && __isset.body) { sb.Append(", Body: "); - sb.Append(Body); + Body.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TRegionMaintainTaskStatus.cs b/src/Apache.IoTDB/Rpc/Generated/TRegionMaintainTaskStatus.cs index 8263953..e0904fb 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TRegionMaintainTaskStatus.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TRegionMaintainTaskStatus.cs @@ -1,10 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public enum TRegionMaintainTaskStatus { TASK_NOT_EXIST = 0, diff --git a/src/Apache.IoTDB/Rpc/Generated/TRegionMigrateFailedType.cs b/src/Apache.IoTDB/Rpc/Generated/TRegionMigrateFailedType.cs index f515482..1306ac5 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TRegionMigrateFailedType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TRegionMigrateFailedType.cs @@ -1,10 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public enum TRegionMigrateFailedType { AddPeerFailed = 0, diff --git a/src/Apache.IoTDB/Rpc/Generated/TRegionReplicaSet.cs b/src/Apache.IoTDB/Rpc/Generated/TRegionReplicaSet.cs index 5c7a607..25f7b72 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TRegionReplicaSet.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TRegionReplicaSet.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TRegionReplicaSet : TBase { @@ -41,7 +46,21 @@ public TRegionReplicaSet(TConsensusGroupId regionId, List dat this.DataNodeLocations = dataNodeLocations; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TRegionReplicaSet DeepCopy() + { + var tmp14 = new TRegionReplicaSet(); + if((RegionId != null)) + { + tmp14.RegionId = (TConsensusGroupId)this.RegionId.DeepCopy(); + } + if((DataNodeLocations != null)) + { + tmp14.DataNodeLocations = this.DataNodeLocations.DeepCopy(); + } + return tmp14; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -76,14 +95,14 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list4 = await iprot.ReadListBeginAsync(cancellationToken); - DataNodeLocations = new List(_list4.Count); - for(int _i5 = 0; _i5 < _list4.Count; ++_i5) + TList _list15 = await iprot.ReadListBeginAsync(cancellationToken); + DataNodeLocations = new List(_list15.Count); + for(int _i16 = 0; _i16 < _list15.Count; ++_i16) { - TDataNodeLocation _elem6; - _elem6 = new TDataNodeLocation(); - await _elem6.ReadAsync(iprot, cancellationToken); - DataNodeLocations.Add(_elem6); + TDataNodeLocation _elem17; + _elem17 = new TDataNodeLocation(); + await _elem17.ReadAsync(iprot, cancellationToken); + DataNodeLocations.Add(_elem17); } await iprot.ReadListEndAsync(cancellationToken); } @@ -118,7 +137,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -126,25 +145,31 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TRegionReplicaSet"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "regionId"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await RegionId.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "dataNodeLocations"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((RegionId != null)) + { + field.Name = "regionId"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await RegionId.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((DataNodeLocations != null)) { - await oprot.WriteListBeginAsync(new TList(TType.Struct, DataNodeLocations.Count), cancellationToken); - foreach (TDataNodeLocation _iter7 in DataNodeLocations) + field.Name = "dataNodeLocations"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await _iter7.WriteAsync(oprot, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.Struct, DataNodeLocations.Count), cancellationToken); + foreach (TDataNodeLocation _iter18 in DataNodeLocations) + { + await _iter18.WriteAsync(oprot, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -156,8 +181,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TRegionReplicaSet; - if (other == null) return false; + if (!(that is TRegionReplicaSet other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(RegionId, other.RegionId) && TCollections.Equals(DataNodeLocations, other.DataNodeLocations); @@ -166,8 +190,14 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + RegionId.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(DataNodeLocations); + if((RegionId != null)) + { + hashcode = (hashcode * 397) + RegionId.GetHashCode(); + } + if((DataNodeLocations != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(DataNodeLocations); + } } return hashcode; } @@ -175,11 +205,17 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TRegionReplicaSet("); - sb.Append(", RegionId: "); - sb.Append(RegionId== null ? "" : RegionId.ToString()); - sb.Append(", DataNodeLocations: "); - sb.Append(DataNodeLocations); - sb.Append(")"); + if((RegionId != null)) + { + sb.Append(", RegionId: "); + RegionId.ToString(sb); + } + if((DataNodeLocations != null)) + { + sb.Append(", DataNodeLocations: "); + DataNodeLocations.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSAggregationQueryReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSAggregationQueryReq.cs index 6b6f0ab..3395474 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSAggregationQueryReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSAggregationQueryReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSAggregationQueryReq : TBase { @@ -158,7 +163,58 @@ public TSAggregationQueryReq(long sessionId, long statementId, List path this.Aggregations = aggregations; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSAggregationQueryReq DeepCopy() + { + var tmp336 = new TSAggregationQueryReq(); + tmp336.SessionId = this.SessionId; + tmp336.StatementId = this.StatementId; + if((Paths != null)) + { + tmp336.Paths = this.Paths.DeepCopy(); + } + if((Aggregations != null)) + { + tmp336.Aggregations = this.Aggregations.DeepCopy(); + } + if(__isset.startTime) + { + tmp336.StartTime = this.StartTime; + } + tmp336.__isset.startTime = this.__isset.startTime; + if(__isset.endTime) + { + tmp336.EndTime = this.EndTime; + } + tmp336.__isset.endTime = this.__isset.endTime; + if(__isset.interval) + { + tmp336.Interval = this.Interval; + } + tmp336.__isset.interval = this.__isset.interval; + if(__isset.slidingStep) + { + tmp336.SlidingStep = this.SlidingStep; + } + tmp336.__isset.slidingStep = this.__isset.slidingStep; + if(__isset.fetchSize) + { + tmp336.FetchSize = this.FetchSize; + } + tmp336.__isset.fetchSize = this.__isset.fetchSize; + if(__isset.timeout) + { + tmp336.Timeout = this.Timeout; + } + tmp336.__isset.timeout = this.__isset.timeout; + if(__isset.legalPathNodes) + { + tmp336.LegalPathNodes = this.LegalPathNodes; + } + tmp336.__isset.legalPathNodes = this.__isset.legalPathNodes; + return tmp336; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -205,13 +261,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list272 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list272.Count); - for(int _i273 = 0; _i273 < _list272.Count; ++_i273) + TList _list337 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list337.Count); + for(int _i338 = 0; _i338 < _list337.Count; ++_i338) { - string _elem274; - _elem274 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem274); + string _elem339; + _elem339 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem339); } await iprot.ReadListEndAsync(cancellationToken); } @@ -226,13 +282,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list275 = await iprot.ReadListBeginAsync(cancellationToken); - Aggregations = new List(_list275.Count); - for(int _i276 = 0; _i276 < _list275.Count; ++_i276) + TList _list340 = await iprot.ReadListBeginAsync(cancellationToken); + Aggregations = new List(_list340.Count); + for(int _i341 = 0; _i341 < _list340.Count; ++_i341) { - TAggregationType _elem277; - _elem277 = (TAggregationType)await iprot.ReadI32Async(cancellationToken); - Aggregations.Add(_elem277); + TAggregationType _elem342; + _elem342 = (TAggregationType)await iprot.ReadI32Async(cancellationToken); + Aggregations.Add(_elem342); } await iprot.ReadListEndAsync(cancellationToken); } @@ -345,7 +401,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -365,33 +421,39 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(StatementId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "paths"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Paths != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter278 in Paths) + field.Name = "paths"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter278, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); + foreach (string _iter343 in Paths) + { + await oprot.WriteStringAsync(_iter343, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "aggregations"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Aggregations != null)) { - await oprot.WriteListBeginAsync(new TList(TType.I32, Aggregations.Count), cancellationToken); - foreach (TAggregationType _iter279 in Aggregations) + field.Name = "aggregations"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteI32Async((int)_iter279, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, Aggregations.Count), cancellationToken); + foreach (TAggregationType _iter344 in Aggregations) + { + await oprot.WriteI32Async((int)_iter344, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.startTime) + if(__isset.startTime) { field.Name = "startTime"; field.Type = TType.I64; @@ -400,7 +462,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI64Async(StartTime, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.endTime) + if(__isset.endTime) { field.Name = "endTime"; field.Type = TType.I64; @@ -409,7 +471,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI64Async(EndTime, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.interval) + if(__isset.interval) { field.Name = "interval"; field.Type = TType.I64; @@ -418,7 +480,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI64Async(Interval, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.slidingStep) + if(__isset.slidingStep) { field.Name = "slidingStep"; field.Type = TType.I64; @@ -427,7 +489,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI64Async(SlidingStep, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.fetchSize) + if(__isset.fetchSize) { field.Name = "fetchSize"; field.Type = TType.I32; @@ -436,7 +498,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI32Async(FetchSize, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.timeout) + if(__isset.timeout) { field.Name = "timeout"; field.Type = TType.I64; @@ -445,7 +507,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI64Async(Timeout, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.legalPathNodes) + if(__isset.legalPathNodes) { field.Name = "legalPathNodes"; field.Type = TType.Bool; @@ -465,8 +527,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSAggregationQueryReq; - if (other == null) return false; + if (!(that is TSAggregationQueryReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(StatementId, other.StatementId) @@ -486,22 +547,42 @@ public override int GetHashCode() { unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); hashcode = (hashcode * 397) + StatementId.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Aggregations); + if((Paths != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); + } + if((Aggregations != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Aggregations); + } if(__isset.startTime) + { hashcode = (hashcode * 397) + StartTime.GetHashCode(); + } if(__isset.endTime) + { hashcode = (hashcode * 397) + EndTime.GetHashCode(); + } if(__isset.interval) + { hashcode = (hashcode * 397) + Interval.GetHashCode(); + } if(__isset.slidingStep) + { hashcode = (hashcode * 397) + SlidingStep.GetHashCode(); + } if(__isset.fetchSize) + { hashcode = (hashcode * 397) + FetchSize.GetHashCode(); + } if(__isset.timeout) + { hashcode = (hashcode * 397) + Timeout.GetHashCode(); + } if(__isset.legalPathNodes) + { hashcode = (hashcode * 397) + LegalPathNodes.GetHashCode(); + } } return hashcode; } @@ -510,49 +591,55 @@ public override string ToString() { var sb = new StringBuilder("TSAggregationQueryReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); + SessionId.ToString(sb); sb.Append(", StatementId: "); - sb.Append(StatementId); - sb.Append(", Paths: "); - sb.Append(Paths); - sb.Append(", Aggregations: "); - sb.Append(Aggregations); - if (__isset.startTime) + StatementId.ToString(sb); + if((Paths != null)) + { + sb.Append(", Paths: "); + Paths.ToString(sb); + } + if((Aggregations != null)) + { + sb.Append(", Aggregations: "); + Aggregations.ToString(sb); + } + if(__isset.startTime) { sb.Append(", StartTime: "); - sb.Append(StartTime); + StartTime.ToString(sb); } - if (__isset.endTime) + if(__isset.endTime) { sb.Append(", EndTime: "); - sb.Append(EndTime); + EndTime.ToString(sb); } - if (__isset.interval) + if(__isset.interval) { sb.Append(", Interval: "); - sb.Append(Interval); + Interval.ToString(sb); } - if (__isset.slidingStep) + if(__isset.slidingStep) { sb.Append(", SlidingStep: "); - sb.Append(SlidingStep); + SlidingStep.ToString(sb); } - if (__isset.fetchSize) + if(__isset.fetchSize) { sb.Append(", FetchSize: "); - sb.Append(FetchSize); + FetchSize.ToString(sb); } - if (__isset.timeout) + if(__isset.timeout) { sb.Append(", Timeout: "); - sb.Append(Timeout); + Timeout.ToString(sb); } - if (__isset.legalPathNodes) + if(__isset.legalPathNodes) { sb.Append(", LegalPathNodes: "); - sb.Append(LegalPathNodes); + LegalPathNodes.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSAppendSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSAppendSchemaTemplateReq.cs index 5da619f..f5b5f1a 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSAppendSchemaTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSAppendSchemaTemplateReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSAppendSchemaTemplateReq : TBase { @@ -56,7 +61,35 @@ public TSAppendSchemaTemplateReq(long sessionId, string name, bool isAligned, Li this.Compressors = compressors; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSAppendSchemaTemplateReq DeepCopy() + { + var tmp407 = new TSAppendSchemaTemplateReq(); + tmp407.SessionId = this.SessionId; + if((Name != null)) + { + tmp407.Name = this.Name; + } + tmp407.IsAligned = this.IsAligned; + if((Measurements != null)) + { + tmp407.Measurements = this.Measurements.DeepCopy(); + } + if((DataTypes != null)) + { + tmp407.DataTypes = this.DataTypes.DeepCopy(); + } + if((Encodings != null)) + { + tmp407.Encodings = this.Encodings.DeepCopy(); + } + if((Compressors != null)) + { + tmp407.Compressors = this.Compressors.DeepCopy(); + } + return tmp407; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -117,13 +150,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list331 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list331.Count); - for(int _i332 = 0; _i332 < _list331.Count; ++_i332) + TList _list408 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list408.Count); + for(int _i409 = 0; _i409 < _list408.Count; ++_i409) { - string _elem333; - _elem333 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem333); + string _elem410; + _elem410 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem410); } await iprot.ReadListEndAsync(cancellationToken); } @@ -138,13 +171,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list334 = await iprot.ReadListBeginAsync(cancellationToken); - DataTypes = new List(_list334.Count); - for(int _i335 = 0; _i335 < _list334.Count; ++_i335) + TList _list411 = await iprot.ReadListBeginAsync(cancellationToken); + DataTypes = new List(_list411.Count); + for(int _i412 = 0; _i412 < _list411.Count; ++_i412) { - int _elem336; - _elem336 = await iprot.ReadI32Async(cancellationToken); - DataTypes.Add(_elem336); + int _elem413; + _elem413 = await iprot.ReadI32Async(cancellationToken); + DataTypes.Add(_elem413); } await iprot.ReadListEndAsync(cancellationToken); } @@ -159,13 +192,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list337 = await iprot.ReadListBeginAsync(cancellationToken); - Encodings = new List(_list337.Count); - for(int _i338 = 0; _i338 < _list337.Count; ++_i338) + TList _list414 = await iprot.ReadListBeginAsync(cancellationToken); + Encodings = new List(_list414.Count); + for(int _i415 = 0; _i415 < _list414.Count; ++_i415) { - int _elem339; - _elem339 = await iprot.ReadI32Async(cancellationToken); - Encodings.Add(_elem339); + int _elem416; + _elem416 = await iprot.ReadI32Async(cancellationToken); + Encodings.Add(_elem416); } await iprot.ReadListEndAsync(cancellationToken); } @@ -180,13 +213,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list340 = await iprot.ReadListBeginAsync(cancellationToken); - Compressors = new List(_list340.Count); - for(int _i341 = 0; _i341 < _list340.Count; ++_i341) + TList _list417 = await iprot.ReadListBeginAsync(cancellationToken); + Compressors = new List(_list417.Count); + for(int _i418 = 0; _i418 < _list417.Count; ++_i418) { - int _elem342; - _elem342 = await iprot.ReadI32Async(cancellationToken); - Compressors.Add(_elem342); + int _elem419; + _elem419 = await iprot.ReadI32Async(cancellationToken); + Compressors.Add(_elem419); } await iprot.ReadListEndAsync(cancellationToken); } @@ -241,7 +274,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -255,70 +288,85 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "name"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Name, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((Name != null)) + { + field.Name = "name"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Name, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } field.Name = "isAligned"; field.Type = TType.Bool; field.ID = 3; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(IsAligned, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "measurements"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Measurements != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter343 in Measurements) + field.Name = "measurements"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter343, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); + foreach (string _iter420 in Measurements) + { + await oprot.WriteStringAsync(_iter420, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "dataTypes"; - field.Type = TType.List; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((DataTypes != null)) { - await oprot.WriteListBeginAsync(new TList(TType.I32, DataTypes.Count), cancellationToken); - foreach (int _iter344 in DataTypes) + field.Name = "dataTypes"; + field.Type = TType.List; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteI32Async(_iter344, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, DataTypes.Count), cancellationToken); + foreach (int _iter421 in DataTypes) + { + await oprot.WriteI32Async(_iter421, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "encodings"; - field.Type = TType.List; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Encodings != null)) { - await oprot.WriteListBeginAsync(new TList(TType.I32, Encodings.Count), cancellationToken); - foreach (int _iter345 in Encodings) + field.Name = "encodings"; + field.Type = TType.List; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteI32Async(_iter345, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, Encodings.Count), cancellationToken); + foreach (int _iter422 in Encodings) + { + await oprot.WriteI32Async(_iter422, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "compressors"; - field.Type = TType.List; - field.ID = 7; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Compressors != null)) { - await oprot.WriteListBeginAsync(new TList(TType.I32, Compressors.Count), cancellationToken); - foreach (int _iter346 in Compressors) + field.Name = "compressors"; + field.Type = TType.List; + field.ID = 7; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteI32Async(_iter346, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, Compressors.Count), cancellationToken); + foreach (int _iter423 in Compressors) + { + await oprot.WriteI32Async(_iter423, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -330,8 +378,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSAppendSchemaTemplateReq; - if (other == null) return false; + if (!(that is TSAppendSchemaTemplateReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(Name, other.Name) @@ -346,12 +393,27 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + Name.GetHashCode(); + if((Name != null)) + { + hashcode = (hashcode * 397) + Name.GetHashCode(); + } hashcode = (hashcode * 397) + IsAligned.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); - hashcode = (hashcode * 397) + TCollections.GetHashCode(DataTypes); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Encodings); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Compressors); + if((Measurements != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); + } + if((DataTypes != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(DataTypes); + } + if((Encodings != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Encodings); + } + if((Compressors != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Compressors); + } } return hashcode; } @@ -360,20 +422,35 @@ public override string ToString() { var sb = new StringBuilder("TSAppendSchemaTemplateReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", Name: "); - sb.Append(Name); + SessionId.ToString(sb); + if((Name != null)) + { + sb.Append(", Name: "); + Name.ToString(sb); + } sb.Append(", IsAligned: "); - sb.Append(IsAligned); - sb.Append(", Measurements: "); - sb.Append(Measurements); - sb.Append(", DataTypes: "); - sb.Append(DataTypes); - sb.Append(", Encodings: "); - sb.Append(Encodings); - sb.Append(", Compressors: "); - sb.Append(Compressors); - sb.Append(")"); + IsAligned.ToString(sb); + if((Measurements != null)) + { + sb.Append(", Measurements: "); + Measurements.ToString(sb); + } + if((DataTypes != null)) + { + sb.Append(", DataTypes: "); + DataTypes.ToString(sb); + } + if((Encodings != null)) + { + sb.Append(", Encodings: "); + Encodings.ToString(sb); + } + if((Compressors != null)) + { + sb.Append(", Compressors: "); + Compressors.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSBackupConfigurationResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSBackupConfigurationResp.cs index 1f4da61..d35999b 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSBackupConfigurationResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSBackupConfigurationResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSBackupConfigurationResp : TBase { @@ -89,7 +94,32 @@ public TSBackupConfigurationResp(TSStatus status) : this() this.Status = status; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSBackupConfigurationResp DeepCopy() + { + var tmp461 = new TSBackupConfigurationResp(); + if((Status != null)) + { + tmp461.Status = (TSStatus)this.Status.DeepCopy(); + } + if(__isset.enableOperationSync) + { + tmp461.EnableOperationSync = this.EnableOperationSync; + } + tmp461.__isset.enableOperationSync = this.__isset.enableOperationSync; + if((SecondaryAddress != null) && __isset.secondaryAddress) + { + tmp461.SecondaryAddress = this.SecondaryAddress; + } + tmp461.__isset.secondaryAddress = this.__isset.secondaryAddress; + if(__isset.secondaryPort) + { + tmp461.SecondaryPort = this.SecondaryPort; + } + tmp461.__isset.secondaryPort = this.__isset.secondaryPort; + return tmp461; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -169,7 +199,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -177,13 +207,16 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSBackupConfigurationResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.enableOperationSync) + if((Status != null)) + { + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.enableOperationSync) { field.Name = "enableOperationSync"; field.Type = TType.Bool; @@ -192,7 +225,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteBoolAsync(EnableOperationSync, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (SecondaryAddress != null && __isset.secondaryAddress) + if((SecondaryAddress != null) && __isset.secondaryAddress) { field.Name = "secondaryAddress"; field.Type = TType.String; @@ -201,7 +234,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteStringAsync(SecondaryAddress, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.secondaryPort) + if(__isset.secondaryPort) { field.Name = "secondaryPort"; field.Type = TType.I32; @@ -221,8 +254,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSBackupConfigurationResp; - if (other == null) return false; + if (!(that is TSBackupConfigurationResp other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && ((__isset.enableOperationSync == other.__isset.enableOperationSync) && ((!__isset.enableOperationSync) || (System.Object.Equals(EnableOperationSync, other.EnableOperationSync)))) @@ -233,13 +265,22 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + Status.GetHashCode(); + if((Status != null)) + { + hashcode = (hashcode * 397) + Status.GetHashCode(); + } if(__isset.enableOperationSync) + { hashcode = (hashcode * 397) + EnableOperationSync.GetHashCode(); - if(__isset.secondaryAddress) + } + if((SecondaryAddress != null) && __isset.secondaryAddress) + { hashcode = (hashcode * 397) + SecondaryAddress.GetHashCode(); + } if(__isset.secondaryPort) + { hashcode = (hashcode * 397) + SecondaryPort.GetHashCode(); + } } return hashcode; } @@ -247,24 +288,27 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSBackupConfigurationResp("); - sb.Append(", Status: "); - sb.Append(Status== null ? "" : Status.ToString()); - if (__isset.enableOperationSync) + if((Status != null)) + { + sb.Append(", Status: "); + Status.ToString(sb); + } + if(__isset.enableOperationSync) { sb.Append(", EnableOperationSync: "); - sb.Append(EnableOperationSync); + EnableOperationSync.ToString(sb); } - if (SecondaryAddress != null && __isset.secondaryAddress) + if((SecondaryAddress != null) && __isset.secondaryAddress) { sb.Append(", SecondaryAddress: "); - sb.Append(SecondaryAddress); + SecondaryAddress.ToString(sb); } - if (__isset.secondaryPort) + if(__isset.secondaryPort) { sb.Append(", SecondaryPort: "); - sb.Append(SecondaryPort); + SecondaryPort.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCancelOperationReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCancelOperationReq.cs index 38b1ec7..715b4a0 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCancelOperationReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCancelOperationReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSCancelOperationReq : TBase { @@ -41,7 +46,15 @@ public TSCancelOperationReq(long sessionId, long queryId) : this() this.QueryId = queryId; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSCancelOperationReq DeepCopy() + { + var tmp83 = new TSCancelOperationReq(); + tmp83.SessionId = this.SessionId; + tmp83.QueryId = this.QueryId; + return tmp83; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -106,7 +119,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -137,8 +150,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSCancelOperationReq; - if (other == null) return false; + if (!(that is TSCancelOperationReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(QueryId, other.QueryId); @@ -157,10 +169,10 @@ public override string ToString() { var sb = new StringBuilder("TSCancelOperationReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); + SessionId.ToString(sb); sb.Append(", QueryId: "); - sb.Append(QueryId); - sb.Append(")"); + QueryId.ToString(sb); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCloseOperationReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCloseOperationReq.cs index 5fdcc46..fe97220 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCloseOperationReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCloseOperationReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSCloseOperationReq : TBase { @@ -74,7 +79,24 @@ public TSCloseOperationReq(long sessionId) : this() this.SessionId = sessionId; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSCloseOperationReq DeepCopy() + { + var tmp85 = new TSCloseOperationReq(); + tmp85.SessionId = this.SessionId; + if(__isset.queryId) + { + tmp85.QueryId = this.QueryId; + } + tmp85.__isset.queryId = this.__isset.queryId; + if(__isset.statementId) + { + tmp85.StatementId = this.StatementId; + } + tmp85.__isset.statementId = this.__isset.statementId; + return tmp85; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -143,7 +165,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -157,7 +179,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.queryId) + if(__isset.queryId) { field.Name = "queryId"; field.Type = TType.I64; @@ -166,7 +188,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI64Async(QueryId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.statementId) + if(__isset.statementId) { field.Name = "statementId"; field.Type = TType.I64; @@ -186,8 +208,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSCloseOperationReq; - if (other == null) return false; + if (!(that is TSCloseOperationReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && ((__isset.queryId == other.__isset.queryId) && ((!__isset.queryId) || (System.Object.Equals(QueryId, other.QueryId)))) @@ -199,9 +220,13 @@ public override int GetHashCode() { unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); if(__isset.queryId) + { hashcode = (hashcode * 397) + QueryId.GetHashCode(); + } if(__isset.statementId) + { hashcode = (hashcode * 397) + StatementId.GetHashCode(); + } } return hashcode; } @@ -210,18 +235,18 @@ public override string ToString() { var sb = new StringBuilder("TSCloseOperationReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - if (__isset.queryId) + SessionId.ToString(sb); + if(__isset.queryId) { sb.Append(", QueryId: "); - sb.Append(QueryId); + QueryId.ToString(sb); } - if (__isset.statementId) + if(__isset.statementId) { sb.Append(", StatementId: "); - sb.Append(StatementId); + StatementId.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCloseSessionReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCloseSessionReq.cs index 632de35..9ba92c1 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCloseSessionReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCloseSessionReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSCloseSessionReq : TBase { @@ -38,7 +43,14 @@ public TSCloseSessionReq(long sessionId) : this() this.SessionId = sessionId; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSCloseSessionReq DeepCopy() + { + var tmp71 = new TSCloseSessionReq(); + tmp71.SessionId = this.SessionId; + return tmp71; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -87,7 +99,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -112,8 +124,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSCloseSessionReq; - if (other == null) return false; + if (!(that is TSCloseSessionReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId); } @@ -130,8 +141,8 @@ public override string ToString() { var sb = new StringBuilder("TSCloseSessionReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(")"); + SessionId.ToString(sb); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfo.cs b/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfo.cs index a509725..bb7fdcd 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfo.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfo.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSConnectionInfo : TBase { @@ -35,7 +40,7 @@ public partial class TSConnectionInfo : TBase /// /// - /// + /// /// public TSConnectionType Type { get; set; } @@ -51,7 +56,23 @@ public TSConnectionInfo(string userName, long logInTime, string connectionId, TS this.Type = type; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSConnectionInfo DeepCopy() + { + var tmp463 = new TSConnectionInfo(); + if((UserName != null)) + { + tmp463.UserName = this.UserName; + } + tmp463.LogInTime = this.LogInTime; + if((ConnectionId != null)) + { + tmp463.ConnectionId = this.ConnectionId; + } + tmp463.Type = this.Type; + return tmp463; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -148,7 +169,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -156,24 +177,30 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSConnectionInfo"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "userName"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(UserName, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((UserName != null)) + { + field.Name = "userName"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(UserName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } field.Name = "logInTime"; field.Type = TType.I64; field.ID = 2; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(LogInTime, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "connectionId"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(ConnectionId, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((ConnectionId != null)) + { + field.Name = "connectionId"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(ConnectionId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } field.Name = "type"; field.Type = TType.I32; field.ID = 4; @@ -191,8 +218,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSConnectionInfo; - if (other == null) return false; + if (!(that is TSConnectionInfo other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(UserName, other.UserName) && System.Object.Equals(LogInTime, other.LogInTime) @@ -203,9 +229,15 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + UserName.GetHashCode(); + if((UserName != null)) + { + hashcode = (hashcode * 397) + UserName.GetHashCode(); + } hashcode = (hashcode * 397) + LogInTime.GetHashCode(); - hashcode = (hashcode * 397) + ConnectionId.GetHashCode(); + if((ConnectionId != null)) + { + hashcode = (hashcode * 397) + ConnectionId.GetHashCode(); + } hashcode = (hashcode * 397) + Type.GetHashCode(); } return hashcode; @@ -214,15 +246,21 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSConnectionInfo("); - sb.Append(", UserName: "); - sb.Append(UserName); + if((UserName != null)) + { + sb.Append(", UserName: "); + UserName.ToString(sb); + } sb.Append(", LogInTime: "); - sb.Append(LogInTime); - sb.Append(", ConnectionId: "); - sb.Append(ConnectionId); + LogInTime.ToString(sb); + if((ConnectionId != null)) + { + sb.Append(", ConnectionId: "); + ConnectionId.ToString(sb); + } sb.Append(", Type: "); - sb.Append(Type); - sb.Append(")"); + Type.ToString(sb); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfoResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfoResp.cs index 3190a5b..6039412 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfoResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfoResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSConnectionInfoResp : TBase { @@ -38,7 +43,17 @@ public TSConnectionInfoResp(List connectionInfoList) : this() this.ConnectionInfoList = connectionInfoList; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSConnectionInfoResp DeepCopy() + { + var tmp465 = new TSConnectionInfoResp(); + if((ConnectionInfoList != null)) + { + tmp465.ConnectionInfoList = this.ConnectionInfoList.DeepCopy(); + } + return tmp465; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -60,14 +75,14 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list359 = await iprot.ReadListBeginAsync(cancellationToken); - ConnectionInfoList = new List(_list359.Count); - for(int _i360 = 0; _i360 < _list359.Count; ++_i360) + TList _list466 = await iprot.ReadListBeginAsync(cancellationToken); + ConnectionInfoList = new List(_list466.Count); + for(int _i467 = 0; _i467 < _list466.Count; ++_i467) { - TSConnectionInfo _elem361; - _elem361 = new TSConnectionInfo(); - await _elem361.ReadAsync(iprot, cancellationToken); - ConnectionInfoList.Add(_elem361); + TSConnectionInfo _elem468; + _elem468 = new TSConnectionInfo(); + await _elem468.ReadAsync(iprot, cancellationToken); + ConnectionInfoList.Add(_elem468); } await iprot.ReadListEndAsync(cancellationToken); } @@ -98,7 +113,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -106,19 +121,22 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSConnectionInfoResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "connectionInfoList"; - field.Type = TType.List; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((ConnectionInfoList != null)) { - await oprot.WriteListBeginAsync(new TList(TType.Struct, ConnectionInfoList.Count), cancellationToken); - foreach (TSConnectionInfo _iter362 in ConnectionInfoList) + field.Name = "connectionInfoList"; + field.Type = TType.List; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await _iter362.WriteAsync(oprot, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.Struct, ConnectionInfoList.Count), cancellationToken); + foreach (TSConnectionInfo _iter469 in ConnectionInfoList) + { + await _iter469.WriteAsync(oprot, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -130,8 +148,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSConnectionInfoResp; - if (other == null) return false; + if (!(that is TSConnectionInfoResp other)) return false; if (ReferenceEquals(this, other)) return true; return TCollections.Equals(ConnectionInfoList, other.ConnectionInfoList); } @@ -139,7 +156,10 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + TCollections.GetHashCode(ConnectionInfoList); + if((ConnectionInfoList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(ConnectionInfoList); + } } return hashcode; } @@ -147,9 +167,12 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSConnectionInfoResp("); - sb.Append(", ConnectionInfoList: "); - sb.Append(ConnectionInfoList); - sb.Append(")"); + if((ConnectionInfoList != null)) + { + sb.Append(", ConnectionInfoList: "); + ConnectionInfoList.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSConnectionType.cs b/src/Apache.IoTDB/Rpc/Generated/TSConnectionType.cs index 6bc8268..0e5435a 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSConnectionType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSConnectionType.cs @@ -1,10 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public enum TSConnectionType { THRIFT_BASED = 0, diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCreateAlignedTimeseriesReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCreateAlignedTimeseriesReq.cs index 54502a9..4697d28 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCreateAlignedTimeseriesReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCreateAlignedTimeseriesReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSCreateAlignedTimeseriesReq : TBase { @@ -104,7 +109,49 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List(_list222.Count); - for(int _i223 = 0; _i223 < _list222.Count; ++_i223) + TList _list279 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list279.Count); + for(int _i280 = 0; _i280 < _list279.Count; ++_i280) { - string _elem224; - _elem224 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem224); + string _elem281; + _elem281 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem281); } await iprot.ReadListEndAsync(cancellationToken); } @@ -174,13 +221,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list225 = await iprot.ReadListBeginAsync(cancellationToken); - DataTypes = new List(_list225.Count); - for(int _i226 = 0; _i226 < _list225.Count; ++_i226) + TList _list282 = await iprot.ReadListBeginAsync(cancellationToken); + DataTypes = new List(_list282.Count); + for(int _i283 = 0; _i283 < _list282.Count; ++_i283) { - int _elem227; - _elem227 = await iprot.ReadI32Async(cancellationToken); - DataTypes.Add(_elem227); + int _elem284; + _elem284 = await iprot.ReadI32Async(cancellationToken); + DataTypes.Add(_elem284); } await iprot.ReadListEndAsync(cancellationToken); } @@ -195,13 +242,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list228 = await iprot.ReadListBeginAsync(cancellationToken); - Encodings = new List(_list228.Count); - for(int _i229 = 0; _i229 < _list228.Count; ++_i229) + TList _list285 = await iprot.ReadListBeginAsync(cancellationToken); + Encodings = new List(_list285.Count); + for(int _i286 = 0; _i286 < _list285.Count; ++_i286) { - int _elem230; - _elem230 = await iprot.ReadI32Async(cancellationToken); - Encodings.Add(_elem230); + int _elem287; + _elem287 = await iprot.ReadI32Async(cancellationToken); + Encodings.Add(_elem287); } await iprot.ReadListEndAsync(cancellationToken); } @@ -216,13 +263,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list231 = await iprot.ReadListBeginAsync(cancellationToken); - Compressors = new List(_list231.Count); - for(int _i232 = 0; _i232 < _list231.Count; ++_i232) + TList _list288 = await iprot.ReadListBeginAsync(cancellationToken); + Compressors = new List(_list288.Count); + for(int _i289 = 0; _i289 < _list288.Count; ++_i289) { - int _elem233; - _elem233 = await iprot.ReadI32Async(cancellationToken); - Compressors.Add(_elem233); + int _elem290; + _elem290 = await iprot.ReadI32Async(cancellationToken); + Compressors.Add(_elem290); } await iprot.ReadListEndAsync(cancellationToken); } @@ -237,13 +284,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list234 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementAlias = new List(_list234.Count); - for(int _i235 = 0; _i235 < _list234.Count; ++_i235) + TList _list291 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementAlias = new List(_list291.Count); + for(int _i292 = 0; _i292 < _list291.Count; ++_i292) { - string _elem236; - _elem236 = await iprot.ReadStringAsync(cancellationToken); - MeasurementAlias.Add(_elem236); + string _elem293; + _elem293 = await iprot.ReadStringAsync(cancellationToken); + MeasurementAlias.Add(_elem293); } await iprot.ReadListEndAsync(cancellationToken); } @@ -257,25 +304,25 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list237 = await iprot.ReadListBeginAsync(cancellationToken); - TagsList = new List>(_list237.Count); - for(int _i238 = 0; _i238 < _list237.Count; ++_i238) + TList _list294 = await iprot.ReadListBeginAsync(cancellationToken); + TagsList = new List>(_list294.Count); + for(int _i295 = 0; _i295 < _list294.Count; ++_i295) { - Dictionary _elem239; + Dictionary _elem296; { - TMap _map240 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem239 = new Dictionary(_map240.Count); - for(int _i241 = 0; _i241 < _map240.Count; ++_i241) + TMap _map297 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem296 = new Dictionary(_map297.Count); + for(int _i298 = 0; _i298 < _map297.Count; ++_i298) { - string _key242; - string _val243; - _key242 = await iprot.ReadStringAsync(cancellationToken); - _val243 = await iprot.ReadStringAsync(cancellationToken); - _elem239[_key242] = _val243; + string _key299; + string _val300; + _key299 = await iprot.ReadStringAsync(cancellationToken); + _val300 = await iprot.ReadStringAsync(cancellationToken); + _elem296[_key299] = _val300; } await iprot.ReadMapEndAsync(cancellationToken); } - TagsList.Add(_elem239); + TagsList.Add(_elem296); } await iprot.ReadListEndAsync(cancellationToken); } @@ -289,25 +336,25 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list244 = await iprot.ReadListBeginAsync(cancellationToken); - AttributesList = new List>(_list244.Count); - for(int _i245 = 0; _i245 < _list244.Count; ++_i245) + TList _list301 = await iprot.ReadListBeginAsync(cancellationToken); + AttributesList = new List>(_list301.Count); + for(int _i302 = 0; _i302 < _list301.Count; ++_i302) { - Dictionary _elem246; + Dictionary _elem303; { - TMap _map247 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem246 = new Dictionary(_map247.Count); - for(int _i248 = 0; _i248 < _map247.Count; ++_i248) + TMap _map304 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem303 = new Dictionary(_map304.Count); + for(int _i305 = 0; _i305 < _map304.Count; ++_i305) { - string _key249; - string _val250; - _key249 = await iprot.ReadStringAsync(cancellationToken); - _val250 = await iprot.ReadStringAsync(cancellationToken); - _elem246[_key249] = _val250; + string _key306; + string _val307; + _key306 = await iprot.ReadStringAsync(cancellationToken); + _val307 = await iprot.ReadStringAsync(cancellationToken); + _elem303[_key306] = _val307; } await iprot.ReadMapEndAsync(cancellationToken); } - AttributesList.Add(_elem246); + AttributesList.Add(_elem303); } await iprot.ReadListEndAsync(cancellationToken); } @@ -357,7 +404,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -371,65 +418,80 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "prefixPath"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(PrefixPath, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "measurements"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((PrefixPath != null)) + { + field.Name = "prefixPath"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(PrefixPath, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Measurements != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter251 in Measurements) + field.Name = "measurements"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter251, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); + foreach (string _iter308 in Measurements) + { + await oprot.WriteStringAsync(_iter308, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "dataTypes"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((DataTypes != null)) { - await oprot.WriteListBeginAsync(new TList(TType.I32, DataTypes.Count), cancellationToken); - foreach (int _iter252 in DataTypes) + field.Name = "dataTypes"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteI32Async(_iter252, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, DataTypes.Count), cancellationToken); + foreach (int _iter309 in DataTypes) + { + await oprot.WriteI32Async(_iter309, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "encodings"; - field.Type = TType.List; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Encodings != null)) { - await oprot.WriteListBeginAsync(new TList(TType.I32, Encodings.Count), cancellationToken); - foreach (int _iter253 in Encodings) + field.Name = "encodings"; + field.Type = TType.List; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteI32Async(_iter253, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, Encodings.Count), cancellationToken); + foreach (int _iter310 in Encodings) + { + await oprot.WriteI32Async(_iter310, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "compressors"; - field.Type = TType.List; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Compressors != null)) { - await oprot.WriteListBeginAsync(new TList(TType.I32, Compressors.Count), cancellationToken); - foreach (int _iter254 in Compressors) + field.Name = "compressors"; + field.Type = TType.List; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteI32Async(_iter254, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, Compressors.Count), cancellationToken); + foreach (int _iter311 in Compressors) + { + await oprot.WriteI32Async(_iter311, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - if (MeasurementAlias != null && __isset.measurementAlias) + if((MeasurementAlias != null) && __isset.measurementAlias) { field.Name = "measurementAlias"; field.Type = TType.List; @@ -437,15 +499,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, MeasurementAlias.Count), cancellationToken); - foreach (string _iter255 in MeasurementAlias) + foreach (string _iter312 in MeasurementAlias) { - await oprot.WriteStringAsync(_iter255, cancellationToken); + await oprot.WriteStringAsync(_iter312, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if (TagsList != null && __isset.tagsList) + if((TagsList != null) && __isset.tagsList) { field.Name = "tagsList"; field.Type = TType.List; @@ -453,14 +515,14 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, TagsList.Count), cancellationToken); - foreach (Dictionary _iter256 in TagsList) + foreach (Dictionary _iter313 in TagsList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter256.Count), cancellationToken); - foreach (string _iter257 in _iter256.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter313.Count), cancellationToken); + foreach (string _iter314 in _iter313.Keys) { - await oprot.WriteStringAsync(_iter257, cancellationToken); - await oprot.WriteStringAsync(_iter256[_iter257], cancellationToken); + await oprot.WriteStringAsync(_iter314, cancellationToken); + await oprot.WriteStringAsync(_iter313[_iter314], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -469,7 +531,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke } await oprot.WriteFieldEndAsync(cancellationToken); } - if (AttributesList != null && __isset.attributesList) + if((AttributesList != null) && __isset.attributesList) { field.Name = "attributesList"; field.Type = TType.List; @@ -477,14 +539,14 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, AttributesList.Count), cancellationToken); - foreach (Dictionary _iter258 in AttributesList) + foreach (Dictionary _iter315 in AttributesList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter258.Count), cancellationToken); - foreach (string _iter259 in _iter258.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter315.Count), cancellationToken); + foreach (string _iter316 in _iter315.Keys) { - await oprot.WriteStringAsync(_iter259, cancellationToken); - await oprot.WriteStringAsync(_iter258[_iter259], cancellationToken); + await oprot.WriteStringAsync(_iter316, cancellationToken); + await oprot.WriteStringAsync(_iter315[_iter316], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -504,8 +566,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSCreateAlignedTimeseriesReq; - if (other == null) return false; + if (!(that is TSCreateAlignedTimeseriesReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(PrefixPath, other.PrefixPath) @@ -522,17 +583,38 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); - hashcode = (hashcode * 397) + TCollections.GetHashCode(DataTypes); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Encodings); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Compressors); - if(__isset.measurementAlias) + if((PrefixPath != null)) + { + hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); + } + if((Measurements != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); + } + if((DataTypes != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(DataTypes); + } + if((Encodings != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Encodings); + } + if((Compressors != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Compressors); + } + if((MeasurementAlias != null) && __isset.measurementAlias) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementAlias); - if(__isset.tagsList) + } + if((TagsList != null) && __isset.tagsList) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(TagsList); - if(__isset.attributesList) + } + if((AttributesList != null) && __isset.attributesList) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(AttributesList); + } } return hashcode; } @@ -541,33 +623,48 @@ public override string ToString() { var sb = new StringBuilder("TSCreateAlignedTimeseriesReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", PrefixPath: "); - sb.Append(PrefixPath); - sb.Append(", Measurements: "); - sb.Append(Measurements); - sb.Append(", DataTypes: "); - sb.Append(DataTypes); - sb.Append(", Encodings: "); - sb.Append(Encodings); - sb.Append(", Compressors: "); - sb.Append(Compressors); - if (MeasurementAlias != null && __isset.measurementAlias) + SessionId.ToString(sb); + if((PrefixPath != null)) + { + sb.Append(", PrefixPath: "); + PrefixPath.ToString(sb); + } + if((Measurements != null)) + { + sb.Append(", Measurements: "); + Measurements.ToString(sb); + } + if((DataTypes != null)) + { + sb.Append(", DataTypes: "); + DataTypes.ToString(sb); + } + if((Encodings != null)) + { + sb.Append(", Encodings: "); + Encodings.ToString(sb); + } + if((Compressors != null)) + { + sb.Append(", Compressors: "); + Compressors.ToString(sb); + } + if((MeasurementAlias != null) && __isset.measurementAlias) { sb.Append(", MeasurementAlias: "); - sb.Append(MeasurementAlias); + MeasurementAlias.ToString(sb); } - if (TagsList != null && __isset.tagsList) + if((TagsList != null) && __isset.tagsList) { sb.Append(", TagsList: "); - sb.Append(TagsList); + TagsList.ToString(sb); } - if (AttributesList != null && __isset.attributesList) + if((AttributesList != null) && __isset.attributesList) { sb.Append(", AttributesList: "); - sb.Append(AttributesList); + AttributesList.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCreateMultiTimeseriesReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCreateMultiTimeseriesReq.cs index 5b3671f..3d2759f 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCreateMultiTimeseriesReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCreateMultiTimeseriesReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSCreateMultiTimeseriesReq : TBase { @@ -116,7 +121,50 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List this.Compressors = compressors; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSCreateMultiTimeseriesReq DeepCopy() + { + var tmp348 = new TSCreateMultiTimeseriesReq(); + tmp348.SessionId = this.SessionId; + if((Paths != null)) + { + tmp348.Paths = this.Paths.DeepCopy(); + } + if((DataTypes != null)) + { + tmp348.DataTypes = this.DataTypes.DeepCopy(); + } + if((Encodings != null)) + { + tmp348.Encodings = this.Encodings.DeepCopy(); + } + if((Compressors != null)) + { + tmp348.Compressors = this.Compressors.DeepCopy(); + } + if((PropsList != null) && __isset.propsList) + { + tmp348.PropsList = this.PropsList.DeepCopy(); + } + tmp348.__isset.propsList = this.__isset.propsList; + if((TagsList != null) && __isset.tagsList) + { + tmp348.TagsList = this.TagsList.DeepCopy(); + } + tmp348.__isset.tagsList = this.__isset.tagsList; + if((AttributesList != null) && __isset.attributesList) + { + tmp348.AttributesList = this.AttributesList.DeepCopy(); + } + tmp348.__isset.attributesList = this.__isset.attributesList; + if((MeasurementAliasList != null) && __isset.measurementAliasList) + { + tmp348.MeasurementAliasList = this.MeasurementAliasList.DeepCopy(); + } + tmp348.__isset.measurementAliasList = this.__isset.measurementAliasList; + return tmp348; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -153,13 +201,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list280 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list280.Count); - for(int _i281 = 0; _i281 < _list280.Count; ++_i281) + TList _list349 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list349.Count); + for(int _i350 = 0; _i350 < _list349.Count; ++_i350) { - string _elem282; - _elem282 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem282); + string _elem351; + _elem351 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem351); } await iprot.ReadListEndAsync(cancellationToken); } @@ -174,13 +222,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list283 = await iprot.ReadListBeginAsync(cancellationToken); - DataTypes = new List(_list283.Count); - for(int _i284 = 0; _i284 < _list283.Count; ++_i284) + TList _list352 = await iprot.ReadListBeginAsync(cancellationToken); + DataTypes = new List(_list352.Count); + for(int _i353 = 0; _i353 < _list352.Count; ++_i353) { - int _elem285; - _elem285 = await iprot.ReadI32Async(cancellationToken); - DataTypes.Add(_elem285); + int _elem354; + _elem354 = await iprot.ReadI32Async(cancellationToken); + DataTypes.Add(_elem354); } await iprot.ReadListEndAsync(cancellationToken); } @@ -195,13 +243,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list286 = await iprot.ReadListBeginAsync(cancellationToken); - Encodings = new List(_list286.Count); - for(int _i287 = 0; _i287 < _list286.Count; ++_i287) + TList _list355 = await iprot.ReadListBeginAsync(cancellationToken); + Encodings = new List(_list355.Count); + for(int _i356 = 0; _i356 < _list355.Count; ++_i356) { - int _elem288; - _elem288 = await iprot.ReadI32Async(cancellationToken); - Encodings.Add(_elem288); + int _elem357; + _elem357 = await iprot.ReadI32Async(cancellationToken); + Encodings.Add(_elem357); } await iprot.ReadListEndAsync(cancellationToken); } @@ -216,13 +264,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list289 = await iprot.ReadListBeginAsync(cancellationToken); - Compressors = new List(_list289.Count); - for(int _i290 = 0; _i290 < _list289.Count; ++_i290) + TList _list358 = await iprot.ReadListBeginAsync(cancellationToken); + Compressors = new List(_list358.Count); + for(int _i359 = 0; _i359 < _list358.Count; ++_i359) { - int _elem291; - _elem291 = await iprot.ReadI32Async(cancellationToken); - Compressors.Add(_elem291); + int _elem360; + _elem360 = await iprot.ReadI32Async(cancellationToken); + Compressors.Add(_elem360); } await iprot.ReadListEndAsync(cancellationToken); } @@ -237,25 +285,25 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list292 = await iprot.ReadListBeginAsync(cancellationToken); - PropsList = new List>(_list292.Count); - for(int _i293 = 0; _i293 < _list292.Count; ++_i293) + TList _list361 = await iprot.ReadListBeginAsync(cancellationToken); + PropsList = new List>(_list361.Count); + for(int _i362 = 0; _i362 < _list361.Count; ++_i362) { - Dictionary _elem294; + Dictionary _elem363; { - TMap _map295 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem294 = new Dictionary(_map295.Count); - for(int _i296 = 0; _i296 < _map295.Count; ++_i296) + TMap _map364 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem363 = new Dictionary(_map364.Count); + for(int _i365 = 0; _i365 < _map364.Count; ++_i365) { - string _key297; - string _val298; - _key297 = await iprot.ReadStringAsync(cancellationToken); - _val298 = await iprot.ReadStringAsync(cancellationToken); - _elem294[_key297] = _val298; + string _key366; + string _val367; + _key366 = await iprot.ReadStringAsync(cancellationToken); + _val367 = await iprot.ReadStringAsync(cancellationToken); + _elem363[_key366] = _val367; } await iprot.ReadMapEndAsync(cancellationToken); } - PropsList.Add(_elem294); + PropsList.Add(_elem363); } await iprot.ReadListEndAsync(cancellationToken); } @@ -269,25 +317,25 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list299 = await iprot.ReadListBeginAsync(cancellationToken); - TagsList = new List>(_list299.Count); - for(int _i300 = 0; _i300 < _list299.Count; ++_i300) + TList _list368 = await iprot.ReadListBeginAsync(cancellationToken); + TagsList = new List>(_list368.Count); + for(int _i369 = 0; _i369 < _list368.Count; ++_i369) { - Dictionary _elem301; + Dictionary _elem370; { - TMap _map302 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem301 = new Dictionary(_map302.Count); - for(int _i303 = 0; _i303 < _map302.Count; ++_i303) + TMap _map371 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem370 = new Dictionary(_map371.Count); + for(int _i372 = 0; _i372 < _map371.Count; ++_i372) { - string _key304; - string _val305; - _key304 = await iprot.ReadStringAsync(cancellationToken); - _val305 = await iprot.ReadStringAsync(cancellationToken); - _elem301[_key304] = _val305; + string _key373; + string _val374; + _key373 = await iprot.ReadStringAsync(cancellationToken); + _val374 = await iprot.ReadStringAsync(cancellationToken); + _elem370[_key373] = _val374; } await iprot.ReadMapEndAsync(cancellationToken); } - TagsList.Add(_elem301); + TagsList.Add(_elem370); } await iprot.ReadListEndAsync(cancellationToken); } @@ -301,25 +349,25 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list306 = await iprot.ReadListBeginAsync(cancellationToken); - AttributesList = new List>(_list306.Count); - for(int _i307 = 0; _i307 < _list306.Count; ++_i307) + TList _list375 = await iprot.ReadListBeginAsync(cancellationToken); + AttributesList = new List>(_list375.Count); + for(int _i376 = 0; _i376 < _list375.Count; ++_i376) { - Dictionary _elem308; + Dictionary _elem377; { - TMap _map309 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem308 = new Dictionary(_map309.Count); - for(int _i310 = 0; _i310 < _map309.Count; ++_i310) + TMap _map378 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem377 = new Dictionary(_map378.Count); + for(int _i379 = 0; _i379 < _map378.Count; ++_i379) { - string _key311; - string _val312; - _key311 = await iprot.ReadStringAsync(cancellationToken); - _val312 = await iprot.ReadStringAsync(cancellationToken); - _elem308[_key311] = _val312; + string _key380; + string _val381; + _key380 = await iprot.ReadStringAsync(cancellationToken); + _val381 = await iprot.ReadStringAsync(cancellationToken); + _elem377[_key380] = _val381; } await iprot.ReadMapEndAsync(cancellationToken); } - AttributesList.Add(_elem308); + AttributesList.Add(_elem377); } await iprot.ReadListEndAsync(cancellationToken); } @@ -333,13 +381,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list313 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementAliasList = new List(_list313.Count); - for(int _i314 = 0; _i314 < _list313.Count; ++_i314) + TList _list382 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementAliasList = new List(_list382.Count); + for(int _i383 = 0; _i383 < _list382.Count; ++_i383) { - string _elem315; - _elem315 = await iprot.ReadStringAsync(cancellationToken); - MeasurementAliasList.Add(_elem315); + string _elem384; + _elem384 = await iprot.ReadStringAsync(cancellationToken); + MeasurementAliasList.Add(_elem384); } await iprot.ReadListEndAsync(cancellationToken); } @@ -385,7 +433,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -399,59 +447,71 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "paths"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Paths != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter316 in Paths) + field.Name = "paths"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter316, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); + foreach (string _iter385 in Paths) + { + await oprot.WriteStringAsync(_iter385, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "dataTypes"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((DataTypes != null)) { - await oprot.WriteListBeginAsync(new TList(TType.I32, DataTypes.Count), cancellationToken); - foreach (int _iter317 in DataTypes) + field.Name = "dataTypes"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteI32Async(_iter317, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, DataTypes.Count), cancellationToken); + foreach (int _iter386 in DataTypes) + { + await oprot.WriteI32Async(_iter386, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "encodings"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Encodings != null)) { - await oprot.WriteListBeginAsync(new TList(TType.I32, Encodings.Count), cancellationToken); - foreach (int _iter318 in Encodings) + field.Name = "encodings"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteI32Async(_iter318, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, Encodings.Count), cancellationToken); + foreach (int _iter387 in Encodings) + { + await oprot.WriteI32Async(_iter387, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "compressors"; - field.Type = TType.List; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Compressors != null)) { - await oprot.WriteListBeginAsync(new TList(TType.I32, Compressors.Count), cancellationToken); - foreach (int _iter319 in Compressors) + field.Name = "compressors"; + field.Type = TType.List; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteI32Async(_iter319, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, Compressors.Count), cancellationToken); + foreach (int _iter388 in Compressors) + { + await oprot.WriteI32Async(_iter388, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - if (PropsList != null && __isset.propsList) + if((PropsList != null) && __isset.propsList) { field.Name = "propsList"; field.Type = TType.List; @@ -459,14 +519,14 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, PropsList.Count), cancellationToken); - foreach (Dictionary _iter320 in PropsList) + foreach (Dictionary _iter389 in PropsList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter320.Count), cancellationToken); - foreach (string _iter321 in _iter320.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter389.Count), cancellationToken); + foreach (string _iter390 in _iter389.Keys) { - await oprot.WriteStringAsync(_iter321, cancellationToken); - await oprot.WriteStringAsync(_iter320[_iter321], cancellationToken); + await oprot.WriteStringAsync(_iter390, cancellationToken); + await oprot.WriteStringAsync(_iter389[_iter390], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -475,7 +535,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke } await oprot.WriteFieldEndAsync(cancellationToken); } - if (TagsList != null && __isset.tagsList) + if((TagsList != null) && __isset.tagsList) { field.Name = "tagsList"; field.Type = TType.List; @@ -483,14 +543,14 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, TagsList.Count), cancellationToken); - foreach (Dictionary _iter322 in TagsList) + foreach (Dictionary _iter391 in TagsList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter322.Count), cancellationToken); - foreach (string _iter323 in _iter322.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter391.Count), cancellationToken); + foreach (string _iter392 in _iter391.Keys) { - await oprot.WriteStringAsync(_iter323, cancellationToken); - await oprot.WriteStringAsync(_iter322[_iter323], cancellationToken); + await oprot.WriteStringAsync(_iter392, cancellationToken); + await oprot.WriteStringAsync(_iter391[_iter392], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -499,7 +559,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke } await oprot.WriteFieldEndAsync(cancellationToken); } - if (AttributesList != null && __isset.attributesList) + if((AttributesList != null) && __isset.attributesList) { field.Name = "attributesList"; field.Type = TType.List; @@ -507,14 +567,14 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, AttributesList.Count), cancellationToken); - foreach (Dictionary _iter324 in AttributesList) + foreach (Dictionary _iter393 in AttributesList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter324.Count), cancellationToken); - foreach (string _iter325 in _iter324.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter393.Count), cancellationToken); + foreach (string _iter394 in _iter393.Keys) { - await oprot.WriteStringAsync(_iter325, cancellationToken); - await oprot.WriteStringAsync(_iter324[_iter325], cancellationToken); + await oprot.WriteStringAsync(_iter394, cancellationToken); + await oprot.WriteStringAsync(_iter393[_iter394], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -523,7 +583,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke } await oprot.WriteFieldEndAsync(cancellationToken); } - if (MeasurementAliasList != null && __isset.measurementAliasList) + if((MeasurementAliasList != null) && __isset.measurementAliasList) { field.Name = "measurementAliasList"; field.Type = TType.List; @@ -531,9 +591,9 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, MeasurementAliasList.Count), cancellationToken); - foreach (string _iter326 in MeasurementAliasList) + foreach (string _iter395 in MeasurementAliasList) { - await oprot.WriteStringAsync(_iter326, cancellationToken); + await oprot.WriteStringAsync(_iter395, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -550,8 +610,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSCreateMultiTimeseriesReq; - if (other == null) return false; + if (!(that is TSCreateMultiTimeseriesReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && TCollections.Equals(Paths, other.Paths) @@ -568,18 +627,38 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); - hashcode = (hashcode * 397) + TCollections.GetHashCode(DataTypes); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Encodings); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Compressors); - if(__isset.propsList) + if((Paths != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); + } + if((DataTypes != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(DataTypes); + } + if((Encodings != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Encodings); + } + if((Compressors != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Compressors); + } + if((PropsList != null) && __isset.propsList) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(PropsList); - if(__isset.tagsList) + } + if((TagsList != null) && __isset.tagsList) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(TagsList); - if(__isset.attributesList) + } + if((AttributesList != null) && __isset.attributesList) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(AttributesList); - if(__isset.measurementAliasList) + } + if((MeasurementAliasList != null) && __isset.measurementAliasList) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementAliasList); + } } return hashcode; } @@ -588,36 +667,48 @@ public override string ToString() { var sb = new StringBuilder("TSCreateMultiTimeseriesReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", Paths: "); - sb.Append(Paths); - sb.Append(", DataTypes: "); - sb.Append(DataTypes); - sb.Append(", Encodings: "); - sb.Append(Encodings); - sb.Append(", Compressors: "); - sb.Append(Compressors); - if (PropsList != null && __isset.propsList) + SessionId.ToString(sb); + if((Paths != null)) + { + sb.Append(", Paths: "); + Paths.ToString(sb); + } + if((DataTypes != null)) + { + sb.Append(", DataTypes: "); + DataTypes.ToString(sb); + } + if((Encodings != null)) + { + sb.Append(", Encodings: "); + Encodings.ToString(sb); + } + if((Compressors != null)) + { + sb.Append(", Compressors: "); + Compressors.ToString(sb); + } + if((PropsList != null) && __isset.propsList) { sb.Append(", PropsList: "); - sb.Append(PropsList); + PropsList.ToString(sb); } - if (TagsList != null && __isset.tagsList) + if((TagsList != null) && __isset.tagsList) { sb.Append(", TagsList: "); - sb.Append(TagsList); + TagsList.ToString(sb); } - if (AttributesList != null && __isset.attributesList) + if((AttributesList != null) && __isset.attributesList) { sb.Append(", AttributesList: "); - sb.Append(AttributesList); + AttributesList.ToString(sb); } - if (MeasurementAliasList != null && __isset.measurementAliasList) + if((MeasurementAliasList != null) && __isset.measurementAliasList) { sb.Append(", MeasurementAliasList: "); - sb.Append(MeasurementAliasList); + MeasurementAliasList.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCreateSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCreateSchemaTemplateReq.cs index 62ec66a..9f618da 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCreateSchemaTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCreateSchemaTemplateReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSCreateSchemaTemplateReq : TBase { @@ -44,7 +49,22 @@ public TSCreateSchemaTemplateReq(long sessionId, string name, byte[] serializedT this.SerializedTemplate = serializedTemplate; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSCreateSchemaTemplateReq DeepCopy() + { + var tmp405 = new TSCreateSchemaTemplateReq(); + tmp405.SessionId = this.SessionId; + if((Name != null)) + { + tmp405.Name = this.Name; + } + if((SerializedTemplate != null)) + { + tmp405.SerializedTemplate = this.SerializedTemplate.ToArray(); + } + return tmp405; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -125,7 +145,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -139,18 +159,24 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "name"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Name, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "serializedTemplate"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteBinaryAsync(SerializedTemplate, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((Name != null)) + { + field.Name = "name"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Name, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((SerializedTemplate != null)) + { + field.Name = "serializedTemplate"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBinaryAsync(SerializedTemplate, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -162,8 +188,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSCreateSchemaTemplateReq; - if (other == null) return false; + if (!(that is TSCreateSchemaTemplateReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(Name, other.Name) @@ -174,8 +199,14 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + Name.GetHashCode(); - hashcode = (hashcode * 397) + SerializedTemplate.GetHashCode(); + if((Name != null)) + { + hashcode = (hashcode * 397) + Name.GetHashCode(); + } + if((SerializedTemplate != null)) + { + hashcode = (hashcode * 397) + SerializedTemplate.GetHashCode(); + } } return hashcode; } @@ -184,12 +215,18 @@ public override string ToString() { var sb = new StringBuilder("TSCreateSchemaTemplateReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", Name: "); - sb.Append(Name); - sb.Append(", SerializedTemplate: "); - sb.Append(SerializedTemplate); - sb.Append(")"); + SessionId.ToString(sb); + if((Name != null)) + { + sb.Append(", Name: "); + Name.ToString(sb); + } + if((SerializedTemplate != null)) + { + sb.Append(", SerializedTemplate: "); + SerializedTemplate.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCreateTimeseriesReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCreateTimeseriesReq.cs index 1c86c7c..7d65aa6 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCreateTimeseriesReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCreateTimeseriesReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSCreateTimeseriesReq : TBase { @@ -116,7 +121,41 @@ public TSCreateTimeseriesReq(long sessionId, string path, int dataType, int enco this.Compressor = compressor; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSCreateTimeseriesReq DeepCopy() + { + var tmp261 = new TSCreateTimeseriesReq(); + tmp261.SessionId = this.SessionId; + if((Path != null)) + { + tmp261.Path = this.Path; + } + tmp261.DataType = this.DataType; + tmp261.Encoding = this.Encoding; + tmp261.Compressor = this.Compressor; + if((Props != null) && __isset.props) + { + tmp261.Props = this.Props.DeepCopy(); + } + tmp261.__isset.props = this.__isset.props; + if((Tags != null) && __isset.tags) + { + tmp261.Tags = this.Tags.DeepCopy(); + } + tmp261.__isset.tags = this.__isset.tags; + if((Attributes != null) && __isset.attributes) + { + tmp261.Attributes = this.Attributes.DeepCopy(); + } + tmp261.__isset.attributes = this.__isset.attributes; + if((MeasurementAlias != null) && __isset.measurementAlias) + { + tmp261.MeasurementAlias = this.MeasurementAlias; + } + tmp261.__isset.measurementAlias = this.__isset.measurementAlias; + return tmp261; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -197,15 +236,15 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.Map) { { - TMap _map207 = await iprot.ReadMapBeginAsync(cancellationToken); - Props = new Dictionary(_map207.Count); - for(int _i208 = 0; _i208 < _map207.Count; ++_i208) + TMap _map262 = await iprot.ReadMapBeginAsync(cancellationToken); + Props = new Dictionary(_map262.Count); + for(int _i263 = 0; _i263 < _map262.Count; ++_i263) { - string _key209; - string _val210; - _key209 = await iprot.ReadStringAsync(cancellationToken); - _val210 = await iprot.ReadStringAsync(cancellationToken); - Props[_key209] = _val210; + string _key264; + string _val265; + _key264 = await iprot.ReadStringAsync(cancellationToken); + _val265 = await iprot.ReadStringAsync(cancellationToken); + Props[_key264] = _val265; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -219,15 +258,15 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.Map) { { - TMap _map211 = await iprot.ReadMapBeginAsync(cancellationToken); - Tags = new Dictionary(_map211.Count); - for(int _i212 = 0; _i212 < _map211.Count; ++_i212) + TMap _map266 = await iprot.ReadMapBeginAsync(cancellationToken); + Tags = new Dictionary(_map266.Count); + for(int _i267 = 0; _i267 < _map266.Count; ++_i267) { - string _key213; - string _val214; - _key213 = await iprot.ReadStringAsync(cancellationToken); - _val214 = await iprot.ReadStringAsync(cancellationToken); - Tags[_key213] = _val214; + string _key268; + string _val269; + _key268 = await iprot.ReadStringAsync(cancellationToken); + _val269 = await iprot.ReadStringAsync(cancellationToken); + Tags[_key268] = _val269; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -241,15 +280,15 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.Map) { { - TMap _map215 = await iprot.ReadMapBeginAsync(cancellationToken); - Attributes = new Dictionary(_map215.Count); - for(int _i216 = 0; _i216 < _map215.Count; ++_i216) + TMap _map270 = await iprot.ReadMapBeginAsync(cancellationToken); + Attributes = new Dictionary(_map270.Count); + for(int _i271 = 0; _i271 < _map270.Count; ++_i271) { - string _key217; - string _val218; - _key217 = await iprot.ReadStringAsync(cancellationToken); - _val218 = await iprot.ReadStringAsync(cancellationToken); - Attributes[_key217] = _val218; + string _key272; + string _val273; + _key272 = await iprot.ReadStringAsync(cancellationToken); + _val273 = await iprot.ReadStringAsync(cancellationToken); + Attributes[_key272] = _val273; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -305,7 +344,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -319,12 +358,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "path"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Path, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((Path != null)) + { + field.Name = "path"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Path, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } field.Name = "dataType"; field.Type = TType.I32; field.ID = 3; @@ -343,7 +385,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(Compressor, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if (Props != null && __isset.props) + if((Props != null) && __isset.props) { field.Name = "props"; field.Type = TType.Map; @@ -351,16 +393,16 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Props.Count), cancellationToken); - foreach (string _iter219 in Props.Keys) + foreach (string _iter274 in Props.Keys) { - await oprot.WriteStringAsync(_iter219, cancellationToken); - await oprot.WriteStringAsync(Props[_iter219], cancellationToken); + await oprot.WriteStringAsync(_iter274, cancellationToken); + await oprot.WriteStringAsync(Props[_iter274], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if (Tags != null && __isset.tags) + if((Tags != null) && __isset.tags) { field.Name = "tags"; field.Type = TType.Map; @@ -368,16 +410,16 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Tags.Count), cancellationToken); - foreach (string _iter220 in Tags.Keys) + foreach (string _iter275 in Tags.Keys) { - await oprot.WriteStringAsync(_iter220, cancellationToken); - await oprot.WriteStringAsync(Tags[_iter220], cancellationToken); + await oprot.WriteStringAsync(_iter275, cancellationToken); + await oprot.WriteStringAsync(Tags[_iter275], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if (Attributes != null && __isset.attributes) + if((Attributes != null) && __isset.attributes) { field.Name = "attributes"; field.Type = TType.Map; @@ -385,16 +427,16 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Attributes.Count), cancellationToken); - foreach (string _iter221 in Attributes.Keys) + foreach (string _iter276 in Attributes.Keys) { - await oprot.WriteStringAsync(_iter221, cancellationToken); - await oprot.WriteStringAsync(Attributes[_iter221], cancellationToken); + await oprot.WriteStringAsync(_iter276, cancellationToken); + await oprot.WriteStringAsync(Attributes[_iter276], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if (MeasurementAlias != null && __isset.measurementAlias) + if((MeasurementAlias != null) && __isset.measurementAlias) { field.Name = "measurementAlias"; field.Type = TType.String; @@ -414,8 +456,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSCreateTimeseriesReq; - if (other == null) return false; + if (!(that is TSCreateTimeseriesReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(Path, other.Path) @@ -432,18 +473,29 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + Path.GetHashCode(); + if((Path != null)) + { + hashcode = (hashcode * 397) + Path.GetHashCode(); + } hashcode = (hashcode * 397) + DataType.GetHashCode(); hashcode = (hashcode * 397) + Encoding.GetHashCode(); hashcode = (hashcode * 397) + Compressor.GetHashCode(); - if(__isset.props) + if((Props != null) && __isset.props) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(Props); - if(__isset.tags) + } + if((Tags != null) && __isset.tags) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(Tags); - if(__isset.attributes) + } + if((Attributes != null) && __isset.attributes) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(Attributes); - if(__isset.measurementAlias) + } + if((MeasurementAlias != null) && __isset.measurementAlias) + { hashcode = (hashcode * 397) + MeasurementAlias.GetHashCode(); + } } return hashcode; } @@ -452,36 +504,39 @@ public override string ToString() { var sb = new StringBuilder("TSCreateTimeseriesReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", Path: "); - sb.Append(Path); + SessionId.ToString(sb); + if((Path != null)) + { + sb.Append(", Path: "); + Path.ToString(sb); + } sb.Append(", DataType: "); - sb.Append(DataType); + DataType.ToString(sb); sb.Append(", Encoding: "); - sb.Append(Encoding); + Encoding.ToString(sb); sb.Append(", Compressor: "); - sb.Append(Compressor); - if (Props != null && __isset.props) + Compressor.ToString(sb); + if((Props != null) && __isset.props) { sb.Append(", Props: "); - sb.Append(Props); + Props.ToString(sb); } - if (Tags != null && __isset.tags) + if((Tags != null) && __isset.tags) { sb.Append(", Tags: "); - sb.Append(Tags); + Tags.ToString(sb); } - if (Attributes != null && __isset.attributes) + if((Attributes != null) && __isset.attributes) { sb.Append(", Attributes: "); - sb.Append(Attributes); + Attributes.ToString(sb); } - if (MeasurementAlias != null && __isset.measurementAlias) + if((MeasurementAlias != null) && __isset.measurementAlias) { sb.Append(", MeasurementAlias: "); - sb.Append(MeasurementAlias); + MeasurementAlias.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSDeleteDataReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSDeleteDataReq.cs index 279d7eb..78cdcc7 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSDeleteDataReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSDeleteDataReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSDeleteDataReq : TBase { @@ -47,7 +52,20 @@ public TSDeleteDataReq(long sessionId, List paths, long startTime, long this.EndTime = endTime; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSDeleteDataReq DeepCopy() + { + var tmp255 = new TSDeleteDataReq(); + tmp255.SessionId = this.SessionId; + if((Paths != null)) + { + tmp255.Paths = this.Paths.DeepCopy(); + } + tmp255.StartTime = this.StartTime; + tmp255.EndTime = this.EndTime; + return tmp255; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -83,13 +101,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list203 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list203.Count); - for(int _i204 = 0; _i204 < _list203.Count; ++_i204) + TList _list256 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list256.Count); + for(int _i257 = 0; _i257 < _list256.Count; ++_i257) { - string _elem205; - _elem205 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem205); + string _elem258; + _elem258 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem258); } await iprot.ReadListEndAsync(cancellationToken); } @@ -154,7 +172,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -168,19 +186,22 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "paths"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Paths != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter206 in Paths) + field.Name = "paths"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter206, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); + foreach (string _iter259 in Paths) + { + await oprot.WriteStringAsync(_iter259, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "startTime"; field.Type = TType.I64; field.ID = 3; @@ -204,8 +225,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSDeleteDataReq; - if (other == null) return false; + if (!(that is TSDeleteDataReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && TCollections.Equals(Paths, other.Paths) @@ -217,7 +237,10 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); + if((Paths != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); + } hashcode = (hashcode * 397) + StartTime.GetHashCode(); hashcode = (hashcode * 397) + EndTime.GetHashCode(); } @@ -228,14 +251,17 @@ public override string ToString() { var sb = new StringBuilder("TSDeleteDataReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", Paths: "); - sb.Append(Paths); + SessionId.ToString(sb); + if((Paths != null)) + { + sb.Append(", Paths: "); + Paths.ToString(sb); + } sb.Append(", StartTime: "); - sb.Append(StartTime); + StartTime.ToString(sb); sb.Append(", EndTime: "); - sb.Append(EndTime); - sb.Append(")"); + EndTime.ToString(sb); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSDropSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSDropSchemaTemplateReq.cs index 31ddda2..406cb92 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSDropSchemaTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSDropSchemaTemplateReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSDropSchemaTemplateReq : TBase { @@ -41,7 +46,18 @@ public TSDropSchemaTemplateReq(long sessionId, string templateName) : this() this.TemplateName = templateName; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSDropSchemaTemplateReq DeepCopy() + { + var tmp437 = new TSDropSchemaTemplateReq(); + tmp437.SessionId = this.SessionId; + if((TemplateName != null)) + { + tmp437.TemplateName = this.TemplateName; + } + return tmp437; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -106,7 +122,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -120,12 +136,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "templateName"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(TemplateName, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((TemplateName != null)) + { + field.Name = "templateName"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(TemplateName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -137,8 +156,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSDropSchemaTemplateReq; - if (other == null) return false; + if (!(that is TSDropSchemaTemplateReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(TemplateName, other.TemplateName); @@ -148,7 +166,10 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + TemplateName.GetHashCode(); + if((TemplateName != null)) + { + hashcode = (hashcode * 397) + TemplateName.GetHashCode(); + } } return hashcode; } @@ -157,10 +178,13 @@ public override string ToString() { var sb = new StringBuilder("TSDropSchemaTemplateReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", TemplateName: "); - sb.Append(TemplateName); - sb.Append(")"); + SessionId.ToString(sb); + if((TemplateName != null)) + { + sb.Append(", TemplateName: "); + TemplateName.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSExecuteBatchStatementReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSExecuteBatchStatementReq.cs index b53b994..6aeea3f 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSExecuteBatchStatementReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSExecuteBatchStatementReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSExecuteBatchStatementReq : TBase { @@ -41,7 +46,18 @@ public TSExecuteBatchStatementReq(long sessionId, List statements) : thi this.Statements = statements; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSExecuteBatchStatementReq DeepCopy() + { + var tmp75 = new TSExecuteBatchStatementReq(); + tmp75.SessionId = this.SessionId; + if((Statements != null)) + { + tmp75.Statements = this.Statements.DeepCopy(); + } + return tmp75; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -75,13 +91,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list59 = await iprot.ReadListBeginAsync(cancellationToken); - Statements = new List(_list59.Count); - for(int _i60 = 0; _i60 < _list59.Count; ++_i60) + TList _list76 = await iprot.ReadListBeginAsync(cancellationToken); + Statements = new List(_list76.Count); + for(int _i77 = 0; _i77 < _list76.Count; ++_i77) { - string _elem61; - _elem61 = await iprot.ReadStringAsync(cancellationToken); - Statements.Add(_elem61); + string _elem78; + _elem78 = await iprot.ReadStringAsync(cancellationToken); + Statements.Add(_elem78); } await iprot.ReadListEndAsync(cancellationToken); } @@ -116,7 +132,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -130,19 +146,22 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "statements"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Statements != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, Statements.Count), cancellationToken); - foreach (string _iter62 in Statements) + field.Name = "statements"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter62, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Statements.Count), cancellationToken); + foreach (string _iter79 in Statements) + { + await oprot.WriteStringAsync(_iter79, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -154,8 +173,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSExecuteBatchStatementReq; - if (other == null) return false; + if (!(that is TSExecuteBatchStatementReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && TCollections.Equals(Statements, other.Statements); @@ -165,7 +183,10 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Statements); + if((Statements != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Statements); + } } return hashcode; } @@ -174,10 +195,13 @@ public override string ToString() { var sb = new StringBuilder("TSExecuteBatchStatementReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", Statements: "); - sb.Append(Statements); - sb.Append(")"); + SessionId.ToString(sb); + if((Statements != null)) + { + sb.Append(", Statements: "); + Statements.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementReq.cs index b943cf9..4dae933 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSExecuteStatementReq : TBase { @@ -110,7 +115,39 @@ public TSExecuteStatementReq(long sessionId, string statement, long statementId) this.StatementId = statementId; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSExecuteStatementReq DeepCopy() + { + var tmp73 = new TSExecuteStatementReq(); + tmp73.SessionId = this.SessionId; + if((Statement != null)) + { + tmp73.Statement = this.Statement; + } + tmp73.StatementId = this.StatementId; + if(__isset.fetchSize) + { + tmp73.FetchSize = this.FetchSize; + } + tmp73.__isset.fetchSize = this.__isset.fetchSize; + if(__isset.timeout) + { + tmp73.Timeout = this.Timeout; + } + tmp73.__isset.timeout = this.__isset.timeout; + if(__isset.enableRedirectQuery) + { + tmp73.EnableRedirectQuery = this.EnableRedirectQuery; + } + tmp73.__isset.enableRedirectQuery = this.__isset.enableRedirectQuery; + if(__isset.jdbcQuery) + { + tmp73.JdbcQuery = this.JdbcQuery; + } + tmp73.__isset.jdbcQuery = this.__isset.jdbcQuery; + return tmp73; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -231,7 +268,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -245,19 +282,22 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "statement"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Statement, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((Statement != null)) + { + field.Name = "statement"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Statement, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } field.Name = "statementId"; field.Type = TType.I64; field.ID = 3; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(StatementId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.fetchSize) + if(__isset.fetchSize) { field.Name = "fetchSize"; field.Type = TType.I32; @@ -266,7 +306,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI32Async(FetchSize, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.timeout) + if(__isset.timeout) { field.Name = "timeout"; field.Type = TType.I64; @@ -275,7 +315,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI64Async(Timeout, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.enableRedirectQuery) + if(__isset.enableRedirectQuery) { field.Name = "enableRedirectQuery"; field.Type = TType.Bool; @@ -284,7 +324,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteBoolAsync(EnableRedirectQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.jdbcQuery) + if(__isset.jdbcQuery) { field.Name = "jdbcQuery"; field.Type = TType.Bool; @@ -304,8 +344,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSExecuteStatementReq; - if (other == null) return false; + if (!(that is TSExecuteStatementReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(Statement, other.Statement) @@ -320,16 +359,27 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + Statement.GetHashCode(); + if((Statement != null)) + { + hashcode = (hashcode * 397) + Statement.GetHashCode(); + } hashcode = (hashcode * 397) + StatementId.GetHashCode(); if(__isset.fetchSize) + { hashcode = (hashcode * 397) + FetchSize.GetHashCode(); + } if(__isset.timeout) + { hashcode = (hashcode * 397) + Timeout.GetHashCode(); + } if(__isset.enableRedirectQuery) + { hashcode = (hashcode * 397) + EnableRedirectQuery.GetHashCode(); + } if(__isset.jdbcQuery) + { hashcode = (hashcode * 397) + JdbcQuery.GetHashCode(); + } } return hashcode; } @@ -338,32 +388,35 @@ public override string ToString() { var sb = new StringBuilder("TSExecuteStatementReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", Statement: "); - sb.Append(Statement); + SessionId.ToString(sb); + if((Statement != null)) + { + sb.Append(", Statement: "); + Statement.ToString(sb); + } sb.Append(", StatementId: "); - sb.Append(StatementId); - if (__isset.fetchSize) + StatementId.ToString(sb); + if(__isset.fetchSize) { sb.Append(", FetchSize: "); - sb.Append(FetchSize); + FetchSize.ToString(sb); } - if (__isset.timeout) + if(__isset.timeout) { sb.Append(", Timeout: "); - sb.Append(Timeout); + Timeout.ToString(sb); } - if (__isset.enableRedirectQuery) + if(__isset.enableRedirectQuery) { sb.Append(", EnableRedirectQuery: "); - sb.Append(EnableRedirectQuery); + EnableRedirectQuery.ToString(sb); } - if (__isset.jdbcQuery) + if(__isset.jdbcQuery) { sb.Append(", JdbcQuery: "); - sb.Append(JdbcQuery); + JdbcQuery.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementResp.cs index 50f21a2..790850d 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSExecuteStatementResp : TBase { @@ -239,7 +244,82 @@ public TSExecuteStatementResp(TSStatus status) : this() this.Status = status; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSExecuteStatementResp DeepCopy() + { + var tmp30 = new TSExecuteStatementResp(); + if((Status != null)) + { + tmp30.Status = (TSStatus)this.Status.DeepCopy(); + } + if(__isset.queryId) + { + tmp30.QueryId = this.QueryId; + } + tmp30.__isset.queryId = this.__isset.queryId; + if((Columns != null) && __isset.columns) + { + tmp30.Columns = this.Columns.DeepCopy(); + } + tmp30.__isset.columns = this.__isset.columns; + if((OperationType != null) && __isset.operationType) + { + tmp30.OperationType = this.OperationType; + } + tmp30.__isset.operationType = this.__isset.operationType; + if(__isset.ignoreTimeStamp) + { + tmp30.IgnoreTimeStamp = this.IgnoreTimeStamp; + } + tmp30.__isset.ignoreTimeStamp = this.__isset.ignoreTimeStamp; + if((DataTypeList != null) && __isset.dataTypeList) + { + tmp30.DataTypeList = this.DataTypeList.DeepCopy(); + } + tmp30.__isset.dataTypeList = this.__isset.dataTypeList; + if((QueryDataSet != null) && __isset.queryDataSet) + { + tmp30.QueryDataSet = (TSQueryDataSet)this.QueryDataSet.DeepCopy(); + } + tmp30.__isset.queryDataSet = this.__isset.queryDataSet; + if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) + { + tmp30.NonAlignQueryDataSet = (TSQueryNonAlignDataSet)this.NonAlignQueryDataSet.DeepCopy(); + } + tmp30.__isset.nonAlignQueryDataSet = this.__isset.nonAlignQueryDataSet; + if((ColumnNameIndexMap != null) && __isset.columnNameIndexMap) + { + tmp30.ColumnNameIndexMap = this.ColumnNameIndexMap.DeepCopy(); + } + tmp30.__isset.columnNameIndexMap = this.__isset.columnNameIndexMap; + if((SgColumns != null) && __isset.sgColumns) + { + tmp30.SgColumns = this.SgColumns.DeepCopy(); + } + tmp30.__isset.sgColumns = this.__isset.sgColumns; + if((AliasColumns != null) && __isset.aliasColumns) + { + tmp30.AliasColumns = this.AliasColumns.DeepCopy(); + } + tmp30.__isset.aliasColumns = this.__isset.aliasColumns; + if((TracingInfo != null) && __isset.tracingInfo) + { + tmp30.TracingInfo = (TSTracingInfo)this.TracingInfo.DeepCopy(); + } + tmp30.__isset.tracingInfo = this.__isset.tracingInfo; + if((QueryResult != null) && __isset.queryResult) + { + tmp30.QueryResult = this.QueryResult.DeepCopy(); + } + tmp30.__isset.queryResult = this.__isset.queryResult; + if(__isset.moreData) + { + tmp30.MoreData = this.MoreData; + } + tmp30.__isset.moreData = this.__isset.moreData; + return tmp30; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -283,13 +363,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list24 = await iprot.ReadListBeginAsync(cancellationToken); - Columns = new List(_list24.Count); - for(int _i25 = 0; _i25 < _list24.Count; ++_i25) + TList _list31 = await iprot.ReadListBeginAsync(cancellationToken); + Columns = new List(_list31.Count); + for(int _i32 = 0; _i32 < _list31.Count; ++_i32) { - string _elem26; - _elem26 = await iprot.ReadStringAsync(cancellationToken); - Columns.Add(_elem26); + string _elem33; + _elem33 = await iprot.ReadStringAsync(cancellationToken); + Columns.Add(_elem33); } await iprot.ReadListEndAsync(cancellationToken); } @@ -323,13 +403,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list27 = await iprot.ReadListBeginAsync(cancellationToken); - DataTypeList = new List(_list27.Count); - for(int _i28 = 0; _i28 < _list27.Count; ++_i28) + TList _list34 = await iprot.ReadListBeginAsync(cancellationToken); + DataTypeList = new List(_list34.Count); + for(int _i35 = 0; _i35 < _list34.Count; ++_i35) { - string _elem29; - _elem29 = await iprot.ReadStringAsync(cancellationToken); - DataTypeList.Add(_elem29); + string _elem36; + _elem36 = await iprot.ReadStringAsync(cancellationToken); + DataTypeList.Add(_elem36); } await iprot.ReadListEndAsync(cancellationToken); } @@ -365,15 +445,15 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.Map) { { - TMap _map30 = await iprot.ReadMapBeginAsync(cancellationToken); - ColumnNameIndexMap = new Dictionary(_map30.Count); - for(int _i31 = 0; _i31 < _map30.Count; ++_i31) + TMap _map37 = await iprot.ReadMapBeginAsync(cancellationToken); + ColumnNameIndexMap = new Dictionary(_map37.Count); + for(int _i38 = 0; _i38 < _map37.Count; ++_i38) { - string _key32; - int _val33; - _key32 = await iprot.ReadStringAsync(cancellationToken); - _val33 = await iprot.ReadI32Async(cancellationToken); - ColumnNameIndexMap[_key32] = _val33; + string _key39; + int _val40; + _key39 = await iprot.ReadStringAsync(cancellationToken); + _val40 = await iprot.ReadI32Async(cancellationToken); + ColumnNameIndexMap[_key39] = _val40; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -387,13 +467,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list34 = await iprot.ReadListBeginAsync(cancellationToken); - SgColumns = new List(_list34.Count); - for(int _i35 = 0; _i35 < _list34.Count; ++_i35) + TList _list41 = await iprot.ReadListBeginAsync(cancellationToken); + SgColumns = new List(_list41.Count); + for(int _i42 = 0; _i42 < _list41.Count; ++_i42) { - string _elem36; - _elem36 = await iprot.ReadStringAsync(cancellationToken); - SgColumns.Add(_elem36); + string _elem43; + _elem43 = await iprot.ReadStringAsync(cancellationToken); + SgColumns.Add(_elem43); } await iprot.ReadListEndAsync(cancellationToken); } @@ -407,13 +487,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list37 = await iprot.ReadListBeginAsync(cancellationToken); - AliasColumns = new List(_list37.Count); - for(int _i38 = 0; _i38 < _list37.Count; ++_i38) + TList _list44 = await iprot.ReadListBeginAsync(cancellationToken); + AliasColumns = new List(_list44.Count); + for(int _i45 = 0; _i45 < _list44.Count; ++_i45) { - sbyte _elem39; - _elem39 = await iprot.ReadByteAsync(cancellationToken); - AliasColumns.Add(_elem39); + sbyte _elem46; + _elem46 = await iprot.ReadByteAsync(cancellationToken); + AliasColumns.Add(_elem46); } await iprot.ReadListEndAsync(cancellationToken); } @@ -438,13 +518,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list40 = await iprot.ReadListBeginAsync(cancellationToken); - QueryResult = new List(_list40.Count); - for(int _i41 = 0; _i41 < _list40.Count; ++_i41) + TList _list47 = await iprot.ReadListBeginAsync(cancellationToken); + QueryResult = new List(_list47.Count); + for(int _i48 = 0; _i48 < _list47.Count; ++_i48) { - byte[] _elem42; - _elem42 = await iprot.ReadBinaryAsync(cancellationToken); - QueryResult.Add(_elem42); + byte[] _elem49; + _elem49 = await iprot.ReadBinaryAsync(cancellationToken); + QueryResult.Add(_elem49); } await iprot.ReadListEndAsync(cancellationToken); } @@ -484,7 +564,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -492,13 +572,16 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSExecuteStatementResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.queryId) + if((Status != null)) + { + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.queryId) { field.Name = "queryId"; field.Type = TType.I64; @@ -507,7 +590,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI64Async(QueryId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (Columns != null && __isset.columns) + if((Columns != null) && __isset.columns) { field.Name = "columns"; field.Type = TType.List; @@ -515,15 +598,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Columns.Count), cancellationToken); - foreach (string _iter43 in Columns) + foreach (string _iter50 in Columns) { - await oprot.WriteStringAsync(_iter43, cancellationToken); + await oprot.WriteStringAsync(_iter50, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if (OperationType != null && __isset.operationType) + if((OperationType != null) && __isset.operationType) { field.Name = "operationType"; field.Type = TType.String; @@ -532,7 +615,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteStringAsync(OperationType, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.ignoreTimeStamp) + if(__isset.ignoreTimeStamp) { field.Name = "ignoreTimeStamp"; field.Type = TType.Bool; @@ -541,7 +624,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteBoolAsync(IgnoreTimeStamp, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (DataTypeList != null && __isset.dataTypeList) + if((DataTypeList != null) && __isset.dataTypeList) { field.Name = "dataTypeList"; field.Type = TType.List; @@ -549,15 +632,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, DataTypeList.Count), cancellationToken); - foreach (string _iter44 in DataTypeList) + foreach (string _iter51 in DataTypeList) { - await oprot.WriteStringAsync(_iter44, cancellationToken); + await oprot.WriteStringAsync(_iter51, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if (QueryDataSet != null && __isset.queryDataSet) + if((QueryDataSet != null) && __isset.queryDataSet) { field.Name = "queryDataSet"; field.Type = TType.Struct; @@ -566,7 +649,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await QueryDataSet.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (NonAlignQueryDataSet != null && __isset.nonAlignQueryDataSet) + if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) { field.Name = "nonAlignQueryDataSet"; field.Type = TType.Struct; @@ -575,7 +658,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await NonAlignQueryDataSet.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (ColumnNameIndexMap != null && __isset.columnNameIndexMap) + if((ColumnNameIndexMap != null) && __isset.columnNameIndexMap) { field.Name = "columnNameIndexMap"; field.Type = TType.Map; @@ -583,16 +666,16 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.I32, ColumnNameIndexMap.Count), cancellationToken); - foreach (string _iter45 in ColumnNameIndexMap.Keys) + foreach (string _iter52 in ColumnNameIndexMap.Keys) { - await oprot.WriteStringAsync(_iter45, cancellationToken); - await oprot.WriteI32Async(ColumnNameIndexMap[_iter45], cancellationToken); + await oprot.WriteStringAsync(_iter52, cancellationToken); + await oprot.WriteI32Async(ColumnNameIndexMap[_iter52], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if (SgColumns != null && __isset.sgColumns) + if((SgColumns != null) && __isset.sgColumns) { field.Name = "sgColumns"; field.Type = TType.List; @@ -600,15 +683,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, SgColumns.Count), cancellationToken); - foreach (string _iter46 in SgColumns) + foreach (string _iter53 in SgColumns) { - await oprot.WriteStringAsync(_iter46, cancellationToken); + await oprot.WriteStringAsync(_iter53, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if (AliasColumns != null && __isset.aliasColumns) + if((AliasColumns != null) && __isset.aliasColumns) { field.Name = "aliasColumns"; field.Type = TType.List; @@ -616,15 +699,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Byte, AliasColumns.Count), cancellationToken); - foreach (sbyte _iter47 in AliasColumns) + foreach (sbyte _iter54 in AliasColumns) { - await oprot.WriteByteAsync(_iter47, cancellationToken); + await oprot.WriteByteAsync(_iter54, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if (TracingInfo != null && __isset.tracingInfo) + if((TracingInfo != null) && __isset.tracingInfo) { field.Name = "tracingInfo"; field.Type = TType.Struct; @@ -633,7 +716,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await TracingInfo.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (QueryResult != null && __isset.queryResult) + if((QueryResult != null) && __isset.queryResult) { field.Name = "queryResult"; field.Type = TType.List; @@ -641,15 +724,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, QueryResult.Count), cancellationToken); - foreach (byte[] _iter48 in QueryResult) + foreach (byte[] _iter55 in QueryResult) { - await oprot.WriteBinaryAsync(_iter48, cancellationToken); + await oprot.WriteBinaryAsync(_iter55, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.moreData) + if(__isset.moreData) { field.Name = "moreData"; field.Type = TType.Bool; @@ -669,8 +752,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSExecuteStatementResp; - if (other == null) return false; + if (!(that is TSExecuteStatementResp other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && ((__isset.queryId == other.__isset.queryId) && ((!__isset.queryId) || (System.Object.Equals(QueryId, other.QueryId)))) @@ -691,33 +773,62 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + Status.GetHashCode(); + if((Status != null)) + { + hashcode = (hashcode * 397) + Status.GetHashCode(); + } if(__isset.queryId) + { hashcode = (hashcode * 397) + QueryId.GetHashCode(); - if(__isset.columns) + } + if((Columns != null) && __isset.columns) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(Columns); - if(__isset.operationType) + } + if((OperationType != null) && __isset.operationType) + { hashcode = (hashcode * 397) + OperationType.GetHashCode(); + } if(__isset.ignoreTimeStamp) + { hashcode = (hashcode * 397) + IgnoreTimeStamp.GetHashCode(); - if(__isset.dataTypeList) + } + if((DataTypeList != null) && __isset.dataTypeList) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(DataTypeList); - if(__isset.queryDataSet) + } + if((QueryDataSet != null) && __isset.queryDataSet) + { hashcode = (hashcode * 397) + QueryDataSet.GetHashCode(); - if(__isset.nonAlignQueryDataSet) + } + if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) + { hashcode = (hashcode * 397) + NonAlignQueryDataSet.GetHashCode(); - if(__isset.columnNameIndexMap) + } + if((ColumnNameIndexMap != null) && __isset.columnNameIndexMap) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(ColumnNameIndexMap); - if(__isset.sgColumns) + } + if((SgColumns != null) && __isset.sgColumns) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(SgColumns); - if(__isset.aliasColumns) + } + if((AliasColumns != null) && __isset.aliasColumns) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(AliasColumns); - if(__isset.tracingInfo) + } + if((TracingInfo != null) && __isset.tracingInfo) + { hashcode = (hashcode * 397) + TracingInfo.GetHashCode(); - if(__isset.queryResult) + } + if((QueryResult != null) && __isset.queryResult) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(QueryResult); + } if(__isset.moreData) + { hashcode = (hashcode * 397) + MoreData.GetHashCode(); + } } return hashcode; } @@ -725,74 +836,77 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSExecuteStatementResp("); - sb.Append(", Status: "); - sb.Append(Status== null ? "" : Status.ToString()); - if (__isset.queryId) + if((Status != null)) + { + sb.Append(", Status: "); + Status.ToString(sb); + } + if(__isset.queryId) { sb.Append(", QueryId: "); - sb.Append(QueryId); + QueryId.ToString(sb); } - if (Columns != null && __isset.columns) + if((Columns != null) && __isset.columns) { sb.Append(", Columns: "); - sb.Append(Columns); + Columns.ToString(sb); } - if (OperationType != null && __isset.operationType) + if((OperationType != null) && __isset.operationType) { sb.Append(", OperationType: "); - sb.Append(OperationType); + OperationType.ToString(sb); } - if (__isset.ignoreTimeStamp) + if(__isset.ignoreTimeStamp) { sb.Append(", IgnoreTimeStamp: "); - sb.Append(IgnoreTimeStamp); + IgnoreTimeStamp.ToString(sb); } - if (DataTypeList != null && __isset.dataTypeList) + if((DataTypeList != null) && __isset.dataTypeList) { sb.Append(", DataTypeList: "); - sb.Append(DataTypeList); + DataTypeList.ToString(sb); } - if (QueryDataSet != null && __isset.queryDataSet) + if((QueryDataSet != null) && __isset.queryDataSet) { sb.Append(", QueryDataSet: "); - sb.Append(QueryDataSet== null ? "" : QueryDataSet.ToString()); + QueryDataSet.ToString(sb); } - if (NonAlignQueryDataSet != null && __isset.nonAlignQueryDataSet) + if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) { sb.Append(", NonAlignQueryDataSet: "); - sb.Append(NonAlignQueryDataSet== null ? "" : NonAlignQueryDataSet.ToString()); + NonAlignQueryDataSet.ToString(sb); } - if (ColumnNameIndexMap != null && __isset.columnNameIndexMap) + if((ColumnNameIndexMap != null) && __isset.columnNameIndexMap) { sb.Append(", ColumnNameIndexMap: "); - sb.Append(ColumnNameIndexMap); + ColumnNameIndexMap.ToString(sb); } - if (SgColumns != null && __isset.sgColumns) + if((SgColumns != null) && __isset.sgColumns) { sb.Append(", SgColumns: "); - sb.Append(SgColumns); + SgColumns.ToString(sb); } - if (AliasColumns != null && __isset.aliasColumns) + if((AliasColumns != null) && __isset.aliasColumns) { sb.Append(", AliasColumns: "); - sb.Append(AliasColumns); + AliasColumns.ToString(sb); } - if (TracingInfo != null && __isset.tracingInfo) + if((TracingInfo != null) && __isset.tracingInfo) { sb.Append(", TracingInfo: "); - sb.Append(TracingInfo== null ? "" : TracingInfo.ToString()); + TracingInfo.ToString(sb); } - if (QueryResult != null && __isset.queryResult) + if((QueryResult != null) && __isset.queryResult) { sb.Append(", QueryResult: "); - sb.Append(QueryResult); + QueryResult.ToString(sb); } - if (__isset.moreData) + if(__isset.moreData) { sb.Append(", MoreData: "); - sb.Append(MoreData); + MoreData.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOneDeviceReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOneDeviceReq.cs index d81c273..511a42e 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOneDeviceReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOneDeviceReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSFastLastDataQueryForOneDeviceReq : TBase { @@ -131,7 +136,52 @@ public TSFastLastDataQueryForOneDeviceReq(long sessionId, string db, string devi this.StatementId = statementId; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSFastLastDataQueryForOneDeviceReq DeepCopy() + { + var tmp330 = new TSFastLastDataQueryForOneDeviceReq(); + tmp330.SessionId = this.SessionId; + if((Db != null)) + { + tmp330.Db = this.Db; + } + if((DeviceId != null)) + { + tmp330.DeviceId = this.DeviceId; + } + if((Sensors != null)) + { + tmp330.Sensors = this.Sensors.DeepCopy(); + } + if(__isset.fetchSize) + { + tmp330.FetchSize = this.FetchSize; + } + tmp330.__isset.fetchSize = this.__isset.fetchSize; + tmp330.StatementId = this.StatementId; + if(__isset.enableRedirectQuery) + { + tmp330.EnableRedirectQuery = this.EnableRedirectQuery; + } + tmp330.__isset.enableRedirectQuery = this.__isset.enableRedirectQuery; + if(__isset.jdbcQuery) + { + tmp330.JdbcQuery = this.JdbcQuery; + } + tmp330.__isset.jdbcQuery = this.__isset.jdbcQuery; + if(__isset.timeout) + { + tmp330.Timeout = this.Timeout; + } + tmp330.__isset.timeout = this.__isset.timeout; + if(__isset.legalPathNodes) + { + tmp330.LegalPathNodes = this.LegalPathNodes; + } + tmp330.__isset.legalPathNodes = this.__isset.legalPathNodes; + return tmp330; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -190,13 +240,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list268 = await iprot.ReadListBeginAsync(cancellationToken); - Sensors = new List(_list268.Count); - for(int _i269 = 0; _i269 < _list268.Count; ++_i269) + TList _list331 = await iprot.ReadListBeginAsync(cancellationToken); + Sensors = new List(_list331.Count); + for(int _i332 = 0; _i332 < _list331.Count; ++_i332) { - string _elem270; - _elem270 = await iprot.ReadStringAsync(cancellationToken); - Sensors.Add(_elem270); + string _elem333; + _elem333 = await iprot.ReadStringAsync(cancellationToken); + Sensors.Add(_elem333); } await iprot.ReadListEndAsync(cancellationToken); } @@ -304,7 +354,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -318,32 +368,41 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "db"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Db, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "deviceId"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(DeviceId, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "sensors"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Db != null)) + { + field.Name = "db"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Db, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((DeviceId != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, Sensors.Count), cancellationToken); - foreach (string _iter271 in Sensors) + field.Name = "deviceId"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(DeviceId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Sensors != null)) + { + field.Name = "sensors"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter271, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Sensors.Count), cancellationToken); + foreach (string _iter334 in Sensors) + { + await oprot.WriteStringAsync(_iter334, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.fetchSize) + if(__isset.fetchSize) { field.Name = "fetchSize"; field.Type = TType.I32; @@ -358,7 +417,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(StatementId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.enableRedirectQuery) + if(__isset.enableRedirectQuery) { field.Name = "enableRedirectQuery"; field.Type = TType.Bool; @@ -367,7 +426,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteBoolAsync(EnableRedirectQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.jdbcQuery) + if(__isset.jdbcQuery) { field.Name = "jdbcQuery"; field.Type = TType.Bool; @@ -376,7 +435,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteBoolAsync(JdbcQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.timeout) + if(__isset.timeout) { field.Name = "timeout"; field.Type = TType.I64; @@ -385,7 +444,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI64Async(Timeout, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.legalPathNodes) + if(__isset.legalPathNodes) { field.Name = "legalPathNodes"; field.Type = TType.Bool; @@ -405,8 +464,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSFastLastDataQueryForOneDeviceReq; - if (other == null) return false; + if (!(that is TSFastLastDataQueryForOneDeviceReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(Db, other.Db) @@ -424,20 +482,39 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + Db.GetHashCode(); - hashcode = (hashcode * 397) + DeviceId.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Sensors); + if((Db != null)) + { + hashcode = (hashcode * 397) + Db.GetHashCode(); + } + if((DeviceId != null)) + { + hashcode = (hashcode * 397) + DeviceId.GetHashCode(); + } + if((Sensors != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Sensors); + } if(__isset.fetchSize) + { hashcode = (hashcode * 397) + FetchSize.GetHashCode(); + } hashcode = (hashcode * 397) + StatementId.GetHashCode(); if(__isset.enableRedirectQuery) + { hashcode = (hashcode * 397) + EnableRedirectQuery.GetHashCode(); + } if(__isset.jdbcQuery) + { hashcode = (hashcode * 397) + JdbcQuery.GetHashCode(); + } if(__isset.timeout) + { hashcode = (hashcode * 397) + Timeout.GetHashCode(); + } if(__isset.legalPathNodes) + { hashcode = (hashcode * 397) + LegalPathNodes.GetHashCode(); + } } return hashcode; } @@ -446,41 +523,50 @@ public override string ToString() { var sb = new StringBuilder("TSFastLastDataQueryForOneDeviceReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", Db: "); - sb.Append(Db); - sb.Append(", DeviceId: "); - sb.Append(DeviceId); - sb.Append(", Sensors: "); - sb.Append(Sensors); - if (__isset.fetchSize) + SessionId.ToString(sb); + if((Db != null)) + { + sb.Append(", Db: "); + Db.ToString(sb); + } + if((DeviceId != null)) + { + sb.Append(", DeviceId: "); + DeviceId.ToString(sb); + } + if((Sensors != null)) + { + sb.Append(", Sensors: "); + Sensors.ToString(sb); + } + if(__isset.fetchSize) { sb.Append(", FetchSize: "); - sb.Append(FetchSize); + FetchSize.ToString(sb); } sb.Append(", StatementId: "); - sb.Append(StatementId); - if (__isset.enableRedirectQuery) + StatementId.ToString(sb); + if(__isset.enableRedirectQuery) { sb.Append(", EnableRedirectQuery: "); - sb.Append(EnableRedirectQuery); + EnableRedirectQuery.ToString(sb); } - if (__isset.jdbcQuery) + if(__isset.jdbcQuery) { sb.Append(", JdbcQuery: "); - sb.Append(JdbcQuery); + JdbcQuery.ToString(sb); } - if (__isset.timeout) + if(__isset.timeout) { sb.Append(", Timeout: "); - sb.Append(Timeout); + Timeout.ToString(sb); } - if (__isset.legalPathNodes) + if(__isset.legalPathNodes) { sb.Append(", LegalPathNodes: "); - sb.Append(LegalPathNodes); + LegalPathNodes.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataReq.cs index 0c42284..0e37b8a 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSFetchMetadataReq : TBase { @@ -62,7 +67,23 @@ public TSFetchMetadataReq(long sessionId, string type) : this() this.Type = type; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSFetchMetadataReq DeepCopy() + { + var tmp101 = new TSFetchMetadataReq(); + tmp101.SessionId = this.SessionId; + if((Type != null)) + { + tmp101.Type = this.Type; + } + if((ColumnPath != null) && __isset.columnPath) + { + tmp101.ColumnPath = this.ColumnPath; + } + tmp101.__isset.columnPath = this.__isset.columnPath; + return tmp101; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -137,7 +158,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -151,13 +172,16 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "type"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Type, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - if (ColumnPath != null && __isset.columnPath) + if((Type != null)) + { + field.Name = "type"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Type, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ColumnPath != null) && __isset.columnPath) { field.Name = "columnPath"; field.Type = TType.String; @@ -177,8 +201,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSFetchMetadataReq; - if (other == null) return false; + if (!(that is TSFetchMetadataReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(Type, other.Type) @@ -189,9 +212,14 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + Type.GetHashCode(); - if(__isset.columnPath) + if((Type != null)) + { + hashcode = (hashcode * 397) + Type.GetHashCode(); + } + if((ColumnPath != null) && __isset.columnPath) + { hashcode = (hashcode * 397) + ColumnPath.GetHashCode(); + } } return hashcode; } @@ -200,15 +228,18 @@ public override string ToString() { var sb = new StringBuilder("TSFetchMetadataReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", Type: "); - sb.Append(Type); - if (ColumnPath != null && __isset.columnPath) + SessionId.ToString(sb); + if((Type != null)) + { + sb.Append(", Type: "); + Type.ToString(sb); + } + if((ColumnPath != null) && __isset.columnPath) { sb.Append(", ColumnPath: "); - sb.Append(ColumnPath); + ColumnPath.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataResp.cs index 8e4f8dc..0561acb 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSFetchMetadataResp : TBase { @@ -89,7 +94,32 @@ public TSFetchMetadataResp(TSStatus status) : this() this.Status = status; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSFetchMetadataResp DeepCopy() + { + var tmp95 = new TSFetchMetadataResp(); + if((Status != null)) + { + tmp95.Status = (TSStatus)this.Status.DeepCopy(); + } + if((MetadataInJson != null) && __isset.metadataInJson) + { + tmp95.MetadataInJson = this.MetadataInJson; + } + tmp95.__isset.metadataInJson = this.__isset.metadataInJson; + if((ColumnsList != null) && __isset.columnsList) + { + tmp95.ColumnsList = this.ColumnsList.DeepCopy(); + } + tmp95.__isset.columnsList = this.__isset.columnsList; + if((DataType != null) && __isset.dataType) + { + tmp95.DataType = this.DataType; + } + tmp95.__isset.dataType = this.__isset.dataType; + return tmp95; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -133,13 +163,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list67 = await iprot.ReadListBeginAsync(cancellationToken); - ColumnsList = new List(_list67.Count); - for(int _i68 = 0; _i68 < _list67.Count; ++_i68) + TList _list96 = await iprot.ReadListBeginAsync(cancellationToken); + ColumnsList = new List(_list96.Count); + for(int _i97 = 0; _i97 < _list96.Count; ++_i97) { - string _elem69; - _elem69 = await iprot.ReadStringAsync(cancellationToken); - ColumnsList.Add(_elem69); + string _elem98; + _elem98 = await iprot.ReadStringAsync(cancellationToken); + ColumnsList.Add(_elem98); } await iprot.ReadListEndAsync(cancellationToken); } @@ -179,7 +209,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -187,13 +217,16 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSFetchMetadataResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - if (MetadataInJson != null && __isset.metadataInJson) + if((Status != null)) + { + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((MetadataInJson != null) && __isset.metadataInJson) { field.Name = "metadataInJson"; field.Type = TType.String; @@ -202,7 +235,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteStringAsync(MetadataInJson, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (ColumnsList != null && __isset.columnsList) + if((ColumnsList != null) && __isset.columnsList) { field.Name = "columnsList"; field.Type = TType.List; @@ -210,15 +243,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, ColumnsList.Count), cancellationToken); - foreach (string _iter70 in ColumnsList) + foreach (string _iter99 in ColumnsList) { - await oprot.WriteStringAsync(_iter70, cancellationToken); + await oprot.WriteStringAsync(_iter99, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if (DataType != null && __isset.dataType) + if((DataType != null) && __isset.dataType) { field.Name = "dataType"; field.Type = TType.String; @@ -238,8 +271,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSFetchMetadataResp; - if (other == null) return false; + if (!(that is TSFetchMetadataResp other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && ((__isset.metadataInJson == other.__isset.metadataInJson) && ((!__isset.metadataInJson) || (System.Object.Equals(MetadataInJson, other.MetadataInJson)))) @@ -250,13 +282,22 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + Status.GetHashCode(); - if(__isset.metadataInJson) + if((Status != null)) + { + hashcode = (hashcode * 397) + Status.GetHashCode(); + } + if((MetadataInJson != null) && __isset.metadataInJson) + { hashcode = (hashcode * 397) + MetadataInJson.GetHashCode(); - if(__isset.columnsList) + } + if((ColumnsList != null) && __isset.columnsList) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(ColumnsList); - if(__isset.dataType) + } + if((DataType != null) && __isset.dataType) + { hashcode = (hashcode * 397) + DataType.GetHashCode(); + } } return hashcode; } @@ -264,24 +305,27 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSFetchMetadataResp("); - sb.Append(", Status: "); - sb.Append(Status== null ? "" : Status.ToString()); - if (MetadataInJson != null && __isset.metadataInJson) + if((Status != null)) + { + sb.Append(", Status: "); + Status.ToString(sb); + } + if((MetadataInJson != null) && __isset.metadataInJson) { sb.Append(", MetadataInJson: "); - sb.Append(MetadataInJson); + MetadataInJson.ToString(sb); } - if (ColumnsList != null && __isset.columnsList) + if((ColumnsList != null) && __isset.columnsList) { sb.Append(", ColumnsList: "); - sb.Append(ColumnsList); + ColumnsList.ToString(sb); } - if (DataType != null && __isset.dataType) + if((DataType != null) && __isset.dataType) { sb.Append(", DataType: "); - sb.Append(DataType); + DataType.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsReq.cs index 2c42f2a..89494bc 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSFetchResultsReq : TBase { @@ -71,7 +76,26 @@ public TSFetchResultsReq(long sessionId, string statement, int fetchSize, long q this.IsAlign = isAlign; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSFetchResultsReq DeepCopy() + { + var tmp87 = new TSFetchResultsReq(); + tmp87.SessionId = this.SessionId; + if((Statement != null)) + { + tmp87.Statement = this.Statement; + } + tmp87.FetchSize = this.FetchSize; + tmp87.QueryId = this.QueryId; + tmp87.IsAlign = this.IsAlign; + if(__isset.timeout) + { + tmp87.Timeout = this.Timeout; + } + tmp87.__isset.timeout = this.__isset.timeout; + return tmp87; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -194,7 +218,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -208,12 +232,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "statement"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Statement, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((Statement != null)) + { + field.Name = "statement"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Statement, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } field.Name = "fetchSize"; field.Type = TType.I32; field.ID = 3; @@ -232,7 +259,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(IsAlign, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.timeout) + if(__isset.timeout) { field.Name = "timeout"; field.Type = TType.I64; @@ -252,8 +279,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSFetchResultsReq; - if (other == null) return false; + if (!(that is TSFetchResultsReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(Statement, other.Statement) @@ -267,12 +293,17 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + Statement.GetHashCode(); + if((Statement != null)) + { + hashcode = (hashcode * 397) + Statement.GetHashCode(); + } hashcode = (hashcode * 397) + FetchSize.GetHashCode(); hashcode = (hashcode * 397) + QueryId.GetHashCode(); hashcode = (hashcode * 397) + IsAlign.GetHashCode(); if(__isset.timeout) + { hashcode = (hashcode * 397) + Timeout.GetHashCode(); + } } return hashcode; } @@ -281,21 +312,24 @@ public override string ToString() { var sb = new StringBuilder("TSFetchResultsReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", Statement: "); - sb.Append(Statement); + SessionId.ToString(sb); + if((Statement != null)) + { + sb.Append(", Statement: "); + Statement.ToString(sb); + } sb.Append(", FetchSize: "); - sb.Append(FetchSize); + FetchSize.ToString(sb); sb.Append(", QueryId: "); - sb.Append(QueryId); + QueryId.ToString(sb); sb.Append(", IsAlign: "); - sb.Append(IsAlign); - if (__isset.timeout) + IsAlign.ToString(sb); + if(__isset.timeout) { sb.Append(", Timeout: "); - sb.Append(Timeout); + Timeout.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsResp.cs index 3e12bd0..5b1ad02 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSFetchResultsResp : TBase { @@ -110,7 +115,39 @@ public TSFetchResultsResp(TSStatus status, bool hasResultSet, bool isAlign) : th this.IsAlign = isAlign; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSFetchResultsResp DeepCopy() + { + var tmp89 = new TSFetchResultsResp(); + if((Status != null)) + { + tmp89.Status = (TSStatus)this.Status.DeepCopy(); + } + tmp89.HasResultSet = this.HasResultSet; + tmp89.IsAlign = this.IsAlign; + if((QueryDataSet != null) && __isset.queryDataSet) + { + tmp89.QueryDataSet = (TSQueryDataSet)this.QueryDataSet.DeepCopy(); + } + tmp89.__isset.queryDataSet = this.__isset.queryDataSet; + if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) + { + tmp89.NonAlignQueryDataSet = (TSQueryNonAlignDataSet)this.NonAlignQueryDataSet.DeepCopy(); + } + tmp89.__isset.nonAlignQueryDataSet = this.__isset.nonAlignQueryDataSet; + if((QueryResult != null) && __isset.queryResult) + { + tmp89.QueryResult = this.QueryResult.DeepCopy(); + } + tmp89.__isset.queryResult = this.__isset.queryResult; + if(__isset.moreData) + { + tmp89.MoreData = this.MoreData; + } + tmp89.__isset.moreData = this.__isset.moreData; + return tmp89; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -190,13 +227,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list63 = await iprot.ReadListBeginAsync(cancellationToken); - QueryResult = new List(_list63.Count); - for(int _i64 = 0; _i64 < _list63.Count; ++_i64) + TList _list90 = await iprot.ReadListBeginAsync(cancellationToken); + QueryResult = new List(_list90.Count); + for(int _i91 = 0; _i91 < _list90.Count; ++_i91) { - byte[] _elem65; - _elem65 = await iprot.ReadBinaryAsync(cancellationToken); - QueryResult.Add(_elem65); + byte[] _elem92; + _elem92 = await iprot.ReadBinaryAsync(cancellationToken); + QueryResult.Add(_elem92); } await iprot.ReadListEndAsync(cancellationToken); } @@ -244,7 +281,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -252,12 +289,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSFetchResultsResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((Status != null)) + { + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } field.Name = "hasResultSet"; field.Type = TType.Bool; field.ID = 2; @@ -270,7 +310,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(IsAlign, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if (QueryDataSet != null && __isset.queryDataSet) + if((QueryDataSet != null) && __isset.queryDataSet) { field.Name = "queryDataSet"; field.Type = TType.Struct; @@ -279,7 +319,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await QueryDataSet.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (NonAlignQueryDataSet != null && __isset.nonAlignQueryDataSet) + if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) { field.Name = "nonAlignQueryDataSet"; field.Type = TType.Struct; @@ -288,7 +328,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await NonAlignQueryDataSet.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (QueryResult != null && __isset.queryResult) + if((QueryResult != null) && __isset.queryResult) { field.Name = "queryResult"; field.Type = TType.List; @@ -296,15 +336,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, QueryResult.Count), cancellationToken); - foreach (byte[] _iter66 in QueryResult) + foreach (byte[] _iter93 in QueryResult) { - await oprot.WriteBinaryAsync(_iter66, cancellationToken); + await oprot.WriteBinaryAsync(_iter93, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.moreData) + if(__isset.moreData) { field.Name = "moreData"; field.Type = TType.Bool; @@ -324,8 +364,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSFetchResultsResp; - if (other == null) return false; + if (!(that is TSFetchResultsResp other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && System.Object.Equals(HasResultSet, other.HasResultSet) @@ -339,17 +378,28 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + Status.GetHashCode(); + if((Status != null)) + { + hashcode = (hashcode * 397) + Status.GetHashCode(); + } hashcode = (hashcode * 397) + HasResultSet.GetHashCode(); hashcode = (hashcode * 397) + IsAlign.GetHashCode(); - if(__isset.queryDataSet) + if((QueryDataSet != null) && __isset.queryDataSet) + { hashcode = (hashcode * 397) + QueryDataSet.GetHashCode(); - if(__isset.nonAlignQueryDataSet) + } + if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) + { hashcode = (hashcode * 397) + NonAlignQueryDataSet.GetHashCode(); - if(__isset.queryResult) + } + if((QueryResult != null) && __isset.queryResult) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(QueryResult); + } if(__isset.moreData) + { hashcode = (hashcode * 397) + MoreData.GetHashCode(); + } } return hashcode; } @@ -357,33 +407,36 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSFetchResultsResp("); - sb.Append(", Status: "); - sb.Append(Status== null ? "" : Status.ToString()); + if((Status != null)) + { + sb.Append(", Status: "); + Status.ToString(sb); + } sb.Append(", HasResultSet: "); - sb.Append(HasResultSet); + HasResultSet.ToString(sb); sb.Append(", IsAlign: "); - sb.Append(IsAlign); - if (QueryDataSet != null && __isset.queryDataSet) + IsAlign.ToString(sb); + if((QueryDataSet != null) && __isset.queryDataSet) { sb.Append(", QueryDataSet: "); - sb.Append(QueryDataSet== null ? "" : QueryDataSet.ToString()); + QueryDataSet.ToString(sb); } - if (NonAlignQueryDataSet != null && __isset.nonAlignQueryDataSet) + if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) { sb.Append(", NonAlignQueryDataSet: "); - sb.Append(NonAlignQueryDataSet== null ? "" : NonAlignQueryDataSet.ToString()); + NonAlignQueryDataSet.ToString(sb); } - if (QueryResult != null && __isset.queryResult) + if((QueryResult != null) && __isset.queryResult) { sb.Append(", QueryResult: "); - sb.Append(QueryResult); + QueryResult.ToString(sb); } - if (__isset.moreData) + if(__isset.moreData) { sb.Append(", MoreData: "); - sb.Append(MoreData); + MoreData.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSGetOperationStatusReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSGetOperationStatusReq.cs index c44aec0..2da3b04 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSGetOperationStatusReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSGetOperationStatusReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSGetOperationStatusReq : TBase { @@ -41,7 +46,15 @@ public TSGetOperationStatusReq(long sessionId, long queryId) : this() this.QueryId = queryId; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSGetOperationStatusReq DeepCopy() + { + var tmp81 = new TSGetOperationStatusReq(); + tmp81.SessionId = this.SessionId; + tmp81.QueryId = this.QueryId; + return tmp81; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -106,7 +119,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -137,8 +150,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSGetOperationStatusReq; - if (other == null) return false; + if (!(that is TSGetOperationStatusReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(QueryId, other.QueryId); @@ -157,10 +169,10 @@ public override string ToString() { var sb = new StringBuilder("TSGetOperationStatusReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); + SessionId.ToString(sb); sb.Append(", QueryId: "); - sb.Append(QueryId); - sb.Append(")"); + QueryId.ToString(sb); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSGetTimeZoneResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSGetTimeZoneResp.cs index 37bdbf2..0327bcf 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSGetTimeZoneResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSGetTimeZoneResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSGetTimeZoneResp : TBase { @@ -41,7 +46,21 @@ public TSGetTimeZoneResp(TSStatus status, string timeZone) : this() this.TimeZone = timeZone; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSGetTimeZoneResp DeepCopy() + { + var tmp103 = new TSGetTimeZoneResp(); + if((Status != null)) + { + tmp103.Status = (TSStatus)this.Status.DeepCopy(); + } + if((TimeZone != null)) + { + tmp103.TimeZone = this.TimeZone; + } + return tmp103; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -107,7 +126,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -115,18 +134,24 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSGetTimeZoneResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "timeZone"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(TimeZone, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((Status != null)) + { + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((TimeZone != null)) + { + field.Name = "timeZone"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(TimeZone, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -138,8 +163,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSGetTimeZoneResp; - if (other == null) return false; + if (!(that is TSGetTimeZoneResp other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && System.Object.Equals(TimeZone, other.TimeZone); @@ -148,8 +172,14 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + Status.GetHashCode(); - hashcode = (hashcode * 397) + TimeZone.GetHashCode(); + if((Status != null)) + { + hashcode = (hashcode * 397) + Status.GetHashCode(); + } + if((TimeZone != null)) + { + hashcode = (hashcode * 397) + TimeZone.GetHashCode(); + } } return hashcode; } @@ -157,11 +187,17 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSGetTimeZoneResp("); - sb.Append(", Status: "); - sb.Append(Status== null ? "" : Status.ToString()); - sb.Append(", TimeZone: "); - sb.Append(TimeZone); - sb.Append(")"); + if((Status != null)) + { + sb.Append(", Status: "); + Status.ToString(sb); + } + if((TimeZone != null)) + { + sb.Append(", TimeZone: "); + TimeZone.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSGroupByQueryIntervalReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSGroupByQueryIntervalReq.cs index 92e5bbf..6ced16a 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSGroupByQueryIntervalReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSGroupByQueryIntervalReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSGroupByQueryIntervalReq : TBase { @@ -45,7 +50,7 @@ public partial class TSGroupByQueryIntervalReq : TBase /// /// - /// + /// /// public TAggregationType AggregationType { get; set; } @@ -153,7 +158,55 @@ public TSGroupByQueryIntervalReq(long sessionId, long statementId, string device this.AggregationType = aggregationType; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSGroupByQueryIntervalReq DeepCopy() + { + var tmp346 = new TSGroupByQueryIntervalReq(); + tmp346.SessionId = this.SessionId; + tmp346.StatementId = this.StatementId; + if((Device != null)) + { + tmp346.Device = this.Device; + } + if((Measurement != null)) + { + tmp346.Measurement = this.Measurement; + } + tmp346.DataType = this.DataType; + tmp346.AggregationType = this.AggregationType; + if((Database != null) && __isset.database) + { + tmp346.Database = this.Database; + } + tmp346.__isset.database = this.__isset.database; + if(__isset.startTime) + { + tmp346.StartTime = this.StartTime; + } + tmp346.__isset.startTime = this.__isset.startTime; + if(__isset.endTime) + { + tmp346.EndTime = this.EndTime; + } + tmp346.__isset.endTime = this.__isset.endTime; + if(__isset.interval) + { + tmp346.Interval = this.Interval; + } + tmp346.__isset.interval = this.__isset.interval; + if(__isset.fetchSize) + { + tmp346.FetchSize = this.FetchSize; + } + tmp346.__isset.fetchSize = this.__isset.fetchSize; + if(__isset.timeout) + { + tmp346.Timeout = this.Timeout; + } + tmp346.__isset.timeout = this.__isset.timeout; + return tmp346; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -342,7 +395,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -362,18 +415,24 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(StatementId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "device"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Device, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "measurement"; - field.Type = TType.String; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Measurement, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((Device != null)) + { + field.Name = "device"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Device, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Measurement != null)) + { + field.Name = "measurement"; + field.Type = TType.String; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Measurement, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } field.Name = "dataType"; field.Type = TType.I32; field.ID = 5; @@ -386,7 +445,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async((int)AggregationType, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if (Database != null && __isset.database) + if((Database != null) && __isset.database) { field.Name = "database"; field.Type = TType.String; @@ -395,7 +454,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteStringAsync(Database, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.startTime) + if(__isset.startTime) { field.Name = "startTime"; field.Type = TType.I64; @@ -404,7 +463,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI64Async(StartTime, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.endTime) + if(__isset.endTime) { field.Name = "endTime"; field.Type = TType.I64; @@ -413,7 +472,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI64Async(EndTime, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.interval) + if(__isset.interval) { field.Name = "interval"; field.Type = TType.I64; @@ -422,7 +481,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI64Async(Interval, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.fetchSize) + if(__isset.fetchSize) { field.Name = "fetchSize"; field.Type = TType.I32; @@ -431,7 +490,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI32Async(FetchSize, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.timeout) + if(__isset.timeout) { field.Name = "timeout"; field.Type = TType.I64; @@ -451,8 +510,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSGroupByQueryIntervalReq; - if (other == null) return false; + if (!(that is TSGroupByQueryIntervalReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(StatementId, other.StatementId) @@ -473,22 +531,40 @@ public override int GetHashCode() { unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); hashcode = (hashcode * 397) + StatementId.GetHashCode(); - hashcode = (hashcode * 397) + Device.GetHashCode(); - hashcode = (hashcode * 397) + Measurement.GetHashCode(); + if((Device != null)) + { + hashcode = (hashcode * 397) + Device.GetHashCode(); + } + if((Measurement != null)) + { + hashcode = (hashcode * 397) + Measurement.GetHashCode(); + } hashcode = (hashcode * 397) + DataType.GetHashCode(); hashcode = (hashcode * 397) + AggregationType.GetHashCode(); - if(__isset.database) + if((Database != null) && __isset.database) + { hashcode = (hashcode * 397) + Database.GetHashCode(); + } if(__isset.startTime) + { hashcode = (hashcode * 397) + StartTime.GetHashCode(); + } if(__isset.endTime) + { hashcode = (hashcode * 397) + EndTime.GetHashCode(); + } if(__isset.interval) + { hashcode = (hashcode * 397) + Interval.GetHashCode(); + } if(__isset.fetchSize) + { hashcode = (hashcode * 397) + FetchSize.GetHashCode(); + } if(__isset.timeout) + { hashcode = (hashcode * 397) + Timeout.GetHashCode(); + } } return hashcode; } @@ -497,48 +573,54 @@ public override string ToString() { var sb = new StringBuilder("TSGroupByQueryIntervalReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); + SessionId.ToString(sb); sb.Append(", StatementId: "); - sb.Append(StatementId); - sb.Append(", Device: "); - sb.Append(Device); - sb.Append(", Measurement: "); - sb.Append(Measurement); + StatementId.ToString(sb); + if((Device != null)) + { + sb.Append(", Device: "); + Device.ToString(sb); + } + if((Measurement != null)) + { + sb.Append(", Measurement: "); + Measurement.ToString(sb); + } sb.Append(", DataType: "); - sb.Append(DataType); + DataType.ToString(sb); sb.Append(", AggregationType: "); - sb.Append(AggregationType); - if (Database != null && __isset.database) + AggregationType.ToString(sb); + if((Database != null) && __isset.database) { sb.Append(", Database: "); - sb.Append(Database); + Database.ToString(sb); } - if (__isset.startTime) + if(__isset.startTime) { sb.Append(", StartTime: "); - sb.Append(StartTime); + StartTime.ToString(sb); } - if (__isset.endTime) + if(__isset.endTime) { sb.Append(", EndTime: "); - sb.Append(EndTime); + EndTime.ToString(sb); } - if (__isset.interval) + if(__isset.interval) { sb.Append(", Interval: "); - sb.Append(Interval); + Interval.ToString(sb); } - if (__isset.fetchSize) + if(__isset.fetchSize) { sb.Append(", FetchSize: "); - sb.Append(FetchSize); + FetchSize.ToString(sb); } - if (__isset.timeout) + if(__isset.timeout) { sb.Append(", Timeout: "); - sb.Append(Timeout); + Timeout.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordReq.cs index a0c0d63..1699a35 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSInsertRecordReq : TBase { @@ -71,7 +76,32 @@ public TSInsertRecordReq(long sessionId, string prefixPath, List measure this.Timestamp = timestamp; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSInsertRecordReq DeepCopy() + { + var tmp107 = new TSInsertRecordReq(); + tmp107.SessionId = this.SessionId; + if((PrefixPath != null)) + { + tmp107.PrefixPath = this.PrefixPath; + } + if((Measurements != null)) + { + tmp107.Measurements = this.Measurements.DeepCopy(); + } + if((Values != null)) + { + tmp107.Values = this.Values.ToArray(); + } + tmp107.Timestamp = this.Timestamp; + if(__isset.isAligned) + { + tmp107.IsAligned = this.IsAligned; + } + tmp107.__isset.isAligned = this.__isset.isAligned; + return tmp107; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -119,13 +149,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list71 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list71.Count); - for(int _i72 = 0; _i72 < _list71.Count; ++_i72) + TList _list108 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list108.Count); + for(int _i109 = 0; _i109 < _list108.Count; ++_i109) { - string _elem73; - _elem73 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem73); + string _elem110; + _elem110 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem110); } await iprot.ReadListEndAsync(cancellationToken); } @@ -204,7 +234,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -218,38 +248,47 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "prefixPath"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(PrefixPath, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "measurements"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((PrefixPath != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter74 in Measurements) + field.Name = "prefixPath"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(PrefixPath, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Measurements != null)) + { + field.Name = "measurements"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter74, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); + foreach (string _iter111 in Measurements) + { + await oprot.WriteStringAsync(_iter111, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Values != null)) + { + field.Name = "values"; + field.Type = TType.String; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBinaryAsync(Values, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "values"; - field.Type = TType.String; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteBinaryAsync(Values, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "timestamp"; field.Type = TType.I64; field.ID = 5; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(Timestamp, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.isAligned) + if(__isset.isAligned) { field.Name = "isAligned"; field.Type = TType.Bool; @@ -269,8 +308,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSInsertRecordReq; - if (other == null) return false; + if (!(that is TSInsertRecordReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(PrefixPath, other.PrefixPath) @@ -284,12 +322,23 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); - hashcode = (hashcode * 397) + Values.GetHashCode(); + if((PrefixPath != null)) + { + hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); + } + if((Measurements != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); + } + if((Values != null)) + { + hashcode = (hashcode * 397) + Values.GetHashCode(); + } hashcode = (hashcode * 397) + Timestamp.GetHashCode(); if(__isset.isAligned) + { hashcode = (hashcode * 397) + IsAligned.GetHashCode(); + } } return hashcode; } @@ -298,21 +347,30 @@ public override string ToString() { var sb = new StringBuilder("TSInsertRecordReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", PrefixPath: "); - sb.Append(PrefixPath); - sb.Append(", Measurements: "); - sb.Append(Measurements); - sb.Append(", Values: "); - sb.Append(Values); + SessionId.ToString(sb); + if((PrefixPath != null)) + { + sb.Append(", PrefixPath: "); + PrefixPath.ToString(sb); + } + if((Measurements != null)) + { + sb.Append(", Measurements: "); + Measurements.ToString(sb); + } + if((Values != null)) + { + sb.Append(", Values: "); + Values.ToString(sb); + } sb.Append(", Timestamp: "); - sb.Append(Timestamp); - if (__isset.isAligned) + Timestamp.ToString(sb); + if(__isset.isAligned) { sb.Append(", IsAligned: "); - sb.Append(IsAligned); + IsAligned.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsOfOneDeviceReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsOfOneDeviceReq.cs index e10602f..72468cd 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsOfOneDeviceReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsOfOneDeviceReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSInsertRecordsOfOneDeviceReq : TBase { @@ -71,7 +76,35 @@ public TSInsertRecordsOfOneDeviceReq(long sessionId, string prefixPath, List>(_list143.Count); - for(int _i144 = 0; _i144 < _list143.Count; ++_i144) + TList _list190 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list190.Count); + for(int _i191 = 0; _i191 < _list190.Count; ++_i191) { - List _elem145; + List _elem192; { - TList _list146 = await iprot.ReadListBeginAsync(cancellationToken); - _elem145 = new List(_list146.Count); - for(int _i147 = 0; _i147 < _list146.Count; ++_i147) + TList _list193 = await iprot.ReadListBeginAsync(cancellationToken); + _elem192 = new List(_list193.Count); + for(int _i194 = 0; _i194 < _list193.Count; ++_i194) { - string _elem148; - _elem148 = await iprot.ReadStringAsync(cancellationToken); - _elem145.Add(_elem148); + string _elem195; + _elem195 = await iprot.ReadStringAsync(cancellationToken); + _elem192.Add(_elem195); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem145); + MeasurementsList.Add(_elem192); } await iprot.ReadListEndAsync(cancellationToken); } @@ -150,13 +183,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list149 = await iprot.ReadListBeginAsync(cancellationToken); - ValuesList = new List(_list149.Count); - for(int _i150 = 0; _i150 < _list149.Count; ++_i150) + TList _list196 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List(_list196.Count); + for(int _i197 = 0; _i197 < _list196.Count; ++_i197) { - byte[] _elem151; - _elem151 = await iprot.ReadBinaryAsync(cancellationToken); - ValuesList.Add(_elem151); + byte[] _elem198; + _elem198 = await iprot.ReadBinaryAsync(cancellationToken); + ValuesList.Add(_elem198); } await iprot.ReadListEndAsync(cancellationToken); } @@ -171,13 +204,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list152 = await iprot.ReadListBeginAsync(cancellationToken); - Timestamps = new List(_list152.Count); - for(int _i153 = 0; _i153 < _list152.Count; ++_i153) + TList _list199 = await iprot.ReadListBeginAsync(cancellationToken); + Timestamps = new List(_list199.Count); + for(int _i200 = 0; _i200 < _list199.Count; ++_i200) { - long _elem154; - _elem154 = await iprot.ReadI64Async(cancellationToken); - Timestamps.Add(_elem154); + long _elem201; + _elem201 = await iprot.ReadI64Async(cancellationToken); + Timestamps.Add(_elem201); } await iprot.ReadListEndAsync(cancellationToken); } @@ -234,7 +267,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -248,59 +281,71 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "prefixPath"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(PrefixPath, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "measurementsList"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((PrefixPath != null)) { - await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); - foreach (List _iter155 in MeasurementsList) + field.Name = "prefixPath"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(PrefixPath, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((MeasurementsList != null)) + { + field.Name = "measurementsList"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { + await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); + foreach (List _iter202 in MeasurementsList) { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter155.Count), cancellationToken); - foreach (string _iter156 in _iter155) { - await oprot.WriteStringAsync(_iter156, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, _iter202.Count), cancellationToken); + foreach (string _iter203 in _iter202) + { + await oprot.WriteStringAsync(_iter203, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "valuesList"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((ValuesList != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, ValuesList.Count), cancellationToken); - foreach (byte[] _iter157 in ValuesList) + field.Name = "valuesList"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteBinaryAsync(_iter157, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, ValuesList.Count), cancellationToken); + foreach (byte[] _iter204 in ValuesList) + { + await oprot.WriteBinaryAsync(_iter204, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "timestamps"; - field.Type = TType.List; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Timestamps != null)) { - await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); - foreach (long _iter158 in Timestamps) + field.Name = "timestamps"; + field.Type = TType.List; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteI64Async(_iter158, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); + foreach (long _iter205 in Timestamps) + { + await oprot.WriteI64Async(_iter205, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.isAligned) + if(__isset.isAligned) { field.Name = "isAligned"; field.Type = TType.Bool; @@ -320,8 +365,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSInsertRecordsOfOneDeviceReq; - if (other == null) return false; + if (!(that is TSInsertRecordsOfOneDeviceReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(PrefixPath, other.PrefixPath) @@ -335,12 +379,26 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementsList); - hashcode = (hashcode * 397) + TCollections.GetHashCode(ValuesList); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Timestamps); + if((PrefixPath != null)) + { + hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); + } + if((MeasurementsList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementsList); + } + if((ValuesList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(ValuesList); + } + if((Timestamps != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Timestamps); + } if(__isset.isAligned) + { hashcode = (hashcode * 397) + IsAligned.GetHashCode(); + } } return hashcode; } @@ -349,21 +407,33 @@ public override string ToString() { var sb = new StringBuilder("TSInsertRecordsOfOneDeviceReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", PrefixPath: "); - sb.Append(PrefixPath); - sb.Append(", MeasurementsList: "); - sb.Append(MeasurementsList); - sb.Append(", ValuesList: "); - sb.Append(ValuesList); - sb.Append(", Timestamps: "); - sb.Append(Timestamps); - if (__isset.isAligned) + SessionId.ToString(sb); + if((PrefixPath != null)) + { + sb.Append(", PrefixPath: "); + PrefixPath.ToString(sb); + } + if((MeasurementsList != null)) + { + sb.Append(", MeasurementsList: "); + MeasurementsList.ToString(sb); + } + if((ValuesList != null)) + { + sb.Append(", ValuesList: "); + ValuesList.ToString(sb); + } + if((Timestamps != null)) + { + sb.Append(", Timestamps: "); + Timestamps.ToString(sb); + } + if(__isset.isAligned) { sb.Append(", IsAligned: "); - sb.Append(IsAligned); + IsAligned.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsReq.cs index 4678db8..5f1d8dc 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSInsertRecordsReq : TBase { @@ -71,7 +76,35 @@ public TSInsertRecordsReq(long sessionId, List prefixPaths, List(_list123.Count); - for(int _i124 = 0; _i124 < _list123.Count; ++_i124) + TList _list168 = await iprot.ReadListBeginAsync(cancellationToken); + PrefixPaths = new List(_list168.Count); + for(int _i169 = 0; _i169 < _list168.Count; ++_i169) { - string _elem125; - _elem125 = await iprot.ReadStringAsync(cancellationToken); - PrefixPaths.Add(_elem125); + string _elem170; + _elem170 = await iprot.ReadStringAsync(cancellationToken); + PrefixPaths.Add(_elem170); } await iprot.ReadListEndAsync(cancellationToken); } @@ -129,23 +162,23 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list126 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementsList = new List>(_list126.Count); - for(int _i127 = 0; _i127 < _list126.Count; ++_i127) + TList _list171 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list171.Count); + for(int _i172 = 0; _i172 < _list171.Count; ++_i172) { - List _elem128; + List _elem173; { - TList _list129 = await iprot.ReadListBeginAsync(cancellationToken); - _elem128 = new List(_list129.Count); - for(int _i130 = 0; _i130 < _list129.Count; ++_i130) + TList _list174 = await iprot.ReadListBeginAsync(cancellationToken); + _elem173 = new List(_list174.Count); + for(int _i175 = 0; _i175 < _list174.Count; ++_i175) { - string _elem131; - _elem131 = await iprot.ReadStringAsync(cancellationToken); - _elem128.Add(_elem131); + string _elem176; + _elem176 = await iprot.ReadStringAsync(cancellationToken); + _elem173.Add(_elem176); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem128); + MeasurementsList.Add(_elem173); } await iprot.ReadListEndAsync(cancellationToken); } @@ -160,13 +193,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list132 = await iprot.ReadListBeginAsync(cancellationToken); - ValuesList = new List(_list132.Count); - for(int _i133 = 0; _i133 < _list132.Count; ++_i133) + TList _list177 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List(_list177.Count); + for(int _i178 = 0; _i178 < _list177.Count; ++_i178) { - byte[] _elem134; - _elem134 = await iprot.ReadBinaryAsync(cancellationToken); - ValuesList.Add(_elem134); + byte[] _elem179; + _elem179 = await iprot.ReadBinaryAsync(cancellationToken); + ValuesList.Add(_elem179); } await iprot.ReadListEndAsync(cancellationToken); } @@ -181,13 +214,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list135 = await iprot.ReadListBeginAsync(cancellationToken); - Timestamps = new List(_list135.Count); - for(int _i136 = 0; _i136 < _list135.Count; ++_i136) + TList _list180 = await iprot.ReadListBeginAsync(cancellationToken); + Timestamps = new List(_list180.Count); + for(int _i181 = 0; _i181 < _list180.Count; ++_i181) { - long _elem137; - _elem137 = await iprot.ReadI64Async(cancellationToken); - Timestamps.Add(_elem137); + long _elem182; + _elem182 = await iprot.ReadI64Async(cancellationToken); + Timestamps.Add(_elem182); } await iprot.ReadListEndAsync(cancellationToken); } @@ -244,7 +277,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -258,66 +291,78 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "prefixPaths"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((PrefixPaths != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, PrefixPaths.Count), cancellationToken); - foreach (string _iter138 in PrefixPaths) + field.Name = "prefixPaths"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter138, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, PrefixPaths.Count), cancellationToken); + foreach (string _iter183 in PrefixPaths) + { + await oprot.WriteStringAsync(_iter183, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "measurementsList"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((MeasurementsList != null)) { - await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); - foreach (List _iter139 in MeasurementsList) + field.Name = "measurementsList"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { + await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); + foreach (List _iter184 in MeasurementsList) { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter139.Count), cancellationToken); - foreach (string _iter140 in _iter139) { - await oprot.WriteStringAsync(_iter140, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, _iter184.Count), cancellationToken); + foreach (string _iter185 in _iter184) + { + await oprot.WriteStringAsync(_iter185, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "valuesList"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((ValuesList != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, ValuesList.Count), cancellationToken); - foreach (byte[] _iter141 in ValuesList) + field.Name = "valuesList"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteBinaryAsync(_iter141, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, ValuesList.Count), cancellationToken); + foreach (byte[] _iter186 in ValuesList) + { + await oprot.WriteBinaryAsync(_iter186, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "timestamps"; - field.Type = TType.List; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Timestamps != null)) { - await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); - foreach (long _iter142 in Timestamps) + field.Name = "timestamps"; + field.Type = TType.List; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteI64Async(_iter142, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); + foreach (long _iter187 in Timestamps) + { + await oprot.WriteI64Async(_iter187, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.isAligned) + if(__isset.isAligned) { field.Name = "isAligned"; field.Type = TType.Bool; @@ -337,8 +382,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSInsertRecordsReq; - if (other == null) return false; + if (!(that is TSInsertRecordsReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && TCollections.Equals(PrefixPaths, other.PrefixPaths) @@ -352,12 +396,26 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(PrefixPaths); - hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementsList); - hashcode = (hashcode * 397) + TCollections.GetHashCode(ValuesList); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Timestamps); + if((PrefixPaths != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(PrefixPaths); + } + if((MeasurementsList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementsList); + } + if((ValuesList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(ValuesList); + } + if((Timestamps != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Timestamps); + } if(__isset.isAligned) + { hashcode = (hashcode * 397) + IsAligned.GetHashCode(); + } } return hashcode; } @@ -366,21 +424,33 @@ public override string ToString() { var sb = new StringBuilder("TSInsertRecordsReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", PrefixPaths: "); - sb.Append(PrefixPaths); - sb.Append(", MeasurementsList: "); - sb.Append(MeasurementsList); - sb.Append(", ValuesList: "); - sb.Append(ValuesList); - sb.Append(", Timestamps: "); - sb.Append(Timestamps); - if (__isset.isAligned) + SessionId.ToString(sb); + if((PrefixPaths != null)) + { + sb.Append(", PrefixPaths: "); + PrefixPaths.ToString(sb); + } + if((MeasurementsList != null)) + { + sb.Append(", MeasurementsList: "); + MeasurementsList.ToString(sb); + } + if((ValuesList != null)) + { + sb.Append(", ValuesList: "); + ValuesList.ToString(sb); + } + if((Timestamps != null)) + { + sb.Append(", Timestamps: "); + Timestamps.ToString(sb); + } + if(__isset.isAligned) { sb.Append(", IsAligned: "); - sb.Append(IsAligned); + IsAligned.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordReq.cs index 26c5db4..74f3de3 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSInsertStringRecordReq : TBase { @@ -86,7 +91,37 @@ public TSInsertStringRecordReq(long sessionId, string prefixPath, List m this.Timestamp = timestamp; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSInsertStringRecordReq DeepCopy() + { + var tmp113 = new TSInsertStringRecordReq(); + tmp113.SessionId = this.SessionId; + if((PrefixPath != null)) + { + tmp113.PrefixPath = this.PrefixPath; + } + if((Measurements != null)) + { + tmp113.Measurements = this.Measurements.DeepCopy(); + } + if((Values != null)) + { + tmp113.Values = this.Values.DeepCopy(); + } + tmp113.Timestamp = this.Timestamp; + if(__isset.isAligned) + { + tmp113.IsAligned = this.IsAligned; + } + tmp113.__isset.isAligned = this.__isset.isAligned; + if(__isset.timeout) + { + tmp113.Timeout = this.Timeout; + } + tmp113.__isset.timeout = this.__isset.timeout; + return tmp113; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -134,13 +169,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list75 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list75.Count); - for(int _i76 = 0; _i76 < _list75.Count; ++_i76) + TList _list114 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list114.Count); + for(int _i115 = 0; _i115 < _list114.Count; ++_i115) { - string _elem77; - _elem77 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem77); + string _elem116; + _elem116 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem116); } await iprot.ReadListEndAsync(cancellationToken); } @@ -155,13 +190,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list78 = await iprot.ReadListBeginAsync(cancellationToken); - Values = new List(_list78.Count); - for(int _i79 = 0; _i79 < _list78.Count; ++_i79) + TList _list117 = await iprot.ReadListBeginAsync(cancellationToken); + Values = new List(_list117.Count); + for(int _i118 = 0; _i118 < _list117.Count; ++_i118) { - string _elem80; - _elem80 = await iprot.ReadStringAsync(cancellationToken); - Values.Add(_elem80); + string _elem119; + _elem119 = await iprot.ReadStringAsync(cancellationToken); + Values.Add(_elem119); } await iprot.ReadListEndAsync(cancellationToken); } @@ -239,7 +274,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -253,45 +288,54 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "prefixPath"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(PrefixPath, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "measurements"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((PrefixPath != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter81 in Measurements) + field.Name = "prefixPath"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(PrefixPath, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Measurements != null)) + { + field.Name = "measurements"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter81, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); + foreach (string _iter120 in Measurements) + { + await oprot.WriteStringAsync(_iter120, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "values"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Values != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, Values.Count), cancellationToken); - foreach (string _iter82 in Values) + field.Name = "values"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter82, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Values.Count), cancellationToken); + foreach (string _iter121 in Values) + { + await oprot.WriteStringAsync(_iter121, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "timestamp"; field.Type = TType.I64; field.ID = 5; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(Timestamp, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.isAligned) + if(__isset.isAligned) { field.Name = "isAligned"; field.Type = TType.Bool; @@ -300,7 +344,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteBoolAsync(IsAligned, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.timeout) + if(__isset.timeout) { field.Name = "timeout"; field.Type = TType.I64; @@ -320,8 +364,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSInsertStringRecordReq; - if (other == null) return false; + if (!(that is TSInsertStringRecordReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(PrefixPath, other.PrefixPath) @@ -336,14 +379,27 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Values); + if((PrefixPath != null)) + { + hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); + } + if((Measurements != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); + } + if((Values != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Values); + } hashcode = (hashcode * 397) + Timestamp.GetHashCode(); if(__isset.isAligned) + { hashcode = (hashcode * 397) + IsAligned.GetHashCode(); + } if(__isset.timeout) + { hashcode = (hashcode * 397) + Timeout.GetHashCode(); + } } return hashcode; } @@ -352,26 +408,35 @@ public override string ToString() { var sb = new StringBuilder("TSInsertStringRecordReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", PrefixPath: "); - sb.Append(PrefixPath); - sb.Append(", Measurements: "); - sb.Append(Measurements); - sb.Append(", Values: "); - sb.Append(Values); + SessionId.ToString(sb); + if((PrefixPath != null)) + { + sb.Append(", PrefixPath: "); + PrefixPath.ToString(sb); + } + if((Measurements != null)) + { + sb.Append(", Measurements: "); + Measurements.ToString(sb); + } + if((Values != null)) + { + sb.Append(", Values: "); + Values.ToString(sb); + } sb.Append(", Timestamp: "); - sb.Append(Timestamp); - if (__isset.isAligned) + Timestamp.ToString(sb); + if(__isset.isAligned) { sb.Append(", IsAligned: "); - sb.Append(IsAligned); + IsAligned.ToString(sb); } - if (__isset.timeout) + if(__isset.timeout) { sb.Append(", Timeout: "); - sb.Append(Timeout); + Timeout.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsOfOneDeviceReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsOfOneDeviceReq.cs index 288edbc..2252912 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsOfOneDeviceReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsOfOneDeviceReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSInsertStringRecordsOfOneDeviceReq : TBase { @@ -71,7 +76,35 @@ public TSInsertStringRecordsOfOneDeviceReq(long sessionId, string prefixPath, Li this.Timestamps = timestamps; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSInsertStringRecordsOfOneDeviceReq DeepCopy() + { + var tmp207 = new TSInsertStringRecordsOfOneDeviceReq(); + tmp207.SessionId = this.SessionId; + if((PrefixPath != null)) + { + tmp207.PrefixPath = this.PrefixPath; + } + if((MeasurementsList != null)) + { + tmp207.MeasurementsList = this.MeasurementsList.DeepCopy(); + } + if((ValuesList != null)) + { + tmp207.ValuesList = this.ValuesList.DeepCopy(); + } + if((Timestamps != null)) + { + tmp207.Timestamps = this.Timestamps.DeepCopy(); + } + if(__isset.isAligned) + { + tmp207.IsAligned = this.IsAligned; + } + tmp207.__isset.isAligned = this.__isset.isAligned; + return tmp207; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -119,23 +152,23 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list159 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementsList = new List>(_list159.Count); - for(int _i160 = 0; _i160 < _list159.Count; ++_i160) + TList _list208 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list208.Count); + for(int _i209 = 0; _i209 < _list208.Count; ++_i209) { - List _elem161; + List _elem210; { - TList _list162 = await iprot.ReadListBeginAsync(cancellationToken); - _elem161 = new List(_list162.Count); - for(int _i163 = 0; _i163 < _list162.Count; ++_i163) + TList _list211 = await iprot.ReadListBeginAsync(cancellationToken); + _elem210 = new List(_list211.Count); + for(int _i212 = 0; _i212 < _list211.Count; ++_i212) { - string _elem164; - _elem164 = await iprot.ReadStringAsync(cancellationToken); - _elem161.Add(_elem164); + string _elem213; + _elem213 = await iprot.ReadStringAsync(cancellationToken); + _elem210.Add(_elem213); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem161); + MeasurementsList.Add(_elem210); } await iprot.ReadListEndAsync(cancellationToken); } @@ -150,23 +183,23 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list165 = await iprot.ReadListBeginAsync(cancellationToken); - ValuesList = new List>(_list165.Count); - for(int _i166 = 0; _i166 < _list165.Count; ++_i166) + TList _list214 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List>(_list214.Count); + for(int _i215 = 0; _i215 < _list214.Count; ++_i215) { - List _elem167; + List _elem216; { - TList _list168 = await iprot.ReadListBeginAsync(cancellationToken); - _elem167 = new List(_list168.Count); - for(int _i169 = 0; _i169 < _list168.Count; ++_i169) + TList _list217 = await iprot.ReadListBeginAsync(cancellationToken); + _elem216 = new List(_list217.Count); + for(int _i218 = 0; _i218 < _list217.Count; ++_i218) { - string _elem170; - _elem170 = await iprot.ReadStringAsync(cancellationToken); - _elem167.Add(_elem170); + string _elem219; + _elem219 = await iprot.ReadStringAsync(cancellationToken); + _elem216.Add(_elem219); } await iprot.ReadListEndAsync(cancellationToken); } - ValuesList.Add(_elem167); + ValuesList.Add(_elem216); } await iprot.ReadListEndAsync(cancellationToken); } @@ -181,13 +214,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list171 = await iprot.ReadListBeginAsync(cancellationToken); - Timestamps = new List(_list171.Count); - for(int _i172 = 0; _i172 < _list171.Count; ++_i172) + TList _list220 = await iprot.ReadListBeginAsync(cancellationToken); + Timestamps = new List(_list220.Count); + for(int _i221 = 0; _i221 < _list220.Count; ++_i221) { - long _elem173; - _elem173 = await iprot.ReadI64Async(cancellationToken); - Timestamps.Add(_elem173); + long _elem222; + _elem222 = await iprot.ReadI64Async(cancellationToken); + Timestamps.Add(_elem222); } await iprot.ReadListEndAsync(cancellationToken); } @@ -244,7 +277,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -258,66 +291,78 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "prefixPath"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(PrefixPath, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "measurementsList"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((PrefixPath != null)) { - await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); - foreach (List _iter174 in MeasurementsList) + field.Name = "prefixPath"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(PrefixPath, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((MeasurementsList != null)) + { + field.Name = "measurementsList"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { + await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); + foreach (List _iter223 in MeasurementsList) { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter174.Count), cancellationToken); - foreach (string _iter175 in _iter174) { - await oprot.WriteStringAsync(_iter175, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, _iter223.Count), cancellationToken); + foreach (string _iter224 in _iter223) + { + await oprot.WriteStringAsync(_iter224, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "valuesList"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((ValuesList != null)) { - await oprot.WriteListBeginAsync(new TList(TType.List, ValuesList.Count), cancellationToken); - foreach (List _iter176 in ValuesList) + field.Name = "valuesList"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { + await oprot.WriteListBeginAsync(new TList(TType.List, ValuesList.Count), cancellationToken); + foreach (List _iter225 in ValuesList) { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter176.Count), cancellationToken); - foreach (string _iter177 in _iter176) { - await oprot.WriteStringAsync(_iter177, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, _iter225.Count), cancellationToken); + foreach (string _iter226 in _iter225) + { + await oprot.WriteStringAsync(_iter226, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "timestamps"; - field.Type = TType.List; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Timestamps != null)) { - await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); - foreach (long _iter178 in Timestamps) + field.Name = "timestamps"; + field.Type = TType.List; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteI64Async(_iter178, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); + foreach (long _iter227 in Timestamps) + { + await oprot.WriteI64Async(_iter227, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.isAligned) + if(__isset.isAligned) { field.Name = "isAligned"; field.Type = TType.Bool; @@ -337,8 +382,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSInsertStringRecordsOfOneDeviceReq; - if (other == null) return false; + if (!(that is TSInsertStringRecordsOfOneDeviceReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(PrefixPath, other.PrefixPath) @@ -352,12 +396,26 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementsList); - hashcode = (hashcode * 397) + TCollections.GetHashCode(ValuesList); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Timestamps); + if((PrefixPath != null)) + { + hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); + } + if((MeasurementsList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementsList); + } + if((ValuesList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(ValuesList); + } + if((Timestamps != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Timestamps); + } if(__isset.isAligned) + { hashcode = (hashcode * 397) + IsAligned.GetHashCode(); + } } return hashcode; } @@ -366,21 +424,33 @@ public override string ToString() { var sb = new StringBuilder("TSInsertStringRecordsOfOneDeviceReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", PrefixPath: "); - sb.Append(PrefixPath); - sb.Append(", MeasurementsList: "); - sb.Append(MeasurementsList); - sb.Append(", ValuesList: "); - sb.Append(ValuesList); - sb.Append(", Timestamps: "); - sb.Append(Timestamps); - if (__isset.isAligned) + SessionId.ToString(sb); + if((PrefixPath != null)) + { + sb.Append(", PrefixPath: "); + PrefixPath.ToString(sb); + } + if((MeasurementsList != null)) + { + sb.Append(", MeasurementsList: "); + MeasurementsList.ToString(sb); + } + if((ValuesList != null)) + { + sb.Append(", ValuesList: "); + ValuesList.ToString(sb); + } + if((Timestamps != null)) + { + sb.Append(", Timestamps: "); + Timestamps.ToString(sb); + } + if(__isset.isAligned) { sb.Append(", IsAligned: "); - sb.Append(IsAligned); + IsAligned.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsReq.cs index 4ce9f38..104cc85 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSInsertStringRecordsReq : TBase { @@ -71,7 +76,35 @@ public TSInsertStringRecordsReq(long sessionId, List prefixPaths, List(_list179.Count); - for(int _i180 = 0; _i180 < _list179.Count; ++_i180) + TList _list230 = await iprot.ReadListBeginAsync(cancellationToken); + PrefixPaths = new List(_list230.Count); + for(int _i231 = 0; _i231 < _list230.Count; ++_i231) { - string _elem181; - _elem181 = await iprot.ReadStringAsync(cancellationToken); - PrefixPaths.Add(_elem181); + string _elem232; + _elem232 = await iprot.ReadStringAsync(cancellationToken); + PrefixPaths.Add(_elem232); } await iprot.ReadListEndAsync(cancellationToken); } @@ -129,23 +162,23 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list182 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementsList = new List>(_list182.Count); - for(int _i183 = 0; _i183 < _list182.Count; ++_i183) + TList _list233 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list233.Count); + for(int _i234 = 0; _i234 < _list233.Count; ++_i234) { - List _elem184; + List _elem235; { - TList _list185 = await iprot.ReadListBeginAsync(cancellationToken); - _elem184 = new List(_list185.Count); - for(int _i186 = 0; _i186 < _list185.Count; ++_i186) + TList _list236 = await iprot.ReadListBeginAsync(cancellationToken); + _elem235 = new List(_list236.Count); + for(int _i237 = 0; _i237 < _list236.Count; ++_i237) { - string _elem187; - _elem187 = await iprot.ReadStringAsync(cancellationToken); - _elem184.Add(_elem187); + string _elem238; + _elem238 = await iprot.ReadStringAsync(cancellationToken); + _elem235.Add(_elem238); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem184); + MeasurementsList.Add(_elem235); } await iprot.ReadListEndAsync(cancellationToken); } @@ -160,23 +193,23 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list188 = await iprot.ReadListBeginAsync(cancellationToken); - ValuesList = new List>(_list188.Count); - for(int _i189 = 0; _i189 < _list188.Count; ++_i189) + TList _list239 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List>(_list239.Count); + for(int _i240 = 0; _i240 < _list239.Count; ++_i240) { - List _elem190; + List _elem241; { - TList _list191 = await iprot.ReadListBeginAsync(cancellationToken); - _elem190 = new List(_list191.Count); - for(int _i192 = 0; _i192 < _list191.Count; ++_i192) + TList _list242 = await iprot.ReadListBeginAsync(cancellationToken); + _elem241 = new List(_list242.Count); + for(int _i243 = 0; _i243 < _list242.Count; ++_i243) { - string _elem193; - _elem193 = await iprot.ReadStringAsync(cancellationToken); - _elem190.Add(_elem193); + string _elem244; + _elem244 = await iprot.ReadStringAsync(cancellationToken); + _elem241.Add(_elem244); } await iprot.ReadListEndAsync(cancellationToken); } - ValuesList.Add(_elem190); + ValuesList.Add(_elem241); } await iprot.ReadListEndAsync(cancellationToken); } @@ -191,13 +224,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list194 = await iprot.ReadListBeginAsync(cancellationToken); - Timestamps = new List(_list194.Count); - for(int _i195 = 0; _i195 < _list194.Count; ++_i195) + TList _list245 = await iprot.ReadListBeginAsync(cancellationToken); + Timestamps = new List(_list245.Count); + for(int _i246 = 0; _i246 < _list245.Count; ++_i246) { - long _elem196; - _elem196 = await iprot.ReadI64Async(cancellationToken); - Timestamps.Add(_elem196); + long _elem247; + _elem247 = await iprot.ReadI64Async(cancellationToken); + Timestamps.Add(_elem247); } await iprot.ReadListEndAsync(cancellationToken); } @@ -254,7 +287,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -268,73 +301,85 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "prefixPaths"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((PrefixPaths != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, PrefixPaths.Count), cancellationToken); - foreach (string _iter197 in PrefixPaths) + field.Name = "prefixPaths"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter197, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, PrefixPaths.Count), cancellationToken); + foreach (string _iter248 in PrefixPaths) + { + await oprot.WriteStringAsync(_iter248, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "measurementsList"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((MeasurementsList != null)) { - await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); - foreach (List _iter198 in MeasurementsList) + field.Name = "measurementsList"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { + await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); + foreach (List _iter249 in MeasurementsList) { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter198.Count), cancellationToken); - foreach (string _iter199 in _iter198) { - await oprot.WriteStringAsync(_iter199, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, _iter249.Count), cancellationToken); + foreach (string _iter250 in _iter249) + { + await oprot.WriteStringAsync(_iter250, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "valuesList"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((ValuesList != null)) { - await oprot.WriteListBeginAsync(new TList(TType.List, ValuesList.Count), cancellationToken); - foreach (List _iter200 in ValuesList) + field.Name = "valuesList"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { + await oprot.WriteListBeginAsync(new TList(TType.List, ValuesList.Count), cancellationToken); + foreach (List _iter251 in ValuesList) { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter200.Count), cancellationToken); - foreach (string _iter201 in _iter200) { - await oprot.WriteStringAsync(_iter201, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, _iter251.Count), cancellationToken); + foreach (string _iter252 in _iter251) + { + await oprot.WriteStringAsync(_iter252, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "timestamps"; - field.Type = TType.List; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Timestamps != null)) { - await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); - foreach (long _iter202 in Timestamps) + field.Name = "timestamps"; + field.Type = TType.List; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteI64Async(_iter202, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); + foreach (long _iter253 in Timestamps) + { + await oprot.WriteI64Async(_iter253, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.isAligned) + if(__isset.isAligned) { field.Name = "isAligned"; field.Type = TType.Bool; @@ -354,8 +399,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSInsertStringRecordsReq; - if (other == null) return false; + if (!(that is TSInsertStringRecordsReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && TCollections.Equals(PrefixPaths, other.PrefixPaths) @@ -369,12 +413,26 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(PrefixPaths); - hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementsList); - hashcode = (hashcode * 397) + TCollections.GetHashCode(ValuesList); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Timestamps); + if((PrefixPaths != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(PrefixPaths); + } + if((MeasurementsList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementsList); + } + if((ValuesList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(ValuesList); + } + if((Timestamps != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Timestamps); + } if(__isset.isAligned) + { hashcode = (hashcode * 397) + IsAligned.GetHashCode(); + } } return hashcode; } @@ -383,21 +441,33 @@ public override string ToString() { var sb = new StringBuilder("TSInsertStringRecordsReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", PrefixPaths: "); - sb.Append(PrefixPaths); - sb.Append(", MeasurementsList: "); - sb.Append(MeasurementsList); - sb.Append(", ValuesList: "); - sb.Append(ValuesList); - sb.Append(", Timestamps: "); - sb.Append(Timestamps); - if (__isset.isAligned) + SessionId.ToString(sb); + if((PrefixPaths != null)) + { + sb.Append(", PrefixPaths: "); + PrefixPaths.ToString(sb); + } + if((MeasurementsList != null)) + { + sb.Append(", MeasurementsList: "); + MeasurementsList.ToString(sb); + } + if((ValuesList != null)) + { + sb.Append(", ValuesList: "); + ValuesList.ToString(sb); + } + if((Timestamps != null)) + { + sb.Append(", Timestamps: "); + Timestamps.ToString(sb); + } + if(__isset.isAligned) { sb.Append(", IsAligned: "); - sb.Append(IsAligned); + IsAligned.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletReq.cs index 8d8320b..2d4ce1e 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSInsertTabletReq : TBase { @@ -77,7 +82,40 @@ public TSInsertTabletReq(long sessionId, string prefixPath, List measure this.Size = size; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSInsertTabletReq DeepCopy() + { + var tmp123 = new TSInsertTabletReq(); + tmp123.SessionId = this.SessionId; + if((PrefixPath != null)) + { + tmp123.PrefixPath = this.PrefixPath; + } + if((Measurements != null)) + { + tmp123.Measurements = this.Measurements.DeepCopy(); + } + if((Values != null)) + { + tmp123.Values = this.Values.ToArray(); + } + if((Timestamps != null)) + { + tmp123.Timestamps = this.Timestamps.ToArray(); + } + if((Types != null)) + { + tmp123.Types = this.Types.DeepCopy(); + } + tmp123.Size = this.Size; + if(__isset.isAligned) + { + tmp123.IsAligned = this.IsAligned; + } + tmp123.__isset.isAligned = this.__isset.isAligned; + return tmp123; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -127,13 +165,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list83 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list83.Count); - for(int _i84 = 0; _i84 < _list83.Count; ++_i84) + TList _list124 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list124.Count); + for(int _i125 = 0; _i125 < _list124.Count; ++_i125) { - string _elem85; - _elem85 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem85); + string _elem126; + _elem126 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem126); } await iprot.ReadListEndAsync(cancellationToken); } @@ -170,13 +208,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list86 = await iprot.ReadListBeginAsync(cancellationToken); - Types = new List(_list86.Count); - for(int _i87 = 0; _i87 < _list86.Count; ++_i87) + TList _list127 = await iprot.ReadListBeginAsync(cancellationToken); + Types = new List(_list127.Count); + for(int _i128 = 0; _i128 < _list127.Count; ++_i128) { - int _elem88; - _elem88 = await iprot.ReadI32Async(cancellationToken); - Types.Add(_elem88); + int _elem129; + _elem129 = await iprot.ReadI32Async(cancellationToken); + Types.Add(_elem129); } await iprot.ReadListEndAsync(cancellationToken); } @@ -252,7 +290,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -266,57 +304,72 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "prefixPath"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(PrefixPath, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "measurements"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((PrefixPath != null)) + { + field.Name = "prefixPath"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(PrefixPath, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Measurements != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter89 in Measurements) + field.Name = "measurements"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter89, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); + foreach (string _iter130 in Measurements) + { + await oprot.WriteStringAsync(_iter130, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "values"; - field.Type = TType.String; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteBinaryAsync(Values, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "timestamps"; - field.Type = TType.String; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteBinaryAsync(Timestamps, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "types"; - field.Type = TType.List; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Values != null)) { - await oprot.WriteListBeginAsync(new TList(TType.I32, Types.Count), cancellationToken); - foreach (int _iter90 in Types) + field.Name = "values"; + field.Type = TType.String; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBinaryAsync(Values, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Timestamps != null)) + { + field.Name = "timestamps"; + field.Type = TType.String; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBinaryAsync(Timestamps, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Types != null)) + { + field.Name = "types"; + field.Type = TType.List; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteI32Async(_iter90, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, Types.Count), cancellationToken); + foreach (int _iter131 in Types) + { + await oprot.WriteI32Async(_iter131, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "size"; field.Type = TType.I32; field.ID = 7; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(Size, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.isAligned) + if(__isset.isAligned) { field.Name = "isAligned"; field.Type = TType.Bool; @@ -336,8 +389,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSInsertTabletReq; - if (other == null) return false; + if (!(that is TSInsertTabletReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(PrefixPath, other.PrefixPath) @@ -353,14 +405,31 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); - hashcode = (hashcode * 397) + Values.GetHashCode(); - hashcode = (hashcode * 397) + Timestamps.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Types); + if((PrefixPath != null)) + { + hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); + } + if((Measurements != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); + } + if((Values != null)) + { + hashcode = (hashcode * 397) + Values.GetHashCode(); + } + if((Timestamps != null)) + { + hashcode = (hashcode * 397) + Timestamps.GetHashCode(); + } + if((Types != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Types); + } hashcode = (hashcode * 397) + Size.GetHashCode(); if(__isset.isAligned) + { hashcode = (hashcode * 397) + IsAligned.GetHashCode(); + } } return hashcode; } @@ -369,25 +438,40 @@ public override string ToString() { var sb = new StringBuilder("TSInsertTabletReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", PrefixPath: "); - sb.Append(PrefixPath); - sb.Append(", Measurements: "); - sb.Append(Measurements); - sb.Append(", Values: "); - sb.Append(Values); - sb.Append(", Timestamps: "); - sb.Append(Timestamps); - sb.Append(", Types: "); - sb.Append(Types); + SessionId.ToString(sb); + if((PrefixPath != null)) + { + sb.Append(", PrefixPath: "); + PrefixPath.ToString(sb); + } + if((Measurements != null)) + { + sb.Append(", Measurements: "); + Measurements.ToString(sb); + } + if((Values != null)) + { + sb.Append(", Values: "); + Values.ToString(sb); + } + if((Timestamps != null)) + { + sb.Append(", Timestamps: "); + Timestamps.ToString(sb); + } + if((Types != null)) + { + sb.Append(", Types: "); + Types.ToString(sb); + } sb.Append(", Size: "); - sb.Append(Size); - if (__isset.isAligned) + Size.ToString(sb); + if(__isset.isAligned) { sb.Append(", IsAligned: "); - sb.Append(IsAligned); + IsAligned.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletsReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletsReq.cs index b5dc693..e35d43c 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletsReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletsReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSInsertTabletsReq : TBase { @@ -77,7 +82,43 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List(_list91.Count); - for(int _i92 = 0; _i92 < _list91.Count; ++_i92) + TList _list134 = await iprot.ReadListBeginAsync(cancellationToken); + PrefixPaths = new List(_list134.Count); + for(int _i135 = 0; _i135 < _list134.Count; ++_i135) { - string _elem93; - _elem93 = await iprot.ReadStringAsync(cancellationToken); - PrefixPaths.Add(_elem93); + string _elem136; + _elem136 = await iprot.ReadStringAsync(cancellationToken); + PrefixPaths.Add(_elem136); } await iprot.ReadListEndAsync(cancellationToken); } @@ -137,23 +178,23 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list94 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementsList = new List>(_list94.Count); - for(int _i95 = 0; _i95 < _list94.Count; ++_i95) + TList _list137 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list137.Count); + for(int _i138 = 0; _i138 < _list137.Count; ++_i138) { - List _elem96; + List _elem139; { - TList _list97 = await iprot.ReadListBeginAsync(cancellationToken); - _elem96 = new List(_list97.Count); - for(int _i98 = 0; _i98 < _list97.Count; ++_i98) + TList _list140 = await iprot.ReadListBeginAsync(cancellationToken); + _elem139 = new List(_list140.Count); + for(int _i141 = 0; _i141 < _list140.Count; ++_i141) { - string _elem99; - _elem99 = await iprot.ReadStringAsync(cancellationToken); - _elem96.Add(_elem99); + string _elem142; + _elem142 = await iprot.ReadStringAsync(cancellationToken); + _elem139.Add(_elem142); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem96); + MeasurementsList.Add(_elem139); } await iprot.ReadListEndAsync(cancellationToken); } @@ -168,13 +209,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list100 = await iprot.ReadListBeginAsync(cancellationToken); - ValuesList = new List(_list100.Count); - for(int _i101 = 0; _i101 < _list100.Count; ++_i101) + TList _list143 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List(_list143.Count); + for(int _i144 = 0; _i144 < _list143.Count; ++_i144) { - byte[] _elem102; - _elem102 = await iprot.ReadBinaryAsync(cancellationToken); - ValuesList.Add(_elem102); + byte[] _elem145; + _elem145 = await iprot.ReadBinaryAsync(cancellationToken); + ValuesList.Add(_elem145); } await iprot.ReadListEndAsync(cancellationToken); } @@ -189,13 +230,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list103 = await iprot.ReadListBeginAsync(cancellationToken); - TimestampsList = new List(_list103.Count); - for(int _i104 = 0; _i104 < _list103.Count; ++_i104) + TList _list146 = await iprot.ReadListBeginAsync(cancellationToken); + TimestampsList = new List(_list146.Count); + for(int _i147 = 0; _i147 < _list146.Count; ++_i147) { - byte[] _elem105; - _elem105 = await iprot.ReadBinaryAsync(cancellationToken); - TimestampsList.Add(_elem105); + byte[] _elem148; + _elem148 = await iprot.ReadBinaryAsync(cancellationToken); + TimestampsList.Add(_elem148); } await iprot.ReadListEndAsync(cancellationToken); } @@ -210,23 +251,23 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list106 = await iprot.ReadListBeginAsync(cancellationToken); - TypesList = new List>(_list106.Count); - for(int _i107 = 0; _i107 < _list106.Count; ++_i107) + TList _list149 = await iprot.ReadListBeginAsync(cancellationToken); + TypesList = new List>(_list149.Count); + for(int _i150 = 0; _i150 < _list149.Count; ++_i150) { - List _elem108; + List _elem151; { - TList _list109 = await iprot.ReadListBeginAsync(cancellationToken); - _elem108 = new List(_list109.Count); - for(int _i110 = 0; _i110 < _list109.Count; ++_i110) + TList _list152 = await iprot.ReadListBeginAsync(cancellationToken); + _elem151 = new List(_list152.Count); + for(int _i153 = 0; _i153 < _list152.Count; ++_i153) { - int _elem111; - _elem111 = await iprot.ReadI32Async(cancellationToken); - _elem108.Add(_elem111); + int _elem154; + _elem154 = await iprot.ReadI32Async(cancellationToken); + _elem151.Add(_elem154); } await iprot.ReadListEndAsync(cancellationToken); } - TypesList.Add(_elem108); + TypesList.Add(_elem151); } await iprot.ReadListEndAsync(cancellationToken); } @@ -241,13 +282,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list112 = await iprot.ReadListBeginAsync(cancellationToken); - SizeList = new List(_list112.Count); - for(int _i113 = 0; _i113 < _list112.Count; ++_i113) + TList _list155 = await iprot.ReadListBeginAsync(cancellationToken); + SizeList = new List(_list155.Count); + for(int _i156 = 0; _i156 < _list155.Count; ++_i156) { - int _elem114; - _elem114 = await iprot.ReadI32Async(cancellationToken); - SizeList.Add(_elem114); + int _elem157; + _elem157 = await iprot.ReadI32Async(cancellationToken); + SizeList.Add(_elem157); } await iprot.ReadListEndAsync(cancellationToken); } @@ -312,7 +353,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -326,99 +367,117 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "prefixPaths"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((PrefixPaths != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, PrefixPaths.Count), cancellationToken); - foreach (string _iter115 in PrefixPaths) + field.Name = "prefixPaths"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter115, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, PrefixPaths.Count), cancellationToken); + foreach (string _iter158 in PrefixPaths) + { + await oprot.WriteStringAsync(_iter158, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "measurementsList"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((MeasurementsList != null)) { - await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); - foreach (List _iter116 in MeasurementsList) + field.Name = "measurementsList"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { + await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); + foreach (List _iter159 in MeasurementsList) { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter116.Count), cancellationToken); - foreach (string _iter117 in _iter116) { - await oprot.WriteStringAsync(_iter117, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, _iter159.Count), cancellationToken); + foreach (string _iter160 in _iter159) + { + await oprot.WriteStringAsync(_iter160, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "valuesList"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((ValuesList != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, ValuesList.Count), cancellationToken); - foreach (byte[] _iter118 in ValuesList) + field.Name = "valuesList"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteBinaryAsync(_iter118, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, ValuesList.Count), cancellationToken); + foreach (byte[] _iter161 in ValuesList) + { + await oprot.WriteBinaryAsync(_iter161, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "timestampsList"; - field.Type = TType.List; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((TimestampsList != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, TimestampsList.Count), cancellationToken); - foreach (byte[] _iter119 in TimestampsList) + field.Name = "timestampsList"; + field.Type = TType.List; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteBinaryAsync(_iter119, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, TimestampsList.Count), cancellationToken); + foreach (byte[] _iter162 in TimestampsList) + { + await oprot.WriteBinaryAsync(_iter162, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "typesList"; - field.Type = TType.List; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((TypesList != null)) { - await oprot.WriteListBeginAsync(new TList(TType.List, TypesList.Count), cancellationToken); - foreach (List _iter120 in TypesList) + field.Name = "typesList"; + field.Type = TType.List; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { + await oprot.WriteListBeginAsync(new TList(TType.List, TypesList.Count), cancellationToken); + foreach (List _iter163 in TypesList) { - await oprot.WriteListBeginAsync(new TList(TType.I32, _iter120.Count), cancellationToken); - foreach (int _iter121 in _iter120) { - await oprot.WriteI32Async(_iter121, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, _iter163.Count), cancellationToken); + foreach (int _iter164 in _iter163) + { + await oprot.WriteI32Async(_iter164, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "sizeList"; - field.Type = TType.List; - field.ID = 7; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((SizeList != null)) { - await oprot.WriteListBeginAsync(new TList(TType.I32, SizeList.Count), cancellationToken); - foreach (int _iter122 in SizeList) + field.Name = "sizeList"; + field.Type = TType.List; + field.ID = 7; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteI32Async(_iter122, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I32, SizeList.Count), cancellationToken); + foreach (int _iter165 in SizeList) + { + await oprot.WriteI32Async(_iter165, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.isAligned) + if(__isset.isAligned) { field.Name = "isAligned"; field.Type = TType.Bool; @@ -438,8 +497,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSInsertTabletsReq; - if (other == null) return false; + if (!(that is TSInsertTabletsReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && TCollections.Equals(PrefixPaths, other.PrefixPaths) @@ -455,14 +513,34 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(PrefixPaths); - hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementsList); - hashcode = (hashcode * 397) + TCollections.GetHashCode(ValuesList); - hashcode = (hashcode * 397) + TCollections.GetHashCode(TimestampsList); - hashcode = (hashcode * 397) + TCollections.GetHashCode(TypesList); - hashcode = (hashcode * 397) + TCollections.GetHashCode(SizeList); + if((PrefixPaths != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(PrefixPaths); + } + if((MeasurementsList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(MeasurementsList); + } + if((ValuesList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(ValuesList); + } + if((TimestampsList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(TimestampsList); + } + if((TypesList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(TypesList); + } + if((SizeList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(SizeList); + } if(__isset.isAligned) + { hashcode = (hashcode * 397) + IsAligned.GetHashCode(); + } } return hashcode; } @@ -471,25 +549,43 @@ public override string ToString() { var sb = new StringBuilder("TSInsertTabletsReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", PrefixPaths: "); - sb.Append(PrefixPaths); - sb.Append(", MeasurementsList: "); - sb.Append(MeasurementsList); - sb.Append(", ValuesList: "); - sb.Append(ValuesList); - sb.Append(", TimestampsList: "); - sb.Append(TimestampsList); - sb.Append(", TypesList: "); - sb.Append(TypesList); - sb.Append(", SizeList: "); - sb.Append(SizeList); - if (__isset.isAligned) + SessionId.ToString(sb); + if((PrefixPaths != null)) + { + sb.Append(", PrefixPaths: "); + PrefixPaths.ToString(sb); + } + if((MeasurementsList != null)) + { + sb.Append(", MeasurementsList: "); + MeasurementsList.ToString(sb); + } + if((ValuesList != null)) + { + sb.Append(", ValuesList: "); + ValuesList.ToString(sb); + } + if((TimestampsList != null)) + { + sb.Append(", TimestampsList: "); + TimestampsList.ToString(sb); + } + if((TypesList != null)) + { + sb.Append(", TypesList: "); + TypesList.ToString(sb); + } + if((SizeList != null)) + { + sb.Append(", SizeList: "); + SizeList.ToString(sb); + } + if(__isset.isAligned) { sb.Append(", IsAligned: "); - sb.Append(IsAligned); + IsAligned.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSLastDataQueryReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSLastDataQueryReq.cs index c35fbf1..685a95f 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSLastDataQueryReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSLastDataQueryReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSLastDataQueryReq : TBase { @@ -128,7 +133,45 @@ public TSLastDataQueryReq(long sessionId, List paths, long time, long st this.StatementId = statementId; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSLastDataQueryReq DeepCopy() + { + var tmp324 = new TSLastDataQueryReq(); + tmp324.SessionId = this.SessionId; + if((Paths != null)) + { + tmp324.Paths = this.Paths.DeepCopy(); + } + if(__isset.fetchSize) + { + tmp324.FetchSize = this.FetchSize; + } + tmp324.__isset.fetchSize = this.__isset.fetchSize; + tmp324.Time = this.Time; + tmp324.StatementId = this.StatementId; + if(__isset.enableRedirectQuery) + { + tmp324.EnableRedirectQuery = this.EnableRedirectQuery; + } + tmp324.__isset.enableRedirectQuery = this.__isset.enableRedirectQuery; + if(__isset.jdbcQuery) + { + tmp324.JdbcQuery = this.JdbcQuery; + } + tmp324.__isset.jdbcQuery = this.__isset.jdbcQuery; + if(__isset.timeout) + { + tmp324.Timeout = this.Timeout; + } + tmp324.__isset.timeout = this.__isset.timeout; + if(__isset.legalPathNodes) + { + tmp324.LegalPathNodes = this.LegalPathNodes; + } + tmp324.__isset.legalPathNodes = this.__isset.legalPathNodes; + return tmp324; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -164,13 +207,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list264 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list264.Count); - for(int _i265 = 0; _i265 < _list264.Count; ++_i265) + TList _list325 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list325.Count); + for(int _i326 = 0; _i326 < _list325.Count; ++_i326) { - string _elem266; - _elem266 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem266); + string _elem327; + _elem327 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem327); } await iprot.ReadListEndAsync(cancellationToken); } @@ -285,7 +328,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -299,20 +342,23 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "paths"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Paths != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter267 in Paths) + field.Name = "paths"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter267, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); + foreach (string _iter328 in Paths) + { + await oprot.WriteStringAsync(_iter328, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.fetchSize) + if(__isset.fetchSize) { field.Name = "fetchSize"; field.Type = TType.I32; @@ -333,7 +379,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(StatementId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.enableRedirectQuery) + if(__isset.enableRedirectQuery) { field.Name = "enableRedirectQuery"; field.Type = TType.Bool; @@ -342,7 +388,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteBoolAsync(EnableRedirectQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.jdbcQuery) + if(__isset.jdbcQuery) { field.Name = "jdbcQuery"; field.Type = TType.Bool; @@ -351,7 +397,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteBoolAsync(JdbcQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.timeout) + if(__isset.timeout) { field.Name = "timeout"; field.Type = TType.I64; @@ -360,7 +406,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI64Async(Timeout, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.legalPathNodes) + if(__isset.legalPathNodes) { field.Name = "legalPathNodes"; field.Type = TType.Bool; @@ -380,8 +426,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSLastDataQueryReq; - if (other == null) return false; + if (!(that is TSLastDataQueryReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && TCollections.Equals(Paths, other.Paths) @@ -398,19 +443,32 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); + if((Paths != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); + } if(__isset.fetchSize) + { hashcode = (hashcode * 397) + FetchSize.GetHashCode(); + } hashcode = (hashcode * 397) + Time.GetHashCode(); hashcode = (hashcode * 397) + StatementId.GetHashCode(); if(__isset.enableRedirectQuery) + { hashcode = (hashcode * 397) + EnableRedirectQuery.GetHashCode(); + } if(__isset.jdbcQuery) + { hashcode = (hashcode * 397) + JdbcQuery.GetHashCode(); + } if(__isset.timeout) + { hashcode = (hashcode * 397) + Timeout.GetHashCode(); + } if(__isset.legalPathNodes) + { hashcode = (hashcode * 397) + LegalPathNodes.GetHashCode(); + } } return hashcode; } @@ -419,39 +477,42 @@ public override string ToString() { var sb = new StringBuilder("TSLastDataQueryReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", Paths: "); - sb.Append(Paths); - if (__isset.fetchSize) + SessionId.ToString(sb); + if((Paths != null)) + { + sb.Append(", Paths: "); + Paths.ToString(sb); + } + if(__isset.fetchSize) { sb.Append(", FetchSize: "); - sb.Append(FetchSize); + FetchSize.ToString(sb); } sb.Append(", Time: "); - sb.Append(Time); + Time.ToString(sb); sb.Append(", StatementId: "); - sb.Append(StatementId); - if (__isset.enableRedirectQuery) + StatementId.ToString(sb); + if(__isset.enableRedirectQuery) { sb.Append(", EnableRedirectQuery: "); - sb.Append(EnableRedirectQuery); + EnableRedirectQuery.ToString(sb); } - if (__isset.jdbcQuery) + if(__isset.jdbcQuery) { sb.Append(", JdbcQuery: "); - sb.Append(JdbcQuery); + JdbcQuery.ToString(sb); } - if (__isset.timeout) + if(__isset.timeout) { sb.Append(", Timeout: "); - sb.Append(Timeout); + Timeout.ToString(sb); } - if (__isset.legalPathNodes) + if(__isset.legalPathNodes) { sb.Append(", LegalPathNodes: "); - sb.Append(LegalPathNodes); + LegalPathNodes.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionReq.cs index d057bbe..1fa5440 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSOpenSessionReq : TBase { @@ -31,7 +36,7 @@ public partial class TSOpenSessionReq : TBase /// /// - /// + /// /// public TSProtocolVersion Client_protocol { get; set; } @@ -85,7 +90,32 @@ public TSOpenSessionReq(TSProtocolVersion client_protocol, string zoneId, string this.Username = username; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSOpenSessionReq DeepCopy() + { + var tmp64 = new TSOpenSessionReq(); + tmp64.Client_protocol = this.Client_protocol; + if((ZoneId != null)) + { + tmp64.ZoneId = this.ZoneId; + } + if((Username != null)) + { + tmp64.Username = this.Username; + } + if((Password != null) && __isset.password) + { + tmp64.Password = this.Password; + } + tmp64.__isset.password = this.__isset.password; + if((Configuration != null) && __isset.configuration) + { + tmp64.Configuration = this.Configuration.DeepCopy(); + } + tmp64.__isset.configuration = this.__isset.configuration; + return tmp64; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -152,15 +182,15 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.Map) { { - TMap _map54 = await iprot.ReadMapBeginAsync(cancellationToken); - Configuration = new Dictionary(_map54.Count); - for(int _i55 = 0; _i55 < _map54.Count; ++_i55) + TMap _map65 = await iprot.ReadMapBeginAsync(cancellationToken); + Configuration = new Dictionary(_map65.Count); + for(int _i66 = 0; _i66 < _map65.Count; ++_i66) { - string _key56; - string _val57; - _key56 = await iprot.ReadStringAsync(cancellationToken); - _val57 = await iprot.ReadStringAsync(cancellationToken); - Configuration[_key56] = _val57; + string _key67; + string _val68; + _key67 = await iprot.ReadStringAsync(cancellationToken); + _val68 = await iprot.ReadStringAsync(cancellationToken); + Configuration[_key67] = _val68; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -198,7 +228,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -212,19 +242,25 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async((int)Client_protocol, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "zoneId"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(ZoneId, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "username"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Username, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - if (Password != null && __isset.password) + if((ZoneId != null)) + { + field.Name = "zoneId"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(ZoneId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Username != null)) + { + field.Name = "username"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Username, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Password != null) && __isset.password) { field.Name = "password"; field.Type = TType.String; @@ -233,7 +269,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteStringAsync(Password, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (Configuration != null && __isset.configuration) + if((Configuration != null) && __isset.configuration) { field.Name = "configuration"; field.Type = TType.Map; @@ -241,10 +277,10 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Configuration.Count), cancellationToken); - foreach (string _iter58 in Configuration.Keys) + foreach (string _iter69 in Configuration.Keys) { - await oprot.WriteStringAsync(_iter58, cancellationToken); - await oprot.WriteStringAsync(Configuration[_iter58], cancellationToken); + await oprot.WriteStringAsync(_iter69, cancellationToken); + await oprot.WriteStringAsync(Configuration[_iter69], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -261,8 +297,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSOpenSessionReq; - if (other == null) return false; + if (!(that is TSOpenSessionReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Client_protocol, other.Client_protocol) && System.Object.Equals(ZoneId, other.ZoneId) @@ -275,12 +310,22 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + Client_protocol.GetHashCode(); - hashcode = (hashcode * 397) + ZoneId.GetHashCode(); - hashcode = (hashcode * 397) + Username.GetHashCode(); - if(__isset.password) + if((ZoneId != null)) + { + hashcode = (hashcode * 397) + ZoneId.GetHashCode(); + } + if((Username != null)) + { + hashcode = (hashcode * 397) + Username.GetHashCode(); + } + if((Password != null) && __isset.password) + { hashcode = (hashcode * 397) + Password.GetHashCode(); - if(__isset.configuration) + } + if((Configuration != null) && __isset.configuration) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(Configuration); + } } return hashcode; } @@ -289,22 +334,28 @@ public override string ToString() { var sb = new StringBuilder("TSOpenSessionReq("); sb.Append(", Client_protocol: "); - sb.Append(Client_protocol); - sb.Append(", ZoneId: "); - sb.Append(ZoneId); - sb.Append(", Username: "); - sb.Append(Username); - if (Password != null && __isset.password) + Client_protocol.ToString(sb); + if((ZoneId != null)) + { + sb.Append(", ZoneId: "); + ZoneId.ToString(sb); + } + if((Username != null)) + { + sb.Append(", Username: "); + Username.ToString(sb); + } + if((Password != null) && __isset.password) { sb.Append(", Password: "); - sb.Append(Password); + Password.ToString(sb); } - if (Configuration != null && __isset.configuration) + if((Configuration != null) && __isset.configuration) { sb.Append(", Configuration: "); - sb.Append(Configuration); + Configuration.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionResp.cs index 4fcc7d3..72e59bf 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSOpenSessionResp : TBase { @@ -33,7 +38,7 @@ public partial class TSOpenSessionResp : TBase /// /// - /// + /// /// public TSProtocolVersion ServerProtocolVersion { get; set; } @@ -82,7 +87,28 @@ public TSOpenSessionResp(TSStatus status, TSProtocolVersion serverProtocolVersio this.ServerProtocolVersion = serverProtocolVersion; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSOpenSessionResp DeepCopy() + { + var tmp57 = new TSOpenSessionResp(); + if((Status != null)) + { + tmp57.Status = (TSStatus)this.Status.DeepCopy(); + } + tmp57.ServerProtocolVersion = this.ServerProtocolVersion; + if(__isset.sessionId) + { + tmp57.SessionId = this.SessionId; + } + tmp57.__isset.sessionId = this.__isset.sessionId; + if((Configuration != null) && __isset.configuration) + { + tmp57.Configuration = this.Configuration.DeepCopy(); + } + tmp57.__isset.configuration = this.__isset.configuration; + return tmp57; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -138,15 +164,15 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.Map) { { - TMap _map49 = await iprot.ReadMapBeginAsync(cancellationToken); - Configuration = new Dictionary(_map49.Count); - for(int _i50 = 0; _i50 < _map49.Count; ++_i50) + TMap _map58 = await iprot.ReadMapBeginAsync(cancellationToken); + Configuration = new Dictionary(_map58.Count); + for(int _i59 = 0; _i59 < _map58.Count; ++_i59) { - string _key51; - string _val52; - _key51 = await iprot.ReadStringAsync(cancellationToken); - _val52 = await iprot.ReadStringAsync(cancellationToken); - Configuration[_key51] = _val52; + string _key60; + string _val61; + _key60 = await iprot.ReadStringAsync(cancellationToken); + _val61 = await iprot.ReadStringAsync(cancellationToken); + Configuration[_key60] = _val61; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -180,7 +206,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -188,19 +214,22 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSOpenSessionResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((Status != null)) + { + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } field.Name = "serverProtocolVersion"; field.Type = TType.I32; field.ID = 2; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async((int)ServerProtocolVersion, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.sessionId) + if(__isset.sessionId) { field.Name = "sessionId"; field.Type = TType.I64; @@ -209,7 +238,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (Configuration != null && __isset.configuration) + if((Configuration != null) && __isset.configuration) { field.Name = "configuration"; field.Type = TType.Map; @@ -217,10 +246,10 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Configuration.Count), cancellationToken); - foreach (string _iter53 in Configuration.Keys) + foreach (string _iter62 in Configuration.Keys) { - await oprot.WriteStringAsync(_iter53, cancellationToken); - await oprot.WriteStringAsync(Configuration[_iter53], cancellationToken); + await oprot.WriteStringAsync(_iter62, cancellationToken); + await oprot.WriteStringAsync(Configuration[_iter62], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -237,8 +266,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSOpenSessionResp; - if (other == null) return false; + if (!(that is TSOpenSessionResp other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && System.Object.Equals(ServerProtocolVersion, other.ServerProtocolVersion) @@ -249,12 +277,19 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + Status.GetHashCode(); + if((Status != null)) + { + hashcode = (hashcode * 397) + Status.GetHashCode(); + } hashcode = (hashcode * 397) + ServerProtocolVersion.GetHashCode(); if(__isset.sessionId) + { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - if(__isset.configuration) + } + if((Configuration != null) && __isset.configuration) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(Configuration); + } } return hashcode; } @@ -262,21 +297,24 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSOpenSessionResp("); - sb.Append(", Status: "); - sb.Append(Status== null ? "" : Status.ToString()); + if((Status != null)) + { + sb.Append(", Status: "); + Status.ToString(sb); + } sb.Append(", ServerProtocolVersion: "); - sb.Append(ServerProtocolVersion); - if (__isset.sessionId) + ServerProtocolVersion.ToString(sb); + if(__isset.sessionId) { sb.Append(", SessionId: "); - sb.Append(SessionId); + SessionId.ToString(sb); } - if (Configuration != null && __isset.configuration) + if((Configuration != null) && __isset.configuration) { sb.Append(", Configuration: "); - sb.Append(Configuration); + Configuration.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSProtocolVersion.cs b/src/Apache.IoTDB/Rpc/Generated/TSProtocolVersion.cs index 73480ea..c243719 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSProtocolVersion.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSProtocolVersion.cs @@ -1,10 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public enum TSProtocolVersion { IOTDB_SERVICE_PROTOCOL_V1 = 0, diff --git a/src/Apache.IoTDB/Rpc/Generated/TSPruneSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSPruneSchemaTemplateReq.cs index 1bbfe97..087a3d5 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSPruneSchemaTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSPruneSchemaTemplateReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSPruneSchemaTemplateReq : TBase { @@ -44,7 +49,22 @@ public TSPruneSchemaTemplateReq(long sessionId, string name, string path) : this this.Path = path; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSPruneSchemaTemplateReq DeepCopy() + { + var tmp425 = new TSPruneSchemaTemplateReq(); + tmp425.SessionId = this.SessionId; + if((Name != null)) + { + tmp425.Name = this.Name; + } + if((Path != null)) + { + tmp425.Path = this.Path; + } + return tmp425; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -125,7 +145,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -139,18 +159,24 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "name"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Name, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "path"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Path, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((Name != null)) + { + field.Name = "name"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Name, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Path != null)) + { + field.Name = "path"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Path, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -162,8 +188,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSPruneSchemaTemplateReq; - if (other == null) return false; + if (!(that is TSPruneSchemaTemplateReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(Name, other.Name) @@ -174,8 +199,14 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + Name.GetHashCode(); - hashcode = (hashcode * 397) + Path.GetHashCode(); + if((Name != null)) + { + hashcode = (hashcode * 397) + Name.GetHashCode(); + } + if((Path != null)) + { + hashcode = (hashcode * 397) + Path.GetHashCode(); + } } return hashcode; } @@ -184,12 +215,18 @@ public override string ToString() { var sb = new StringBuilder("TSPruneSchemaTemplateReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", Name: "); - sb.Append(Name); - sb.Append(", Path: "); - sb.Append(Path); - sb.Append(")"); + SessionId.ToString(sb); + if((Name != null)) + { + sb.Append(", Name: "); + Name.ToString(sb); + } + if((Path != null)) + { + sb.Append(", Path: "); + Path.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSQueryDataSet.cs b/src/Apache.IoTDB/Rpc/Generated/TSQueryDataSet.cs index fe0d8d3..8606cd1 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSQueryDataSet.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSQueryDataSet.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSQueryDataSet : TBase { @@ -44,7 +49,25 @@ public TSQueryDataSet(byte[] time, List valueList, List bitmapLi this.BitmapList = bitmapList; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSQueryDataSet DeepCopy() + { + var tmp0 = new TSQueryDataSet(); + if((Time != null)) + { + tmp0.Time = this.Time.ToArray(); + } + if((ValueList != null)) + { + tmp0.ValueList = this.ValueList.DeepCopy(); + } + if((BitmapList != null)) + { + tmp0.BitmapList = this.BitmapList.DeepCopy(); + } + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -79,13 +102,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list0 = await iprot.ReadListBeginAsync(cancellationToken); - ValueList = new List(_list0.Count); - for(int _i1 = 0; _i1 < _list0.Count; ++_i1) + TList _list1 = await iprot.ReadListBeginAsync(cancellationToken); + ValueList = new List(_list1.Count); + for(int _i2 = 0; _i2 < _list1.Count; ++_i2) { - byte[] _elem2; - _elem2 = await iprot.ReadBinaryAsync(cancellationToken); - ValueList.Add(_elem2); + byte[] _elem3; + _elem3 = await iprot.ReadBinaryAsync(cancellationToken); + ValueList.Add(_elem3); } await iprot.ReadListEndAsync(cancellationToken); } @@ -100,13 +123,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list3 = await iprot.ReadListBeginAsync(cancellationToken); - BitmapList = new List(_list3.Count); - for(int _i4 = 0; _i4 < _list3.Count; ++_i4) + TList _list4 = await iprot.ReadListBeginAsync(cancellationToken); + BitmapList = new List(_list4.Count); + for(int _i5 = 0; _i5 < _list4.Count; ++_i5) { - byte[] _elem5; - _elem5 = await iprot.ReadBinaryAsync(cancellationToken); - BitmapList.Add(_elem5); + byte[] _elem6; + _elem6 = await iprot.ReadBinaryAsync(cancellationToken); + BitmapList.Add(_elem6); } await iprot.ReadListEndAsync(cancellationToken); } @@ -145,7 +168,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -153,38 +176,47 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSQueryDataSet"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "time"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteBinaryAsync(Time, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "valueList"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Time != null)) + { + field.Name = "time"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBinaryAsync(Time, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ValueList != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, ValueList.Count), cancellationToken); - foreach (byte[] _iter6 in ValueList) + field.Name = "valueList"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteBinaryAsync(_iter6, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, ValueList.Count), cancellationToken); + foreach (byte[] _iter7 in ValueList) + { + await oprot.WriteBinaryAsync(_iter7, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "bitmapList"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((BitmapList != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, BitmapList.Count), cancellationToken); - foreach (byte[] _iter7 in BitmapList) + field.Name = "bitmapList"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteBinaryAsync(_iter7, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, BitmapList.Count), cancellationToken); + foreach (byte[] _iter8 in BitmapList) + { + await oprot.WriteBinaryAsync(_iter8, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -196,8 +228,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSQueryDataSet; - if (other == null) return false; + if (!(that is TSQueryDataSet other)) return false; if (ReferenceEquals(this, other)) return true; return TCollections.Equals(Time, other.Time) && TCollections.Equals(ValueList, other.ValueList) @@ -207,9 +238,18 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + Time.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(ValueList); - hashcode = (hashcode * 397) + TCollections.GetHashCode(BitmapList); + if((Time != null)) + { + hashcode = (hashcode * 397) + Time.GetHashCode(); + } + if((ValueList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(ValueList); + } + if((BitmapList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(BitmapList); + } } return hashcode; } @@ -217,13 +257,22 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSQueryDataSet("); - sb.Append(", Time: "); - sb.Append(Time); - sb.Append(", ValueList: "); - sb.Append(ValueList); - sb.Append(", BitmapList: "); - sb.Append(BitmapList); - sb.Append(")"); + if((Time != null)) + { + sb.Append(", Time: "); + Time.ToString(sb); + } + if((ValueList != null)) + { + sb.Append(", ValueList: "); + ValueList.ToString(sb); + } + if((BitmapList != null)) + { + sb.Append(", BitmapList: "); + BitmapList.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSQueryNonAlignDataSet.cs b/src/Apache.IoTDB/Rpc/Generated/TSQueryNonAlignDataSet.cs index df3408e..f1b7e58 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSQueryNonAlignDataSet.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSQueryNonAlignDataSet.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSQueryNonAlignDataSet : TBase { @@ -41,7 +46,21 @@ public TSQueryNonAlignDataSet(List timeList, List valueList) : t this.ValueList = valueList; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSQueryNonAlignDataSet DeepCopy() + { + var tmp10 = new TSQueryNonAlignDataSet(); + if((TimeList != null)) + { + tmp10.TimeList = this.TimeList.DeepCopy(); + } + if((ValueList != null)) + { + tmp10.ValueList = this.ValueList.DeepCopy(); + } + return tmp10; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -64,13 +83,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list8 = await iprot.ReadListBeginAsync(cancellationToken); - TimeList = new List(_list8.Count); - for(int _i9 = 0; _i9 < _list8.Count; ++_i9) + TList _list11 = await iprot.ReadListBeginAsync(cancellationToken); + TimeList = new List(_list11.Count); + for(int _i12 = 0; _i12 < _list11.Count; ++_i12) { - byte[] _elem10; - _elem10 = await iprot.ReadBinaryAsync(cancellationToken); - TimeList.Add(_elem10); + byte[] _elem13; + _elem13 = await iprot.ReadBinaryAsync(cancellationToken); + TimeList.Add(_elem13); } await iprot.ReadListEndAsync(cancellationToken); } @@ -85,13 +104,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list11 = await iprot.ReadListBeginAsync(cancellationToken); - ValueList = new List(_list11.Count); - for(int _i12 = 0; _i12 < _list11.Count; ++_i12) + TList _list14 = await iprot.ReadListBeginAsync(cancellationToken); + ValueList = new List(_list14.Count); + for(int _i15 = 0; _i15 < _list14.Count; ++_i15) { - byte[] _elem13; - _elem13 = await iprot.ReadBinaryAsync(cancellationToken); - ValueList.Add(_elem13); + byte[] _elem16; + _elem16 = await iprot.ReadBinaryAsync(cancellationToken); + ValueList.Add(_elem16); } await iprot.ReadListEndAsync(cancellationToken); } @@ -126,7 +145,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -134,32 +153,38 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSQueryNonAlignDataSet"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "timeList"; - field.Type = TType.List; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((TimeList != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, TimeList.Count), cancellationToken); - foreach (byte[] _iter14 in TimeList) + field.Name = "timeList"; + field.Type = TType.List; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteBinaryAsync(_iter14, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, TimeList.Count), cancellationToken); + foreach (byte[] _iter17 in TimeList) + { + await oprot.WriteBinaryAsync(_iter17, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "valueList"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((ValueList != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, ValueList.Count), cancellationToken); - foreach (byte[] _iter15 in ValueList) + field.Name = "valueList"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteBinaryAsync(_iter15, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, ValueList.Count), cancellationToken); + foreach (byte[] _iter18 in ValueList) + { + await oprot.WriteBinaryAsync(_iter18, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -171,8 +196,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSQueryNonAlignDataSet; - if (other == null) return false; + if (!(that is TSQueryNonAlignDataSet other)) return false; if (ReferenceEquals(this, other)) return true; return TCollections.Equals(TimeList, other.TimeList) && TCollections.Equals(ValueList, other.ValueList); @@ -181,8 +205,14 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + TCollections.GetHashCode(TimeList); - hashcode = (hashcode * 397) + TCollections.GetHashCode(ValueList); + if((TimeList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(TimeList); + } + if((ValueList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(ValueList); + } } return hashcode; } @@ -190,11 +220,17 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSQueryNonAlignDataSet("); - sb.Append(", TimeList: "); - sb.Append(TimeList); - sb.Append(", ValueList: "); - sb.Append(ValueList); - sb.Append(")"); + if((TimeList != null)) + { + sb.Append(", TimeList: "); + TimeList.ToString(sb); + } + if((ValueList != null)) + { + sb.Append(", ValueList: "); + ValueList.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateReq.cs index e9b134a..51b6d40 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSQueryTemplateReq : TBase { @@ -65,7 +70,24 @@ public TSQueryTemplateReq(long sessionId, string name, int queryType) : this() this.QueryType = queryType; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSQueryTemplateReq DeepCopy() + { + var tmp427 = new TSQueryTemplateReq(); + tmp427.SessionId = this.SessionId; + if((Name != null)) + { + tmp427.Name = this.Name; + } + tmp427.QueryType = this.QueryType; + if((Measurement != null) && __isset.measurement) + { + tmp427.Measurement = this.Measurement; + } + tmp427.__isset.measurement = this.__isset.measurement; + return tmp427; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -156,7 +178,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -170,19 +192,22 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "name"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Name, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((Name != null)) + { + field.Name = "name"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Name, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } field.Name = "queryType"; field.Type = TType.I32; field.ID = 3; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(QueryType, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if (Measurement != null && __isset.measurement) + if((Measurement != null) && __isset.measurement) { field.Name = "measurement"; field.Type = TType.String; @@ -202,8 +227,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSQueryTemplateReq; - if (other == null) return false; + if (!(that is TSQueryTemplateReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(Name, other.Name) @@ -215,10 +239,15 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + Name.GetHashCode(); + if((Name != null)) + { + hashcode = (hashcode * 397) + Name.GetHashCode(); + } hashcode = (hashcode * 397) + QueryType.GetHashCode(); - if(__isset.measurement) + if((Measurement != null) && __isset.measurement) + { hashcode = (hashcode * 397) + Measurement.GetHashCode(); + } } return hashcode; } @@ -227,17 +256,20 @@ public override string ToString() { var sb = new StringBuilder("TSQueryTemplateReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", Name: "); - sb.Append(Name); + SessionId.ToString(sb); + if((Name != null)) + { + sb.Append(", Name: "); + Name.ToString(sb); + } sb.Append(", QueryType: "); - sb.Append(QueryType); - if (Measurement != null && __isset.measurement) + QueryType.ToString(sb); + if((Measurement != null) && __isset.measurement) { sb.Append(", Measurement: "); - sb.Append(Measurement); + Measurement.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateResp.cs index 3ecbc4b..6372222 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSQueryTemplateResp : TBase { @@ -92,7 +97,33 @@ public TSQueryTemplateResp(TSStatus status, int queryType) : this() this.QueryType = queryType; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSQueryTemplateResp DeepCopy() + { + var tmp429 = new TSQueryTemplateResp(); + if((Status != null)) + { + tmp429.Status = (TSStatus)this.Status.DeepCopy(); + } + tmp429.QueryType = this.QueryType; + if(__isset.result) + { + tmp429.Result = this.Result; + } + tmp429.__isset.result = this.__isset.result; + if(__isset.count) + { + tmp429.Count = this.Count; + } + tmp429.__isset.count = this.__isset.count; + if((Measurements != null) && __isset.measurements) + { + tmp429.Measurements = this.Measurements.DeepCopy(); + } + tmp429.__isset.measurements = this.__isset.measurements; + return tmp429; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -158,13 +189,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list347 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list347.Count); - for(int _i348 = 0; _i348 < _list347.Count; ++_i348) + TList _list430 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list430.Count); + for(int _i431 = 0; _i431 < _list430.Count; ++_i431) { - string _elem349; - _elem349 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem349); + string _elem432; + _elem432 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem432); } await iprot.ReadListEndAsync(cancellationToken); } @@ -198,7 +229,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -206,19 +237,22 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSQueryTemplateResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((Status != null)) + { + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } field.Name = "queryType"; field.Type = TType.I32; field.ID = 2; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(QueryType, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.result) + if(__isset.result) { field.Name = "result"; field.Type = TType.Bool; @@ -227,7 +261,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteBoolAsync(Result, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.count) + if(__isset.count) { field.Name = "count"; field.Type = TType.I32; @@ -236,7 +270,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI32Async(Count, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (Measurements != null && __isset.measurements) + if((Measurements != null) && __isset.measurements) { field.Name = "measurements"; field.Type = TType.List; @@ -244,9 +278,9 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter350 in Measurements) + foreach (string _iter433 in Measurements) { - await oprot.WriteStringAsync(_iter350, cancellationToken); + await oprot.WriteStringAsync(_iter433, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -263,8 +297,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSQueryTemplateResp; - if (other == null) return false; + if (!(that is TSQueryTemplateResp other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && System.Object.Equals(QueryType, other.QueryType) @@ -276,14 +309,23 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + Status.GetHashCode(); + if((Status != null)) + { + hashcode = (hashcode * 397) + Status.GetHashCode(); + } hashcode = (hashcode * 397) + QueryType.GetHashCode(); if(__isset.result) + { hashcode = (hashcode * 397) + Result.GetHashCode(); + } if(__isset.count) + { hashcode = (hashcode * 397) + Count.GetHashCode(); - if(__isset.measurements) + } + if((Measurements != null) && __isset.measurements) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(Measurements); + } } return hashcode; } @@ -291,26 +333,29 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSQueryTemplateResp("); - sb.Append(", Status: "); - sb.Append(Status== null ? "" : Status.ToString()); + if((Status != null)) + { + sb.Append(", Status: "); + Status.ToString(sb); + } sb.Append(", QueryType: "); - sb.Append(QueryType); - if (__isset.result) + QueryType.ToString(sb); + if(__isset.result) { sb.Append(", Result: "); - sb.Append(Result); + Result.ToString(sb); } - if (__isset.count) + if(__isset.count) { sb.Append(", Count: "); - sb.Append(Count); + Count.ToString(sb); } - if (Measurements != null && __isset.measurements) + if((Measurements != null) && __isset.measurements) { sb.Append(", Measurements: "); - sb.Append(Measurements); + Measurements.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSRawDataQueryReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSRawDataQueryReq.cs index 7f9b9f3..c621f21 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSRawDataQueryReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSRawDataQueryReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSRawDataQueryReq : TBase { @@ -131,7 +136,46 @@ public TSRawDataQueryReq(long sessionId, List paths, long startTime, lon this.StatementId = statementId; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSRawDataQueryReq DeepCopy() + { + var tmp318 = new TSRawDataQueryReq(); + tmp318.SessionId = this.SessionId; + if((Paths != null)) + { + tmp318.Paths = this.Paths.DeepCopy(); + } + if(__isset.fetchSize) + { + tmp318.FetchSize = this.FetchSize; + } + tmp318.__isset.fetchSize = this.__isset.fetchSize; + tmp318.StartTime = this.StartTime; + tmp318.EndTime = this.EndTime; + tmp318.StatementId = this.StatementId; + if(__isset.enableRedirectQuery) + { + tmp318.EnableRedirectQuery = this.EnableRedirectQuery; + } + tmp318.__isset.enableRedirectQuery = this.__isset.enableRedirectQuery; + if(__isset.jdbcQuery) + { + tmp318.JdbcQuery = this.JdbcQuery; + } + tmp318.__isset.jdbcQuery = this.__isset.jdbcQuery; + if(__isset.timeout) + { + tmp318.Timeout = this.Timeout; + } + tmp318.__isset.timeout = this.__isset.timeout; + if(__isset.legalPathNodes) + { + tmp318.LegalPathNodes = this.LegalPathNodes; + } + tmp318.__isset.legalPathNodes = this.__isset.legalPathNodes; + return tmp318; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -168,13 +212,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list260 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list260.Count); - for(int _i261 = 0; _i261 < _list260.Count; ++_i261) + TList _list319 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list319.Count); + for(int _i320 = 0; _i320 < _list319.Count; ++_i320) { - string _elem262; - _elem262 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem262); + string _elem321; + _elem321 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem321); } await iprot.ReadListEndAsync(cancellationToken); } @@ -304,7 +348,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -318,20 +362,23 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "paths"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Paths != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter263 in Paths) + field.Name = "paths"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter263, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); + foreach (string _iter322 in Paths) + { + await oprot.WriteStringAsync(_iter322, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.fetchSize) + if(__isset.fetchSize) { field.Name = "fetchSize"; field.Type = TType.I32; @@ -358,7 +405,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(StatementId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.enableRedirectQuery) + if(__isset.enableRedirectQuery) { field.Name = "enableRedirectQuery"; field.Type = TType.Bool; @@ -367,7 +414,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteBoolAsync(EnableRedirectQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.jdbcQuery) + if(__isset.jdbcQuery) { field.Name = "jdbcQuery"; field.Type = TType.Bool; @@ -376,7 +423,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteBoolAsync(JdbcQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.timeout) + if(__isset.timeout) { field.Name = "timeout"; field.Type = TType.I64; @@ -385,7 +432,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI64Async(Timeout, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.legalPathNodes) + if(__isset.legalPathNodes) { field.Name = "legalPathNodes"; field.Type = TType.Bool; @@ -405,8 +452,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSRawDataQueryReq; - if (other == null) return false; + if (!(that is TSRawDataQueryReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && TCollections.Equals(Paths, other.Paths) @@ -424,20 +470,33 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); + if((Paths != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); + } if(__isset.fetchSize) + { hashcode = (hashcode * 397) + FetchSize.GetHashCode(); + } hashcode = (hashcode * 397) + StartTime.GetHashCode(); hashcode = (hashcode * 397) + EndTime.GetHashCode(); hashcode = (hashcode * 397) + StatementId.GetHashCode(); if(__isset.enableRedirectQuery) + { hashcode = (hashcode * 397) + EnableRedirectQuery.GetHashCode(); + } if(__isset.jdbcQuery) + { hashcode = (hashcode * 397) + JdbcQuery.GetHashCode(); + } if(__isset.timeout) + { hashcode = (hashcode * 397) + Timeout.GetHashCode(); + } if(__isset.legalPathNodes) + { hashcode = (hashcode * 397) + LegalPathNodes.GetHashCode(); + } } return hashcode; } @@ -446,41 +505,44 @@ public override string ToString() { var sb = new StringBuilder("TSRawDataQueryReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", Paths: "); - sb.Append(Paths); - if (__isset.fetchSize) + SessionId.ToString(sb); + if((Paths != null)) + { + sb.Append(", Paths: "); + Paths.ToString(sb); + } + if(__isset.fetchSize) { sb.Append(", FetchSize: "); - sb.Append(FetchSize); + FetchSize.ToString(sb); } sb.Append(", StartTime: "); - sb.Append(StartTime); + StartTime.ToString(sb); sb.Append(", EndTime: "); - sb.Append(EndTime); + EndTime.ToString(sb); sb.Append(", StatementId: "); - sb.Append(StatementId); - if (__isset.enableRedirectQuery) + StatementId.ToString(sb); + if(__isset.enableRedirectQuery) { sb.Append(", EnableRedirectQuery: "); - sb.Append(EnableRedirectQuery); + EnableRedirectQuery.ToString(sb); } - if (__isset.jdbcQuery) + if(__isset.jdbcQuery) { sb.Append(", JdbcQuery: "); - sb.Append(JdbcQuery); + JdbcQuery.ToString(sb); } - if (__isset.timeout) + if(__isset.timeout) { sb.Append(", Timeout: "); - sb.Append(Timeout); + Timeout.ToString(sb); } - if (__isset.legalPathNodes) + if(__isset.legalPathNodes) { sb.Append(", LegalPathNodes: "); - sb.Append(LegalPathNodes); + LegalPathNodes.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSSetSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSSetSchemaTemplateReq.cs index 94de4ba..930d22b 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSSetSchemaTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSSetSchemaTemplateReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSSetSchemaTemplateReq : TBase { @@ -44,7 +49,22 @@ public TSSetSchemaTemplateReq(long sessionId, string templateName, string prefix this.PrefixPath = prefixPath; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSSetSchemaTemplateReq DeepCopy() + { + var tmp403 = new TSSetSchemaTemplateReq(); + tmp403.SessionId = this.SessionId; + if((TemplateName != null)) + { + tmp403.TemplateName = this.TemplateName; + } + if((PrefixPath != null)) + { + tmp403.PrefixPath = this.PrefixPath; + } + return tmp403; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -125,7 +145,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -139,18 +159,24 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "templateName"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(TemplateName, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "prefixPath"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(PrefixPath, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((TemplateName != null)) + { + field.Name = "templateName"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(TemplateName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PrefixPath != null)) + { + field.Name = "prefixPath"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(PrefixPath, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -162,8 +188,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSSetSchemaTemplateReq; - if (other == null) return false; + if (!(that is TSSetSchemaTemplateReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(TemplateName, other.TemplateName) @@ -174,8 +199,14 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + TemplateName.GetHashCode(); - hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); + if((TemplateName != null)) + { + hashcode = (hashcode * 397) + TemplateName.GetHashCode(); + } + if((PrefixPath != null)) + { + hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); + } } return hashcode; } @@ -184,12 +215,18 @@ public override string ToString() { var sb = new StringBuilder("TSSetSchemaTemplateReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", TemplateName: "); - sb.Append(TemplateName); - sb.Append(", PrefixPath: "); - sb.Append(PrefixPath); - sb.Append(")"); + SessionId.ToString(sb); + if((TemplateName != null)) + { + sb.Append(", TemplateName: "); + TemplateName.ToString(sb); + } + if((PrefixPath != null)) + { + sb.Append(", PrefixPath: "); + PrefixPath.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSSetTimeZoneReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSSetTimeZoneReq.cs index 963d8da..a91c322 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSSetTimeZoneReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSSetTimeZoneReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSSetTimeZoneReq : TBase { @@ -41,7 +46,18 @@ public TSSetTimeZoneReq(long sessionId, string timeZone) : this() this.TimeZone = timeZone; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSSetTimeZoneReq DeepCopy() + { + var tmp105 = new TSSetTimeZoneReq(); + tmp105.SessionId = this.SessionId; + if((TimeZone != null)) + { + tmp105.TimeZone = this.TimeZone; + } + return tmp105; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -106,7 +122,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -120,12 +136,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "timeZone"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(TimeZone, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((TimeZone != null)) + { + field.Name = "timeZone"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(TimeZone, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -137,8 +156,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSSetTimeZoneReq; - if (other == null) return false; + if (!(that is TSSetTimeZoneReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(TimeZone, other.TimeZone); @@ -148,7 +166,10 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + TimeZone.GetHashCode(); + if((TimeZone != null)) + { + hashcode = (hashcode * 397) + TimeZone.GetHashCode(); + } } return hashcode; } @@ -157,10 +178,13 @@ public override string ToString() { var sb = new StringBuilder("TSSetTimeZoneReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", TimeZone: "); - sb.Append(TimeZone); - sb.Append(")"); + SessionId.ToString(sb); + if((TimeZone != null)) + { + sb.Append(", TimeZone: "); + TimeZone.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSStatus.cs b/src/Apache.IoTDB/Rpc/Generated/TSStatus.cs index 4abd282..0e738ef 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSStatus.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSStatus.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSStatus : TBase { @@ -104,7 +109,34 @@ public TSStatus(int code) : this() this.Code = code; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSStatus DeepCopy() + { + var tmp2 = new TSStatus(); + tmp2.Code = this.Code; + if((Message != null) && __isset.message) + { + tmp2.Message = this.Message; + } + tmp2.__isset.message = this.__isset.message; + if((SubStatus != null) && __isset.subStatus) + { + tmp2.SubStatus = this.SubStatus.DeepCopy(); + } + tmp2.__isset.subStatus = this.__isset.subStatus; + if((RedirectNode != null) && __isset.redirectNode) + { + tmp2.RedirectNode = (TEndPoint)this.RedirectNode.DeepCopy(); + } + tmp2.__isset.redirectNode = this.__isset.redirectNode; + if(__isset.needRetry) + { + tmp2.NeedRetry = this.NeedRetry; + } + tmp2.__isset.needRetry = this.__isset.needRetry; + return tmp2; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -147,14 +179,14 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list0 = await iprot.ReadListBeginAsync(cancellationToken); - SubStatus = new List(_list0.Count); - for(int _i1 = 0; _i1 < _list0.Count; ++_i1) + TList _list3 = await iprot.ReadListBeginAsync(cancellationToken); + SubStatus = new List(_list3.Count); + for(int _i4 = 0; _i4 < _list3.Count; ++_i4) { - TSStatus _elem2; - _elem2 = new TSStatus(); - await _elem2.ReadAsync(iprot, cancellationToken); - SubStatus.Add(_elem2); + TSStatus _elem5; + _elem5 = new TSStatus(); + await _elem5.ReadAsync(iprot, cancellationToken); + SubStatus.Add(_elem5); } await iprot.ReadListEndAsync(cancellationToken); } @@ -205,7 +237,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -219,7 +251,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(Code, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if (Message != null && __isset.message) + if((Message != null) && __isset.message) { field.Name = "message"; field.Type = TType.String; @@ -228,7 +260,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteStringAsync(Message, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (SubStatus != null && __isset.subStatus) + if((SubStatus != null) && __isset.subStatus) { field.Name = "subStatus"; field.Type = TType.List; @@ -236,15 +268,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, SubStatus.Count), cancellationToken); - foreach (TSStatus _iter3 in SubStatus) + foreach (TSStatus _iter6 in SubStatus) { - await _iter3.WriteAsync(oprot, cancellationToken); + await _iter6.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if (RedirectNode != null && __isset.redirectNode) + if((RedirectNode != null) && __isset.redirectNode) { field.Name = "redirectNode"; field.Type = TType.Struct; @@ -253,7 +285,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await RedirectNode.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.needRetry) + if(__isset.needRetry) { field.Name = "needRetry"; field.Type = TType.Bool; @@ -273,8 +305,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSStatus; - if (other == null) return false; + if (!(that is TSStatus other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Code, other.Code) && ((__isset.message == other.__isset.message) && ((!__isset.message) || (System.Object.Equals(Message, other.Message)))) @@ -287,14 +318,22 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + Code.GetHashCode(); - if(__isset.message) + if((Message != null) && __isset.message) + { hashcode = (hashcode * 397) + Message.GetHashCode(); - if(__isset.subStatus) + } + if((SubStatus != null) && __isset.subStatus) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(SubStatus); - if(__isset.redirectNode) + } + if((RedirectNode != null) && __isset.redirectNode) + { hashcode = (hashcode * 397) + RedirectNode.GetHashCode(); + } if(__isset.needRetry) + { hashcode = (hashcode * 397) + NeedRetry.GetHashCode(); + } } return hashcode; } @@ -303,28 +342,28 @@ public override string ToString() { var sb = new StringBuilder("TSStatus("); sb.Append(", Code: "); - sb.Append(Code); - if (Message != null && __isset.message) + Code.ToString(sb); + if((Message != null) && __isset.message) { sb.Append(", Message: "); - sb.Append(Message); + Message.ToString(sb); } - if (SubStatus != null && __isset.subStatus) + if((SubStatus != null) && __isset.subStatus) { sb.Append(", SubStatus: "); - sb.Append(SubStatus); + SubStatus.ToString(sb); } - if (RedirectNode != null && __isset.redirectNode) + if((RedirectNode != null) && __isset.redirectNode) { sb.Append(", RedirectNode: "); - sb.Append(RedirectNode== null ? "" : RedirectNode.ToString()); + RedirectNode.ToString(sb); } - if (__isset.needRetry) + if(__isset.needRetry) { sb.Append(", NeedRetry: "); - sb.Append(NeedRetry); + NeedRetry.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSTracingInfo.cs b/src/Apache.IoTDB/Rpc/Generated/TSTracingInfo.cs index cc0d84b..73d55dd 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSTracingInfo.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSTracingInfo.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSTracingInfo : TBase { @@ -182,7 +187,66 @@ public TSTracingInfo(List activityList, List elapsedTimeList) : th this.ElapsedTimeList = elapsedTimeList; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSTracingInfo DeepCopy() + { + var tmp20 = new TSTracingInfo(); + if((ActivityList != null)) + { + tmp20.ActivityList = this.ActivityList.DeepCopy(); + } + if((ElapsedTimeList != null)) + { + tmp20.ElapsedTimeList = this.ElapsedTimeList.DeepCopy(); + } + if(__isset.seriesPathNum) + { + tmp20.SeriesPathNum = this.SeriesPathNum; + } + tmp20.__isset.seriesPathNum = this.__isset.seriesPathNum; + if(__isset.seqFileNum) + { + tmp20.SeqFileNum = this.SeqFileNum; + } + tmp20.__isset.seqFileNum = this.__isset.seqFileNum; + if(__isset.unSeqFileNum) + { + tmp20.UnSeqFileNum = this.UnSeqFileNum; + } + tmp20.__isset.unSeqFileNum = this.__isset.unSeqFileNum; + if(__isset.sequenceChunkNum) + { + tmp20.SequenceChunkNum = this.SequenceChunkNum; + } + tmp20.__isset.sequenceChunkNum = this.__isset.sequenceChunkNum; + if(__isset.sequenceChunkPointNum) + { + tmp20.SequenceChunkPointNum = this.SequenceChunkPointNum; + } + tmp20.__isset.sequenceChunkPointNum = this.__isset.sequenceChunkPointNum; + if(__isset.unsequenceChunkNum) + { + tmp20.UnsequenceChunkNum = this.UnsequenceChunkNum; + } + tmp20.__isset.unsequenceChunkNum = this.__isset.unsequenceChunkNum; + if(__isset.unsequenceChunkPointNum) + { + tmp20.UnsequenceChunkPointNum = this.UnsequenceChunkPointNum; + } + tmp20.__isset.unsequenceChunkPointNum = this.__isset.unsequenceChunkPointNum; + if(__isset.totalPageNum) + { + tmp20.TotalPageNum = this.TotalPageNum; + } + tmp20.__isset.totalPageNum = this.__isset.totalPageNum; + if(__isset.overlappedPageNum) + { + tmp20.OverlappedPageNum = this.OverlappedPageNum; + } + tmp20.__isset.overlappedPageNum = this.__isset.overlappedPageNum; + return tmp20; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -205,13 +269,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list16 = await iprot.ReadListBeginAsync(cancellationToken); - ActivityList = new List(_list16.Count); - for(int _i17 = 0; _i17 < _list16.Count; ++_i17) + TList _list21 = await iprot.ReadListBeginAsync(cancellationToken); + ActivityList = new List(_list21.Count); + for(int _i22 = 0; _i22 < _list21.Count; ++_i22) { - string _elem18; - _elem18 = await iprot.ReadStringAsync(cancellationToken); - ActivityList.Add(_elem18); + string _elem23; + _elem23 = await iprot.ReadStringAsync(cancellationToken); + ActivityList.Add(_elem23); } await iprot.ReadListEndAsync(cancellationToken); } @@ -226,13 +290,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list19 = await iprot.ReadListBeginAsync(cancellationToken); - ElapsedTimeList = new List(_list19.Count); - for(int _i20 = 0; _i20 < _list19.Count; ++_i20) + TList _list24 = await iprot.ReadListBeginAsync(cancellationToken); + ElapsedTimeList = new List(_list24.Count); + for(int _i25 = 0; _i25 < _list24.Count; ++_i25) { - long _elem21; - _elem21 = await iprot.ReadI64Async(cancellationToken); - ElapsedTimeList.Add(_elem21); + long _elem26; + _elem26 = await iprot.ReadI64Async(cancellationToken); + ElapsedTimeList.Add(_elem26); } await iprot.ReadListEndAsync(cancellationToken); } @@ -357,7 +421,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -365,33 +429,39 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSTracingInfo"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "activityList"; - field.Type = TType.List; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((ActivityList != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, ActivityList.Count), cancellationToken); - foreach (string _iter22 in ActivityList) + field.Name = "activityList"; + field.Type = TType.List; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter22, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, ActivityList.Count), cancellationToken); + foreach (string _iter27 in ActivityList) + { + await oprot.WriteStringAsync(_iter27, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "elapsedTimeList"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((ElapsedTimeList != null)) { - await oprot.WriteListBeginAsync(new TList(TType.I64, ElapsedTimeList.Count), cancellationToken); - foreach (long _iter23 in ElapsedTimeList) + field.Name = "elapsedTimeList"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteI64Async(_iter23, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.I64, ElapsedTimeList.Count), cancellationToken); + foreach (long _iter28 in ElapsedTimeList) + { + await oprot.WriteI64Async(_iter28, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - if (__isset.seriesPathNum) + if(__isset.seriesPathNum) { field.Name = "seriesPathNum"; field.Type = TType.I32; @@ -400,7 +470,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI32Async(SeriesPathNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.seqFileNum) + if(__isset.seqFileNum) { field.Name = "seqFileNum"; field.Type = TType.I32; @@ -409,7 +479,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI32Async(SeqFileNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.unSeqFileNum) + if(__isset.unSeqFileNum) { field.Name = "unSeqFileNum"; field.Type = TType.I32; @@ -418,7 +488,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI32Async(UnSeqFileNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.sequenceChunkNum) + if(__isset.sequenceChunkNum) { field.Name = "sequenceChunkNum"; field.Type = TType.I32; @@ -427,7 +497,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI32Async(SequenceChunkNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.sequenceChunkPointNum) + if(__isset.sequenceChunkPointNum) { field.Name = "sequenceChunkPointNum"; field.Type = TType.I64; @@ -436,7 +506,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI64Async(SequenceChunkPointNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.unsequenceChunkNum) + if(__isset.unsequenceChunkNum) { field.Name = "unsequenceChunkNum"; field.Type = TType.I32; @@ -445,7 +515,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI32Async(UnsequenceChunkNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.unsequenceChunkPointNum) + if(__isset.unsequenceChunkPointNum) { field.Name = "unsequenceChunkPointNum"; field.Type = TType.I64; @@ -454,7 +524,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI64Async(UnsequenceChunkPointNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.totalPageNum) + if(__isset.totalPageNum) { field.Name = "totalPageNum"; field.Type = TType.I32; @@ -463,7 +533,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI32Async(TotalPageNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.overlappedPageNum) + if(__isset.overlappedPageNum) { field.Name = "overlappedPageNum"; field.Type = TType.I32; @@ -483,8 +553,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSTracingInfo; - if (other == null) return false; + if (!(that is TSTracingInfo other)) return false; if (ReferenceEquals(this, other)) return true; return TCollections.Equals(ActivityList, other.ActivityList) && TCollections.Equals(ElapsedTimeList, other.ElapsedTimeList) @@ -502,26 +571,50 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + TCollections.GetHashCode(ActivityList); - hashcode = (hashcode * 397) + TCollections.GetHashCode(ElapsedTimeList); + if((ActivityList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(ActivityList); + } + if((ElapsedTimeList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(ElapsedTimeList); + } if(__isset.seriesPathNum) + { hashcode = (hashcode * 397) + SeriesPathNum.GetHashCode(); + } if(__isset.seqFileNum) + { hashcode = (hashcode * 397) + SeqFileNum.GetHashCode(); + } if(__isset.unSeqFileNum) + { hashcode = (hashcode * 397) + UnSeqFileNum.GetHashCode(); + } if(__isset.sequenceChunkNum) + { hashcode = (hashcode * 397) + SequenceChunkNum.GetHashCode(); + } if(__isset.sequenceChunkPointNum) + { hashcode = (hashcode * 397) + SequenceChunkPointNum.GetHashCode(); + } if(__isset.unsequenceChunkNum) + { hashcode = (hashcode * 397) + UnsequenceChunkNum.GetHashCode(); + } if(__isset.unsequenceChunkPointNum) + { hashcode = (hashcode * 397) + UnsequenceChunkPointNum.GetHashCode(); + } if(__isset.totalPageNum) + { hashcode = (hashcode * 397) + TotalPageNum.GetHashCode(); + } if(__isset.overlappedPageNum) + { hashcode = (hashcode * 397) + OverlappedPageNum.GetHashCode(); + } } return hashcode; } @@ -529,56 +622,62 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSTracingInfo("); - sb.Append(", ActivityList: "); - sb.Append(ActivityList); - sb.Append(", ElapsedTimeList: "); - sb.Append(ElapsedTimeList); - if (__isset.seriesPathNum) + if((ActivityList != null)) + { + sb.Append(", ActivityList: "); + ActivityList.ToString(sb); + } + if((ElapsedTimeList != null)) + { + sb.Append(", ElapsedTimeList: "); + ElapsedTimeList.ToString(sb); + } + if(__isset.seriesPathNum) { sb.Append(", SeriesPathNum: "); - sb.Append(SeriesPathNum); + SeriesPathNum.ToString(sb); } - if (__isset.seqFileNum) + if(__isset.seqFileNum) { sb.Append(", SeqFileNum: "); - sb.Append(SeqFileNum); + SeqFileNum.ToString(sb); } - if (__isset.unSeqFileNum) + if(__isset.unSeqFileNum) { sb.Append(", UnSeqFileNum: "); - sb.Append(UnSeqFileNum); + UnSeqFileNum.ToString(sb); } - if (__isset.sequenceChunkNum) + if(__isset.sequenceChunkNum) { sb.Append(", SequenceChunkNum: "); - sb.Append(SequenceChunkNum); + SequenceChunkNum.ToString(sb); } - if (__isset.sequenceChunkPointNum) + if(__isset.sequenceChunkPointNum) { sb.Append(", SequenceChunkPointNum: "); - sb.Append(SequenceChunkPointNum); + SequenceChunkPointNum.ToString(sb); } - if (__isset.unsequenceChunkNum) + if(__isset.unsequenceChunkNum) { sb.Append(", UnsequenceChunkNum: "); - sb.Append(UnsequenceChunkNum); + UnsequenceChunkNum.ToString(sb); } - if (__isset.unsequenceChunkPointNum) + if(__isset.unsequenceChunkPointNum) { sb.Append(", UnsequenceChunkPointNum: "); - sb.Append(UnsequenceChunkPointNum); + UnsequenceChunkPointNum.ToString(sb); } - if (__isset.totalPageNum) + if(__isset.totalPageNum) { sb.Append(", TotalPageNum: "); - sb.Append(TotalPageNum); + TotalPageNum.ToString(sb); } - if (__isset.overlappedPageNum) + if(__isset.overlappedPageNum) { sb.Append(", OverlappedPageNum: "); - sb.Append(OverlappedPageNum); + OverlappedPageNum.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSUnsetSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSUnsetSchemaTemplateReq.cs index 432baef..e400e8c 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSUnsetSchemaTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSUnsetSchemaTemplateReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSUnsetSchemaTemplateReq : TBase { @@ -44,7 +49,22 @@ public TSUnsetSchemaTemplateReq(long sessionId, string prefixPath, string templa this.TemplateName = templateName; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSUnsetSchemaTemplateReq DeepCopy() + { + var tmp435 = new TSUnsetSchemaTemplateReq(); + tmp435.SessionId = this.SessionId; + if((PrefixPath != null)) + { + tmp435.PrefixPath = this.PrefixPath; + } + if((TemplateName != null)) + { + tmp435.TemplateName = this.TemplateName; + } + return tmp435; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -125,7 +145,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -139,18 +159,24 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "prefixPath"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(PrefixPath, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "templateName"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(TemplateName, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((PrefixPath != null)) + { + field.Name = "prefixPath"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(PrefixPath, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((TemplateName != null)) + { + field.Name = "templateName"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(TemplateName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -162,8 +188,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSUnsetSchemaTemplateReq; - if (other == null) return false; + if (!(that is TSUnsetSchemaTemplateReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SessionId, other.SessionId) && System.Object.Equals(PrefixPath, other.PrefixPath) @@ -174,8 +199,14 @@ public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + SessionId.GetHashCode(); - hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); - hashcode = (hashcode * 397) + TemplateName.GetHashCode(); + if((PrefixPath != null)) + { + hashcode = (hashcode * 397) + PrefixPath.GetHashCode(); + } + if((TemplateName != null)) + { + hashcode = (hashcode * 397) + TemplateName.GetHashCode(); + } } return hashcode; } @@ -184,12 +215,18 @@ public override string ToString() { var sb = new StringBuilder("TSUnsetSchemaTemplateReq("); sb.Append(", SessionId: "); - sb.Append(SessionId); - sb.Append(", PrefixPath: "); - sb.Append(PrefixPath); - sb.Append(", TemplateName: "); - sb.Append(TemplateName); - sb.Append(")"); + SessionId.ToString(sb); + if((PrefixPath != null)) + { + sb.Append(", PrefixPath: "); + PrefixPath.ToString(sb); + } + if((TemplateName != null)) + { + sb.Append(", TemplateName: "); + TemplateName.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs b/src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs index a73e4b7..ba18a41 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSchemaNode : TBase { @@ -41,7 +46,18 @@ public TSchemaNode(string nodeName, sbyte nodeType) : this() this.NodeType = nodeType; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSchemaNode DeepCopy() + { + var tmp40 = new TSchemaNode(); + if((NodeName != null)) + { + tmp40.NodeName = this.NodeName; + } + tmp40.NodeType = this.NodeType; + return tmp40; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -106,7 +122,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -114,12 +130,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSchemaNode"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "nodeName"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(NodeName, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((NodeName != null)) + { + field.Name = "nodeName"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(NodeName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } field.Name = "nodeType"; field.Type = TType.Byte; field.ID = 2; @@ -137,8 +156,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSchemaNode; - if (other == null) return false; + if (!(that is TSchemaNode other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(NodeName, other.NodeName) && System.Object.Equals(NodeType, other.NodeType); @@ -147,7 +165,10 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + NodeName.GetHashCode(); + if((NodeName != null)) + { + hashcode = (hashcode * 397) + NodeName.GetHashCode(); + } hashcode = (hashcode * 397) + NodeType.GetHashCode(); } return hashcode; @@ -156,11 +177,14 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSchemaNode("); - sb.Append(", NodeName: "); - sb.Append(NodeName); + if((NodeName != null)) + { + sb.Append(", NodeName: "); + NodeName.ToString(sb); + } sb.Append(", NodeType: "); - sb.Append(NodeType); - sb.Append(")"); + NodeType.ToString(sb); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSender.cs b/src/Apache.IoTDB/Rpc/Generated/TSender.cs index 9beddc2..81b5028 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSender.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSender.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSender : TBase { @@ -67,7 +72,23 @@ public TSender() { } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSender DeepCopy() + { + var tmp92 = new TSender(); + if((DataNodeLocation != null) && __isset.dataNodeLocation) + { + tmp92.DataNodeLocation = (TDataNodeLocation)this.DataNodeLocation.DeepCopy(); + } + tmp92.__isset.dataNodeLocation = this.__isset.dataNodeLocation; + if((ConfigNodeLocation != null) && __isset.configNodeLocation) + { + tmp92.ConfigNodeLocation = (TConfigNodeLocation)this.ConfigNodeLocation.DeepCopy(); + } + tmp92.__isset.configNodeLocation = this.__isset.configNodeLocation; + return tmp92; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -122,7 +143,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -130,7 +151,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSender"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if (DataNodeLocation != null && __isset.dataNodeLocation) + if((DataNodeLocation != null) && __isset.dataNodeLocation) { field.Name = "dataNodeLocation"; field.Type = TType.Struct; @@ -139,7 +160,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await DataNodeLocation.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (ConfigNodeLocation != null && __isset.configNodeLocation) + if((ConfigNodeLocation != null) && __isset.configNodeLocation) { field.Name = "configNodeLocation"; field.Type = TType.Struct; @@ -159,8 +180,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSender; - if (other == null) return false; + if (!(that is TSender other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.dataNodeLocation == other.__isset.dataNodeLocation) && ((!__isset.dataNodeLocation) || (System.Object.Equals(DataNodeLocation, other.DataNodeLocation)))) && ((__isset.configNodeLocation == other.__isset.configNodeLocation) && ((!__isset.configNodeLocation) || (System.Object.Equals(ConfigNodeLocation, other.ConfigNodeLocation)))); @@ -169,10 +189,14 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if(__isset.dataNodeLocation) + if((DataNodeLocation != null) && __isset.dataNodeLocation) + { hashcode = (hashcode * 397) + DataNodeLocation.GetHashCode(); - if(__isset.configNodeLocation) + } + if((ConfigNodeLocation != null) && __isset.configNodeLocation) + { hashcode = (hashcode * 397) + ConfigNodeLocation.GetHashCode(); + } } return hashcode; } @@ -180,22 +204,20 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSender("); - bool __first = true; - if (DataNodeLocation != null && __isset.dataNodeLocation) + int tmp93 = 0; + if((DataNodeLocation != null) && __isset.dataNodeLocation) { - if(!__first) { sb.Append(", "); } - __first = false; + if(0 < tmp93++) { sb.Append(", "); } sb.Append("DataNodeLocation: "); - sb.Append(DataNodeLocation== null ? "" : DataNodeLocation.ToString()); + DataNodeLocation.ToString(sb); } - if (ConfigNodeLocation != null && __isset.configNodeLocation) + if((ConfigNodeLocation != null) && __isset.configNodeLocation) { - if(!__first) { sb.Append(", "); } - __first = false; + if(0 < tmp93++) { sb.Append(", "); } sb.Append("ConfigNodeLocation: "); - sb.Append(ConfigNodeLocation== null ? "" : ConfigNodeLocation.ToString()); + ConfigNodeLocation.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSeriesPartitionSlot.cs b/src/Apache.IoTDB/Rpc/Generated/TSeriesPartitionSlot.cs index 7e3da37..81bff8c 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSeriesPartitionSlot.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSeriesPartitionSlot.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSeriesPartitionSlot : TBase { @@ -38,7 +43,14 @@ public TSeriesPartitionSlot(int slotId) : this() this.SlotId = slotId; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSeriesPartitionSlot DeepCopy() + { + var tmp10 = new TSeriesPartitionSlot(); + tmp10.SlotId = this.SlotId; + return tmp10; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -87,7 +99,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -112,8 +124,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSeriesPartitionSlot; - if (other == null) return false; + if (!(that is TSeriesPartitionSlot other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(SlotId, other.SlotId); } @@ -130,8 +141,8 @@ public override string ToString() { var sb = new StringBuilder("TSeriesPartitionSlot("); sb.Append(", SlotId: "); - sb.Append(SlotId); - sb.Append(")"); + SlotId.ToString(sb); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TServiceProvider.cs b/src/Apache.IoTDB/Rpc/Generated/TServiceProvider.cs index 4a453d3..a3226ed 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TServiceProvider.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TServiceProvider.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TServiceProvider : TBase { @@ -31,7 +36,7 @@ public partial class TServiceProvider : TBase /// /// - /// + /// /// public TServiceType ServiceType { get; set; } @@ -45,7 +50,18 @@ public TServiceProvider(TEndPoint endPoint, TServiceType serviceType) : this() this.ServiceType = serviceType; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TServiceProvider DeepCopy() + { + var tmp90 = new TServiceProvider(); + if((EndPoint != null)) + { + tmp90.EndPoint = (TEndPoint)this.EndPoint.DeepCopy(); + } + tmp90.ServiceType = this.ServiceType; + return tmp90; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -111,7 +127,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -119,12 +135,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TServiceProvider"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "endPoint"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await EndPoint.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((EndPoint != null)) + { + field.Name = "endPoint"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await EndPoint.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } field.Name = "serviceType"; field.Type = TType.I32; field.ID = 2; @@ -142,8 +161,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TServiceProvider; - if (other == null) return false; + if (!(that is TServiceProvider other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(EndPoint, other.EndPoint) && System.Object.Equals(ServiceType, other.ServiceType); @@ -152,7 +170,10 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + EndPoint.GetHashCode(); + if((EndPoint != null)) + { + hashcode = (hashcode * 397) + EndPoint.GetHashCode(); + } hashcode = (hashcode * 397) + ServiceType.GetHashCode(); } return hashcode; @@ -161,11 +182,14 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TServiceProvider("); - sb.Append(", EndPoint: "); - sb.Append(EndPoint== null ? "" : EndPoint.ToString()); + if((EndPoint != null)) + { + sb.Append(", EndPoint: "); + EndPoint.ToString(sb); + } sb.Append(", ServiceType: "); - sb.Append(ServiceType); - sb.Append(")"); + ServiceType.ToString(sb); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TServiceType.cs b/src/Apache.IoTDB/Rpc/Generated/TServiceType.cs index 3ce9cc1..757c67a 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TServiceType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TServiceType.cs @@ -1,10 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public enum TServiceType { ConfigNodeInternalService = 0, diff --git a/src/Apache.IoTDB/Rpc/Generated/TSetConfigurationReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSetConfigurationReq.cs index bef5bbb..b92cb73 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSetConfigurationReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSetConfigurationReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSetConfigurationReq : TBase { @@ -41,7 +46,18 @@ public TSetConfigurationReq(Dictionary configs, int nodeId) : th this.NodeId = nodeId; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSetConfigurationReq DeepCopy() + { + var tmp42 = new TSetConfigurationReq(); + if((Configs != null)) + { + tmp42.Configs = this.Configs.DeepCopy(); + } + tmp42.NodeId = this.NodeId; + return tmp42; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -64,15 +80,15 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.Map) { { - TMap _map16 = await iprot.ReadMapBeginAsync(cancellationToken); - Configs = new Dictionary(_map16.Count); - for(int _i17 = 0; _i17 < _map16.Count; ++_i17) + TMap _map43 = await iprot.ReadMapBeginAsync(cancellationToken); + Configs = new Dictionary(_map43.Count); + for(int _i44 = 0; _i44 < _map43.Count; ++_i44) { - string _key18; - string _val19; - _key18 = await iprot.ReadStringAsync(cancellationToken); - _val19 = await iprot.ReadStringAsync(cancellationToken); - Configs[_key18] = _val19; + string _key45; + string _val46; + _key45 = await iprot.ReadStringAsync(cancellationToken); + _val46 = await iprot.ReadStringAsync(cancellationToken); + Configs[_key45] = _val46; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -118,7 +134,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -126,20 +142,23 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSetConfigurationReq"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "configs"; - field.Type = TType.Map; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Configs != null)) { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Configs.Count), cancellationToken); - foreach (string _iter20 in Configs.Keys) + field.Name = "configs"; + field.Type = TType.Map; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter20, cancellationToken); - await oprot.WriteStringAsync(Configs[_iter20], cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Configs.Count), cancellationToken); + foreach (string _iter47 in Configs.Keys) + { + await oprot.WriteStringAsync(_iter47, cancellationToken); + await oprot.WriteStringAsync(Configs[_iter47], cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); } - await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "nodeId"; field.Type = TType.I32; field.ID = 2; @@ -157,8 +176,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSetConfigurationReq; - if (other == null) return false; + if (!(that is TSetConfigurationReq other)) return false; if (ReferenceEquals(this, other)) return true; return TCollections.Equals(Configs, other.Configs) && System.Object.Equals(NodeId, other.NodeId); @@ -167,7 +185,10 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Configs); + if((Configs != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Configs); + } hashcode = (hashcode * 397) + NodeId.GetHashCode(); } return hashcode; @@ -176,11 +197,14 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSetConfigurationReq("); - sb.Append(", Configs: "); - sb.Append(Configs); + if((Configs != null)) + { + sb.Append(", Configs: "); + Configs.ToString(sb); + } sb.Append(", NodeId: "); - sb.Append(NodeId); - sb.Append(")"); + NodeId.ToString(sb); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSetSpaceQuotaReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSetSpaceQuotaReq.cs index 95847e1..c3c2264 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSetSpaceQuotaReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSetSpaceQuotaReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSetSpaceQuotaReq : TBase { @@ -41,7 +46,21 @@ public TSetSpaceQuotaReq(List database, TSpaceQuota spaceLimit) : this() this.SpaceLimit = spaceLimit; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSetSpaceQuotaReq DeepCopy() + { + var tmp80 = new TSetSpaceQuotaReq(); + if((Database != null)) + { + tmp80.Database = this.Database.DeepCopy(); + } + if((SpaceLimit != null)) + { + tmp80.SpaceLimit = (TSpaceQuota)this.SpaceLimit.DeepCopy(); + } + return tmp80; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -64,13 +83,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list38 = await iprot.ReadListBeginAsync(cancellationToken); - Database = new List(_list38.Count); - for(int _i39 = 0; _i39 < _list38.Count; ++_i39) + TList _list81 = await iprot.ReadListBeginAsync(cancellationToken); + Database = new List(_list81.Count); + for(int _i82 = 0; _i82 < _list81.Count; ++_i82) { - string _elem40; - _elem40 = await iprot.ReadStringAsync(cancellationToken); - Database.Add(_elem40); + string _elem83; + _elem83 = await iprot.ReadStringAsync(cancellationToken); + Database.Add(_elem83); } await iprot.ReadListEndAsync(cancellationToken); } @@ -117,7 +136,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -125,25 +144,31 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSetSpaceQuotaReq"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "database"; - field.Type = TType.List; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Database != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, Database.Count), cancellationToken); - foreach (string _iter41 in Database) + field.Name = "database"; + field.Type = TType.List; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter41, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Database.Count), cancellationToken); + foreach (string _iter84 in Database) + { + await oprot.WriteStringAsync(_iter84, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((SpaceLimit != null)) + { + field.Name = "spaceLimit"; + field.Type = TType.Struct; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await SpaceLimit.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "spaceLimit"; - field.Type = TType.Struct; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await SpaceLimit.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -155,8 +180,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSetSpaceQuotaReq; - if (other == null) return false; + if (!(that is TSetSpaceQuotaReq other)) return false; if (ReferenceEquals(this, other)) return true; return TCollections.Equals(Database, other.Database) && System.Object.Equals(SpaceLimit, other.SpaceLimit); @@ -165,8 +189,14 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Database); - hashcode = (hashcode * 397) + SpaceLimit.GetHashCode(); + if((Database != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Database); + } + if((SpaceLimit != null)) + { + hashcode = (hashcode * 397) + SpaceLimit.GetHashCode(); + } } return hashcode; } @@ -174,11 +204,17 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSetSpaceQuotaReq("); - sb.Append(", Database: "); - sb.Append(Database); - sb.Append(", SpaceLimit: "); - sb.Append(SpaceLimit== null ? "" : SpaceLimit.ToString()); - sb.Append(")"); + if((Database != null)) + { + sb.Append(", Database: "); + Database.ToString(sb); + } + if((SpaceLimit != null)) + { + sb.Append(", SpaceLimit: "); + SpaceLimit.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSetTTLReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSetTTLReq.cs index c2f191a..66b146f 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSetTTLReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSetTTLReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSetTTLReq : TBase { @@ -44,7 +49,19 @@ public TSetTTLReq(List pathPattern, long TTL, bool isDataBase) : this() this.IsDataBase = isDataBase; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSetTTLReq DeepCopy() + { + var tmp49 = new TSetTTLReq(); + if((PathPattern != null)) + { + tmp49.PathPattern = this.PathPattern.DeepCopy(); + } + tmp49.TTL = this.TTL; + tmp49.IsDataBase = this.IsDataBase; + return tmp49; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -68,13 +85,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list21 = await iprot.ReadListBeginAsync(cancellationToken); - PathPattern = new List(_list21.Count); - for(int _i22 = 0; _i22 < _list21.Count; ++_i22) + TList _list50 = await iprot.ReadListBeginAsync(cancellationToken); + PathPattern = new List(_list50.Count); + for(int _i51 = 0; _i51 < _list50.Count; ++_i51) { - string _elem23; - _elem23 = await iprot.ReadStringAsync(cancellationToken); - PathPattern.Add(_elem23); + string _elem52; + _elem52 = await iprot.ReadStringAsync(cancellationToken); + PathPattern.Add(_elem52); } await iprot.ReadListEndAsync(cancellationToken); } @@ -135,7 +152,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -143,19 +160,22 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSetTTLReq"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "pathPattern"; - field.Type = TType.List; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((PathPattern != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, PathPattern.Count), cancellationToken); - foreach (string _iter24 in PathPattern) + field.Name = "pathPattern"; + field.Type = TType.List; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter24, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, PathPattern.Count), cancellationToken); + foreach (string _iter53 in PathPattern) + { + await oprot.WriteStringAsync(_iter53, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); field.Name = "TTL"; field.Type = TType.I64; field.ID = 2; @@ -179,8 +199,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSetTTLReq; - if (other == null) return false; + if (!(that is TSetTTLReq other)) return false; if (ReferenceEquals(this, other)) return true; return TCollections.Equals(PathPattern, other.PathPattern) && System.Object.Equals(TTL, other.TTL) @@ -190,7 +209,10 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + TCollections.GetHashCode(PathPattern); + if((PathPattern != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(PathPattern); + } hashcode = (hashcode * 397) + TTL.GetHashCode(); hashcode = (hashcode * 397) + IsDataBase.GetHashCode(); } @@ -200,13 +222,16 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSetTTLReq("); - sb.Append(", PathPattern: "); - sb.Append(PathPattern); + if((PathPattern != null)) + { + sb.Append(", PathPattern: "); + PathPattern.ToString(sb); + } sb.Append(", TTL: "); - sb.Append(TTL); + TTL.ToString(sb); sb.Append(", IsDataBase: "); - sb.Append(IsDataBase); - sb.Append(")"); + IsDataBase.ToString(sb); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSetThrottleQuotaReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSetThrottleQuotaReq.cs index 248cca3..2bb32e7 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSetThrottleQuotaReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSetThrottleQuotaReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSetThrottleQuotaReq : TBase { @@ -41,7 +46,21 @@ public TSetThrottleQuotaReq(string userName, TThrottleQuota throttleQuota) : thi this.ThrottleQuota = throttleQuota; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSetThrottleQuotaReq DeepCopy() + { + var tmp86 = new TSetThrottleQuotaReq(); + if((UserName != null)) + { + tmp86.UserName = this.UserName; + } + if((ThrottleQuota != null)) + { + tmp86.ThrottleQuota = (TThrottleQuota)this.ThrottleQuota.DeepCopy(); + } + return tmp86; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -107,7 +126,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -115,18 +134,24 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSetThrottleQuotaReq"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "userName"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(UserName, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "throttleQuota"; - field.Type = TType.Struct; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await ThrottleQuota.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((UserName != null)) + { + field.Name = "userName"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(UserName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ThrottleQuota != null)) + { + field.Name = "throttleQuota"; + field.Type = TType.Struct; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await ThrottleQuota.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -138,8 +163,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSetThrottleQuotaReq; - if (other == null) return false; + if (!(that is TSetThrottleQuotaReq other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(UserName, other.UserName) && System.Object.Equals(ThrottleQuota, other.ThrottleQuota); @@ -148,8 +172,14 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + UserName.GetHashCode(); - hashcode = (hashcode * 397) + ThrottleQuota.GetHashCode(); + if((UserName != null)) + { + hashcode = (hashcode * 397) + UserName.GetHashCode(); + } + if((ThrottleQuota != null)) + { + hashcode = (hashcode * 397) + ThrottleQuota.GetHashCode(); + } } return hashcode; } @@ -157,11 +187,17 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSetThrottleQuotaReq("); - sb.Append(", UserName: "); - sb.Append(UserName); - sb.Append(", ThrottleQuota: "); - sb.Append(ThrottleQuota== null ? "" : ThrottleQuota.ToString()); - sb.Append(")"); + if((UserName != null)) + { + sb.Append(", UserName: "); + UserName.ToString(sb); + } + if((ThrottleQuota != null)) + { + sb.Append(", ThrottleQuota: "); + ThrottleQuota.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs index df5d5ce..99d5edd 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSettleReq : TBase { @@ -38,7 +43,17 @@ public TSettleReq(List paths) : this() this.Paths = paths; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSettleReq DeepCopy() + { + var tmp34 = new TSettleReq(); + if((Paths != null)) + { + tmp34.Paths = this.Paths.DeepCopy(); + } + return tmp34; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -60,13 +75,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list12 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list12.Count); - for(int _i13 = 0; _i13 < _list12.Count; ++_i13) + TList _list35 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list35.Count); + for(int _i36 = 0; _i36 < _list35.Count; ++_i36) { - string _elem14; - _elem14 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem14); + string _elem37; + _elem37 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem37); } await iprot.ReadListEndAsync(cancellationToken); } @@ -97,7 +112,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -105,19 +120,22 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSettleReq"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "paths"; - field.Type = TType.List; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Paths != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter15 in Paths) + field.Name = "paths"; + field.Type = TType.List; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter15, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); + foreach (string _iter38 in Paths) + { + await oprot.WriteStringAsync(_iter38, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -129,8 +147,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSettleReq; - if (other == null) return false; + if (!(that is TSettleReq other)) return false; if (ReferenceEquals(this, other)) return true; return TCollections.Equals(Paths, other.Paths); } @@ -138,7 +155,10 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); + if((Paths != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Paths); + } } return hashcode; } @@ -146,9 +166,12 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSettleReq("); - sb.Append(", Paths: "); - sb.Append(Paths); - sb.Append(")"); + if((Paths != null)) + { + sb.Append(", Paths: "); + Paths.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationResp.cs b/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationResp.cs index 499235b..559ff82 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TShowConfigurationResp : TBase { @@ -41,7 +46,21 @@ public TShowConfigurationResp(TSStatus status, string content) : this() this.Content = content; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TShowConfigurationResp DeepCopy() + { + var tmp114 = new TShowConfigurationResp(); + if((Status != null)) + { + tmp114.Status = (TSStatus)this.Status.DeepCopy(); + } + if((Content != null)) + { + tmp114.Content = this.Content; + } + return tmp114; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -107,7 +126,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -115,18 +134,24 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TShowConfigurationResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "content"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Content, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((Status != null)) + { + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Content != null)) + { + field.Name = "content"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Content, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -138,8 +163,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TShowConfigurationResp; - if (other == null) return false; + if (!(that is TShowConfigurationResp other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && System.Object.Equals(Content, other.Content); @@ -148,8 +172,14 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + Status.GetHashCode(); - hashcode = (hashcode * 397) + Content.GetHashCode(); + if((Status != null)) + { + hashcode = (hashcode * 397) + Status.GetHashCode(); + } + if((Content != null)) + { + hashcode = (hashcode * 397) + Content.GetHashCode(); + } } return hashcode; } @@ -157,11 +187,17 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TShowConfigurationResp("); - sb.Append(", Status: "); - sb.Append(Status== null ? "" : Status.ToString()); - sb.Append(", Content: "); - sb.Append(Content); - sb.Append(")"); + if((Status != null)) + { + sb.Append(", Status: "); + Status.ToString(sb); + } + if((Content != null)) + { + sb.Append(", Content: "); + Content.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationTemplateResp.cs b/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationTemplateResp.cs index 3437de5..9608481 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationTemplateResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationTemplateResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TShowConfigurationTemplateResp : TBase { @@ -41,7 +46,21 @@ public TShowConfigurationTemplateResp(TSStatus status, string content) : this() this.Content = content; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TShowConfigurationTemplateResp DeepCopy() + { + var tmp112 = new TShowConfigurationTemplateResp(); + if((Status != null)) + { + tmp112.Status = (TSStatus)this.Status.DeepCopy(); + } + if((Content != null)) + { + tmp112.Content = this.Content; + } + return tmp112; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -107,7 +126,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -115,18 +134,24 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TShowConfigurationTemplateResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "content"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Content, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((Status != null)) + { + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Content != null)) + { + field.Name = "content"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Content, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -138,8 +163,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TShowConfigurationTemplateResp; - if (other == null) return false; + if (!(that is TShowConfigurationTemplateResp other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && System.Object.Equals(Content, other.Content); @@ -148,8 +172,14 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + Status.GetHashCode(); - hashcode = (hashcode * 397) + Content.GetHashCode(); + if((Status != null)) + { + hashcode = (hashcode * 397) + Status.GetHashCode(); + } + if((Content != null)) + { + hashcode = (hashcode * 397) + Content.GetHashCode(); + } } return hashcode; } @@ -157,11 +187,17 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TShowConfigurationTemplateResp("); - sb.Append(", Status: "); - sb.Append(Status== null ? "" : Status.ToString()); - sb.Append(", Content: "); - sb.Append(Content); - sb.Append(")"); + if((Status != null)) + { + sb.Append(", Status: "); + Status.ToString(sb); + } + if((Content != null)) + { + sb.Append(", Content: "); + Content.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs b/src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs index 52bb6df..56806b7 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TShowTTLReq : TBase { @@ -38,7 +43,17 @@ public TShowTTLReq(List pathPattern) : this() this.PathPattern = pathPattern; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TShowTTLReq DeepCopy() + { + var tmp55 = new TShowTTLReq(); + if((PathPattern != null)) + { + tmp55.PathPattern = this.PathPattern.DeepCopy(); + } + return tmp55; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -60,13 +75,13 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list25 = await iprot.ReadListBeginAsync(cancellationToken); - PathPattern = new List(_list25.Count); - for(int _i26 = 0; _i26 < _list25.Count; ++_i26) + TList _list56 = await iprot.ReadListBeginAsync(cancellationToken); + PathPattern = new List(_list56.Count); + for(int _i57 = 0; _i57 < _list56.Count; ++_i57) { - string _elem27; - _elem27 = await iprot.ReadStringAsync(cancellationToken); - PathPattern.Add(_elem27); + string _elem58; + _elem58 = await iprot.ReadStringAsync(cancellationToken); + PathPattern.Add(_elem58); } await iprot.ReadListEndAsync(cancellationToken); } @@ -97,7 +112,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -105,19 +120,22 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TShowTTLReq"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "pathPattern"; - field.Type = TType.List; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((PathPattern != null)) { - await oprot.WriteListBeginAsync(new TList(TType.String, PathPattern.Count), cancellationToken); - foreach (string _iter28 in PathPattern) + field.Name = "pathPattern"; + field.Type = TType.List; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await oprot.WriteStringAsync(_iter28, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.String, PathPattern.Count), cancellationToken); + foreach (string _iter59 in PathPattern) + { + await oprot.WriteStringAsync(_iter59, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -129,8 +147,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TShowTTLReq; - if (other == null) return false; + if (!(that is TShowTTLReq other)) return false; if (ReferenceEquals(this, other)) return true; return TCollections.Equals(PathPattern, other.PathPattern); } @@ -138,7 +155,10 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + TCollections.GetHashCode(PathPattern); + if((PathPattern != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(PathPattern); + } } return hashcode; } @@ -146,9 +166,12 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TShowTTLReq("); - sb.Append(", PathPattern: "); - sb.Append(PathPattern); - sb.Append(")"); + if((PathPattern != null)) + { + sb.Append(", PathPattern: "); + PathPattern.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs b/src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs index 2fdebf4..a69823d 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSpaceQuota : TBase { @@ -82,7 +87,28 @@ public TSpaceQuota() { } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSpaceQuota DeepCopy() + { + var tmp69 = new TSpaceQuota(); + if(__isset.diskSize) + { + tmp69.DiskSize = this.DiskSize; + } + tmp69.__isset.diskSize = this.__isset.diskSize; + if(__isset.deviceNum) + { + tmp69.DeviceNum = this.DeviceNum; + } + tmp69.__isset.deviceNum = this.__isset.deviceNum; + if(__isset.timeserieNum) + { + tmp69.TimeserieNum = this.TimeserieNum; + } + tmp69.__isset.timeserieNum = this.__isset.timeserieNum; + return tmp69; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -145,7 +171,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -153,7 +179,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSpaceQuota"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if (__isset.diskSize) + if(__isset.diskSize) { field.Name = "diskSize"; field.Type = TType.I64; @@ -162,7 +188,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI64Async(DiskSize, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.deviceNum) + if(__isset.deviceNum) { field.Name = "deviceNum"; field.Type = TType.I64; @@ -171,7 +197,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI64Async(DeviceNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.timeserieNum) + if(__isset.timeserieNum) { field.Name = "timeserieNum"; field.Type = TType.I64; @@ -191,8 +217,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSpaceQuota; - if (other == null) return false; + if (!(that is TSpaceQuota other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.diskSize == other.__isset.diskSize) && ((!__isset.diskSize) || (System.Object.Equals(DiskSize, other.DiskSize)))) && ((__isset.deviceNum == other.__isset.deviceNum) && ((!__isset.deviceNum) || (System.Object.Equals(DeviceNum, other.DeviceNum)))) @@ -203,11 +228,17 @@ public override int GetHashCode() { int hashcode = 157; unchecked { if(__isset.diskSize) + { hashcode = (hashcode * 397) + DiskSize.GetHashCode(); + } if(__isset.deviceNum) + { hashcode = (hashcode * 397) + DeviceNum.GetHashCode(); + } if(__isset.timeserieNum) + { hashcode = (hashcode * 397) + TimeserieNum.GetHashCode(); + } } return hashcode; } @@ -215,29 +246,26 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSpaceQuota("); - bool __first = true; - if (__isset.diskSize) + int tmp70 = 0; + if(__isset.diskSize) { - if(!__first) { sb.Append(", "); } - __first = false; + if(0 < tmp70++) { sb.Append(", "); } sb.Append("DiskSize: "); - sb.Append(DiskSize); + DiskSize.ToString(sb); } - if (__isset.deviceNum) + if(__isset.deviceNum) { - if(!__first) { sb.Append(", "); } - __first = false; + if(0 < tmp70++) { sb.Append(", "); } sb.Append("DeviceNum: "); - sb.Append(DeviceNum); + DeviceNum.ToString(sb); } - if (__isset.timeserieNum) + if(__isset.timeserieNum) { - if(!__first) { sb.Append(", "); } - __first = false; + if(0 < tmp70++) { sb.Append(", "); } sb.Append("TimeserieNum: "); - sb.Append(TimeserieNum); + TimeserieNum.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSyncIdentityInfo.cs b/src/Apache.IoTDB/Rpc/Generated/TSyncIdentityInfo.cs index 7abcb3a..fde1167 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSyncIdentityInfo.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSyncIdentityInfo.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSyncIdentityInfo : TBase { @@ -47,7 +52,26 @@ public TSyncIdentityInfo(string pipeName, long createTime, string version, strin this.Database = database; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSyncIdentityInfo DeepCopy() + { + var tmp445 = new TSyncIdentityInfo(); + if((PipeName != null)) + { + tmp445.PipeName = this.PipeName; + } + tmp445.CreateTime = this.CreateTime; + if((Version != null)) + { + tmp445.Version = this.Version; + } + if((Database != null)) + { + tmp445.Database = this.Database; + } + return tmp445; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -144,7 +168,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -152,30 +176,39 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSyncIdentityInfo"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "pipeName"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(PipeName, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((PipeName != null)) + { + field.Name = "pipeName"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(PipeName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } field.Name = "createTime"; field.Type = TType.I64; field.ID = 2; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(CreateTime, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "version"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Version, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "database"; - field.Type = TType.String; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(Database, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((Version != null)) + { + field.Name = "version"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Version, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Database != null)) + { + field.Name = "database"; + field.Type = TType.String; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(Database, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -187,8 +220,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSyncIdentityInfo; - if (other == null) return false; + if (!(that is TSyncIdentityInfo other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(PipeName, other.PipeName) && System.Object.Equals(CreateTime, other.CreateTime) @@ -199,10 +231,19 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + PipeName.GetHashCode(); + if((PipeName != null)) + { + hashcode = (hashcode * 397) + PipeName.GetHashCode(); + } hashcode = (hashcode * 397) + CreateTime.GetHashCode(); - hashcode = (hashcode * 397) + Version.GetHashCode(); - hashcode = (hashcode * 397) + Database.GetHashCode(); + if((Version != null)) + { + hashcode = (hashcode * 397) + Version.GetHashCode(); + } + if((Database != null)) + { + hashcode = (hashcode * 397) + Database.GetHashCode(); + } } return hashcode; } @@ -210,15 +251,24 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSyncIdentityInfo("); - sb.Append(", PipeName: "); - sb.Append(PipeName); + if((PipeName != null)) + { + sb.Append(", PipeName: "); + PipeName.ToString(sb); + } sb.Append(", CreateTime: "); - sb.Append(CreateTime); - sb.Append(", Version: "); - sb.Append(Version); - sb.Append(", Database: "); - sb.Append(Database); - sb.Append(")"); + CreateTime.ToString(sb); + if((Version != null)) + { + sb.Append(", Version: "); + Version.ToString(sb); + } + if((Database != null)) + { + sb.Append(", Database: "); + Database.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSyncTransportMetaInfo.cs b/src/Apache.IoTDB/Rpc/Generated/TSyncTransportMetaInfo.cs index 95796c6..1482952 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSyncTransportMetaInfo.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSyncTransportMetaInfo.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TSyncTransportMetaInfo : TBase { @@ -41,7 +46,18 @@ public TSyncTransportMetaInfo(string fileName, long startIndex) : this() this.StartIndex = startIndex; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TSyncTransportMetaInfo DeepCopy() + { + var tmp447 = new TSyncTransportMetaInfo(); + if((FileName != null)) + { + tmp447.FileName = this.FileName; + } + tmp447.StartIndex = this.StartIndex; + return tmp447; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -106,7 +122,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -114,12 +130,15 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TSyncTransportMetaInfo"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "fileName"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await oprot.WriteStringAsync(FileName, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((FileName != null)) + { + field.Name = "fileName"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteStringAsync(FileName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } field.Name = "startIndex"; field.Type = TType.I64; field.ID = 2; @@ -137,8 +156,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TSyncTransportMetaInfo; - if (other == null) return false; + if (!(that is TSyncTransportMetaInfo other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(FileName, other.FileName) && System.Object.Equals(StartIndex, other.StartIndex); @@ -147,7 +165,10 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + FileName.GetHashCode(); + if((FileName != null)) + { + hashcode = (hashcode * 397) + FileName.GetHashCode(); + } hashcode = (hashcode * 397) + StartIndex.GetHashCode(); } return hashcode; @@ -156,11 +177,14 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSyncTransportMetaInfo("); - sb.Append(", FileName: "); - sb.Append(FileName); + if((FileName != null)) + { + sb.Append(", FileName: "); + FileName.ToString(sb); + } sb.Append(", StartIndex: "); - sb.Append(StartIndex); - sb.Append(")"); + StartIndex.ToString(sb); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResp.cs b/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResp.cs index 4e43289..06549e5 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResp.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TTestConnectionResp : TBase { @@ -41,7 +46,21 @@ public TTestConnectionResp(TSStatus status, List resultLi this.ResultList = resultList; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TTestConnectionResp DeepCopy() + { + var tmp96 = new TTestConnectionResp(); + if((Status != null)) + { + tmp96.Status = (TSStatus)this.Status.DeepCopy(); + } + if((ResultList != null)) + { + tmp96.ResultList = this.ResultList.DeepCopy(); + } + return tmp96; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -76,14 +95,14 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.List) { { - TList _list42 = await iprot.ReadListBeginAsync(cancellationToken); - ResultList = new List(_list42.Count); - for(int _i43 = 0; _i43 < _list42.Count; ++_i43) + TList _list97 = await iprot.ReadListBeginAsync(cancellationToken); + ResultList = new List(_list97.Count); + for(int _i98 = 0; _i98 < _list97.Count; ++_i98) { - TTestConnectionResult _elem44; - _elem44 = new TTestConnectionResult(); - await _elem44.ReadAsync(iprot, cancellationToken); - ResultList.Add(_elem44); + TTestConnectionResult _elem99; + _elem99 = new TTestConnectionResult(); + await _elem99.ReadAsync(iprot, cancellationToken); + ResultList.Add(_elem99); } await iprot.ReadListEndAsync(cancellationToken); } @@ -118,7 +137,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -126,25 +145,31 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TTestConnectionResp"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Status.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "resultList"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + if((Status != null)) + { + field.Name = "status"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Status.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ResultList != null)) { - await oprot.WriteListBeginAsync(new TList(TType.Struct, ResultList.Count), cancellationToken); - foreach (TTestConnectionResult _iter45 in ResultList) + field.Name = "resultList"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { - await _iter45.WriteAsync(oprot, cancellationToken); + await oprot.WriteListBeginAsync(new TList(TType.Struct, ResultList.Count), cancellationToken); + foreach (TTestConnectionResult _iter100 in ResultList) + { + await _iter100.WriteAsync(oprot, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); } - await oprot.WriteListEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); } - await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -156,8 +181,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TTestConnectionResp; - if (other == null) return false; + if (!(that is TTestConnectionResp other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(Status, other.Status) && TCollections.Equals(ResultList, other.ResultList); @@ -166,8 +190,14 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + Status.GetHashCode(); - hashcode = (hashcode * 397) + TCollections.GetHashCode(ResultList); + if((Status != null)) + { + hashcode = (hashcode * 397) + Status.GetHashCode(); + } + if((ResultList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(ResultList); + } } return hashcode; } @@ -175,11 +205,17 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TTestConnectionResp("); - sb.Append(", Status: "); - sb.Append(Status== null ? "" : Status.ToString()); - sb.Append(", ResultList: "); - sb.Append(ResultList); - sb.Append(")"); + if((Status != null)) + { + sb.Append(", Status: "); + Status.ToString(sb); + } + if((ResultList != null)) + { + sb.Append(", ResultList: "); + ResultList.ToString(sb); + } + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResult.cs b/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResult.cs index f438865..dd62cfe 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResult.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResult.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TTestConnectionResult : TBase { @@ -65,7 +70,27 @@ public TTestConnectionResult(TServiceProvider serviceProvider, TSender sender, b this.Success = success; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TTestConnectionResult DeepCopy() + { + var tmp94 = new TTestConnectionResult(); + if((ServiceProvider != null)) + { + tmp94.ServiceProvider = (TServiceProvider)this.ServiceProvider.DeepCopy(); + } + if((Sender != null)) + { + tmp94.Sender = (TSender)this.Sender.DeepCopy(); + } + tmp94.Success = this.Success; + if((Reason != null) && __isset.reason) + { + tmp94.Reason = this.Reason; + } + tmp94.__isset.reason = this.__isset.reason; + return tmp94; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -158,7 +183,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -166,25 +191,31 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TTestConnectionResult"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - field.Name = "serviceProvider"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await ServiceProvider.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "sender"; - field.Type = TType.Struct; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); - await Sender.WriteAsync(oprot, cancellationToken); - await oprot.WriteFieldEndAsync(cancellationToken); + if((ServiceProvider != null)) + { + field.Name = "serviceProvider"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await ServiceProvider.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Sender != null)) + { + field.Name = "sender"; + field.Type = TType.Struct; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await Sender.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } field.Name = "success"; field.Type = TType.Bool; field.ID = 3; await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(Success, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - if (Reason != null && __isset.reason) + if((Reason != null) && __isset.reason) { field.Name = "reason"; field.Type = TType.String; @@ -204,8 +235,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TTestConnectionResult; - if (other == null) return false; + if (!(that is TTestConnectionResult other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(ServiceProvider, other.ServiceProvider) && System.Object.Equals(Sender, other.Sender) @@ -216,11 +246,19 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - hashcode = (hashcode * 397) + ServiceProvider.GetHashCode(); - hashcode = (hashcode * 397) + Sender.GetHashCode(); + if((ServiceProvider != null)) + { + hashcode = (hashcode * 397) + ServiceProvider.GetHashCode(); + } + if((Sender != null)) + { + hashcode = (hashcode * 397) + Sender.GetHashCode(); + } hashcode = (hashcode * 397) + Success.GetHashCode(); - if(__isset.reason) + if((Reason != null) && __isset.reason) + { hashcode = (hashcode * 397) + Reason.GetHashCode(); + } } return hashcode; } @@ -228,18 +266,24 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TTestConnectionResult("); - sb.Append(", ServiceProvider: "); - sb.Append(ServiceProvider== null ? "" : ServiceProvider.ToString()); - sb.Append(", Sender: "); - sb.Append(Sender== null ? "" : Sender.ToString()); + if((ServiceProvider != null)) + { + sb.Append(", ServiceProvider: "); + ServiceProvider.ToString(sb); + } + if((Sender != null)) + { + sb.Append(", Sender: "); + Sender.ToString(sb); + } sb.Append(", Success: "); - sb.Append(Success); - if (Reason != null && __isset.reason) + Success.ToString(sb); + if((Reason != null) && __isset.reason) { sb.Append(", Reason: "); - sb.Append(Reason); + Reason.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TThrottleQuota.cs b/src/Apache.IoTDB/Rpc/Generated/TThrottleQuota.cs index 17e8f88..d902e0d 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TThrottleQuota.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TThrottleQuota.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TThrottleQuota : TBase { @@ -82,7 +87,28 @@ public TThrottleQuota() { } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TThrottleQuota DeepCopy() + { + var tmp73 = new TThrottleQuota(); + if((ThrottleLimit != null) && __isset.throttleLimit) + { + tmp73.ThrottleLimit = this.ThrottleLimit.DeepCopy(); + } + tmp73.__isset.throttleLimit = this.__isset.throttleLimit; + if(__isset.memLimit) + { + tmp73.MemLimit = this.MemLimit; + } + tmp73.__isset.memLimit = this.__isset.memLimit; + if(__isset.cpuLimit) + { + tmp73.CpuLimit = this.CpuLimit; + } + tmp73.__isset.cpuLimit = this.__isset.cpuLimit; + return tmp73; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -103,16 +129,16 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken if (field.Type == TType.Map) { { - TMap _map33 = await iprot.ReadMapBeginAsync(cancellationToken); - ThrottleLimit = new Dictionary(_map33.Count); - for(int _i34 = 0; _i34 < _map33.Count; ++_i34) + TMap _map74 = await iprot.ReadMapBeginAsync(cancellationToken); + ThrottleLimit = new Dictionary(_map74.Count); + for(int _i75 = 0; _i75 < _map74.Count; ++_i75) { - ThrottleType _key35; - TTimedQuota _val36; - _key35 = (ThrottleType)await iprot.ReadI32Async(cancellationToken); - _val36 = new TTimedQuota(); - await _val36.ReadAsync(iprot, cancellationToken); - ThrottleLimit[_key35] = _val36; + ThrottleType _key76; + TTimedQuota _val77; + _key76 = (ThrottleType)await iprot.ReadI32Async(cancellationToken); + _val77 = new TTimedQuota(); + await _val77.ReadAsync(iprot, cancellationToken); + ThrottleLimit[_key76] = _val77; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -158,7 +184,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -166,7 +192,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke var struc = new TStruct("TThrottleQuota"); await oprot.WriteStructBeginAsync(struc, cancellationToken); var field = new TField(); - if (ThrottleLimit != null && __isset.throttleLimit) + if((ThrottleLimit != null) && __isset.throttleLimit) { field.Name = "throttleLimit"; field.Type = TType.Map; @@ -174,16 +200,16 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, ThrottleLimit.Count), cancellationToken); - foreach (ThrottleType _iter37 in ThrottleLimit.Keys) + foreach (ThrottleType _iter78 in ThrottleLimit.Keys) { - await oprot.WriteI32Async((int)_iter37, cancellationToken); - await ThrottleLimit[_iter37].WriteAsync(oprot, cancellationToken); + await oprot.WriteI32Async((int)_iter78, cancellationToken); + await ThrottleLimit[_iter78].WriteAsync(oprot, cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.memLimit) + if(__isset.memLimit) { field.Name = "memLimit"; field.Type = TType.I64; @@ -192,7 +218,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke await oprot.WriteI64Async(MemLimit, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - if (__isset.cpuLimit) + if(__isset.cpuLimit) { field.Name = "cpuLimit"; field.Type = TType.I32; @@ -212,8 +238,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TThrottleQuota; - if (other == null) return false; + if (!(that is TThrottleQuota other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.throttleLimit == other.__isset.throttleLimit) && ((!__isset.throttleLimit) || (TCollections.Equals(ThrottleLimit, other.ThrottleLimit)))) && ((__isset.memLimit == other.__isset.memLimit) && ((!__isset.memLimit) || (System.Object.Equals(MemLimit, other.MemLimit)))) @@ -223,12 +248,18 @@ public override bool Equals(object that) public override int GetHashCode() { int hashcode = 157; unchecked { - if(__isset.throttleLimit) + if((ThrottleLimit != null) && __isset.throttleLimit) + { hashcode = (hashcode * 397) + TCollections.GetHashCode(ThrottleLimit); + } if(__isset.memLimit) + { hashcode = (hashcode * 397) + MemLimit.GetHashCode(); + } if(__isset.cpuLimit) + { hashcode = (hashcode * 397) + CpuLimit.GetHashCode(); + } } return hashcode; } @@ -236,29 +267,26 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TThrottleQuota("); - bool __first = true; - if (ThrottleLimit != null && __isset.throttleLimit) + int tmp79 = 0; + if((ThrottleLimit != null) && __isset.throttleLimit) { - if(!__first) { sb.Append(", "); } - __first = false; + if(0 < tmp79++) { sb.Append(", "); } sb.Append("ThrottleLimit: "); - sb.Append(ThrottleLimit); + ThrottleLimit.ToString(sb); } - if (__isset.memLimit) + if(__isset.memLimit) { - if(!__first) { sb.Append(", "); } - __first = false; + if(0 < tmp79++) { sb.Append(", "); } sb.Append("MemLimit: "); - sb.Append(MemLimit); + MemLimit.ToString(sb); } - if (__isset.cpuLimit) + if(__isset.cpuLimit) { - if(!__first) { sb.Append(", "); } - __first = false; + if(0 < tmp79++) { sb.Append(", "); } sb.Append("CpuLimit: "); - sb.Append(CpuLimit); + CpuLimit.ToString(sb); } - sb.Append(")"); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TTimePartitionSlot.cs b/src/Apache.IoTDB/Rpc/Generated/TTimePartitionSlot.cs index 24c9501..7ac09f7 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TTimePartitionSlot.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TTimePartitionSlot.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TTimePartitionSlot : TBase { @@ -38,7 +43,14 @@ public TTimePartitionSlot(long startTime) : this() this.StartTime = startTime; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TTimePartitionSlot DeepCopy() + { + var tmp12 = new TTimePartitionSlot(); + tmp12.StartTime = this.StartTime; + return tmp12; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -87,7 +99,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -112,8 +124,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TTimePartitionSlot; - if (other == null) return false; + if (!(that is TTimePartitionSlot other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(StartTime, other.StartTime); } @@ -130,8 +141,8 @@ public override string ToString() { var sb = new StringBuilder("TTimePartitionSlot("); sb.Append(", StartTime: "); - sb.Append(StartTime); - sb.Append(")"); + StartTime.ToString(sb); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TTimedQuota.cs b/src/Apache.IoTDB/Rpc/Generated/TTimedQuota.cs index fb46877..63cc675 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TTimedQuota.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TTimedQuota.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -9,8 +9,10 @@ using System.Collections.Generic; using System.Text; using System.IO; +using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Thrift; using Thrift.Collections; @@ -23,6 +25,9 @@ using Thrift.Processor; +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public partial class TTimedQuota : TBase { @@ -41,7 +46,15 @@ public TTimedQuota(long timeUnit, long softLimit) : this() this.SoftLimit = softLimit; } - public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + public TTimedQuota DeepCopy() + { + var tmp71 = new TTimedQuota(); + tmp71.TimeUnit = this.TimeUnit; + tmp71.SoftLimit = this.SoftLimit; + return tmp71; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try @@ -106,7 +119,7 @@ public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken } } - public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) { oprot.IncrementRecursionDepth(); try @@ -137,8 +150,7 @@ public async Task WriteAsync(TProtocol oprot, CancellationToken cancellationToke public override bool Equals(object that) { - var other = that as TTimedQuota; - if (other == null) return false; + if (!(that is TTimedQuota other)) return false; if (ReferenceEquals(this, other)) return true; return System.Object.Equals(TimeUnit, other.TimeUnit) && System.Object.Equals(SoftLimit, other.SoftLimit); @@ -157,10 +169,10 @@ public override string ToString() { var sb = new StringBuilder("TTimedQuota("); sb.Append(", TimeUnit: "); - sb.Append(TimeUnit); + TimeUnit.ToString(sb); sb.Append(", SoftLimit: "); - sb.Append(SoftLimit); - sb.Append(")"); + SoftLimit.ToString(sb); + sb.Append(')'); return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/ThrottleType.cs b/src/Apache.IoTDB/Rpc/Generated/ThrottleType.cs index 90e06fe..425a016 100644 --- a/src/Apache.IoTDB/Rpc/Generated/ThrottleType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/ThrottleType.cs @@ -1,10 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.13.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + public enum ThrottleType { REQUEST_NUMBER = 0, diff --git a/src/Apache.IoTDB/Rpc/Generated/client.Extensions.cs b/src/Apache.IoTDB/Rpc/Generated/client.Extensions.cs new file mode 100644 index 0000000..17fda94 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/client.Extensions.cs @@ -0,0 +1,376 @@ +/** + * Autogenerated by Thrift Compiler (0.14.1) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Microsoft.Extensions.Logging; +using Thrift; +using Thrift.Collections; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + +public static class clientExtensions +{ + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp743 = new Dictionary(source.Count); + foreach (var pair in source) + tmp743.Add((pair.Key != null) ? pair.Key : null, pair.Value); + return tmp743; + } + + + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp744 = new Dictionary(source.Count); + foreach (var pair in source) + tmp744.Add((pair.Key != null) ? pair.Key : null, (pair.Value != null) ? pair.Value : null); + return tmp744; + } + + + public static bool Equals(this List> instance, object that) + { + if (!(that is List> other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this List> instance) + { + return TCollections.GetHashCode(instance); + } + + + public static List> DeepCopy(this List> source) + { + if (source == null) + return null; + + var tmp745 = new List>(source.Count); + foreach (var elem in source) + tmp745.Add((elem != null) ? elem.DeepCopy() : null); + return tmp745; + } + + + public static bool Equals(this List> instance, object that) + { + if (!(that is List> other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this List> instance) + { + return TCollections.GetHashCode(instance); + } + + + public static List> DeepCopy(this List> source) + { + if (source == null) + return null; + + var tmp746 = new List>(source.Count); + foreach (var elem in source) + tmp746.Add((elem != null) ? elem.DeepCopy() : null); + return tmp746; + } + + + public static bool Equals(this List> instance, object that) + { + if (!(that is List> other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this List> instance) + { + return TCollections.GetHashCode(instance); + } + + + public static List> DeepCopy(this List> source) + { + if (source == null) + return null; + + var tmp747 = new List>(source.Count); + foreach (var elem in source) + tmp747.Add((elem != null) ? elem.DeepCopy() : null); + return tmp747; + } + + + public static bool Equals(this List instance, object that) + { + if (!(that is List other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this List instance) + { + return TCollections.GetHashCode(instance); + } + + + public static List DeepCopy(this List source) + { + if (source == null) + return null; + + var tmp748 = new List(source.Count); + foreach (var elem in source) + tmp748.Add(elem); + return tmp748; + } + + + public static bool Equals(this List instance, object that) + { + if (!(that is List other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this List instance) + { + return TCollections.GetHashCode(instance); + } + + + public static List DeepCopy(this List source) + { + if (source == null) + return null; + + var tmp749 = new List(source.Count); + foreach (var elem in source) + tmp749.Add((elem != null) ? elem.DeepCopy() : null); + return tmp749; + } + + + public static bool Equals(this List instance, object that) + { + if (!(that is List other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this List instance) + { + return TCollections.GetHashCode(instance); + } + + + public static List DeepCopy(this List source) + { + if (source == null) + return null; + + var tmp750 = new List(source.Count); + foreach (var elem in source) + tmp750.Add((elem != null) ? elem.DeepCopy() : null); + return tmp750; + } + + + public static bool Equals(this List instance, object that) + { + if (!(that is List other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this List instance) + { + return TCollections.GetHashCode(instance); + } + + + public static List DeepCopy(this List source) + { + if (source == null) + return null; + + var tmp751 = new List(source.Count); + foreach (var elem in source) + tmp751.Add((elem != null) ? elem.ToArray() : null); + return tmp751; + } + + + public static bool Equals(this List instance, object that) + { + if (!(that is List other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this List instance) + { + return TCollections.GetHashCode(instance); + } + + + public static List DeepCopy(this List source) + { + if (source == null) + return null; + + var tmp752 = new List(source.Count); + foreach (var elem in source) + tmp752.Add(elem); + return tmp752; + } + + + public static bool Equals(this List instance, object that) + { + if (!(that is List other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this List instance) + { + return TCollections.GetHashCode(instance); + } + + + public static List DeepCopy(this List source) + { + if (source == null) + return null; + + var tmp753 = new List(source.Count); + foreach (var elem in source) + tmp753.Add(elem); + return tmp753; + } + + + public static bool Equals(this List instance, object that) + { + if (!(that is List other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this List instance) + { + return TCollections.GetHashCode(instance); + } + + + public static List DeepCopy(this List source) + { + if (source == null) + return null; + + var tmp754 = new List(source.Count); + foreach (var elem in source) + tmp754.Add(elem); + return tmp754; + } + + + public static bool Equals(this List instance, object that) + { + if (!(that is List other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this List instance) + { + return TCollections.GetHashCode(instance); + } + + + public static List DeepCopy(this List source) + { + if (source == null) + return null; + + var tmp755 = new List(source.Count); + foreach (var elem in source) + tmp755.Add((elem != null) ? elem : null); + return tmp755; + } + + +} diff --git a/src/Apache.IoTDB/Rpc/Generated/common.Extensions.cs b/src/Apache.IoTDB/Rpc/Generated/common.Extensions.cs new file mode 100644 index 0000000..831b43d --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/common.Extensions.cs @@ -0,0 +1,241 @@ +/** + * Autogenerated by Thrift Compiler (0.14.1) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Microsoft.Extensions.Logging; +using Thrift; +using Thrift.Collections; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + +public static class commonExtensions +{ + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp116 = new Dictionary(source.Count); + foreach (var pair in source) + tmp116.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp116; + } + + + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp117 = new Dictionary(source.Count); + foreach (var pair in source) + tmp117.Add((pair.Key != null) ? pair.Key : null, (pair.Value != null) ? pair.Value : null); + return tmp117; + } + + + public static bool Equals(this List instance, object that) + { + if (!(that is List other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this List instance) + { + return TCollections.GetHashCode(instance); + } + + + public static List DeepCopy(this List source) + { + if (source == null) + return null; + + var tmp118 = new List(source.Count); + foreach (var elem in source) + tmp118.Add((elem != null) ? elem.DeepCopy() : null); + return tmp118; + } + + + public static bool Equals(this List instance, object that) + { + if (!(that is List other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this List instance) + { + return TCollections.GetHashCode(instance); + } + + + public static List DeepCopy(this List source) + { + if (source == null) + return null; + + var tmp119 = new List(source.Count); + foreach (var elem in source) + tmp119.Add((elem != null) ? elem.DeepCopy() : null); + return tmp119; + } + + + public static bool Equals(this List instance, object that) + { + if (!(that is List other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this List instance) + { + return TCollections.GetHashCode(instance); + } + + + public static List DeepCopy(this List source) + { + if (source == null) + return null; + + var tmp120 = new List(source.Count); + foreach (var elem in source) + tmp120.Add((elem != null) ? elem.DeepCopy() : null); + return tmp120; + } + + + public static bool Equals(this List instance, object that) + { + if (!(that is List other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this List instance) + { + return TCollections.GetHashCode(instance); + } + + + public static List DeepCopy(this List source) + { + if (source == null) + return null; + + var tmp121 = new List(source.Count); + foreach (var elem in source) + tmp121.Add((elem != null) ? elem.DeepCopy() : null); + return tmp121; + } + + + public static bool Equals(this List instance, object that) + { + if (!(that is List other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this List instance) + { + return TCollections.GetHashCode(instance); + } + + + public static List DeepCopy(this List source) + { + if (source == null) + return null; + + var tmp122 = new List(source.Count); + foreach (var elem in source) + tmp122.Add((elem != null) ? elem.DeepCopy() : null); + return tmp122; + } + + + public static bool Equals(this List instance, object that) + { + if (!(that is List other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this List instance) + { + return TCollections.GetHashCode(instance); + } + + + public static List DeepCopy(this List source) + { + if (source == null) + return null; + + var tmp123 = new List(source.Count); + foreach (var elem in source) + tmp123.Add((elem != null) ? elem : null); + return tmp123; + } + + +} From f44923fde7b4fe2e31fbd612079fd3a1d0479e0c Mon Sep 17 00:00:00 2001 From: luzhan <513964121@qq.com> Date: Mon, 8 Jul 2024 22:05:16 +0800 Subject: [PATCH 12/15] fix: use no_std to supress generation of DeepCopy() methods to avoid conflicts --- .../Rpc/Generated/IClientRPCService.cs | 1995 +++-------------- .../Rpc/Generated/ServerProperties.cs | 59 +- .../Rpc/Generated/TConfigNodeLocation.cs | 15 - .../Rpc/Generated/TConsensusGroupId.cs | 8 - ...TCreateTimeseriesUsingSchemaTemplateReq.cs | 27 +- .../Rpc/Generated/TDataNodeConfiguration.cs | 14 - .../Rpc/Generated/TDataNodeLocation.cs | 27 - src/Apache.IoTDB/Rpc/Generated/TEndPoint.cs | 11 - src/Apache.IoTDB/Rpc/Generated/TFile.cs | 14 - src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs | 32 +- src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs | 38 +- src/Apache.IoTDB/Rpc/Generated/TLicense.cs | 14 - .../Rpc/Generated/TNodeLocations.cs | 58 +- .../Rpc/Generated/TNodeResource.cs | 8 - .../Rpc/Generated/TPipeSubscribeReq.cs | 13 - .../Rpc/Generated/TPipeSubscribeResp.cs | 33 +- .../Rpc/Generated/TPipeTransferReq.cs | 12 - .../Rpc/Generated/TPipeTransferResp.cs | 15 - .../Rpc/Generated/TRegionReplicaSet.cs | 32 +- .../Rpc/Generated/TSAggregationQueryReq.cs | 83 +- .../Generated/TSAppendSchemaTemplateReq.cs | 92 +- .../Generated/TSBackupConfigurationResp.cs | 25 - .../Rpc/Generated/TSCancelOperationReq.cs | 8 - .../Rpc/Generated/TSCloseOperationReq.cs | 17 - .../Rpc/Generated/TSCloseSessionReq.cs | 7 - .../Rpc/Generated/TSConnectionInfo.cs | 16 - .../Rpc/Generated/TSConnectionInfoResp.cs | 28 +- .../Generated/TSCreateAlignedTimeseriesReq.cs | 194 +- .../Generated/TSCreateMultiTimeseriesReq.cs | 231 +- .../Generated/TSCreateSchemaTemplateReq.cs | 15 - .../Rpc/Generated/TSCreateTimeseriesReq.cs | 100 +- .../Rpc/Generated/TSDeleteDataReq.cs | 29 +- .../Rpc/Generated/TSDropSchemaTemplateReq.cs | 11 - .../Generated/TSExecuteBatchStatementReq.cs | 27 +- .../Rpc/Generated/TSExecuteStatementReq.cs | 32 - .../Rpc/Generated/TSExecuteStatementResp.cs | 177 +- .../TSFastLastDataQueryForOneDeviceReq.cs | 61 +- .../Rpc/Generated/TSFetchMetadataReq.cs | 16 - .../Rpc/Generated/TSFetchMetadataResp.cs | 41 +- .../Rpc/Generated/TSFetchResultsReq.cs | 19 - .../Rpc/Generated/TSFetchResultsResp.cs | 48 +- .../Rpc/Generated/TSGetOperationStatusReq.cs | 8 - .../Rpc/Generated/TSGetTimeZoneResp.cs | 14 - .../Generated/TSGroupByQueryIntervalReq.cs | 48 - .../Rpc/Generated/TSInsertRecordReq.cs | 41 +- .../TSInsertRecordsOfOneDeviceReq.cs | 90 +- .../Rpc/Generated/TSInsertRecordsReq.cs | 106 +- .../Rpc/Generated/TSInsertStringRecordReq.cs | 62 +- .../TSInsertStringRecordsOfOneDeviceReq.cs | 104 +- .../Rpc/Generated/TSInsertStringRecordsReq.cs | 120 +- .../Rpc/Generated/TSInsertTabletReq.cs | 65 +- .../Rpc/Generated/TSInsertTabletsReq.cs | 160 +- .../Rpc/Generated/TSLastDataQueryReq.cs | 54 +- .../Rpc/Generated/TSOpenSessionReq.cs | 47 +- .../Rpc/Generated/TSOpenSessionResp.cs | 43 +- .../Rpc/Generated/TSPruneSchemaTemplateReq.cs | 15 - .../Rpc/Generated/TSQueryDataSet.cs | 50 +- .../Rpc/Generated/TSQueryNonAlignDataSet.cs | 46 +- .../Rpc/Generated/TSQueryTemplateReq.cs | 17 - .../Rpc/Generated/TSQueryTemplateResp.cs | 42 +- .../Rpc/Generated/TSRawDataQueryReq.cs | 55 +- .../Rpc/Generated/TSSetSchemaTemplateReq.cs | 15 - .../Rpc/Generated/TSSetTimeZoneReq.cs | 11 - src/Apache.IoTDB/Rpc/Generated/TSStatus.cs | 45 +- .../Rpc/Generated/TSTracingInfo.cs | 91 +- .../Rpc/Generated/TSUnsetSchemaTemplateReq.cs | 15 - src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs | 11 - src/Apache.IoTDB/Rpc/Generated/TSender.cs | 22 +- .../Rpc/Generated/TSeriesPartitionSlot.cs | 7 - .../Rpc/Generated/TServiceProvider.cs | 11 - .../Rpc/Generated/TSetConfigurationReq.cs | 33 +- .../Rpc/Generated/TSetSpaceQuotaReq.cs | 30 +- src/Apache.IoTDB/Rpc/Generated/TSetTTLReq.cs | 28 +- .../Rpc/Generated/TSetThrottleQuotaReq.cs | 14 - src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs | 26 +- .../Rpc/Generated/TShowConfigurationResp.cs | 14 - .../TShowConfigurationTemplateResp.cs | 14 - src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs | 26 +- src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs | 29 +- .../Rpc/Generated/TSyncIdentityInfo.cs | 19 - .../Rpc/Generated/TSyncTransportMetaInfo.cs | 11 - .../Rpc/Generated/TTestConnectionResp.cs | 32 +- .../Rpc/Generated/TTestConnectionResult.cs | 20 - .../Rpc/Generated/TThrottleQuota.cs | 53 +- .../Rpc/Generated/TTimePartitionSlot.cs | 7 - src/Apache.IoTDB/Rpc/Generated/TTimedQuota.cs | 8 - .../Rpc/Generated/client.Extensions.cs | 156 -- .../Rpc/Generated/common.Extensions.cs | 96 - 88 files changed, 1133 insertions(+), 4600 deletions(-) diff --git a/src/Apache.IoTDB/Rpc/Generated/IClientRPCService.cs b/src/Apache.IoTDB/Rpc/Generated/IClientRPCService.cs index d2771fc..b90d345 100644 --- a/src/Apache.IoTDB/Rpc/Generated/IClientRPCService.cs +++ b/src/Apache.IoTDB/Rpc/Generated/IClientRPCService.cs @@ -4354,17 +4354,6 @@ public executeQueryStatementV2Args() { } - public executeQueryStatementV2Args DeepCopy() - { - var tmp471 = new executeQueryStatementV2Args(); - if((Req != null) && __isset.req) - { - tmp471.Req = (TSExecuteStatementReq)this.Req.DeepCopy(); - } - tmp471.__isset.req = this.__isset.req; - return tmp471; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -4456,10 +4445,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeQueryStatementV2_args("); - int tmp472 = 0; + int tmp417 = 0; if((Req != null) && __isset.req) { - if(0 < tmp472++) { sb.Append(", "); } + if(0 < tmp417++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -4497,17 +4486,6 @@ public executeQueryStatementV2Result() { } - public executeQueryStatementV2Result DeepCopy() - { - var tmp473 = new executeQueryStatementV2Result(); - if((Success != null) && __isset.success) - { - tmp473.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp473.__isset.success = this.__isset.success; - return tmp473; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -4603,10 +4581,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeQueryStatementV2_result("); - int tmp474 = 0; + int tmp418 = 0; if((Success != null) && __isset.success) { - if(0 < tmp474++) { sb.Append(", "); } + if(0 < tmp418++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -4644,17 +4622,6 @@ public executeUpdateStatementV2Args() { } - public executeUpdateStatementV2Args DeepCopy() - { - var tmp475 = new executeUpdateStatementV2Args(); - if((Req != null) && __isset.req) - { - tmp475.Req = (TSExecuteStatementReq)this.Req.DeepCopy(); - } - tmp475.__isset.req = this.__isset.req; - return tmp475; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -4746,10 +4713,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeUpdateStatementV2_args("); - int tmp476 = 0; + int tmp419 = 0; if((Req != null) && __isset.req) { - if(0 < tmp476++) { sb.Append(", "); } + if(0 < tmp419++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -4787,17 +4754,6 @@ public executeUpdateStatementV2Result() { } - public executeUpdateStatementV2Result DeepCopy() - { - var tmp477 = new executeUpdateStatementV2Result(); - if((Success != null) && __isset.success) - { - tmp477.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp477.__isset.success = this.__isset.success; - return tmp477; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -4893,10 +4849,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeUpdateStatementV2_result("); - int tmp478 = 0; + int tmp420 = 0; if((Success != null) && __isset.success) { - if(0 < tmp478++) { sb.Append(", "); } + if(0 < tmp420++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -4934,17 +4890,6 @@ public executeStatementV2Args() { } - public executeStatementV2Args DeepCopy() - { - var tmp479 = new executeStatementV2Args(); - if((Req != null) && __isset.req) - { - tmp479.Req = (TSExecuteStatementReq)this.Req.DeepCopy(); - } - tmp479.__isset.req = this.__isset.req; - return tmp479; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -5036,10 +4981,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeStatementV2_args("); - int tmp480 = 0; + int tmp421 = 0; if((Req != null) && __isset.req) { - if(0 < tmp480++) { sb.Append(", "); } + if(0 < tmp421++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -5077,17 +5022,6 @@ public executeStatementV2Result() { } - public executeStatementV2Result DeepCopy() - { - var tmp481 = new executeStatementV2Result(); - if((Success != null) && __isset.success) - { - tmp481.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp481.__isset.success = this.__isset.success; - return tmp481; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -5183,10 +5117,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeStatementV2_result("); - int tmp482 = 0; + int tmp422 = 0; if((Success != null) && __isset.success) { - if(0 < tmp482++) { sb.Append(", "); } + if(0 < tmp422++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -5224,17 +5158,6 @@ public executeRawDataQueryV2Args() { } - public executeRawDataQueryV2Args DeepCopy() - { - var tmp483 = new executeRawDataQueryV2Args(); - if((Req != null) && __isset.req) - { - tmp483.Req = (TSRawDataQueryReq)this.Req.DeepCopy(); - } - tmp483.__isset.req = this.__isset.req; - return tmp483; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -5326,10 +5249,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeRawDataQueryV2_args("); - int tmp484 = 0; + int tmp423 = 0; if((Req != null) && __isset.req) { - if(0 < tmp484++) { sb.Append(", "); } + if(0 < tmp423++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -5367,17 +5290,6 @@ public executeRawDataQueryV2Result() { } - public executeRawDataQueryV2Result DeepCopy() - { - var tmp485 = new executeRawDataQueryV2Result(); - if((Success != null) && __isset.success) - { - tmp485.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp485.__isset.success = this.__isset.success; - return tmp485; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -5473,10 +5385,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeRawDataQueryV2_result("); - int tmp486 = 0; + int tmp424 = 0; if((Success != null) && __isset.success) { - if(0 < tmp486++) { sb.Append(", "); } + if(0 < tmp424++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -5514,17 +5426,6 @@ public executeLastDataQueryV2Args() { } - public executeLastDataQueryV2Args DeepCopy() - { - var tmp487 = new executeLastDataQueryV2Args(); - if((Req != null) && __isset.req) - { - tmp487.Req = (TSLastDataQueryReq)this.Req.DeepCopy(); - } - tmp487.__isset.req = this.__isset.req; - return tmp487; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -5616,10 +5517,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeLastDataQueryV2_args("); - int tmp488 = 0; + int tmp425 = 0; if((Req != null) && __isset.req) { - if(0 < tmp488++) { sb.Append(", "); } + if(0 < tmp425++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -5657,17 +5558,6 @@ public executeLastDataQueryV2Result() { } - public executeLastDataQueryV2Result DeepCopy() - { - var tmp489 = new executeLastDataQueryV2Result(); - if((Success != null) && __isset.success) - { - tmp489.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp489.__isset.success = this.__isset.success; - return tmp489; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -5763,10 +5653,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeLastDataQueryV2_result("); - int tmp490 = 0; + int tmp426 = 0; if((Success != null) && __isset.success) { - if(0 < tmp490++) { sb.Append(", "); } + if(0 < tmp426++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -5804,17 +5694,6 @@ public executeFastLastDataQueryForOneDeviceV2Args() { } - public executeFastLastDataQueryForOneDeviceV2Args DeepCopy() - { - var tmp491 = new executeFastLastDataQueryForOneDeviceV2Args(); - if((Req != null) && __isset.req) - { - tmp491.Req = (TSFastLastDataQueryForOneDeviceReq)this.Req.DeepCopy(); - } - tmp491.__isset.req = this.__isset.req; - return tmp491; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -5906,10 +5785,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeFastLastDataQueryForOneDeviceV2_args("); - int tmp492 = 0; + int tmp427 = 0; if((Req != null) && __isset.req) { - if(0 < tmp492++) { sb.Append(", "); } + if(0 < tmp427++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -5947,17 +5826,6 @@ public executeFastLastDataQueryForOneDeviceV2Result() { } - public executeFastLastDataQueryForOneDeviceV2Result DeepCopy() - { - var tmp493 = new executeFastLastDataQueryForOneDeviceV2Result(); - if((Success != null) && __isset.success) - { - tmp493.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp493.__isset.success = this.__isset.success; - return tmp493; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -6053,10 +5921,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeFastLastDataQueryForOneDeviceV2_result("); - int tmp494 = 0; + int tmp428 = 0; if((Success != null) && __isset.success) { - if(0 < tmp494++) { sb.Append(", "); } + if(0 < tmp428++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -6094,17 +5962,6 @@ public executeAggregationQueryV2Args() { } - public executeAggregationQueryV2Args DeepCopy() - { - var tmp495 = new executeAggregationQueryV2Args(); - if((Req != null) && __isset.req) - { - tmp495.Req = (TSAggregationQueryReq)this.Req.DeepCopy(); - } - tmp495.__isset.req = this.__isset.req; - return tmp495; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -6196,10 +6053,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeAggregationQueryV2_args("); - int tmp496 = 0; + int tmp429 = 0; if((Req != null) && __isset.req) { - if(0 < tmp496++) { sb.Append(", "); } + if(0 < tmp429++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -6237,17 +6094,6 @@ public executeAggregationQueryV2Result() { } - public executeAggregationQueryV2Result DeepCopy() - { - var tmp497 = new executeAggregationQueryV2Result(); - if((Success != null) && __isset.success) - { - tmp497.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp497.__isset.success = this.__isset.success; - return tmp497; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -6343,10 +6189,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeAggregationQueryV2_result("); - int tmp498 = 0; + int tmp430 = 0; if((Success != null) && __isset.success) { - if(0 < tmp498++) { sb.Append(", "); } + if(0 < tmp430++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -6384,17 +6230,6 @@ public executeGroupByQueryIntervalQueryArgs() { } - public executeGroupByQueryIntervalQueryArgs DeepCopy() - { - var tmp499 = new executeGroupByQueryIntervalQueryArgs(); - if((Req != null) && __isset.req) - { - tmp499.Req = (TSGroupByQueryIntervalReq)this.Req.DeepCopy(); - } - tmp499.__isset.req = this.__isset.req; - return tmp499; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -6486,10 +6321,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeGroupByQueryIntervalQuery_args("); - int tmp500 = 0; + int tmp431 = 0; if((Req != null) && __isset.req) { - if(0 < tmp500++) { sb.Append(", "); } + if(0 < tmp431++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -6527,17 +6362,6 @@ public executeGroupByQueryIntervalQueryResult() { } - public executeGroupByQueryIntervalQueryResult DeepCopy() - { - var tmp501 = new executeGroupByQueryIntervalQueryResult(); - if((Success != null) && __isset.success) - { - tmp501.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp501.__isset.success = this.__isset.success; - return tmp501; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -6633,10 +6457,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeGroupByQueryIntervalQuery_result("); - int tmp502 = 0; + int tmp432 = 0; if((Success != null) && __isset.success) { - if(0 < tmp502++) { sb.Append(", "); } + if(0 < tmp432++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -6674,17 +6498,6 @@ public fetchResultsV2Args() { } - public fetchResultsV2Args DeepCopy() - { - var tmp503 = new fetchResultsV2Args(); - if((Req != null) && __isset.req) - { - tmp503.Req = (TSFetchResultsReq)this.Req.DeepCopy(); - } - tmp503.__isset.req = this.__isset.req; - return tmp503; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -6776,10 +6589,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("fetchResultsV2_args("); - int tmp504 = 0; + int tmp433 = 0; if((Req != null) && __isset.req) { - if(0 < tmp504++) { sb.Append(", "); } + if(0 < tmp433++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -6817,17 +6630,6 @@ public fetchResultsV2Result() { } - public fetchResultsV2Result DeepCopy() - { - var tmp505 = new fetchResultsV2Result(); - if((Success != null) && __isset.success) - { - tmp505.Success = (TSFetchResultsResp)this.Success.DeepCopy(); - } - tmp505.__isset.success = this.__isset.success; - return tmp505; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -6923,10 +6725,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("fetchResultsV2_result("); - int tmp506 = 0; + int tmp434 = 0; if((Success != null) && __isset.success) { - if(0 < tmp506++) { sb.Append(", "); } + if(0 < tmp434++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -6964,17 +6766,6 @@ public openSessionArgs() { } - public openSessionArgs DeepCopy() - { - var tmp507 = new openSessionArgs(); - if((Req != null) && __isset.req) - { - tmp507.Req = (TSOpenSessionReq)this.Req.DeepCopy(); - } - tmp507.__isset.req = this.__isset.req; - return tmp507; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -7066,10 +6857,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("openSession_args("); - int tmp508 = 0; + int tmp435 = 0; if((Req != null) && __isset.req) { - if(0 < tmp508++) { sb.Append(", "); } + if(0 < tmp435++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -7107,17 +6898,6 @@ public openSessionResult() { } - public openSessionResult DeepCopy() - { - var tmp509 = new openSessionResult(); - if((Success != null) && __isset.success) - { - tmp509.Success = (TSOpenSessionResp)this.Success.DeepCopy(); - } - tmp509.__isset.success = this.__isset.success; - return tmp509; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -7213,10 +6993,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("openSession_result("); - int tmp510 = 0; + int tmp436 = 0; if((Success != null) && __isset.success) { - if(0 < tmp510++) { sb.Append(", "); } + if(0 < tmp436++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -7254,17 +7034,6 @@ public closeSessionArgs() { } - public closeSessionArgs DeepCopy() - { - var tmp511 = new closeSessionArgs(); - if((Req != null) && __isset.req) - { - tmp511.Req = (TSCloseSessionReq)this.Req.DeepCopy(); - } - tmp511.__isset.req = this.__isset.req; - return tmp511; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -7356,10 +7125,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("closeSession_args("); - int tmp512 = 0; + int tmp437 = 0; if((Req != null) && __isset.req) { - if(0 < tmp512++) { sb.Append(", "); } + if(0 < tmp437++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -7397,17 +7166,6 @@ public closeSessionResult() { } - public closeSessionResult DeepCopy() - { - var tmp513 = new closeSessionResult(); - if((Success != null) && __isset.success) - { - tmp513.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp513.__isset.success = this.__isset.success; - return tmp513; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -7503,10 +7261,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("closeSession_result("); - int tmp514 = 0; + int tmp438 = 0; if((Success != null) && __isset.success) { - if(0 < tmp514++) { sb.Append(", "); } + if(0 < tmp438++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -7544,17 +7302,6 @@ public executeStatementArgs() { } - public executeStatementArgs DeepCopy() - { - var tmp515 = new executeStatementArgs(); - if((Req != null) && __isset.req) - { - tmp515.Req = (TSExecuteStatementReq)this.Req.DeepCopy(); - } - tmp515.__isset.req = this.__isset.req; - return tmp515; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -7646,10 +7393,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeStatement_args("); - int tmp516 = 0; + int tmp439 = 0; if((Req != null) && __isset.req) { - if(0 < tmp516++) { sb.Append(", "); } + if(0 < tmp439++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -7687,17 +7434,6 @@ public executeStatementResult() { } - public executeStatementResult DeepCopy() - { - var tmp517 = new executeStatementResult(); - if((Success != null) && __isset.success) - { - tmp517.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp517.__isset.success = this.__isset.success; - return tmp517; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -7793,10 +7529,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeStatement_result("); - int tmp518 = 0; + int tmp440 = 0; if((Success != null) && __isset.success) { - if(0 < tmp518++) { sb.Append(", "); } + if(0 < tmp440++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -7834,17 +7570,6 @@ public executeBatchStatementArgs() { } - public executeBatchStatementArgs DeepCopy() - { - var tmp519 = new executeBatchStatementArgs(); - if((Req != null) && __isset.req) - { - tmp519.Req = (TSExecuteBatchStatementReq)this.Req.DeepCopy(); - } - tmp519.__isset.req = this.__isset.req; - return tmp519; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -7936,10 +7661,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeBatchStatement_args("); - int tmp520 = 0; + int tmp441 = 0; if((Req != null) && __isset.req) { - if(0 < tmp520++) { sb.Append(", "); } + if(0 < tmp441++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -7977,17 +7702,6 @@ public executeBatchStatementResult() { } - public executeBatchStatementResult DeepCopy() - { - var tmp521 = new executeBatchStatementResult(); - if((Success != null) && __isset.success) - { - tmp521.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp521.__isset.success = this.__isset.success; - return tmp521; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -8083,10 +7797,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeBatchStatement_result("); - int tmp522 = 0; + int tmp442 = 0; if((Success != null) && __isset.success) { - if(0 < tmp522++) { sb.Append(", "); } + if(0 < tmp442++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -8124,17 +7838,6 @@ public executeQueryStatementArgs() { } - public executeQueryStatementArgs DeepCopy() - { - var tmp523 = new executeQueryStatementArgs(); - if((Req != null) && __isset.req) - { - tmp523.Req = (TSExecuteStatementReq)this.Req.DeepCopy(); - } - tmp523.__isset.req = this.__isset.req; - return tmp523; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -8226,10 +7929,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeQueryStatement_args("); - int tmp524 = 0; + int tmp443 = 0; if((Req != null) && __isset.req) { - if(0 < tmp524++) { sb.Append(", "); } + if(0 < tmp443++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -8267,17 +7970,6 @@ public executeQueryStatementResult() { } - public executeQueryStatementResult DeepCopy() - { - var tmp525 = new executeQueryStatementResult(); - if((Success != null) && __isset.success) - { - tmp525.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp525.__isset.success = this.__isset.success; - return tmp525; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -8373,10 +8065,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeQueryStatement_result("); - int tmp526 = 0; + int tmp444 = 0; if((Success != null) && __isset.success) { - if(0 < tmp526++) { sb.Append(", "); } + if(0 < tmp444++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -8414,17 +8106,6 @@ public executeUpdateStatementArgs() { } - public executeUpdateStatementArgs DeepCopy() - { - var tmp527 = new executeUpdateStatementArgs(); - if((Req != null) && __isset.req) - { - tmp527.Req = (TSExecuteStatementReq)this.Req.DeepCopy(); - } - tmp527.__isset.req = this.__isset.req; - return tmp527; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -8516,10 +8197,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeUpdateStatement_args("); - int tmp528 = 0; + int tmp445 = 0; if((Req != null) && __isset.req) { - if(0 < tmp528++) { sb.Append(", "); } + if(0 < tmp445++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -8557,17 +8238,6 @@ public executeUpdateStatementResult() { } - public executeUpdateStatementResult DeepCopy() - { - var tmp529 = new executeUpdateStatementResult(); - if((Success != null) && __isset.success) - { - tmp529.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp529.__isset.success = this.__isset.success; - return tmp529; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -8663,10 +8333,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeUpdateStatement_result("); - int tmp530 = 0; + int tmp446 = 0; if((Success != null) && __isset.success) { - if(0 < tmp530++) { sb.Append(", "); } + if(0 < tmp446++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -8704,17 +8374,6 @@ public fetchResultsArgs() { } - public fetchResultsArgs DeepCopy() - { - var tmp531 = new fetchResultsArgs(); - if((Req != null) && __isset.req) - { - tmp531.Req = (TSFetchResultsReq)this.Req.DeepCopy(); - } - tmp531.__isset.req = this.__isset.req; - return tmp531; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -8806,10 +8465,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("fetchResults_args("); - int tmp532 = 0; + int tmp447 = 0; if((Req != null) && __isset.req) { - if(0 < tmp532++) { sb.Append(", "); } + if(0 < tmp447++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -8847,17 +8506,6 @@ public fetchResultsResult() { } - public fetchResultsResult DeepCopy() - { - var tmp533 = new fetchResultsResult(); - if((Success != null) && __isset.success) - { - tmp533.Success = (TSFetchResultsResp)this.Success.DeepCopy(); - } - tmp533.__isset.success = this.__isset.success; - return tmp533; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -8953,10 +8601,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("fetchResults_result("); - int tmp534 = 0; + int tmp448 = 0; if((Success != null) && __isset.success) { - if(0 < tmp534++) { sb.Append(", "); } + if(0 < tmp448++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -8994,17 +8642,6 @@ public fetchMetadataArgs() { } - public fetchMetadataArgs DeepCopy() - { - var tmp535 = new fetchMetadataArgs(); - if((Req != null) && __isset.req) - { - tmp535.Req = (TSFetchMetadataReq)this.Req.DeepCopy(); - } - tmp535.__isset.req = this.__isset.req; - return tmp535; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -9096,10 +8733,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("fetchMetadata_args("); - int tmp536 = 0; + int tmp449 = 0; if((Req != null) && __isset.req) { - if(0 < tmp536++) { sb.Append(", "); } + if(0 < tmp449++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -9137,17 +8774,6 @@ public fetchMetadataResult() { } - public fetchMetadataResult DeepCopy() - { - var tmp537 = new fetchMetadataResult(); - if((Success != null) && __isset.success) - { - tmp537.Success = (TSFetchMetadataResp)this.Success.DeepCopy(); - } - tmp537.__isset.success = this.__isset.success; - return tmp537; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -9243,10 +8869,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("fetchMetadata_result("); - int tmp538 = 0; + int tmp450 = 0; if((Success != null) && __isset.success) { - if(0 < tmp538++) { sb.Append(", "); } + if(0 < tmp450++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -9284,17 +8910,6 @@ public cancelOperationArgs() { } - public cancelOperationArgs DeepCopy() - { - var tmp539 = new cancelOperationArgs(); - if((Req != null) && __isset.req) - { - tmp539.Req = (TSCancelOperationReq)this.Req.DeepCopy(); - } - tmp539.__isset.req = this.__isset.req; - return tmp539; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -9386,10 +9001,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("cancelOperation_args("); - int tmp540 = 0; + int tmp451 = 0; if((Req != null) && __isset.req) { - if(0 < tmp540++) { sb.Append(", "); } + if(0 < tmp451++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -9427,17 +9042,6 @@ public cancelOperationResult() { } - public cancelOperationResult DeepCopy() - { - var tmp541 = new cancelOperationResult(); - if((Success != null) && __isset.success) - { - tmp541.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp541.__isset.success = this.__isset.success; - return tmp541; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -9533,10 +9137,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("cancelOperation_result("); - int tmp542 = 0; + int tmp452 = 0; if((Success != null) && __isset.success) { - if(0 < tmp542++) { sb.Append(", "); } + if(0 < tmp452++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -9574,17 +9178,6 @@ public closeOperationArgs() { } - public closeOperationArgs DeepCopy() - { - var tmp543 = new closeOperationArgs(); - if((Req != null) && __isset.req) - { - tmp543.Req = (TSCloseOperationReq)this.Req.DeepCopy(); - } - tmp543.__isset.req = this.__isset.req; - return tmp543; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -9676,10 +9269,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("closeOperation_args("); - int tmp544 = 0; + int tmp453 = 0; if((Req != null) && __isset.req) { - if(0 < tmp544++) { sb.Append(", "); } + if(0 < tmp453++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -9717,17 +9310,6 @@ public closeOperationResult() { } - public closeOperationResult DeepCopy() - { - var tmp545 = new closeOperationResult(); - if((Success != null) && __isset.success) - { - tmp545.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp545.__isset.success = this.__isset.success; - return tmp545; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -9823,10 +9405,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("closeOperation_result("); - int tmp546 = 0; + int tmp454 = 0; if((Success != null) && __isset.success) { - if(0 < tmp546++) { sb.Append(", "); } + if(0 < tmp454++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -9864,17 +9446,6 @@ public getTimeZoneArgs() { } - public getTimeZoneArgs DeepCopy() - { - var tmp547 = new getTimeZoneArgs(); - if(__isset.sessionId) - { - tmp547.SessionId = this.SessionId; - } - tmp547.__isset.sessionId = this.__isset.sessionId; - return tmp547; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -9965,10 +9536,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("getTimeZone_args("); - int tmp548 = 0; + int tmp455 = 0; if(__isset.sessionId) { - if(0 < tmp548++) { sb.Append(", "); } + if(0 < tmp455++) { sb.Append(", "); } sb.Append("SessionId: "); SessionId.ToString(sb); } @@ -10006,17 +9577,6 @@ public getTimeZoneResult() { } - public getTimeZoneResult DeepCopy() - { - var tmp549 = new getTimeZoneResult(); - if((Success != null) && __isset.success) - { - tmp549.Success = (TSGetTimeZoneResp)this.Success.DeepCopy(); - } - tmp549.__isset.success = this.__isset.success; - return tmp549; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -10112,10 +9672,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("getTimeZone_result("); - int tmp550 = 0; + int tmp456 = 0; if((Success != null) && __isset.success) { - if(0 < tmp550++) { sb.Append(", "); } + if(0 < tmp456++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -10153,17 +9713,6 @@ public setTimeZoneArgs() { } - public setTimeZoneArgs DeepCopy() - { - var tmp551 = new setTimeZoneArgs(); - if((Req != null) && __isset.req) - { - tmp551.Req = (TSSetTimeZoneReq)this.Req.DeepCopy(); - } - tmp551.__isset.req = this.__isset.req; - return tmp551; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -10255,10 +9804,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("setTimeZone_args("); - int tmp552 = 0; + int tmp457 = 0; if((Req != null) && __isset.req) { - if(0 < tmp552++) { sb.Append(", "); } + if(0 < tmp457++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -10296,17 +9845,6 @@ public setTimeZoneResult() { } - public setTimeZoneResult DeepCopy() - { - var tmp553 = new setTimeZoneResult(); - if((Success != null) && __isset.success) - { - tmp553.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp553.__isset.success = this.__isset.success; - return tmp553; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -10402,10 +9940,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("setTimeZone_result("); - int tmp554 = 0; + int tmp458 = 0; if((Success != null) && __isset.success) { - if(0 < tmp554++) { sb.Append(", "); } + if(0 < tmp458++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -10422,12 +9960,6 @@ public getPropertiesArgs() { } - public getPropertiesArgs DeepCopy() - { - var tmp555 = new getPropertiesArgs(); - return tmp555; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -10528,17 +10060,6 @@ public getPropertiesResult() { } - public getPropertiesResult DeepCopy() - { - var tmp557 = new getPropertiesResult(); - if((Success != null) && __isset.success) - { - tmp557.Success = (ServerProperties)this.Success.DeepCopy(); - } - tmp557.__isset.success = this.__isset.success; - return tmp557; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -10634,10 +10155,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("getProperties_result("); - int tmp558 = 0; + int tmp460 = 0; if((Success != null) && __isset.success) { - if(0 < tmp558++) { sb.Append(", "); } + if(0 < tmp460++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -10690,22 +10211,6 @@ public setStorageGroupArgs() { } - public setStorageGroupArgs DeepCopy() - { - var tmp559 = new setStorageGroupArgs(); - if(__isset.sessionId) - { - tmp559.SessionId = this.SessionId; - } - tmp559.__isset.sessionId = this.__isset.sessionId; - if((StorageGroup != null) && __isset.storageGroup) - { - tmp559.StorageGroup = this.StorageGroup; - } - tmp559.__isset.storageGroup = this.__isset.storageGroup; - return tmp559; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -10820,16 +10325,16 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("setStorageGroup_args("); - int tmp560 = 0; + int tmp461 = 0; if(__isset.sessionId) { - if(0 < tmp560++) { sb.Append(", "); } + if(0 < tmp461++) { sb.Append(", "); } sb.Append("SessionId: "); SessionId.ToString(sb); } if((StorageGroup != null) && __isset.storageGroup) { - if(0 < tmp560++) { sb.Append(", "); } + if(0 < tmp461++) { sb.Append(", "); } sb.Append("StorageGroup: "); StorageGroup.ToString(sb); } @@ -10867,17 +10372,6 @@ public setStorageGroupResult() { } - public setStorageGroupResult DeepCopy() - { - var tmp561 = new setStorageGroupResult(); - if((Success != null) && __isset.success) - { - tmp561.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp561.__isset.success = this.__isset.success; - return tmp561; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -10973,10 +10467,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("setStorageGroup_result("); - int tmp562 = 0; + int tmp462 = 0; if((Success != null) && __isset.success) { - if(0 < tmp562++) { sb.Append(", "); } + if(0 < tmp462++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -11014,17 +10508,6 @@ public createTimeseriesArgs() { } - public createTimeseriesArgs DeepCopy() - { - var tmp563 = new createTimeseriesArgs(); - if((Req != null) && __isset.req) - { - tmp563.Req = (TSCreateTimeseriesReq)this.Req.DeepCopy(); - } - tmp563.__isset.req = this.__isset.req; - return tmp563; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -11116,10 +10599,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("createTimeseries_args("); - int tmp564 = 0; + int tmp463 = 0; if((Req != null) && __isset.req) { - if(0 < tmp564++) { sb.Append(", "); } + if(0 < tmp463++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -11157,17 +10640,6 @@ public createTimeseriesResult() { } - public createTimeseriesResult DeepCopy() - { - var tmp565 = new createTimeseriesResult(); - if((Success != null) && __isset.success) - { - tmp565.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp565.__isset.success = this.__isset.success; - return tmp565; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -11263,10 +10735,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("createTimeseries_result("); - int tmp566 = 0; + int tmp464 = 0; if((Success != null) && __isset.success) { - if(0 < tmp566++) { sb.Append(", "); } + if(0 < tmp464++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -11304,17 +10776,6 @@ public createAlignedTimeseriesArgs() { } - public createAlignedTimeseriesArgs DeepCopy() - { - var tmp567 = new createAlignedTimeseriesArgs(); - if((Req != null) && __isset.req) - { - tmp567.Req = (TSCreateAlignedTimeseriesReq)this.Req.DeepCopy(); - } - tmp567.__isset.req = this.__isset.req; - return tmp567; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -11406,10 +10867,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("createAlignedTimeseries_args("); - int tmp568 = 0; + int tmp465 = 0; if((Req != null) && __isset.req) { - if(0 < tmp568++) { sb.Append(", "); } + if(0 < tmp465++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -11447,17 +10908,6 @@ public createAlignedTimeseriesResult() { } - public createAlignedTimeseriesResult DeepCopy() - { - var tmp569 = new createAlignedTimeseriesResult(); - if((Success != null) && __isset.success) - { - tmp569.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp569.__isset.success = this.__isset.success; - return tmp569; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -11553,10 +11003,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("createAlignedTimeseries_result("); - int tmp570 = 0; + int tmp466 = 0; if((Success != null) && __isset.success) { - if(0 < tmp570++) { sb.Append(", "); } + if(0 < tmp466++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -11594,17 +11044,6 @@ public createMultiTimeseriesArgs() { } - public createMultiTimeseriesArgs DeepCopy() - { - var tmp571 = new createMultiTimeseriesArgs(); - if((Req != null) && __isset.req) - { - tmp571.Req = (TSCreateMultiTimeseriesReq)this.Req.DeepCopy(); - } - tmp571.__isset.req = this.__isset.req; - return tmp571; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -11696,10 +11135,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("createMultiTimeseries_args("); - int tmp572 = 0; + int tmp467 = 0; if((Req != null) && __isset.req) { - if(0 < tmp572++) { sb.Append(", "); } + if(0 < tmp467++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -11737,17 +11176,6 @@ public createMultiTimeseriesResult() { } - public createMultiTimeseriesResult DeepCopy() - { - var tmp573 = new createMultiTimeseriesResult(); - if((Success != null) && __isset.success) - { - tmp573.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp573.__isset.success = this.__isset.success; - return tmp573; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -11843,10 +11271,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("createMultiTimeseries_result("); - int tmp574 = 0; + int tmp468 = 0; if((Success != null) && __isset.success) { - if(0 < tmp574++) { sb.Append(", "); } + if(0 < tmp468++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -11899,22 +11327,6 @@ public deleteTimeseriesArgs() { } - public deleteTimeseriesArgs DeepCopy() - { - var tmp575 = new deleteTimeseriesArgs(); - if(__isset.sessionId) - { - tmp575.SessionId = this.SessionId; - } - tmp575.__isset.sessionId = this.__isset.sessionId; - if((Path != null) && __isset.path) - { - tmp575.Path = this.Path.DeepCopy(); - } - tmp575.__isset.path = this.__isset.path; - return tmp575; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -11946,13 +11358,13 @@ public deleteTimeseriesArgs DeepCopy() if (field.Type == TType.List) { { - TList _list576 = await iprot.ReadListBeginAsync(cancellationToken); - Path = new List(_list576.Count); - for(int _i577 = 0; _i577 < _list576.Count; ++_i577) + TList _list469 = await iprot.ReadListBeginAsync(cancellationToken); + Path = new List(_list469.Count); + for(int _i470 = 0; _i470 < _list469.Count; ++_i470) { - string _elem578; - _elem578 = await iprot.ReadStringAsync(cancellationToken); - Path.Add(_elem578); + string _elem471; + _elem471 = await iprot.ReadStringAsync(cancellationToken); + Path.Add(_elem471); } await iprot.ReadListEndAsync(cancellationToken); } @@ -12003,9 +11415,9 @@ public deleteTimeseriesArgs DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Path.Count), cancellationToken); - foreach (string _iter579 in Path) + foreach (string _iter472 in Path) { - await oprot.WriteStringAsync(_iter579, cancellationToken); + await oprot.WriteStringAsync(_iter472, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -12046,16 +11458,16 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("deleteTimeseries_args("); - int tmp580 = 0; + int tmp473 = 0; if(__isset.sessionId) { - if(0 < tmp580++) { sb.Append(", "); } + if(0 < tmp473++) { sb.Append(", "); } sb.Append("SessionId: "); SessionId.ToString(sb); } if((Path != null) && __isset.path) { - if(0 < tmp580++) { sb.Append(", "); } + if(0 < tmp473++) { sb.Append(", "); } sb.Append("Path: "); Path.ToString(sb); } @@ -12093,17 +11505,6 @@ public deleteTimeseriesResult() { } - public deleteTimeseriesResult DeepCopy() - { - var tmp581 = new deleteTimeseriesResult(); - if((Success != null) && __isset.success) - { - tmp581.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp581.__isset.success = this.__isset.success; - return tmp581; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -12199,10 +11600,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("deleteTimeseries_result("); - int tmp582 = 0; + int tmp474 = 0; if((Success != null) && __isset.success) { - if(0 < tmp582++) { sb.Append(", "); } + if(0 < tmp474++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -12255,22 +11656,6 @@ public deleteStorageGroupsArgs() { } - public deleteStorageGroupsArgs DeepCopy() - { - var tmp583 = new deleteStorageGroupsArgs(); - if(__isset.sessionId) - { - tmp583.SessionId = this.SessionId; - } - tmp583.__isset.sessionId = this.__isset.sessionId; - if((StorageGroup != null) && __isset.storageGroup) - { - tmp583.StorageGroup = this.StorageGroup.DeepCopy(); - } - tmp583.__isset.storageGroup = this.__isset.storageGroup; - return tmp583; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -12302,13 +11687,13 @@ public deleteStorageGroupsArgs DeepCopy() if (field.Type == TType.List) { { - TList _list584 = await iprot.ReadListBeginAsync(cancellationToken); - StorageGroup = new List(_list584.Count); - for(int _i585 = 0; _i585 < _list584.Count; ++_i585) + TList _list475 = await iprot.ReadListBeginAsync(cancellationToken); + StorageGroup = new List(_list475.Count); + for(int _i476 = 0; _i476 < _list475.Count; ++_i476) { - string _elem586; - _elem586 = await iprot.ReadStringAsync(cancellationToken); - StorageGroup.Add(_elem586); + string _elem477; + _elem477 = await iprot.ReadStringAsync(cancellationToken); + StorageGroup.Add(_elem477); } await iprot.ReadListEndAsync(cancellationToken); } @@ -12359,9 +11744,9 @@ public deleteStorageGroupsArgs DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, StorageGroup.Count), cancellationToken); - foreach (string _iter587 in StorageGroup) + foreach (string _iter478 in StorageGroup) { - await oprot.WriteStringAsync(_iter587, cancellationToken); + await oprot.WriteStringAsync(_iter478, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -12402,16 +11787,16 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("deleteStorageGroups_args("); - int tmp588 = 0; + int tmp479 = 0; if(__isset.sessionId) { - if(0 < tmp588++) { sb.Append(", "); } + if(0 < tmp479++) { sb.Append(", "); } sb.Append("SessionId: "); SessionId.ToString(sb); } if((StorageGroup != null) && __isset.storageGroup) { - if(0 < tmp588++) { sb.Append(", "); } + if(0 < tmp479++) { sb.Append(", "); } sb.Append("StorageGroup: "); StorageGroup.ToString(sb); } @@ -12449,17 +11834,6 @@ public deleteStorageGroupsResult() { } - public deleteStorageGroupsResult DeepCopy() - { - var tmp589 = new deleteStorageGroupsResult(); - if((Success != null) && __isset.success) - { - tmp589.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp589.__isset.success = this.__isset.success; - return tmp589; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -12555,10 +11929,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("deleteStorageGroups_result("); - int tmp590 = 0; + int tmp480 = 0; if((Success != null) && __isset.success) { - if(0 < tmp590++) { sb.Append(", "); } + if(0 < tmp480++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -12596,17 +11970,6 @@ public insertRecordArgs() { } - public insertRecordArgs DeepCopy() - { - var tmp591 = new insertRecordArgs(); - if((Req != null) && __isset.req) - { - tmp591.Req = (TSInsertRecordReq)this.Req.DeepCopy(); - } - tmp591.__isset.req = this.__isset.req; - return tmp591; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -12698,10 +12061,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("insertRecord_args("); - int tmp592 = 0; + int tmp481 = 0; if((Req != null) && __isset.req) { - if(0 < tmp592++) { sb.Append(", "); } + if(0 < tmp481++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -12739,17 +12102,6 @@ public insertRecordResult() { } - public insertRecordResult DeepCopy() - { - var tmp593 = new insertRecordResult(); - if((Success != null) && __isset.success) - { - tmp593.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp593.__isset.success = this.__isset.success; - return tmp593; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -12845,10 +12197,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("insertRecord_result("); - int tmp594 = 0; + int tmp482 = 0; if((Success != null) && __isset.success) { - if(0 < tmp594++) { sb.Append(", "); } + if(0 < tmp482++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -12886,17 +12238,6 @@ public insertStringRecordArgs() { } - public insertStringRecordArgs DeepCopy() - { - var tmp595 = new insertStringRecordArgs(); - if((Req != null) && __isset.req) - { - tmp595.Req = (TSInsertStringRecordReq)this.Req.DeepCopy(); - } - tmp595.__isset.req = this.__isset.req; - return tmp595; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -12988,10 +12329,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("insertStringRecord_args("); - int tmp596 = 0; + int tmp483 = 0; if((Req != null) && __isset.req) { - if(0 < tmp596++) { sb.Append(", "); } + if(0 < tmp483++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -13029,17 +12370,6 @@ public insertStringRecordResult() { } - public insertStringRecordResult DeepCopy() - { - var tmp597 = new insertStringRecordResult(); - if((Success != null) && __isset.success) - { - tmp597.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp597.__isset.success = this.__isset.success; - return tmp597; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -13135,10 +12465,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("insertStringRecord_result("); - int tmp598 = 0; + int tmp484 = 0; if((Success != null) && __isset.success) { - if(0 < tmp598++) { sb.Append(", "); } + if(0 < tmp484++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -13176,17 +12506,6 @@ public insertTabletArgs() { } - public insertTabletArgs DeepCopy() - { - var tmp599 = new insertTabletArgs(); - if((Req != null) && __isset.req) - { - tmp599.Req = (TSInsertTabletReq)this.Req.DeepCopy(); - } - tmp599.__isset.req = this.__isset.req; - return tmp599; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -13278,10 +12597,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("insertTablet_args("); - int tmp600 = 0; + int tmp485 = 0; if((Req != null) && __isset.req) { - if(0 < tmp600++) { sb.Append(", "); } + if(0 < tmp485++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -13319,17 +12638,6 @@ public insertTabletResult() { } - public insertTabletResult DeepCopy() - { - var tmp601 = new insertTabletResult(); - if((Success != null) && __isset.success) - { - tmp601.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp601.__isset.success = this.__isset.success; - return tmp601; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -13425,10 +12733,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("insertTablet_result("); - int tmp602 = 0; + int tmp486 = 0; if((Success != null) && __isset.success) { - if(0 < tmp602++) { sb.Append(", "); } + if(0 < tmp486++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -13466,17 +12774,6 @@ public insertTabletsArgs() { } - public insertTabletsArgs DeepCopy() - { - var tmp603 = new insertTabletsArgs(); - if((Req != null) && __isset.req) - { - tmp603.Req = (TSInsertTabletsReq)this.Req.DeepCopy(); - } - tmp603.__isset.req = this.__isset.req; - return tmp603; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -13568,10 +12865,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("insertTablets_args("); - int tmp604 = 0; + int tmp487 = 0; if((Req != null) && __isset.req) { - if(0 < tmp604++) { sb.Append(", "); } + if(0 < tmp487++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -13609,17 +12906,6 @@ public insertTabletsResult() { } - public insertTabletsResult DeepCopy() - { - var tmp605 = new insertTabletsResult(); - if((Success != null) && __isset.success) - { - tmp605.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp605.__isset.success = this.__isset.success; - return tmp605; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -13715,10 +13001,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("insertTablets_result("); - int tmp606 = 0; + int tmp488 = 0; if((Success != null) && __isset.success) { - if(0 < tmp606++) { sb.Append(", "); } + if(0 < tmp488++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -13756,17 +13042,6 @@ public insertRecordsArgs() { } - public insertRecordsArgs DeepCopy() - { - var tmp607 = new insertRecordsArgs(); - if((Req != null) && __isset.req) - { - tmp607.Req = (TSInsertRecordsReq)this.Req.DeepCopy(); - } - tmp607.__isset.req = this.__isset.req; - return tmp607; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -13858,10 +13133,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("insertRecords_args("); - int tmp608 = 0; + int tmp489 = 0; if((Req != null) && __isset.req) { - if(0 < tmp608++) { sb.Append(", "); } + if(0 < tmp489++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -13899,17 +13174,6 @@ public insertRecordsResult() { } - public insertRecordsResult DeepCopy() - { - var tmp609 = new insertRecordsResult(); - if((Success != null) && __isset.success) - { - tmp609.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp609.__isset.success = this.__isset.success; - return tmp609; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -14005,10 +13269,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("insertRecords_result("); - int tmp610 = 0; + int tmp490 = 0; if((Success != null) && __isset.success) { - if(0 < tmp610++) { sb.Append(", "); } + if(0 < tmp490++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -14046,17 +13310,6 @@ public insertRecordsOfOneDeviceArgs() { } - public insertRecordsOfOneDeviceArgs DeepCopy() - { - var tmp611 = new insertRecordsOfOneDeviceArgs(); - if((Req != null) && __isset.req) - { - tmp611.Req = (TSInsertRecordsOfOneDeviceReq)this.Req.DeepCopy(); - } - tmp611.__isset.req = this.__isset.req; - return tmp611; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -14148,10 +13401,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("insertRecordsOfOneDevice_args("); - int tmp612 = 0; + int tmp491 = 0; if((Req != null) && __isset.req) { - if(0 < tmp612++) { sb.Append(", "); } + if(0 < tmp491++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -14189,17 +13442,6 @@ public insertRecordsOfOneDeviceResult() { } - public insertRecordsOfOneDeviceResult DeepCopy() - { - var tmp613 = new insertRecordsOfOneDeviceResult(); - if((Success != null) && __isset.success) - { - tmp613.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp613.__isset.success = this.__isset.success; - return tmp613; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -14295,10 +13537,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("insertRecordsOfOneDevice_result("); - int tmp614 = 0; + int tmp492 = 0; if((Success != null) && __isset.success) { - if(0 < tmp614++) { sb.Append(", "); } + if(0 < tmp492++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -14336,17 +13578,6 @@ public insertStringRecordsOfOneDeviceArgs() { } - public insertStringRecordsOfOneDeviceArgs DeepCopy() - { - var tmp615 = new insertStringRecordsOfOneDeviceArgs(); - if((Req != null) && __isset.req) - { - tmp615.Req = (TSInsertStringRecordsOfOneDeviceReq)this.Req.DeepCopy(); - } - tmp615.__isset.req = this.__isset.req; - return tmp615; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -14438,10 +13669,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("insertStringRecordsOfOneDevice_args("); - int tmp616 = 0; + int tmp493 = 0; if((Req != null) && __isset.req) { - if(0 < tmp616++) { sb.Append(", "); } + if(0 < tmp493++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -14479,17 +13710,6 @@ public insertStringRecordsOfOneDeviceResult() { } - public insertStringRecordsOfOneDeviceResult DeepCopy() - { - var tmp617 = new insertStringRecordsOfOneDeviceResult(); - if((Success != null) && __isset.success) - { - tmp617.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp617.__isset.success = this.__isset.success; - return tmp617; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -14585,10 +13805,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("insertStringRecordsOfOneDevice_result("); - int tmp618 = 0; + int tmp494 = 0; if((Success != null) && __isset.success) { - if(0 < tmp618++) { sb.Append(", "); } + if(0 < tmp494++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -14626,17 +13846,6 @@ public insertStringRecordsArgs() { } - public insertStringRecordsArgs DeepCopy() - { - var tmp619 = new insertStringRecordsArgs(); - if((Req != null) && __isset.req) - { - tmp619.Req = (TSInsertStringRecordsReq)this.Req.DeepCopy(); - } - tmp619.__isset.req = this.__isset.req; - return tmp619; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -14728,10 +13937,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("insertStringRecords_args("); - int tmp620 = 0; + int tmp495 = 0; if((Req != null) && __isset.req) { - if(0 < tmp620++) { sb.Append(", "); } + if(0 < tmp495++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -14769,17 +13978,6 @@ public insertStringRecordsResult() { } - public insertStringRecordsResult DeepCopy() - { - var tmp621 = new insertStringRecordsResult(); - if((Success != null) && __isset.success) - { - tmp621.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp621.__isset.success = this.__isset.success; - return tmp621; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -14875,10 +14073,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("insertStringRecords_result("); - int tmp622 = 0; + int tmp496 = 0; if((Success != null) && __isset.success) { - if(0 < tmp622++) { sb.Append(", "); } + if(0 < tmp496++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -14916,17 +14114,6 @@ public testInsertTabletArgs() { } - public testInsertTabletArgs DeepCopy() - { - var tmp623 = new testInsertTabletArgs(); - if((Req != null) && __isset.req) - { - tmp623.Req = (TSInsertTabletReq)this.Req.DeepCopy(); - } - tmp623.__isset.req = this.__isset.req; - return tmp623; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -15018,10 +14205,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("testInsertTablet_args("); - int tmp624 = 0; + int tmp497 = 0; if((Req != null) && __isset.req) { - if(0 < tmp624++) { sb.Append(", "); } + if(0 < tmp497++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -15059,17 +14246,6 @@ public testInsertTabletResult() { } - public testInsertTabletResult DeepCopy() - { - var tmp625 = new testInsertTabletResult(); - if((Success != null) && __isset.success) - { - tmp625.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp625.__isset.success = this.__isset.success; - return tmp625; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -15165,10 +14341,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("testInsertTablet_result("); - int tmp626 = 0; + int tmp498 = 0; if((Success != null) && __isset.success) { - if(0 < tmp626++) { sb.Append(", "); } + if(0 < tmp498++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -15206,17 +14382,6 @@ public testInsertTabletsArgs() { } - public testInsertTabletsArgs DeepCopy() - { - var tmp627 = new testInsertTabletsArgs(); - if((Req != null) && __isset.req) - { - tmp627.Req = (TSInsertTabletsReq)this.Req.DeepCopy(); - } - tmp627.__isset.req = this.__isset.req; - return tmp627; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -15308,10 +14473,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("testInsertTablets_args("); - int tmp628 = 0; + int tmp499 = 0; if((Req != null) && __isset.req) { - if(0 < tmp628++) { sb.Append(", "); } + if(0 < tmp499++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -15349,17 +14514,6 @@ public testInsertTabletsResult() { } - public testInsertTabletsResult DeepCopy() - { - var tmp629 = new testInsertTabletsResult(); - if((Success != null) && __isset.success) - { - tmp629.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp629.__isset.success = this.__isset.success; - return tmp629; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -15455,10 +14609,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("testInsertTablets_result("); - int tmp630 = 0; + int tmp500 = 0; if((Success != null) && __isset.success) { - if(0 < tmp630++) { sb.Append(", "); } + if(0 < tmp500++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -15496,17 +14650,6 @@ public testInsertRecordArgs() { } - public testInsertRecordArgs DeepCopy() - { - var tmp631 = new testInsertRecordArgs(); - if((Req != null) && __isset.req) - { - tmp631.Req = (TSInsertRecordReq)this.Req.DeepCopy(); - } - tmp631.__isset.req = this.__isset.req; - return tmp631; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -15598,10 +14741,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("testInsertRecord_args("); - int tmp632 = 0; + int tmp501 = 0; if((Req != null) && __isset.req) { - if(0 < tmp632++) { sb.Append(", "); } + if(0 < tmp501++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -15639,17 +14782,6 @@ public testInsertRecordResult() { } - public testInsertRecordResult DeepCopy() - { - var tmp633 = new testInsertRecordResult(); - if((Success != null) && __isset.success) - { - tmp633.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp633.__isset.success = this.__isset.success; - return tmp633; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -15745,10 +14877,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("testInsertRecord_result("); - int tmp634 = 0; + int tmp502 = 0; if((Success != null) && __isset.success) { - if(0 < tmp634++) { sb.Append(", "); } + if(0 < tmp502++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -15786,17 +14918,6 @@ public testInsertStringRecordArgs() { } - public testInsertStringRecordArgs DeepCopy() - { - var tmp635 = new testInsertStringRecordArgs(); - if((Req != null) && __isset.req) - { - tmp635.Req = (TSInsertStringRecordReq)this.Req.DeepCopy(); - } - tmp635.__isset.req = this.__isset.req; - return tmp635; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -15888,10 +15009,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("testInsertStringRecord_args("); - int tmp636 = 0; + int tmp503 = 0; if((Req != null) && __isset.req) { - if(0 < tmp636++) { sb.Append(", "); } + if(0 < tmp503++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -15929,17 +15050,6 @@ public testInsertStringRecordResult() { } - public testInsertStringRecordResult DeepCopy() - { - var tmp637 = new testInsertStringRecordResult(); - if((Success != null) && __isset.success) - { - tmp637.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp637.__isset.success = this.__isset.success; - return tmp637; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -16035,10 +15145,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("testInsertStringRecord_result("); - int tmp638 = 0; + int tmp504 = 0; if((Success != null) && __isset.success) { - if(0 < tmp638++) { sb.Append(", "); } + if(0 < tmp504++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -16076,17 +15186,6 @@ public testInsertRecordsArgs() { } - public testInsertRecordsArgs DeepCopy() - { - var tmp639 = new testInsertRecordsArgs(); - if((Req != null) && __isset.req) - { - tmp639.Req = (TSInsertRecordsReq)this.Req.DeepCopy(); - } - tmp639.__isset.req = this.__isset.req; - return tmp639; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -16178,10 +15277,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("testInsertRecords_args("); - int tmp640 = 0; + int tmp505 = 0; if((Req != null) && __isset.req) { - if(0 < tmp640++) { sb.Append(", "); } + if(0 < tmp505++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -16219,17 +15318,6 @@ public testInsertRecordsResult() { } - public testInsertRecordsResult DeepCopy() - { - var tmp641 = new testInsertRecordsResult(); - if((Success != null) && __isset.success) - { - tmp641.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp641.__isset.success = this.__isset.success; - return tmp641; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -16325,10 +15413,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("testInsertRecords_result("); - int tmp642 = 0; + int tmp506 = 0; if((Success != null) && __isset.success) { - if(0 < tmp642++) { sb.Append(", "); } + if(0 < tmp506++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -16366,17 +15454,6 @@ public testInsertRecordsOfOneDeviceArgs() { } - public testInsertRecordsOfOneDeviceArgs DeepCopy() - { - var tmp643 = new testInsertRecordsOfOneDeviceArgs(); - if((Req != null) && __isset.req) - { - tmp643.Req = (TSInsertRecordsOfOneDeviceReq)this.Req.DeepCopy(); - } - tmp643.__isset.req = this.__isset.req; - return tmp643; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -16468,10 +15545,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("testInsertRecordsOfOneDevice_args("); - int tmp644 = 0; + int tmp507 = 0; if((Req != null) && __isset.req) { - if(0 < tmp644++) { sb.Append(", "); } + if(0 < tmp507++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -16509,17 +15586,6 @@ public testInsertRecordsOfOneDeviceResult() { } - public testInsertRecordsOfOneDeviceResult DeepCopy() - { - var tmp645 = new testInsertRecordsOfOneDeviceResult(); - if((Success != null) && __isset.success) - { - tmp645.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp645.__isset.success = this.__isset.success; - return tmp645; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -16615,10 +15681,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("testInsertRecordsOfOneDevice_result("); - int tmp646 = 0; + int tmp508 = 0; if((Success != null) && __isset.success) { - if(0 < tmp646++) { sb.Append(", "); } + if(0 < tmp508++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -16656,17 +15722,6 @@ public testInsertStringRecordsArgs() { } - public testInsertStringRecordsArgs DeepCopy() - { - var tmp647 = new testInsertStringRecordsArgs(); - if((Req != null) && __isset.req) - { - tmp647.Req = (TSInsertStringRecordsReq)this.Req.DeepCopy(); - } - tmp647.__isset.req = this.__isset.req; - return tmp647; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -16758,10 +15813,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("testInsertStringRecords_args("); - int tmp648 = 0; + int tmp509 = 0; if((Req != null) && __isset.req) { - if(0 < tmp648++) { sb.Append(", "); } + if(0 < tmp509++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -16799,17 +15854,6 @@ public testInsertStringRecordsResult() { } - public testInsertStringRecordsResult DeepCopy() - { - var tmp649 = new testInsertStringRecordsResult(); - if((Success != null) && __isset.success) - { - tmp649.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp649.__isset.success = this.__isset.success; - return tmp649; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -16905,10 +15949,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("testInsertStringRecords_result("); - int tmp650 = 0; + int tmp510 = 0; if((Success != null) && __isset.success) { - if(0 < tmp650++) { sb.Append(", "); } + if(0 < tmp510++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -16946,17 +15990,6 @@ public deleteDataArgs() { } - public deleteDataArgs DeepCopy() - { - var tmp651 = new deleteDataArgs(); - if((Req != null) && __isset.req) - { - tmp651.Req = (TSDeleteDataReq)this.Req.DeepCopy(); - } - tmp651.__isset.req = this.__isset.req; - return tmp651; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -17048,10 +16081,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("deleteData_args("); - int tmp652 = 0; + int tmp511 = 0; if((Req != null) && __isset.req) { - if(0 < tmp652++) { sb.Append(", "); } + if(0 < tmp511++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -17089,17 +16122,6 @@ public deleteDataResult() { } - public deleteDataResult DeepCopy() - { - var tmp653 = new deleteDataResult(); - if((Success != null) && __isset.success) - { - tmp653.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp653.__isset.success = this.__isset.success; - return tmp653; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -17195,10 +16217,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("deleteData_result("); - int tmp654 = 0; + int tmp512 = 0; if((Success != null) && __isset.success) { - if(0 < tmp654++) { sb.Append(", "); } + if(0 < tmp512++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -17236,17 +16258,6 @@ public executeRawDataQueryArgs() { } - public executeRawDataQueryArgs DeepCopy() - { - var tmp655 = new executeRawDataQueryArgs(); - if((Req != null) && __isset.req) - { - tmp655.Req = (TSRawDataQueryReq)this.Req.DeepCopy(); - } - tmp655.__isset.req = this.__isset.req; - return tmp655; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -17338,10 +16349,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeRawDataQuery_args("); - int tmp656 = 0; + int tmp513 = 0; if((Req != null) && __isset.req) { - if(0 < tmp656++) { sb.Append(", "); } + if(0 < tmp513++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -17379,17 +16390,6 @@ public executeRawDataQueryResult() { } - public executeRawDataQueryResult DeepCopy() - { - var tmp657 = new executeRawDataQueryResult(); - if((Success != null) && __isset.success) - { - tmp657.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp657.__isset.success = this.__isset.success; - return tmp657; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -17485,10 +16485,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeRawDataQuery_result("); - int tmp658 = 0; + int tmp514 = 0; if((Success != null) && __isset.success) { - if(0 < tmp658++) { sb.Append(", "); } + if(0 < tmp514++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -17526,17 +16526,6 @@ public executeLastDataQueryArgs() { } - public executeLastDataQueryArgs DeepCopy() - { - var tmp659 = new executeLastDataQueryArgs(); - if((Req != null) && __isset.req) - { - tmp659.Req = (TSLastDataQueryReq)this.Req.DeepCopy(); - } - tmp659.__isset.req = this.__isset.req; - return tmp659; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -17628,10 +16617,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeLastDataQuery_args("); - int tmp660 = 0; + int tmp515 = 0; if((Req != null) && __isset.req) { - if(0 < tmp660++) { sb.Append(", "); } + if(0 < tmp515++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -17669,17 +16658,6 @@ public executeLastDataQueryResult() { } - public executeLastDataQueryResult DeepCopy() - { - var tmp661 = new executeLastDataQueryResult(); - if((Success != null) && __isset.success) - { - tmp661.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp661.__isset.success = this.__isset.success; - return tmp661; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -17775,10 +16753,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeLastDataQuery_result("); - int tmp662 = 0; + int tmp516 = 0; if((Success != null) && __isset.success) { - if(0 < tmp662++) { sb.Append(", "); } + if(0 < tmp516++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -17816,17 +16794,6 @@ public executeAggregationQueryArgs() { } - public executeAggregationQueryArgs DeepCopy() - { - var tmp663 = new executeAggregationQueryArgs(); - if((Req != null) && __isset.req) - { - tmp663.Req = (TSAggregationQueryReq)this.Req.DeepCopy(); - } - tmp663.__isset.req = this.__isset.req; - return tmp663; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -17918,10 +16885,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeAggregationQuery_args("); - int tmp664 = 0; + int tmp517 = 0; if((Req != null) && __isset.req) { - if(0 < tmp664++) { sb.Append(", "); } + if(0 < tmp517++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -17959,17 +16926,6 @@ public executeAggregationQueryResult() { } - public executeAggregationQueryResult DeepCopy() - { - var tmp665 = new executeAggregationQueryResult(); - if((Success != null) && __isset.success) - { - tmp665.Success = (TSExecuteStatementResp)this.Success.DeepCopy(); - } - tmp665.__isset.success = this.__isset.success; - return tmp665; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -18065,10 +17021,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("executeAggregationQuery_result("); - int tmp666 = 0; + int tmp518 = 0; if((Success != null) && __isset.success) { - if(0 < tmp666++) { sb.Append(", "); } + if(0 < tmp518++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -18106,17 +17062,6 @@ public requestStatementIdArgs() { } - public requestStatementIdArgs DeepCopy() - { - var tmp667 = new requestStatementIdArgs(); - if(__isset.sessionId) - { - tmp667.SessionId = this.SessionId; - } - tmp667.__isset.sessionId = this.__isset.sessionId; - return tmp667; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -18207,10 +17152,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("requestStatementId_args("); - int tmp668 = 0; + int tmp519 = 0; if(__isset.sessionId) { - if(0 < tmp668++) { sb.Append(", "); } + if(0 < tmp519++) { sb.Append(", "); } sb.Append("SessionId: "); SessionId.ToString(sb); } @@ -18248,17 +17193,6 @@ public requestStatementIdResult() { } - public requestStatementIdResult DeepCopy() - { - var tmp669 = new requestStatementIdResult(); - if(__isset.success) - { - tmp669.Success = this.Success; - } - tmp669.__isset.success = this.__isset.success; - return tmp669; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -18350,10 +17284,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("requestStatementId_result("); - int tmp670 = 0; + int tmp520 = 0; if(__isset.success) { - if(0 < tmp670++) { sb.Append(", "); } + if(0 < tmp520++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -18391,17 +17325,6 @@ public createSchemaTemplateArgs() { } - public createSchemaTemplateArgs DeepCopy() - { - var tmp671 = new createSchemaTemplateArgs(); - if((Req != null) && __isset.req) - { - tmp671.Req = (TSCreateSchemaTemplateReq)this.Req.DeepCopy(); - } - tmp671.__isset.req = this.__isset.req; - return tmp671; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -18493,10 +17416,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("createSchemaTemplate_args("); - int tmp672 = 0; + int tmp521 = 0; if((Req != null) && __isset.req) { - if(0 < tmp672++) { sb.Append(", "); } + if(0 < tmp521++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -18534,17 +17457,6 @@ public createSchemaTemplateResult() { } - public createSchemaTemplateResult DeepCopy() - { - var tmp673 = new createSchemaTemplateResult(); - if((Success != null) && __isset.success) - { - tmp673.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp673.__isset.success = this.__isset.success; - return tmp673; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -18640,10 +17552,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("createSchemaTemplate_result("); - int tmp674 = 0; + int tmp522 = 0; if((Success != null) && __isset.success) { - if(0 < tmp674++) { sb.Append(", "); } + if(0 < tmp522++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -18681,17 +17593,6 @@ public appendSchemaTemplateArgs() { } - public appendSchemaTemplateArgs DeepCopy() - { - var tmp675 = new appendSchemaTemplateArgs(); - if((Req != null) && __isset.req) - { - tmp675.Req = (TSAppendSchemaTemplateReq)this.Req.DeepCopy(); - } - tmp675.__isset.req = this.__isset.req; - return tmp675; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -18783,10 +17684,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("appendSchemaTemplate_args("); - int tmp676 = 0; + int tmp523 = 0; if((Req != null) && __isset.req) { - if(0 < tmp676++) { sb.Append(", "); } + if(0 < tmp523++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -18824,17 +17725,6 @@ public appendSchemaTemplateResult() { } - public appendSchemaTemplateResult DeepCopy() - { - var tmp677 = new appendSchemaTemplateResult(); - if((Success != null) && __isset.success) - { - tmp677.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp677.__isset.success = this.__isset.success; - return tmp677; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -18930,10 +17820,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("appendSchemaTemplate_result("); - int tmp678 = 0; + int tmp524 = 0; if((Success != null) && __isset.success) { - if(0 < tmp678++) { sb.Append(", "); } + if(0 < tmp524++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -18971,17 +17861,6 @@ public pruneSchemaTemplateArgs() { } - public pruneSchemaTemplateArgs DeepCopy() - { - var tmp679 = new pruneSchemaTemplateArgs(); - if((Req != null) && __isset.req) - { - tmp679.Req = (TSPruneSchemaTemplateReq)this.Req.DeepCopy(); - } - tmp679.__isset.req = this.__isset.req; - return tmp679; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -19073,10 +17952,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("pruneSchemaTemplate_args("); - int tmp680 = 0; + int tmp525 = 0; if((Req != null) && __isset.req) { - if(0 < tmp680++) { sb.Append(", "); } + if(0 < tmp525++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -19114,17 +17993,6 @@ public pruneSchemaTemplateResult() { } - public pruneSchemaTemplateResult DeepCopy() - { - var tmp681 = new pruneSchemaTemplateResult(); - if((Success != null) && __isset.success) - { - tmp681.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp681.__isset.success = this.__isset.success; - return tmp681; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -19220,10 +18088,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("pruneSchemaTemplate_result("); - int tmp682 = 0; + int tmp526 = 0; if((Success != null) && __isset.success) { - if(0 < tmp682++) { sb.Append(", "); } + if(0 < tmp526++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -19261,17 +18129,6 @@ public querySchemaTemplateArgs() { } - public querySchemaTemplateArgs DeepCopy() - { - var tmp683 = new querySchemaTemplateArgs(); - if((Req != null) && __isset.req) - { - tmp683.Req = (TSQueryTemplateReq)this.Req.DeepCopy(); - } - tmp683.__isset.req = this.__isset.req; - return tmp683; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -19363,10 +18220,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("querySchemaTemplate_args("); - int tmp684 = 0; + int tmp527 = 0; if((Req != null) && __isset.req) { - if(0 < tmp684++) { sb.Append(", "); } + if(0 < tmp527++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -19404,17 +18261,6 @@ public querySchemaTemplateResult() { } - public querySchemaTemplateResult DeepCopy() - { - var tmp685 = new querySchemaTemplateResult(); - if((Success != null) && __isset.success) - { - tmp685.Success = (TSQueryTemplateResp)this.Success.DeepCopy(); - } - tmp685.__isset.success = this.__isset.success; - return tmp685; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -19510,10 +18356,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("querySchemaTemplate_result("); - int tmp686 = 0; + int tmp528 = 0; if((Success != null) && __isset.success) { - if(0 < tmp686++) { sb.Append(", "); } + if(0 < tmp528++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -19530,12 +18376,6 @@ public showConfigurationTemplateArgs() { } - public showConfigurationTemplateArgs DeepCopy() - { - var tmp687 = new showConfigurationTemplateArgs(); - return tmp687; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -19636,17 +18476,6 @@ public showConfigurationTemplateResult() { } - public showConfigurationTemplateResult DeepCopy() - { - var tmp689 = new showConfigurationTemplateResult(); - if((Success != null) && __isset.success) - { - tmp689.Success = (TShowConfigurationTemplateResp)this.Success.DeepCopy(); - } - tmp689.__isset.success = this.__isset.success; - return tmp689; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -19742,10 +18571,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("showConfigurationTemplate_result("); - int tmp690 = 0; + int tmp530 = 0; if((Success != null) && __isset.success) { - if(0 < tmp690++) { sb.Append(", "); } + if(0 < tmp530++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -19783,17 +18612,6 @@ public showConfigurationArgs() { } - public showConfigurationArgs DeepCopy() - { - var tmp691 = new showConfigurationArgs(); - if(__isset.nodeId) - { - tmp691.NodeId = this.NodeId; - } - tmp691.__isset.nodeId = this.__isset.nodeId; - return tmp691; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -19884,10 +18702,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("showConfiguration_args("); - int tmp692 = 0; + int tmp531 = 0; if(__isset.nodeId) { - if(0 < tmp692++) { sb.Append(", "); } + if(0 < tmp531++) { sb.Append(", "); } sb.Append("NodeId: "); NodeId.ToString(sb); } @@ -19925,17 +18743,6 @@ public showConfigurationResult() { } - public showConfigurationResult DeepCopy() - { - var tmp693 = new showConfigurationResult(); - if((Success != null) && __isset.success) - { - tmp693.Success = (TShowConfigurationResp)this.Success.DeepCopy(); - } - tmp693.__isset.success = this.__isset.success; - return tmp693; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -20031,10 +18838,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("showConfiguration_result("); - int tmp694 = 0; + int tmp532 = 0; if((Success != null) && __isset.success) { - if(0 < tmp694++) { sb.Append(", "); } + if(0 < tmp532++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -20072,17 +18879,6 @@ public setSchemaTemplateArgs() { } - public setSchemaTemplateArgs DeepCopy() - { - var tmp695 = new setSchemaTemplateArgs(); - if((Req != null) && __isset.req) - { - tmp695.Req = (TSSetSchemaTemplateReq)this.Req.DeepCopy(); - } - tmp695.__isset.req = this.__isset.req; - return tmp695; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -20174,10 +18970,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("setSchemaTemplate_args("); - int tmp696 = 0; + int tmp533 = 0; if((Req != null) && __isset.req) { - if(0 < tmp696++) { sb.Append(", "); } + if(0 < tmp533++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -20215,17 +19011,6 @@ public setSchemaTemplateResult() { } - public setSchemaTemplateResult DeepCopy() - { - var tmp697 = new setSchemaTemplateResult(); - if((Success != null) && __isset.success) - { - tmp697.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp697.__isset.success = this.__isset.success; - return tmp697; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -20321,10 +19106,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("setSchemaTemplate_result("); - int tmp698 = 0; + int tmp534 = 0; if((Success != null) && __isset.success) { - if(0 < tmp698++) { sb.Append(", "); } + if(0 < tmp534++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -20362,17 +19147,6 @@ public unsetSchemaTemplateArgs() { } - public unsetSchemaTemplateArgs DeepCopy() - { - var tmp699 = new unsetSchemaTemplateArgs(); - if((Req != null) && __isset.req) - { - tmp699.Req = (TSUnsetSchemaTemplateReq)this.Req.DeepCopy(); - } - tmp699.__isset.req = this.__isset.req; - return tmp699; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -20464,10 +19238,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("unsetSchemaTemplate_args("); - int tmp700 = 0; + int tmp535 = 0; if((Req != null) && __isset.req) { - if(0 < tmp700++) { sb.Append(", "); } + if(0 < tmp535++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -20505,17 +19279,6 @@ public unsetSchemaTemplateResult() { } - public unsetSchemaTemplateResult DeepCopy() - { - var tmp701 = new unsetSchemaTemplateResult(); - if((Success != null) && __isset.success) - { - tmp701.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp701.__isset.success = this.__isset.success; - return tmp701; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -20611,10 +19374,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("unsetSchemaTemplate_result("); - int tmp702 = 0; + int tmp536 = 0; if((Success != null) && __isset.success) { - if(0 < tmp702++) { sb.Append(", "); } + if(0 < tmp536++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -20652,17 +19415,6 @@ public dropSchemaTemplateArgs() { } - public dropSchemaTemplateArgs DeepCopy() - { - var tmp703 = new dropSchemaTemplateArgs(); - if((Req != null) && __isset.req) - { - tmp703.Req = (TSDropSchemaTemplateReq)this.Req.DeepCopy(); - } - tmp703.__isset.req = this.__isset.req; - return tmp703; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -20754,10 +19506,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("dropSchemaTemplate_args("); - int tmp704 = 0; + int tmp537 = 0; if((Req != null) && __isset.req) { - if(0 < tmp704++) { sb.Append(", "); } + if(0 < tmp537++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -20795,17 +19547,6 @@ public dropSchemaTemplateResult() { } - public dropSchemaTemplateResult DeepCopy() - { - var tmp705 = new dropSchemaTemplateResult(); - if((Success != null) && __isset.success) - { - tmp705.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp705.__isset.success = this.__isset.success; - return tmp705; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -20901,10 +19642,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("dropSchemaTemplate_result("); - int tmp706 = 0; + int tmp538 = 0; if((Success != null) && __isset.success) { - if(0 < tmp706++) { sb.Append(", "); } + if(0 < tmp538++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -20942,17 +19683,6 @@ public createTimeseriesUsingSchemaTemplateArgs() { } - public createTimeseriesUsingSchemaTemplateArgs DeepCopy() - { - var tmp707 = new createTimeseriesUsingSchemaTemplateArgs(); - if((Req != null) && __isset.req) - { - tmp707.Req = (TCreateTimeseriesUsingSchemaTemplateReq)this.Req.DeepCopy(); - } - tmp707.__isset.req = this.__isset.req; - return tmp707; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -21044,10 +19774,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("createTimeseriesUsingSchemaTemplate_args("); - int tmp708 = 0; + int tmp539 = 0; if((Req != null) && __isset.req) { - if(0 < tmp708++) { sb.Append(", "); } + if(0 < tmp539++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -21085,17 +19815,6 @@ public createTimeseriesUsingSchemaTemplateResult() { } - public createTimeseriesUsingSchemaTemplateResult DeepCopy() - { - var tmp709 = new createTimeseriesUsingSchemaTemplateResult(); - if((Success != null) && __isset.success) - { - tmp709.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp709.__isset.success = this.__isset.success; - return tmp709; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -21191,10 +19910,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("createTimeseriesUsingSchemaTemplate_result("); - int tmp710 = 0; + int tmp540 = 0; if((Success != null) && __isset.success) { - if(0 < tmp710++) { sb.Append(", "); } + if(0 < tmp540++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -21232,17 +19951,6 @@ public handshakeArgs() { } - public handshakeArgs DeepCopy() - { - var tmp711 = new handshakeArgs(); - if((Info != null) && __isset.info) - { - tmp711.Info = (TSyncIdentityInfo)this.Info.DeepCopy(); - } - tmp711.__isset.info = this.__isset.info; - return tmp711; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -21334,10 +20042,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("handshake_args("); - int tmp712 = 0; + int tmp541 = 0; if((Info != null) && __isset.info) { - if(0 < tmp712++) { sb.Append(", "); } + if(0 < tmp541++) { sb.Append(", "); } sb.Append("Info: "); Info.ToString(sb); } @@ -21375,17 +20083,6 @@ public handshakeResult() { } - public handshakeResult DeepCopy() - { - var tmp713 = new handshakeResult(); - if((Success != null) && __isset.success) - { - tmp713.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp713.__isset.success = this.__isset.success; - return tmp713; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -21481,10 +20178,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("handshake_result("); - int tmp714 = 0; + int tmp542 = 0; if((Success != null) && __isset.success) { - if(0 < tmp714++) { sb.Append(", "); } + if(0 < tmp542++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -21522,17 +20219,6 @@ public sendPipeDataArgs() { } - public sendPipeDataArgs DeepCopy() - { - var tmp715 = new sendPipeDataArgs(); - if((Buff != null) && __isset.buff) - { - tmp715.Buff = this.Buff.ToArray(); - } - tmp715.__isset.buff = this.__isset.buff; - return tmp715; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -21623,10 +20309,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("sendPipeData_args("); - int tmp716 = 0; + int tmp543 = 0; if((Buff != null) && __isset.buff) { - if(0 < tmp716++) { sb.Append(", "); } + if(0 < tmp543++) { sb.Append(", "); } sb.Append("Buff: "); Buff.ToString(sb); } @@ -21664,17 +20350,6 @@ public sendPipeDataResult() { } - public sendPipeDataResult DeepCopy() - { - var tmp717 = new sendPipeDataResult(); - if((Success != null) && __isset.success) - { - tmp717.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp717.__isset.success = this.__isset.success; - return tmp717; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -21770,10 +20445,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("sendPipeData_result("); - int tmp718 = 0; + int tmp544 = 0; if((Success != null) && __isset.success) { - if(0 < tmp718++) { sb.Append(", "); } + if(0 < tmp544++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -21826,22 +20501,6 @@ public sendFileArgs() { } - public sendFileArgs DeepCopy() - { - var tmp719 = new sendFileArgs(); - if((MetaInfo != null) && __isset.metaInfo) - { - tmp719.MetaInfo = (TSyncTransportMetaInfo)this.MetaInfo.DeepCopy(); - } - tmp719.__isset.metaInfo = this.__isset.metaInfo; - if((Buff != null) && __isset.buff) - { - tmp719.Buff = this.Buff.ToArray(); - } - tmp719.__isset.buff = this.__isset.buff; - return tmp719; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -21957,16 +20616,16 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("sendFile_args("); - int tmp720 = 0; + int tmp545 = 0; if((MetaInfo != null) && __isset.metaInfo) { - if(0 < tmp720++) { sb.Append(", "); } + if(0 < tmp545++) { sb.Append(", "); } sb.Append("MetaInfo: "); MetaInfo.ToString(sb); } if((Buff != null) && __isset.buff) { - if(0 < tmp720++) { sb.Append(", "); } + if(0 < tmp545++) { sb.Append(", "); } sb.Append("Buff: "); Buff.ToString(sb); } @@ -22004,17 +20663,6 @@ public sendFileResult() { } - public sendFileResult DeepCopy() - { - var tmp721 = new sendFileResult(); - if((Success != null) && __isset.success) - { - tmp721.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp721.__isset.success = this.__isset.success; - return tmp721; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -22110,10 +20758,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("sendFile_result("); - int tmp722 = 0; + int tmp546 = 0; if((Success != null) && __isset.success) { - if(0 < tmp722++) { sb.Append(", "); } + if(0 < tmp546++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -22151,17 +20799,6 @@ public pipeTransferArgs() { } - public pipeTransferArgs DeepCopy() - { - var tmp723 = new pipeTransferArgs(); - if((Req != null) && __isset.req) - { - tmp723.Req = (TPipeTransferReq)this.Req.DeepCopy(); - } - tmp723.__isset.req = this.__isset.req; - return tmp723; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -22253,10 +20890,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("pipeTransfer_args("); - int tmp724 = 0; + int tmp547 = 0; if((Req != null) && __isset.req) { - if(0 < tmp724++) { sb.Append(", "); } + if(0 < tmp547++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -22294,17 +20931,6 @@ public pipeTransferResult() { } - public pipeTransferResult DeepCopy() - { - var tmp725 = new pipeTransferResult(); - if((Success != null) && __isset.success) - { - tmp725.Success = (TPipeTransferResp)this.Success.DeepCopy(); - } - tmp725.__isset.success = this.__isset.success; - return tmp725; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -22400,10 +21026,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("pipeTransfer_result("); - int tmp726 = 0; + int tmp548 = 0; if((Success != null) && __isset.success) { - if(0 < tmp726++) { sb.Append(", "); } + if(0 < tmp548++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -22441,17 +21067,6 @@ public pipeSubscribeArgs() { } - public pipeSubscribeArgs DeepCopy() - { - var tmp727 = new pipeSubscribeArgs(); - if((Req != null) && __isset.req) - { - tmp727.Req = (TPipeSubscribeReq)this.Req.DeepCopy(); - } - tmp727.__isset.req = this.__isset.req; - return tmp727; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -22543,10 +21158,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("pipeSubscribe_args("); - int tmp728 = 0; + int tmp549 = 0; if((Req != null) && __isset.req) { - if(0 < tmp728++) { sb.Append(", "); } + if(0 < tmp549++) { sb.Append(", "); } sb.Append("Req: "); Req.ToString(sb); } @@ -22584,17 +21199,6 @@ public pipeSubscribeResult() { } - public pipeSubscribeResult DeepCopy() - { - var tmp729 = new pipeSubscribeResult(); - if((Success != null) && __isset.success) - { - tmp729.Success = (TPipeSubscribeResp)this.Success.DeepCopy(); - } - tmp729.__isset.success = this.__isset.success; - return tmp729; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -22690,10 +21294,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("pipeSubscribe_result("); - int tmp730 = 0; + int tmp550 = 0; if((Success != null) && __isset.success) { - if(0 < tmp730++) { sb.Append(", "); } + if(0 < tmp550++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -22710,12 +21314,6 @@ public getBackupConfigurationArgs() { } - public getBackupConfigurationArgs DeepCopy() - { - var tmp731 = new getBackupConfigurationArgs(); - return tmp731; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -22816,17 +21414,6 @@ public getBackupConfigurationResult() { } - public getBackupConfigurationResult DeepCopy() - { - var tmp733 = new getBackupConfigurationResult(); - if((Success != null) && __isset.success) - { - tmp733.Success = (TSBackupConfigurationResp)this.Success.DeepCopy(); - } - tmp733.__isset.success = this.__isset.success; - return tmp733; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -22922,10 +21509,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("getBackupConfiguration_result("); - int tmp734 = 0; + int tmp552 = 0; if((Success != null) && __isset.success) { - if(0 < tmp734++) { sb.Append(", "); } + if(0 < tmp552++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -22942,12 +21529,6 @@ public fetchAllConnectionsInfoArgs() { } - public fetchAllConnectionsInfoArgs DeepCopy() - { - var tmp735 = new fetchAllConnectionsInfoArgs(); - return tmp735; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -23048,17 +21629,6 @@ public fetchAllConnectionsInfoResult() { } - public fetchAllConnectionsInfoResult DeepCopy() - { - var tmp737 = new fetchAllConnectionsInfoResult(); - if((Success != null) && __isset.success) - { - tmp737.Success = (TSConnectionInfoResp)this.Success.DeepCopy(); - } - tmp737.__isset.success = this.__isset.success; - return tmp737; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -23154,10 +21724,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("fetchAllConnectionsInfo_result("); - int tmp738 = 0; + int tmp554 = 0; if((Success != null) && __isset.success) { - if(0 < tmp738++) { sb.Append(", "); } + if(0 < tmp554++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } @@ -23174,12 +21744,6 @@ public testConnectionEmptyRPCArgs() { } - public testConnectionEmptyRPCArgs DeepCopy() - { - var tmp739 = new testConnectionEmptyRPCArgs(); - return tmp739; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -23280,17 +21844,6 @@ public testConnectionEmptyRPCResult() { } - public testConnectionEmptyRPCResult DeepCopy() - { - var tmp741 = new testConnectionEmptyRPCResult(); - if((Success != null) && __isset.success) - { - tmp741.Success = (TSStatus)this.Success.DeepCopy(); - } - tmp741.__isset.success = this.__isset.success; - return tmp741; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -23386,10 +21939,10 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("testConnectionEmptyRPC_result("); - int tmp742 = 0; + int tmp556 = 0; if((Success != null) && __isset.success) { - if(0 < tmp742++) { sb.Append(", "); } + if(0 < tmp556++) { sb.Append(", "); } sb.Append("Success: "); Success.ToString(sb); } diff --git a/src/Apache.IoTDB/Rpc/Generated/ServerProperties.cs b/src/Apache.IoTDB/Rpc/Generated/ServerProperties.cs index f94b7e0..f6d9f2f 100644 --- a/src/Apache.IoTDB/Rpc/Generated/ServerProperties.cs +++ b/src/Apache.IoTDB/Rpc/Generated/ServerProperties.cs @@ -130,49 +130,6 @@ public ServerProperties(string version, List supportedTimeAggregationOpe this.TimestampPrecision = timestampPrecision; } - public ServerProperties DeepCopy() - { - var tmp397 = new ServerProperties(); - if((Version != null)) - { - tmp397.Version = this.Version; - } - if((SupportedTimeAggregationOperations != null)) - { - tmp397.SupportedTimeAggregationOperations = this.SupportedTimeAggregationOperations.DeepCopy(); - } - if((TimestampPrecision != null)) - { - tmp397.TimestampPrecision = this.TimestampPrecision; - } - if(__isset.maxConcurrentClientNum) - { - tmp397.MaxConcurrentClientNum = this.MaxConcurrentClientNum; - } - tmp397.__isset.maxConcurrentClientNum = this.__isset.maxConcurrentClientNum; - if(__isset.thriftMaxFrameSize) - { - tmp397.ThriftMaxFrameSize = this.ThriftMaxFrameSize; - } - tmp397.__isset.thriftMaxFrameSize = this.__isset.thriftMaxFrameSize; - if(__isset.isReadOnly) - { - tmp397.IsReadOnly = this.IsReadOnly; - } - tmp397.__isset.isReadOnly = this.__isset.isReadOnly; - if((BuildInfo != null) && __isset.buildInfo) - { - tmp397.BuildInfo = this.BuildInfo; - } - tmp397.__isset.buildInfo = this.__isset.buildInfo; - if((Logo != null) && __isset.logo) - { - tmp397.Logo = this.Logo; - } - tmp397.__isset.logo = this.__isset.logo; - return tmp397; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -208,13 +165,13 @@ public ServerProperties DeepCopy() if (field.Type == TType.List) { { - TList _list398 = await iprot.ReadListBeginAsync(cancellationToken); - SupportedTimeAggregationOperations = new List(_list398.Count); - for(int _i399 = 0; _i399 < _list398.Count; ++_i399) + TList _list362 = await iprot.ReadListBeginAsync(cancellationToken); + SupportedTimeAggregationOperations = new List(_list362.Count); + for(int _i363 = 0; _i363 < _list362.Count; ++_i363) { - string _elem400; - _elem400 = await iprot.ReadStringAsync(cancellationToken); - SupportedTimeAggregationOperations.Add(_elem400); + string _elem364; + _elem364 = await iprot.ReadStringAsync(cancellationToken); + SupportedTimeAggregationOperations.Add(_elem364); } await iprot.ReadListEndAsync(cancellationToken); } @@ -339,9 +296,9 @@ public ServerProperties DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, SupportedTimeAggregationOperations.Count), cancellationToken); - foreach (string _iter401 in SupportedTimeAggregationOperations) + foreach (string _iter365 in SupportedTimeAggregationOperations) { - await oprot.WriteStringAsync(_iter401, cancellationToken); + await oprot.WriteStringAsync(_iter365, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TConfigNodeLocation.cs b/src/Apache.IoTDB/Rpc/Generated/TConfigNodeLocation.cs index 30536a5..f43a427 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TConfigNodeLocation.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TConfigNodeLocation.cs @@ -49,21 +49,6 @@ public TConfigNodeLocation(int configNodeId, TEndPoint internalEndPoint, TEndPoi this.ConsensusEndPoint = consensusEndPoint; } - public TConfigNodeLocation DeepCopy() - { - var tmp22 = new TConfigNodeLocation(); - tmp22.ConfigNodeId = this.ConfigNodeId; - if((InternalEndPoint != null)) - { - tmp22.InternalEndPoint = (TEndPoint)this.InternalEndPoint.DeepCopy(); - } - if((ConsensusEndPoint != null)) - { - tmp22.ConsensusEndPoint = (TEndPoint)this.ConsensusEndPoint.DeepCopy(); - } - return tmp22; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupId.cs b/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupId.cs index 867226b..34492a9 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupId.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupId.cs @@ -50,14 +50,6 @@ public TConsensusGroupId(TConsensusGroupType type, int id) : this() this.Id = id; } - public TConsensusGroupId DeepCopy() - { - var tmp8 = new TConsensusGroupId(); - tmp8.Type = this.Type; - tmp8.Id = this.Id; - return tmp8; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TCreateTimeseriesUsingSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TCreateTimeseriesUsingSchemaTemplateReq.cs index c2627e2..0fc0689 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TCreateTimeseriesUsingSchemaTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TCreateTimeseriesUsingSchemaTemplateReq.cs @@ -46,17 +46,6 @@ public TCreateTimeseriesUsingSchemaTemplateReq(long sessionId, List devi this.DevicePathList = devicePathList; } - public TCreateTimeseriesUsingSchemaTemplateReq DeepCopy() - { - var tmp439 = new TCreateTimeseriesUsingSchemaTemplateReq(); - tmp439.SessionId = this.SessionId; - if((DevicePathList != null)) - { - tmp439.DevicePathList = this.DevicePathList.DeepCopy(); - } - return tmp439; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -91,13 +80,13 @@ public TCreateTimeseriesUsingSchemaTemplateReq DeepCopy() if (field.Type == TType.List) { { - TList _list440 = await iprot.ReadListBeginAsync(cancellationToken); - DevicePathList = new List(_list440.Count); - for(int _i441 = 0; _i441 < _list440.Count; ++_i441) + TList _list395 = await iprot.ReadListBeginAsync(cancellationToken); + DevicePathList = new List(_list395.Count); + for(int _i396 = 0; _i396 < _list395.Count; ++_i396) { - string _elem442; - _elem442 = await iprot.ReadStringAsync(cancellationToken); - DevicePathList.Add(_elem442); + string _elem397; + _elem397 = await iprot.ReadStringAsync(cancellationToken); + DevicePathList.Add(_elem397); } await iprot.ReadListEndAsync(cancellationToken); } @@ -154,9 +143,9 @@ public TCreateTimeseriesUsingSchemaTemplateReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, DevicePathList.Count), cancellationToken); - foreach (string _iter443 in DevicePathList) + foreach (string _iter398 in DevicePathList) { - await oprot.WriteStringAsync(_iter443, cancellationToken); + await oprot.WriteStringAsync(_iter398, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TDataNodeConfiguration.cs b/src/Apache.IoTDB/Rpc/Generated/TDataNodeConfiguration.cs index 1fca320..e56db6c 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TDataNodeConfiguration.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TDataNodeConfiguration.cs @@ -46,20 +46,6 @@ public TDataNodeConfiguration(TDataNodeLocation location, TNodeResource resource this.Resource = resource; } - public TDataNodeConfiguration DeepCopy() - { - var tmp26 = new TDataNodeConfiguration(); - if((Location != null)) - { - tmp26.Location = (TDataNodeLocation)this.Location.DeepCopy(); - } - if((Resource != null)) - { - tmp26.Resource = (TNodeResource)this.Resource.DeepCopy(); - } - return tmp26; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TDataNodeLocation.cs b/src/Apache.IoTDB/Rpc/Generated/TDataNodeLocation.cs index 6d81c2c..303f0b6 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TDataNodeLocation.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TDataNodeLocation.cs @@ -58,33 +58,6 @@ public TDataNodeLocation(int dataNodeId, TEndPoint clientRpcEndPoint, TEndPoint this.SchemaRegionConsensusEndPoint = schemaRegionConsensusEndPoint; } - public TDataNodeLocation DeepCopy() - { - var tmp24 = new TDataNodeLocation(); - tmp24.DataNodeId = this.DataNodeId; - if((ClientRpcEndPoint != null)) - { - tmp24.ClientRpcEndPoint = (TEndPoint)this.ClientRpcEndPoint.DeepCopy(); - } - if((InternalEndPoint != null)) - { - tmp24.InternalEndPoint = (TEndPoint)this.InternalEndPoint.DeepCopy(); - } - if((MPPDataExchangeEndPoint != null)) - { - tmp24.MPPDataExchangeEndPoint = (TEndPoint)this.MPPDataExchangeEndPoint.DeepCopy(); - } - if((DataRegionConsensusEndPoint != null)) - { - tmp24.DataRegionConsensusEndPoint = (TEndPoint)this.DataRegionConsensusEndPoint.DeepCopy(); - } - if((SchemaRegionConsensusEndPoint != null)) - { - tmp24.SchemaRegionConsensusEndPoint = (TEndPoint)this.SchemaRegionConsensusEndPoint.DeepCopy(); - } - return tmp24; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TEndPoint.cs b/src/Apache.IoTDB/Rpc/Generated/TEndPoint.cs index 23dbeb0..db66a12 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TEndPoint.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TEndPoint.cs @@ -46,17 +46,6 @@ public TEndPoint(string ip, int port) : this() this.Port = port; } - public TEndPoint DeepCopy() - { - var tmp0 = new TEndPoint(); - if((Ip != null)) - { - tmp0.Ip = this.Ip; - } - tmp0.Port = this.Port; - return tmp0; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TFile.cs b/src/Apache.IoTDB/Rpc/Generated/TFile.cs index ac512da..1ff51fc 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TFile.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TFile.cs @@ -46,20 +46,6 @@ public TFile(string fileName, byte[] file) : this() this.File = file; } - public TFile DeepCopy() - { - var tmp61 = new TFile(); - if((FileName != null)) - { - tmp61.FileName = this.FileName; - } - if((File != null)) - { - tmp61.File = this.File.ToArray(); - } - return tmp61; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs b/src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs index 8d90050..86fc887 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs @@ -46,20 +46,6 @@ public TFilesResp(TSStatus status, List files) : this() this.Files = files; } - public TFilesResp DeepCopy() - { - var tmp63 = new TFilesResp(); - if((Status != null)) - { - tmp63.Status = (TSStatus)this.Status.DeepCopy(); - } - if((Files != null)) - { - tmp63.Files = this.Files.DeepCopy(); - } - return tmp63; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -95,14 +81,14 @@ public TFilesResp DeepCopy() if (field.Type == TType.List) { { - TList _list64 = await iprot.ReadListBeginAsync(cancellationToken); - Files = new List(_list64.Count); - for(int _i65 = 0; _i65 < _list64.Count; ++_i65) + TList _list46 = await iprot.ReadListBeginAsync(cancellationToken); + Files = new List(_list46.Count); + for(int _i47 = 0; _i47 < _list46.Count; ++_i47) { - TFile _elem66; - _elem66 = new TFile(); - await _elem66.ReadAsync(iprot, cancellationToken); - Files.Add(_elem66); + TFile _elem48; + _elem48 = new TFile(); + await _elem48.ReadAsync(iprot, cancellationToken); + Files.Add(_elem48); } await iprot.ReadListEndAsync(cancellationToken); } @@ -162,9 +148,9 @@ public TFilesResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, Files.Count), cancellationToken); - foreach (TFile _iter67 in Files) + foreach (TFile _iter49 in Files) { - await _iter67.WriteAsync(oprot, cancellationToken); + await _iter49.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs b/src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs index 90e7024..99267a4 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs @@ -72,22 +72,6 @@ public TFlushReq() { } - public TFlushReq DeepCopy() - { - var tmp28 = new TFlushReq(); - if((IsSeq != null) && __isset.isSeq) - { - tmp28.IsSeq = this.IsSeq; - } - tmp28.__isset.isSeq = this.__isset.isSeq; - if((StorageGroups != null) && __isset.storageGroups) - { - tmp28.StorageGroups = this.StorageGroups.DeepCopy(); - } - tmp28.__isset.storageGroups = this.__isset.storageGroups; - return tmp28; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -119,13 +103,13 @@ public TFlushReq DeepCopy() if (field.Type == TType.List) { { - TList _list29 = await iprot.ReadListBeginAsync(cancellationToken); - StorageGroups = new List(_list29.Count); - for(int _i30 = 0; _i30 < _list29.Count; ++_i30) + TList _list18 = await iprot.ReadListBeginAsync(cancellationToken); + StorageGroups = new List(_list18.Count); + for(int _i19 = 0; _i19 < _list18.Count; ++_i19) { - string _elem31; - _elem31 = await iprot.ReadStringAsync(cancellationToken); - StorageGroups.Add(_elem31); + string _elem20; + _elem20 = await iprot.ReadStringAsync(cancellationToken); + StorageGroups.Add(_elem20); } await iprot.ReadListEndAsync(cancellationToken); } @@ -176,9 +160,9 @@ public TFlushReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, StorageGroups.Count), cancellationToken); - foreach (string _iter32 in StorageGroups) + foreach (string _iter21 in StorageGroups) { - await oprot.WriteStringAsync(_iter32, cancellationToken); + await oprot.WriteStringAsync(_iter21, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -219,16 +203,16 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TFlushReq("); - int tmp33 = 0; + int tmp22 = 0; if((IsSeq != null) && __isset.isSeq) { - if(0 < tmp33++) { sb.Append(", "); } + if(0 < tmp22++) { sb.Append(", "); } sb.Append("IsSeq: "); IsSeq.ToString(sb); } if((StorageGroups != null) && __isset.storageGroups) { - if(0 < tmp33++) { sb.Append(", "); } + if(0 < tmp22++) { sb.Append(", "); } sb.Append("StorageGroups: "); StorageGroups.ToString(sb); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TLicense.cs b/src/Apache.IoTDB/Rpc/Generated/TLicense.cs index 557765d..173ddf7 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TLicense.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TLicense.cs @@ -64,20 +64,6 @@ public TLicense(long licenseIssueTimestamp, long expireTimestamp, short dataNode this.MlNodeNumLimit = mlNodeNumLimit; } - public TLicense DeepCopy() - { - var tmp88 = new TLicense(); - tmp88.LicenseIssueTimestamp = this.LicenseIssueTimestamp; - tmp88.ExpireTimestamp = this.ExpireTimestamp; - tmp88.DataNodeNumLimit = this.DataNodeNumLimit; - tmp88.CpuCoreNumLimit = this.CpuCoreNumLimit; - tmp88.DeviceNumLimit = this.DeviceNumLimit; - tmp88.SensorNumLimit = this.SensorNumLimit; - tmp88.DisconnectionFromActiveNodeTimeLimit = this.DisconnectionFromActiveNodeTimeLimit; - tmp88.MlNodeNumLimit = this.MlNodeNumLimit; - return tmp88; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TNodeLocations.cs b/src/Apache.IoTDB/Rpc/Generated/TNodeLocations.cs index dd458d4..43d3a2c 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TNodeLocations.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TNodeLocations.cs @@ -72,22 +72,6 @@ public TNodeLocations() { } - public TNodeLocations DeepCopy() - { - var tmp102 = new TNodeLocations(); - if((ConfigNodeLocations != null) && __isset.configNodeLocations) - { - tmp102.ConfigNodeLocations = this.ConfigNodeLocations.DeepCopy(); - } - tmp102.__isset.configNodeLocations = this.__isset.configNodeLocations; - if((DataNodeLocations != null) && __isset.dataNodeLocations) - { - tmp102.DataNodeLocations = this.DataNodeLocations.DeepCopy(); - } - tmp102.__isset.dataNodeLocations = this.__isset.dataNodeLocations; - return tmp102; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -109,14 +93,14 @@ public TNodeLocations DeepCopy() if (field.Type == TType.List) { { - TList _list103 = await iprot.ReadListBeginAsync(cancellationToken); - ConfigNodeLocations = new List(_list103.Count); - for(int _i104 = 0; _i104 < _list103.Count; ++_i104) + TList _list74 = await iprot.ReadListBeginAsync(cancellationToken); + ConfigNodeLocations = new List(_list74.Count); + for(int _i75 = 0; _i75 < _list74.Count; ++_i75) { - TConfigNodeLocation _elem105; - _elem105 = new TConfigNodeLocation(); - await _elem105.ReadAsync(iprot, cancellationToken); - ConfigNodeLocations.Add(_elem105); + TConfigNodeLocation _elem76; + _elem76 = new TConfigNodeLocation(); + await _elem76.ReadAsync(iprot, cancellationToken); + ConfigNodeLocations.Add(_elem76); } await iprot.ReadListEndAsync(cancellationToken); } @@ -130,14 +114,14 @@ public TNodeLocations DeepCopy() if (field.Type == TType.List) { { - TList _list106 = await iprot.ReadListBeginAsync(cancellationToken); - DataNodeLocations = new List(_list106.Count); - for(int _i107 = 0; _i107 < _list106.Count; ++_i107) + TList _list77 = await iprot.ReadListBeginAsync(cancellationToken); + DataNodeLocations = new List(_list77.Count); + for(int _i78 = 0; _i78 < _list77.Count; ++_i78) { - TDataNodeLocation _elem108; - _elem108 = new TDataNodeLocation(); - await _elem108.ReadAsync(iprot, cancellationToken); - DataNodeLocations.Add(_elem108); + TDataNodeLocation _elem79; + _elem79 = new TDataNodeLocation(); + await _elem79.ReadAsync(iprot, cancellationToken); + DataNodeLocations.Add(_elem79); } await iprot.ReadListEndAsync(cancellationToken); } @@ -179,9 +163,9 @@ public TNodeLocations DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, ConfigNodeLocations.Count), cancellationToken); - foreach (TConfigNodeLocation _iter109 in ConfigNodeLocations) + foreach (TConfigNodeLocation _iter80 in ConfigNodeLocations) { - await _iter109.WriteAsync(oprot, cancellationToken); + await _iter80.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -195,9 +179,9 @@ public TNodeLocations DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, DataNodeLocations.Count), cancellationToken); - foreach (TDataNodeLocation _iter110 in DataNodeLocations) + foreach (TDataNodeLocation _iter81 in DataNodeLocations) { - await _iter110.WriteAsync(oprot, cancellationToken); + await _iter81.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -238,16 +222,16 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TNodeLocations("); - int tmp111 = 0; + int tmp82 = 0; if((ConfigNodeLocations != null) && __isset.configNodeLocations) { - if(0 < tmp111++) { sb.Append(", "); } + if(0 < tmp82++) { sb.Append(", "); } sb.Append("ConfigNodeLocations: "); ConfigNodeLocations.ToString(sb); } if((DataNodeLocations != null) && __isset.dataNodeLocations) { - if(0 < tmp111++) { sb.Append(", "); } + if(0 < tmp82++) { sb.Append(", "); } sb.Append("DataNodeLocations: "); DataNodeLocations.ToString(sb); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TNodeResource.cs b/src/Apache.IoTDB/Rpc/Generated/TNodeResource.cs index fc2083c..3df3303 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TNodeResource.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TNodeResource.cs @@ -46,14 +46,6 @@ public TNodeResource(int cpuCoreNum, long maxMemory) : this() this.MaxMemory = maxMemory; } - public TNodeResource DeepCopy() - { - var tmp20 = new TNodeResource(); - tmp20.CpuCoreNum = this.CpuCoreNum; - tmp20.MaxMemory = this.MaxMemory; - return tmp20; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeReq.cs b/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeReq.cs index 5322c69..bf1e167 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeReq.cs @@ -67,19 +67,6 @@ public TPipeSubscribeReq(sbyte version, short type) : this() this.Type = type; } - public TPipeSubscribeReq DeepCopy() - { - var tmp453 = new TPipeSubscribeReq(); - tmp453.Version = this.Version; - tmp453.Type = this.Type; - if((Body != null) && __isset.body) - { - tmp453.Body = this.Body.ToArray(); - } - tmp453.__isset.body = this.__isset.body; - return tmp453; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeResp.cs b/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeResp.cs index ce31469..b020c67 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeResp.cs @@ -70,23 +70,6 @@ public TPipeSubscribeResp(TSStatus status, sbyte version, short type) : this() this.Type = type; } - public TPipeSubscribeResp DeepCopy() - { - var tmp455 = new TPipeSubscribeResp(); - if((Status != null)) - { - tmp455.Status = (TSStatus)this.Status.DeepCopy(); - } - tmp455.Version = this.Version; - tmp455.Type = this.Type; - if((Body != null) && __isset.body) - { - tmp455.Body = this.Body.DeepCopy(); - } - tmp455.__isset.body = this.__isset.body; - return tmp455; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -145,13 +128,13 @@ public TPipeSubscribeResp DeepCopy() if (field.Type == TType.List) { { - TList _list456 = await iprot.ReadListBeginAsync(cancellationToken); - Body = new List(_list456.Count); - for(int _i457 = 0; _i457 < _list456.Count; ++_i457) + TList _list405 = await iprot.ReadListBeginAsync(cancellationToken); + Body = new List(_list405.Count); + for(int _i406 = 0; _i406 < _list405.Count; ++_i406) { - byte[] _elem458; - _elem458 = await iprot.ReadBinaryAsync(cancellationToken); - Body.Add(_elem458); + byte[] _elem407; + _elem407 = await iprot.ReadBinaryAsync(cancellationToken); + Body.Add(_elem407); } await iprot.ReadListEndAsync(cancellationToken); } @@ -226,9 +209,9 @@ public TPipeSubscribeResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Body.Count), cancellationToken); - foreach (byte[] _iter459 in Body) + foreach (byte[] _iter408 in Body) { - await oprot.WriteBinaryAsync(_iter459, cancellationToken); + await oprot.WriteBinaryAsync(_iter408, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TPipeTransferReq.cs b/src/Apache.IoTDB/Rpc/Generated/TPipeTransferReq.cs index 74a98a4..dc854d7 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TPipeTransferReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TPipeTransferReq.cs @@ -49,18 +49,6 @@ public TPipeTransferReq(sbyte version, short type, byte[] body) : this() this.Body = body; } - public TPipeTransferReq DeepCopy() - { - var tmp449 = new TPipeTransferReq(); - tmp449.Version = this.Version; - tmp449.Type = this.Type; - if((Body != null)) - { - tmp449.Body = this.Body.ToArray(); - } - return tmp449; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TPipeTransferResp.cs b/src/Apache.IoTDB/Rpc/Generated/TPipeTransferResp.cs index bafabd4..faaa628 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TPipeTransferResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TPipeTransferResp.cs @@ -64,21 +64,6 @@ public TPipeTransferResp(TSStatus status) : this() this.Status = status; } - public TPipeTransferResp DeepCopy() - { - var tmp451 = new TPipeTransferResp(); - if((Status != null)) - { - tmp451.Status = (TSStatus)this.Status.DeepCopy(); - } - if((Body != null) && __isset.body) - { - tmp451.Body = this.Body.ToArray(); - } - tmp451.__isset.body = this.__isset.body; - return tmp451; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TRegionReplicaSet.cs b/src/Apache.IoTDB/Rpc/Generated/TRegionReplicaSet.cs index 25f7b72..d745048 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TRegionReplicaSet.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TRegionReplicaSet.cs @@ -46,20 +46,6 @@ public TRegionReplicaSet(TConsensusGroupId regionId, List dat this.DataNodeLocations = dataNodeLocations; } - public TRegionReplicaSet DeepCopy() - { - var tmp14 = new TRegionReplicaSet(); - if((RegionId != null)) - { - tmp14.RegionId = (TConsensusGroupId)this.RegionId.DeepCopy(); - } - if((DataNodeLocations != null)) - { - tmp14.DataNodeLocations = this.DataNodeLocations.DeepCopy(); - } - return tmp14; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -95,14 +81,14 @@ public TRegionReplicaSet DeepCopy() if (field.Type == TType.List) { { - TList _list15 = await iprot.ReadListBeginAsync(cancellationToken); - DataNodeLocations = new List(_list15.Count); - for(int _i16 = 0; _i16 < _list15.Count; ++_i16) + TList _list9 = await iprot.ReadListBeginAsync(cancellationToken); + DataNodeLocations = new List(_list9.Count); + for(int _i10 = 0; _i10 < _list9.Count; ++_i10) { - TDataNodeLocation _elem17; - _elem17 = new TDataNodeLocation(); - await _elem17.ReadAsync(iprot, cancellationToken); - DataNodeLocations.Add(_elem17); + TDataNodeLocation _elem11; + _elem11 = new TDataNodeLocation(); + await _elem11.ReadAsync(iprot, cancellationToken); + DataNodeLocations.Add(_elem11); } await iprot.ReadListEndAsync(cancellationToken); } @@ -162,9 +148,9 @@ public TRegionReplicaSet DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, DataNodeLocations.Count), cancellationToken); - foreach (TDataNodeLocation _iter18 in DataNodeLocations) + foreach (TDataNodeLocation _iter12 in DataNodeLocations) { - await _iter18.WriteAsync(oprot, cancellationToken); + await _iter12.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSAggregationQueryReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSAggregationQueryReq.cs index 3395474..7e4c9c5 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSAggregationQueryReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSAggregationQueryReq.cs @@ -163,57 +163,6 @@ public TSAggregationQueryReq(long sessionId, long statementId, List path this.Aggregations = aggregations; } - public TSAggregationQueryReq DeepCopy() - { - var tmp336 = new TSAggregationQueryReq(); - tmp336.SessionId = this.SessionId; - tmp336.StatementId = this.StatementId; - if((Paths != null)) - { - tmp336.Paths = this.Paths.DeepCopy(); - } - if((Aggregations != null)) - { - tmp336.Aggregations = this.Aggregations.DeepCopy(); - } - if(__isset.startTime) - { - tmp336.StartTime = this.StartTime; - } - tmp336.__isset.startTime = this.__isset.startTime; - if(__isset.endTime) - { - tmp336.EndTime = this.EndTime; - } - tmp336.__isset.endTime = this.__isset.endTime; - if(__isset.interval) - { - tmp336.Interval = this.Interval; - } - tmp336.__isset.interval = this.__isset.interval; - if(__isset.slidingStep) - { - tmp336.SlidingStep = this.SlidingStep; - } - tmp336.__isset.slidingStep = this.__isset.slidingStep; - if(__isset.fetchSize) - { - tmp336.FetchSize = this.FetchSize; - } - tmp336.__isset.fetchSize = this.__isset.fetchSize; - if(__isset.timeout) - { - tmp336.Timeout = this.Timeout; - } - tmp336.__isset.timeout = this.__isset.timeout; - if(__isset.legalPathNodes) - { - tmp336.LegalPathNodes = this.LegalPathNodes; - } - tmp336.__isset.legalPathNodes = this.__isset.legalPathNodes; - return tmp336; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -261,13 +210,13 @@ public TSAggregationQueryReq DeepCopy() if (field.Type == TType.List) { { - TList _list337 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list337.Count); - for(int _i338 = 0; _i338 < _list337.Count; ++_i338) + TList _list304 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list304.Count); + for(int _i305 = 0; _i305 < _list304.Count; ++_i305) { - string _elem339; - _elem339 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem339); + string _elem306; + _elem306 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem306); } await iprot.ReadListEndAsync(cancellationToken); } @@ -282,13 +231,13 @@ public TSAggregationQueryReq DeepCopy() if (field.Type == TType.List) { { - TList _list340 = await iprot.ReadListBeginAsync(cancellationToken); - Aggregations = new List(_list340.Count); - for(int _i341 = 0; _i341 < _list340.Count; ++_i341) + TList _list307 = await iprot.ReadListBeginAsync(cancellationToken); + Aggregations = new List(_list307.Count); + for(int _i308 = 0; _i308 < _list307.Count; ++_i308) { - TAggregationType _elem342; - _elem342 = (TAggregationType)await iprot.ReadI32Async(cancellationToken); - Aggregations.Add(_elem342); + TAggregationType _elem309; + _elem309 = (TAggregationType)await iprot.ReadI32Async(cancellationToken); + Aggregations.Add(_elem309); } await iprot.ReadListEndAsync(cancellationToken); } @@ -429,9 +378,9 @@ public TSAggregationQueryReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter343 in Paths) + foreach (string _iter310 in Paths) { - await oprot.WriteStringAsync(_iter343, cancellationToken); + await oprot.WriteStringAsync(_iter310, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -445,9 +394,9 @@ public TSAggregationQueryReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, Aggregations.Count), cancellationToken); - foreach (TAggregationType _iter344 in Aggregations) + foreach (TAggregationType _iter311 in Aggregations) { - await oprot.WriteI32Async((int)_iter344, cancellationToken); + await oprot.WriteI32Async((int)_iter311, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSAppendSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSAppendSchemaTemplateReq.cs index f5b5f1a..d5c545b 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSAppendSchemaTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSAppendSchemaTemplateReq.cs @@ -61,34 +61,6 @@ public TSAppendSchemaTemplateReq(long sessionId, string name, bool isAligned, Li this.Compressors = compressors; } - public TSAppendSchemaTemplateReq DeepCopy() - { - var tmp407 = new TSAppendSchemaTemplateReq(); - tmp407.SessionId = this.SessionId; - if((Name != null)) - { - tmp407.Name = this.Name; - } - tmp407.IsAligned = this.IsAligned; - if((Measurements != null)) - { - tmp407.Measurements = this.Measurements.DeepCopy(); - } - if((DataTypes != null)) - { - tmp407.DataTypes = this.DataTypes.DeepCopy(); - } - if((Encodings != null)) - { - tmp407.Encodings = this.Encodings.DeepCopy(); - } - if((Compressors != null)) - { - tmp407.Compressors = this.Compressors.DeepCopy(); - } - return tmp407; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -150,13 +122,13 @@ public TSAppendSchemaTemplateReq DeepCopy() if (field.Type == TType.List) { { - TList _list408 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list408.Count); - for(int _i409 = 0; _i409 < _list408.Count; ++_i409) + TList _list369 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list369.Count); + for(int _i370 = 0; _i370 < _list369.Count; ++_i370) { - string _elem410; - _elem410 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem410); + string _elem371; + _elem371 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem371); } await iprot.ReadListEndAsync(cancellationToken); } @@ -171,13 +143,13 @@ public TSAppendSchemaTemplateReq DeepCopy() if (field.Type == TType.List) { { - TList _list411 = await iprot.ReadListBeginAsync(cancellationToken); - DataTypes = new List(_list411.Count); - for(int _i412 = 0; _i412 < _list411.Count; ++_i412) + TList _list372 = await iprot.ReadListBeginAsync(cancellationToken); + DataTypes = new List(_list372.Count); + for(int _i373 = 0; _i373 < _list372.Count; ++_i373) { - int _elem413; - _elem413 = await iprot.ReadI32Async(cancellationToken); - DataTypes.Add(_elem413); + int _elem374; + _elem374 = await iprot.ReadI32Async(cancellationToken); + DataTypes.Add(_elem374); } await iprot.ReadListEndAsync(cancellationToken); } @@ -192,13 +164,13 @@ public TSAppendSchemaTemplateReq DeepCopy() if (field.Type == TType.List) { { - TList _list414 = await iprot.ReadListBeginAsync(cancellationToken); - Encodings = new List(_list414.Count); - for(int _i415 = 0; _i415 < _list414.Count; ++_i415) + TList _list375 = await iprot.ReadListBeginAsync(cancellationToken); + Encodings = new List(_list375.Count); + for(int _i376 = 0; _i376 < _list375.Count; ++_i376) { - int _elem416; - _elem416 = await iprot.ReadI32Async(cancellationToken); - Encodings.Add(_elem416); + int _elem377; + _elem377 = await iprot.ReadI32Async(cancellationToken); + Encodings.Add(_elem377); } await iprot.ReadListEndAsync(cancellationToken); } @@ -213,13 +185,13 @@ public TSAppendSchemaTemplateReq DeepCopy() if (field.Type == TType.List) { { - TList _list417 = await iprot.ReadListBeginAsync(cancellationToken); - Compressors = new List(_list417.Count); - for(int _i418 = 0; _i418 < _list417.Count; ++_i418) + TList _list378 = await iprot.ReadListBeginAsync(cancellationToken); + Compressors = new List(_list378.Count); + for(int _i379 = 0; _i379 < _list378.Count; ++_i379) { - int _elem419; - _elem419 = await iprot.ReadI32Async(cancellationToken); - Compressors.Add(_elem419); + int _elem380; + _elem380 = await iprot.ReadI32Async(cancellationToken); + Compressors.Add(_elem380); } await iprot.ReadListEndAsync(cancellationToken); } @@ -311,9 +283,9 @@ public TSAppendSchemaTemplateReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter420 in Measurements) + foreach (string _iter381 in Measurements) { - await oprot.WriteStringAsync(_iter420, cancellationToken); + await oprot.WriteStringAsync(_iter381, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -327,9 +299,9 @@ public TSAppendSchemaTemplateReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, DataTypes.Count), cancellationToken); - foreach (int _iter421 in DataTypes) + foreach (int _iter382 in DataTypes) { - await oprot.WriteI32Async(_iter421, cancellationToken); + await oprot.WriteI32Async(_iter382, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -343,9 +315,9 @@ public TSAppendSchemaTemplateReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, Encodings.Count), cancellationToken); - foreach (int _iter422 in Encodings) + foreach (int _iter383 in Encodings) { - await oprot.WriteI32Async(_iter422, cancellationToken); + await oprot.WriteI32Async(_iter383, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -359,9 +331,9 @@ public TSAppendSchemaTemplateReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, Compressors.Count), cancellationToken); - foreach (int _iter423 in Compressors) + foreach (int _iter384 in Compressors) { - await oprot.WriteI32Async(_iter423, cancellationToken); + await oprot.WriteI32Async(_iter384, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSBackupConfigurationResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSBackupConfigurationResp.cs index d35999b..5cdb21f 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSBackupConfigurationResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSBackupConfigurationResp.cs @@ -94,31 +94,6 @@ public TSBackupConfigurationResp(TSStatus status) : this() this.Status = status; } - public TSBackupConfigurationResp DeepCopy() - { - var tmp461 = new TSBackupConfigurationResp(); - if((Status != null)) - { - tmp461.Status = (TSStatus)this.Status.DeepCopy(); - } - if(__isset.enableOperationSync) - { - tmp461.EnableOperationSync = this.EnableOperationSync; - } - tmp461.__isset.enableOperationSync = this.__isset.enableOperationSync; - if((SecondaryAddress != null) && __isset.secondaryAddress) - { - tmp461.SecondaryAddress = this.SecondaryAddress; - } - tmp461.__isset.secondaryAddress = this.__isset.secondaryAddress; - if(__isset.secondaryPort) - { - tmp461.SecondaryPort = this.SecondaryPort; - } - tmp461.__isset.secondaryPort = this.__isset.secondaryPort; - return tmp461; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCancelOperationReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCancelOperationReq.cs index 715b4a0..6cd4f4a 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCancelOperationReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCancelOperationReq.cs @@ -46,14 +46,6 @@ public TSCancelOperationReq(long sessionId, long queryId) : this() this.QueryId = queryId; } - public TSCancelOperationReq DeepCopy() - { - var tmp83 = new TSCancelOperationReq(); - tmp83.SessionId = this.SessionId; - tmp83.QueryId = this.QueryId; - return tmp83; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCloseOperationReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCloseOperationReq.cs index fe97220..c574d80 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCloseOperationReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCloseOperationReq.cs @@ -79,23 +79,6 @@ public TSCloseOperationReq(long sessionId) : this() this.SessionId = sessionId; } - public TSCloseOperationReq DeepCopy() - { - var tmp85 = new TSCloseOperationReq(); - tmp85.SessionId = this.SessionId; - if(__isset.queryId) - { - tmp85.QueryId = this.QueryId; - } - tmp85.__isset.queryId = this.__isset.queryId; - if(__isset.statementId) - { - tmp85.StatementId = this.StatementId; - } - tmp85.__isset.statementId = this.__isset.statementId; - return tmp85; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCloseSessionReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCloseSessionReq.cs index 9ba92c1..e0c3a44 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCloseSessionReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCloseSessionReq.cs @@ -43,13 +43,6 @@ public TSCloseSessionReq(long sessionId) : this() this.SessionId = sessionId; } - public TSCloseSessionReq DeepCopy() - { - var tmp71 = new TSCloseSessionReq(); - tmp71.SessionId = this.SessionId; - return tmp71; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfo.cs b/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfo.cs index bb7fdcd..95c1a2e 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfo.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfo.cs @@ -56,22 +56,6 @@ public TSConnectionInfo(string userName, long logInTime, string connectionId, TS this.Type = type; } - public TSConnectionInfo DeepCopy() - { - var tmp463 = new TSConnectionInfo(); - if((UserName != null)) - { - tmp463.UserName = this.UserName; - } - tmp463.LogInTime = this.LogInTime; - if((ConnectionId != null)) - { - tmp463.ConnectionId = this.ConnectionId; - } - tmp463.Type = this.Type; - return tmp463; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfoResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfoResp.cs index 6039412..e7cb0e6 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfoResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfoResp.cs @@ -43,16 +43,6 @@ public TSConnectionInfoResp(List connectionInfoList) : this() this.ConnectionInfoList = connectionInfoList; } - public TSConnectionInfoResp DeepCopy() - { - var tmp465 = new TSConnectionInfoResp(); - if((ConnectionInfoList != null)) - { - tmp465.ConnectionInfoList = this.ConnectionInfoList.DeepCopy(); - } - return tmp465; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -75,14 +65,14 @@ public TSConnectionInfoResp DeepCopy() if (field.Type == TType.List) { { - TList _list466 = await iprot.ReadListBeginAsync(cancellationToken); - ConnectionInfoList = new List(_list466.Count); - for(int _i467 = 0; _i467 < _list466.Count; ++_i467) + TList _list412 = await iprot.ReadListBeginAsync(cancellationToken); + ConnectionInfoList = new List(_list412.Count); + for(int _i413 = 0; _i413 < _list412.Count; ++_i413) { - TSConnectionInfo _elem468; - _elem468 = new TSConnectionInfo(); - await _elem468.ReadAsync(iprot, cancellationToken); - ConnectionInfoList.Add(_elem468); + TSConnectionInfo _elem414; + _elem414 = new TSConnectionInfo(); + await _elem414.ReadAsync(iprot, cancellationToken); + ConnectionInfoList.Add(_elem414); } await iprot.ReadListEndAsync(cancellationToken); } @@ -129,9 +119,9 @@ public TSConnectionInfoResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, ConnectionInfoList.Count), cancellationToken); - foreach (TSConnectionInfo _iter469 in ConnectionInfoList) + foreach (TSConnectionInfo _iter415 in ConnectionInfoList) { - await _iter469.WriteAsync(oprot, cancellationToken); + await _iter415.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCreateAlignedTimeseriesReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCreateAlignedTimeseriesReq.cs index 4697d28..2ec2028 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCreateAlignedTimeseriesReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCreateAlignedTimeseriesReq.cs @@ -109,48 +109,6 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List(_list279.Count); - for(int _i280 = 0; _i280 < _list279.Count; ++_i280) + TList _list250 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list250.Count); + for(int _i251 = 0; _i251 < _list250.Count; ++_i251) { - string _elem281; - _elem281 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem281); + string _elem252; + _elem252 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem252); } await iprot.ReadListEndAsync(cancellationToken); } @@ -221,13 +179,13 @@ public TSCreateAlignedTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list282 = await iprot.ReadListBeginAsync(cancellationToken); - DataTypes = new List(_list282.Count); - for(int _i283 = 0; _i283 < _list282.Count; ++_i283) + TList _list253 = await iprot.ReadListBeginAsync(cancellationToken); + DataTypes = new List(_list253.Count); + for(int _i254 = 0; _i254 < _list253.Count; ++_i254) { - int _elem284; - _elem284 = await iprot.ReadI32Async(cancellationToken); - DataTypes.Add(_elem284); + int _elem255; + _elem255 = await iprot.ReadI32Async(cancellationToken); + DataTypes.Add(_elem255); } await iprot.ReadListEndAsync(cancellationToken); } @@ -242,13 +200,13 @@ public TSCreateAlignedTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list285 = await iprot.ReadListBeginAsync(cancellationToken); - Encodings = new List(_list285.Count); - for(int _i286 = 0; _i286 < _list285.Count; ++_i286) + TList _list256 = await iprot.ReadListBeginAsync(cancellationToken); + Encodings = new List(_list256.Count); + for(int _i257 = 0; _i257 < _list256.Count; ++_i257) { - int _elem287; - _elem287 = await iprot.ReadI32Async(cancellationToken); - Encodings.Add(_elem287); + int _elem258; + _elem258 = await iprot.ReadI32Async(cancellationToken); + Encodings.Add(_elem258); } await iprot.ReadListEndAsync(cancellationToken); } @@ -263,13 +221,13 @@ public TSCreateAlignedTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list288 = await iprot.ReadListBeginAsync(cancellationToken); - Compressors = new List(_list288.Count); - for(int _i289 = 0; _i289 < _list288.Count; ++_i289) + TList _list259 = await iprot.ReadListBeginAsync(cancellationToken); + Compressors = new List(_list259.Count); + for(int _i260 = 0; _i260 < _list259.Count; ++_i260) { - int _elem290; - _elem290 = await iprot.ReadI32Async(cancellationToken); - Compressors.Add(_elem290); + int _elem261; + _elem261 = await iprot.ReadI32Async(cancellationToken); + Compressors.Add(_elem261); } await iprot.ReadListEndAsync(cancellationToken); } @@ -284,13 +242,13 @@ public TSCreateAlignedTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list291 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementAlias = new List(_list291.Count); - for(int _i292 = 0; _i292 < _list291.Count; ++_i292) + TList _list262 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementAlias = new List(_list262.Count); + for(int _i263 = 0; _i263 < _list262.Count; ++_i263) { - string _elem293; - _elem293 = await iprot.ReadStringAsync(cancellationToken); - MeasurementAlias.Add(_elem293); + string _elem264; + _elem264 = await iprot.ReadStringAsync(cancellationToken); + MeasurementAlias.Add(_elem264); } await iprot.ReadListEndAsync(cancellationToken); } @@ -304,25 +262,25 @@ public TSCreateAlignedTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list294 = await iprot.ReadListBeginAsync(cancellationToken); - TagsList = new List>(_list294.Count); - for(int _i295 = 0; _i295 < _list294.Count; ++_i295) + TList _list265 = await iprot.ReadListBeginAsync(cancellationToken); + TagsList = new List>(_list265.Count); + for(int _i266 = 0; _i266 < _list265.Count; ++_i266) { - Dictionary _elem296; + Dictionary _elem267; { - TMap _map297 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem296 = new Dictionary(_map297.Count); - for(int _i298 = 0; _i298 < _map297.Count; ++_i298) + TMap _map268 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem267 = new Dictionary(_map268.Count); + for(int _i269 = 0; _i269 < _map268.Count; ++_i269) { - string _key299; - string _val300; - _key299 = await iprot.ReadStringAsync(cancellationToken); - _val300 = await iprot.ReadStringAsync(cancellationToken); - _elem296[_key299] = _val300; + string _key270; + string _val271; + _key270 = await iprot.ReadStringAsync(cancellationToken); + _val271 = await iprot.ReadStringAsync(cancellationToken); + _elem267[_key270] = _val271; } await iprot.ReadMapEndAsync(cancellationToken); } - TagsList.Add(_elem296); + TagsList.Add(_elem267); } await iprot.ReadListEndAsync(cancellationToken); } @@ -336,25 +294,25 @@ public TSCreateAlignedTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list301 = await iprot.ReadListBeginAsync(cancellationToken); - AttributesList = new List>(_list301.Count); - for(int _i302 = 0; _i302 < _list301.Count; ++_i302) + TList _list272 = await iprot.ReadListBeginAsync(cancellationToken); + AttributesList = new List>(_list272.Count); + for(int _i273 = 0; _i273 < _list272.Count; ++_i273) { - Dictionary _elem303; + Dictionary _elem274; { - TMap _map304 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem303 = new Dictionary(_map304.Count); - for(int _i305 = 0; _i305 < _map304.Count; ++_i305) + TMap _map275 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem274 = new Dictionary(_map275.Count); + for(int _i276 = 0; _i276 < _map275.Count; ++_i276) { - string _key306; - string _val307; - _key306 = await iprot.ReadStringAsync(cancellationToken); - _val307 = await iprot.ReadStringAsync(cancellationToken); - _elem303[_key306] = _val307; + string _key277; + string _val278; + _key277 = await iprot.ReadStringAsync(cancellationToken); + _val278 = await iprot.ReadStringAsync(cancellationToken); + _elem274[_key277] = _val278; } await iprot.ReadMapEndAsync(cancellationToken); } - AttributesList.Add(_elem303); + AttributesList.Add(_elem274); } await iprot.ReadListEndAsync(cancellationToken); } @@ -435,9 +393,9 @@ public TSCreateAlignedTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter308 in Measurements) + foreach (string _iter279 in Measurements) { - await oprot.WriteStringAsync(_iter308, cancellationToken); + await oprot.WriteStringAsync(_iter279, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -451,9 +409,9 @@ public TSCreateAlignedTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, DataTypes.Count), cancellationToken); - foreach (int _iter309 in DataTypes) + foreach (int _iter280 in DataTypes) { - await oprot.WriteI32Async(_iter309, cancellationToken); + await oprot.WriteI32Async(_iter280, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -467,9 +425,9 @@ public TSCreateAlignedTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, Encodings.Count), cancellationToken); - foreach (int _iter310 in Encodings) + foreach (int _iter281 in Encodings) { - await oprot.WriteI32Async(_iter310, cancellationToken); + await oprot.WriteI32Async(_iter281, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -483,9 +441,9 @@ public TSCreateAlignedTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, Compressors.Count), cancellationToken); - foreach (int _iter311 in Compressors) + foreach (int _iter282 in Compressors) { - await oprot.WriteI32Async(_iter311, cancellationToken); + await oprot.WriteI32Async(_iter282, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -499,9 +457,9 @@ public TSCreateAlignedTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, MeasurementAlias.Count), cancellationToken); - foreach (string _iter312 in MeasurementAlias) + foreach (string _iter283 in MeasurementAlias) { - await oprot.WriteStringAsync(_iter312, cancellationToken); + await oprot.WriteStringAsync(_iter283, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -515,14 +473,14 @@ public TSCreateAlignedTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, TagsList.Count), cancellationToken); - foreach (Dictionary _iter313 in TagsList) + foreach (Dictionary _iter284 in TagsList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter313.Count), cancellationToken); - foreach (string _iter314 in _iter313.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter284.Count), cancellationToken); + foreach (string _iter285 in _iter284.Keys) { - await oprot.WriteStringAsync(_iter314, cancellationToken); - await oprot.WriteStringAsync(_iter313[_iter314], cancellationToken); + await oprot.WriteStringAsync(_iter285, cancellationToken); + await oprot.WriteStringAsync(_iter284[_iter285], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -539,14 +497,14 @@ public TSCreateAlignedTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, AttributesList.Count), cancellationToken); - foreach (Dictionary _iter315 in AttributesList) + foreach (Dictionary _iter286 in AttributesList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter315.Count), cancellationToken); - foreach (string _iter316 in _iter315.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter286.Count), cancellationToken); + foreach (string _iter287 in _iter286.Keys) { - await oprot.WriteStringAsync(_iter316, cancellationToken); - await oprot.WriteStringAsync(_iter315[_iter316], cancellationToken); + await oprot.WriteStringAsync(_iter287, cancellationToken); + await oprot.WriteStringAsync(_iter286[_iter287], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCreateMultiTimeseriesReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCreateMultiTimeseriesReq.cs index 3d2759f..4141f0e 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCreateMultiTimeseriesReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCreateMultiTimeseriesReq.cs @@ -121,49 +121,6 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List this.Compressors = compressors; } - public TSCreateMultiTimeseriesReq DeepCopy() - { - var tmp348 = new TSCreateMultiTimeseriesReq(); - tmp348.SessionId = this.SessionId; - if((Paths != null)) - { - tmp348.Paths = this.Paths.DeepCopy(); - } - if((DataTypes != null)) - { - tmp348.DataTypes = this.DataTypes.DeepCopy(); - } - if((Encodings != null)) - { - tmp348.Encodings = this.Encodings.DeepCopy(); - } - if((Compressors != null)) - { - tmp348.Compressors = this.Compressors.DeepCopy(); - } - if((PropsList != null) && __isset.propsList) - { - tmp348.PropsList = this.PropsList.DeepCopy(); - } - tmp348.__isset.propsList = this.__isset.propsList; - if((TagsList != null) && __isset.tagsList) - { - tmp348.TagsList = this.TagsList.DeepCopy(); - } - tmp348.__isset.tagsList = this.__isset.tagsList; - if((AttributesList != null) && __isset.attributesList) - { - tmp348.AttributesList = this.AttributesList.DeepCopy(); - } - tmp348.__isset.attributesList = this.__isset.attributesList; - if((MeasurementAliasList != null) && __isset.measurementAliasList) - { - tmp348.MeasurementAliasList = this.MeasurementAliasList.DeepCopy(); - } - tmp348.__isset.measurementAliasList = this.__isset.measurementAliasList; - return tmp348; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -201,13 +158,13 @@ public TSCreateMultiTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list349 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list349.Count); - for(int _i350 = 0; _i350 < _list349.Count; ++_i350) + TList _list314 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list314.Count); + for(int _i315 = 0; _i315 < _list314.Count; ++_i315) { - string _elem351; - _elem351 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem351); + string _elem316; + _elem316 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem316); } await iprot.ReadListEndAsync(cancellationToken); } @@ -222,13 +179,13 @@ public TSCreateMultiTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list352 = await iprot.ReadListBeginAsync(cancellationToken); - DataTypes = new List(_list352.Count); - for(int _i353 = 0; _i353 < _list352.Count; ++_i353) + TList _list317 = await iprot.ReadListBeginAsync(cancellationToken); + DataTypes = new List(_list317.Count); + for(int _i318 = 0; _i318 < _list317.Count; ++_i318) { - int _elem354; - _elem354 = await iprot.ReadI32Async(cancellationToken); - DataTypes.Add(_elem354); + int _elem319; + _elem319 = await iprot.ReadI32Async(cancellationToken); + DataTypes.Add(_elem319); } await iprot.ReadListEndAsync(cancellationToken); } @@ -243,13 +200,13 @@ public TSCreateMultiTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list355 = await iprot.ReadListBeginAsync(cancellationToken); - Encodings = new List(_list355.Count); - for(int _i356 = 0; _i356 < _list355.Count; ++_i356) + TList _list320 = await iprot.ReadListBeginAsync(cancellationToken); + Encodings = new List(_list320.Count); + for(int _i321 = 0; _i321 < _list320.Count; ++_i321) { - int _elem357; - _elem357 = await iprot.ReadI32Async(cancellationToken); - Encodings.Add(_elem357); + int _elem322; + _elem322 = await iprot.ReadI32Async(cancellationToken); + Encodings.Add(_elem322); } await iprot.ReadListEndAsync(cancellationToken); } @@ -264,13 +221,13 @@ public TSCreateMultiTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list358 = await iprot.ReadListBeginAsync(cancellationToken); - Compressors = new List(_list358.Count); - for(int _i359 = 0; _i359 < _list358.Count; ++_i359) + TList _list323 = await iprot.ReadListBeginAsync(cancellationToken); + Compressors = new List(_list323.Count); + for(int _i324 = 0; _i324 < _list323.Count; ++_i324) { - int _elem360; - _elem360 = await iprot.ReadI32Async(cancellationToken); - Compressors.Add(_elem360); + int _elem325; + _elem325 = await iprot.ReadI32Async(cancellationToken); + Compressors.Add(_elem325); } await iprot.ReadListEndAsync(cancellationToken); } @@ -285,25 +242,25 @@ public TSCreateMultiTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list361 = await iprot.ReadListBeginAsync(cancellationToken); - PropsList = new List>(_list361.Count); - for(int _i362 = 0; _i362 < _list361.Count; ++_i362) + TList _list326 = await iprot.ReadListBeginAsync(cancellationToken); + PropsList = new List>(_list326.Count); + for(int _i327 = 0; _i327 < _list326.Count; ++_i327) { - Dictionary _elem363; + Dictionary _elem328; { - TMap _map364 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem363 = new Dictionary(_map364.Count); - for(int _i365 = 0; _i365 < _map364.Count; ++_i365) + TMap _map329 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem328 = new Dictionary(_map329.Count); + for(int _i330 = 0; _i330 < _map329.Count; ++_i330) { - string _key366; - string _val367; - _key366 = await iprot.ReadStringAsync(cancellationToken); - _val367 = await iprot.ReadStringAsync(cancellationToken); - _elem363[_key366] = _val367; + string _key331; + string _val332; + _key331 = await iprot.ReadStringAsync(cancellationToken); + _val332 = await iprot.ReadStringAsync(cancellationToken); + _elem328[_key331] = _val332; } await iprot.ReadMapEndAsync(cancellationToken); } - PropsList.Add(_elem363); + PropsList.Add(_elem328); } await iprot.ReadListEndAsync(cancellationToken); } @@ -317,25 +274,25 @@ public TSCreateMultiTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list368 = await iprot.ReadListBeginAsync(cancellationToken); - TagsList = new List>(_list368.Count); - for(int _i369 = 0; _i369 < _list368.Count; ++_i369) + TList _list333 = await iprot.ReadListBeginAsync(cancellationToken); + TagsList = new List>(_list333.Count); + for(int _i334 = 0; _i334 < _list333.Count; ++_i334) { - Dictionary _elem370; + Dictionary _elem335; { - TMap _map371 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem370 = new Dictionary(_map371.Count); - for(int _i372 = 0; _i372 < _map371.Count; ++_i372) + TMap _map336 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem335 = new Dictionary(_map336.Count); + for(int _i337 = 0; _i337 < _map336.Count; ++_i337) { - string _key373; - string _val374; - _key373 = await iprot.ReadStringAsync(cancellationToken); - _val374 = await iprot.ReadStringAsync(cancellationToken); - _elem370[_key373] = _val374; + string _key338; + string _val339; + _key338 = await iprot.ReadStringAsync(cancellationToken); + _val339 = await iprot.ReadStringAsync(cancellationToken); + _elem335[_key338] = _val339; } await iprot.ReadMapEndAsync(cancellationToken); } - TagsList.Add(_elem370); + TagsList.Add(_elem335); } await iprot.ReadListEndAsync(cancellationToken); } @@ -349,25 +306,25 @@ public TSCreateMultiTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list375 = await iprot.ReadListBeginAsync(cancellationToken); - AttributesList = new List>(_list375.Count); - for(int _i376 = 0; _i376 < _list375.Count; ++_i376) + TList _list340 = await iprot.ReadListBeginAsync(cancellationToken); + AttributesList = new List>(_list340.Count); + for(int _i341 = 0; _i341 < _list340.Count; ++_i341) { - Dictionary _elem377; + Dictionary _elem342; { - TMap _map378 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem377 = new Dictionary(_map378.Count); - for(int _i379 = 0; _i379 < _map378.Count; ++_i379) + TMap _map343 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem342 = new Dictionary(_map343.Count); + for(int _i344 = 0; _i344 < _map343.Count; ++_i344) { - string _key380; - string _val381; - _key380 = await iprot.ReadStringAsync(cancellationToken); - _val381 = await iprot.ReadStringAsync(cancellationToken); - _elem377[_key380] = _val381; + string _key345; + string _val346; + _key345 = await iprot.ReadStringAsync(cancellationToken); + _val346 = await iprot.ReadStringAsync(cancellationToken); + _elem342[_key345] = _val346; } await iprot.ReadMapEndAsync(cancellationToken); } - AttributesList.Add(_elem377); + AttributesList.Add(_elem342); } await iprot.ReadListEndAsync(cancellationToken); } @@ -381,13 +338,13 @@ public TSCreateMultiTimeseriesReq DeepCopy() if (field.Type == TType.List) { { - TList _list382 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementAliasList = new List(_list382.Count); - for(int _i383 = 0; _i383 < _list382.Count; ++_i383) + TList _list347 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementAliasList = new List(_list347.Count); + for(int _i348 = 0; _i348 < _list347.Count; ++_i348) { - string _elem384; - _elem384 = await iprot.ReadStringAsync(cancellationToken); - MeasurementAliasList.Add(_elem384); + string _elem349; + _elem349 = await iprot.ReadStringAsync(cancellationToken); + MeasurementAliasList.Add(_elem349); } await iprot.ReadListEndAsync(cancellationToken); } @@ -455,9 +412,9 @@ public TSCreateMultiTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter385 in Paths) + foreach (string _iter350 in Paths) { - await oprot.WriteStringAsync(_iter385, cancellationToken); + await oprot.WriteStringAsync(_iter350, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -471,9 +428,9 @@ public TSCreateMultiTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, DataTypes.Count), cancellationToken); - foreach (int _iter386 in DataTypes) + foreach (int _iter351 in DataTypes) { - await oprot.WriteI32Async(_iter386, cancellationToken); + await oprot.WriteI32Async(_iter351, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -487,9 +444,9 @@ public TSCreateMultiTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, Encodings.Count), cancellationToken); - foreach (int _iter387 in Encodings) + foreach (int _iter352 in Encodings) { - await oprot.WriteI32Async(_iter387, cancellationToken); + await oprot.WriteI32Async(_iter352, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -503,9 +460,9 @@ public TSCreateMultiTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, Compressors.Count), cancellationToken); - foreach (int _iter388 in Compressors) + foreach (int _iter353 in Compressors) { - await oprot.WriteI32Async(_iter388, cancellationToken); + await oprot.WriteI32Async(_iter353, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -519,14 +476,14 @@ public TSCreateMultiTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, PropsList.Count), cancellationToken); - foreach (Dictionary _iter389 in PropsList) + foreach (Dictionary _iter354 in PropsList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter389.Count), cancellationToken); - foreach (string _iter390 in _iter389.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter354.Count), cancellationToken); + foreach (string _iter355 in _iter354.Keys) { - await oprot.WriteStringAsync(_iter390, cancellationToken); - await oprot.WriteStringAsync(_iter389[_iter390], cancellationToken); + await oprot.WriteStringAsync(_iter355, cancellationToken); + await oprot.WriteStringAsync(_iter354[_iter355], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -543,14 +500,14 @@ public TSCreateMultiTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, TagsList.Count), cancellationToken); - foreach (Dictionary _iter391 in TagsList) + foreach (Dictionary _iter356 in TagsList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter391.Count), cancellationToken); - foreach (string _iter392 in _iter391.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter356.Count), cancellationToken); + foreach (string _iter357 in _iter356.Keys) { - await oprot.WriteStringAsync(_iter392, cancellationToken); - await oprot.WriteStringAsync(_iter391[_iter392], cancellationToken); + await oprot.WriteStringAsync(_iter357, cancellationToken); + await oprot.WriteStringAsync(_iter356[_iter357], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -567,14 +524,14 @@ public TSCreateMultiTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, AttributesList.Count), cancellationToken); - foreach (Dictionary _iter393 in AttributesList) + foreach (Dictionary _iter358 in AttributesList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter393.Count), cancellationToken); - foreach (string _iter394 in _iter393.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter358.Count), cancellationToken); + foreach (string _iter359 in _iter358.Keys) { - await oprot.WriteStringAsync(_iter394, cancellationToken); - await oprot.WriteStringAsync(_iter393[_iter394], cancellationToken); + await oprot.WriteStringAsync(_iter359, cancellationToken); + await oprot.WriteStringAsync(_iter358[_iter359], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -591,9 +548,9 @@ public TSCreateMultiTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, MeasurementAliasList.Count), cancellationToken); - foreach (string _iter395 in MeasurementAliasList) + foreach (string _iter360 in MeasurementAliasList) { - await oprot.WriteStringAsync(_iter395, cancellationToken); + await oprot.WriteStringAsync(_iter360, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCreateSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCreateSchemaTemplateReq.cs index 9f618da..8167de9 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCreateSchemaTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCreateSchemaTemplateReq.cs @@ -49,21 +49,6 @@ public TSCreateSchemaTemplateReq(long sessionId, string name, byte[] serializedT this.SerializedTemplate = serializedTemplate; } - public TSCreateSchemaTemplateReq DeepCopy() - { - var tmp405 = new TSCreateSchemaTemplateReq(); - tmp405.SessionId = this.SessionId; - if((Name != null)) - { - tmp405.Name = this.Name; - } - if((SerializedTemplate != null)) - { - tmp405.SerializedTemplate = this.SerializedTemplate.ToArray(); - } - return tmp405; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCreateTimeseriesReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCreateTimeseriesReq.cs index 7d65aa6..5614bc5 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSCreateTimeseriesReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSCreateTimeseriesReq.cs @@ -121,40 +121,6 @@ public TSCreateTimeseriesReq(long sessionId, string path, int dataType, int enco this.Compressor = compressor; } - public TSCreateTimeseriesReq DeepCopy() - { - var tmp261 = new TSCreateTimeseriesReq(); - tmp261.SessionId = this.SessionId; - if((Path != null)) - { - tmp261.Path = this.Path; - } - tmp261.DataType = this.DataType; - tmp261.Encoding = this.Encoding; - tmp261.Compressor = this.Compressor; - if((Props != null) && __isset.props) - { - tmp261.Props = this.Props.DeepCopy(); - } - tmp261.__isset.props = this.__isset.props; - if((Tags != null) && __isset.tags) - { - tmp261.Tags = this.Tags.DeepCopy(); - } - tmp261.__isset.tags = this.__isset.tags; - if((Attributes != null) && __isset.attributes) - { - tmp261.Attributes = this.Attributes.DeepCopy(); - } - tmp261.__isset.attributes = this.__isset.attributes; - if((MeasurementAlias != null) && __isset.measurementAlias) - { - tmp261.MeasurementAlias = this.MeasurementAlias; - } - tmp261.__isset.measurementAlias = this.__isset.measurementAlias; - return tmp261; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -236,15 +202,15 @@ public TSCreateTimeseriesReq DeepCopy() if (field.Type == TType.Map) { { - TMap _map262 = await iprot.ReadMapBeginAsync(cancellationToken); - Props = new Dictionary(_map262.Count); - for(int _i263 = 0; _i263 < _map262.Count; ++_i263) + TMap _map234 = await iprot.ReadMapBeginAsync(cancellationToken); + Props = new Dictionary(_map234.Count); + for(int _i235 = 0; _i235 < _map234.Count; ++_i235) { - string _key264; - string _val265; - _key264 = await iprot.ReadStringAsync(cancellationToken); - _val265 = await iprot.ReadStringAsync(cancellationToken); - Props[_key264] = _val265; + string _key236; + string _val237; + _key236 = await iprot.ReadStringAsync(cancellationToken); + _val237 = await iprot.ReadStringAsync(cancellationToken); + Props[_key236] = _val237; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -258,15 +224,15 @@ public TSCreateTimeseriesReq DeepCopy() if (field.Type == TType.Map) { { - TMap _map266 = await iprot.ReadMapBeginAsync(cancellationToken); - Tags = new Dictionary(_map266.Count); - for(int _i267 = 0; _i267 < _map266.Count; ++_i267) + TMap _map238 = await iprot.ReadMapBeginAsync(cancellationToken); + Tags = new Dictionary(_map238.Count); + for(int _i239 = 0; _i239 < _map238.Count; ++_i239) { - string _key268; - string _val269; - _key268 = await iprot.ReadStringAsync(cancellationToken); - _val269 = await iprot.ReadStringAsync(cancellationToken); - Tags[_key268] = _val269; + string _key240; + string _val241; + _key240 = await iprot.ReadStringAsync(cancellationToken); + _val241 = await iprot.ReadStringAsync(cancellationToken); + Tags[_key240] = _val241; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -280,15 +246,15 @@ public TSCreateTimeseriesReq DeepCopy() if (field.Type == TType.Map) { { - TMap _map270 = await iprot.ReadMapBeginAsync(cancellationToken); - Attributes = new Dictionary(_map270.Count); - for(int _i271 = 0; _i271 < _map270.Count; ++_i271) + TMap _map242 = await iprot.ReadMapBeginAsync(cancellationToken); + Attributes = new Dictionary(_map242.Count); + for(int _i243 = 0; _i243 < _map242.Count; ++_i243) { - string _key272; - string _val273; - _key272 = await iprot.ReadStringAsync(cancellationToken); - _val273 = await iprot.ReadStringAsync(cancellationToken); - Attributes[_key272] = _val273; + string _key244; + string _val245; + _key244 = await iprot.ReadStringAsync(cancellationToken); + _val245 = await iprot.ReadStringAsync(cancellationToken); + Attributes[_key244] = _val245; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -393,10 +359,10 @@ public TSCreateTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Props.Count), cancellationToken); - foreach (string _iter274 in Props.Keys) + foreach (string _iter246 in Props.Keys) { - await oprot.WriteStringAsync(_iter274, cancellationToken); - await oprot.WriteStringAsync(Props[_iter274], cancellationToken); + await oprot.WriteStringAsync(_iter246, cancellationToken); + await oprot.WriteStringAsync(Props[_iter246], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -410,10 +376,10 @@ public TSCreateTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Tags.Count), cancellationToken); - foreach (string _iter275 in Tags.Keys) + foreach (string _iter247 in Tags.Keys) { - await oprot.WriteStringAsync(_iter275, cancellationToken); - await oprot.WriteStringAsync(Tags[_iter275], cancellationToken); + await oprot.WriteStringAsync(_iter247, cancellationToken); + await oprot.WriteStringAsync(Tags[_iter247], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -427,10 +393,10 @@ public TSCreateTimeseriesReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Attributes.Count), cancellationToken); - foreach (string _iter276 in Attributes.Keys) + foreach (string _iter248 in Attributes.Keys) { - await oprot.WriteStringAsync(_iter276, cancellationToken); - await oprot.WriteStringAsync(Attributes[_iter276], cancellationToken); + await oprot.WriteStringAsync(_iter248, cancellationToken); + await oprot.WriteStringAsync(Attributes[_iter248], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSDeleteDataReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSDeleteDataReq.cs index 78cdcc7..db43550 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSDeleteDataReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSDeleteDataReq.cs @@ -52,19 +52,6 @@ public TSDeleteDataReq(long sessionId, List paths, long startTime, long this.EndTime = endTime; } - public TSDeleteDataReq DeepCopy() - { - var tmp255 = new TSDeleteDataReq(); - tmp255.SessionId = this.SessionId; - if((Paths != null)) - { - tmp255.Paths = this.Paths.DeepCopy(); - } - tmp255.StartTime = this.StartTime; - tmp255.EndTime = this.EndTime; - return tmp255; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -101,13 +88,13 @@ public TSDeleteDataReq DeepCopy() if (field.Type == TType.List) { { - TList _list256 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list256.Count); - for(int _i257 = 0; _i257 < _list256.Count; ++_i257) + TList _list229 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list229.Count); + for(int _i230 = 0; _i230 < _list229.Count; ++_i230) { - string _elem258; - _elem258 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem258); + string _elem231; + _elem231 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem231); } await iprot.ReadListEndAsync(cancellationToken); } @@ -194,9 +181,9 @@ public TSDeleteDataReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter259 in Paths) + foreach (string _iter232 in Paths) { - await oprot.WriteStringAsync(_iter259, cancellationToken); + await oprot.WriteStringAsync(_iter232, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSDropSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSDropSchemaTemplateReq.cs index 406cb92..8454585 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSDropSchemaTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSDropSchemaTemplateReq.cs @@ -46,17 +46,6 @@ public TSDropSchemaTemplateReq(long sessionId, string templateName) : this() this.TemplateName = templateName; } - public TSDropSchemaTemplateReq DeepCopy() - { - var tmp437 = new TSDropSchemaTemplateReq(); - tmp437.SessionId = this.SessionId; - if((TemplateName != null)) - { - tmp437.TemplateName = this.TemplateName; - } - return tmp437; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSExecuteBatchStatementReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSExecuteBatchStatementReq.cs index 6aeea3f..65339eb 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSExecuteBatchStatementReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSExecuteBatchStatementReq.cs @@ -46,17 +46,6 @@ public TSExecuteBatchStatementReq(long sessionId, List statements) : thi this.Statements = statements; } - public TSExecuteBatchStatementReq DeepCopy() - { - var tmp75 = new TSExecuteBatchStatementReq(); - tmp75.SessionId = this.SessionId; - if((Statements != null)) - { - tmp75.Statements = this.Statements.DeepCopy(); - } - return tmp75; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -91,13 +80,13 @@ public TSExecuteBatchStatementReq DeepCopy() if (field.Type == TType.List) { { - TList _list76 = await iprot.ReadListBeginAsync(cancellationToken); - Statements = new List(_list76.Count); - for(int _i77 = 0; _i77 < _list76.Count; ++_i77) + TList _list67 = await iprot.ReadListBeginAsync(cancellationToken); + Statements = new List(_list67.Count); + for(int _i68 = 0; _i68 < _list67.Count; ++_i68) { - string _elem78; - _elem78 = await iprot.ReadStringAsync(cancellationToken); - Statements.Add(_elem78); + string _elem69; + _elem69 = await iprot.ReadStringAsync(cancellationToken); + Statements.Add(_elem69); } await iprot.ReadListEndAsync(cancellationToken); } @@ -154,9 +143,9 @@ public TSExecuteBatchStatementReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Statements.Count), cancellationToken); - foreach (string _iter79 in Statements) + foreach (string _iter70 in Statements) { - await oprot.WriteStringAsync(_iter79, cancellationToken); + await oprot.WriteStringAsync(_iter70, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementReq.cs index 4dae933..c626b3e 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementReq.cs @@ -115,38 +115,6 @@ public TSExecuteStatementReq(long sessionId, string statement, long statementId) this.StatementId = statementId; } - public TSExecuteStatementReq DeepCopy() - { - var tmp73 = new TSExecuteStatementReq(); - tmp73.SessionId = this.SessionId; - if((Statement != null)) - { - tmp73.Statement = this.Statement; - } - tmp73.StatementId = this.StatementId; - if(__isset.fetchSize) - { - tmp73.FetchSize = this.FetchSize; - } - tmp73.__isset.fetchSize = this.__isset.fetchSize; - if(__isset.timeout) - { - tmp73.Timeout = this.Timeout; - } - tmp73.__isset.timeout = this.__isset.timeout; - if(__isset.enableRedirectQuery) - { - tmp73.EnableRedirectQuery = this.EnableRedirectQuery; - } - tmp73.__isset.enableRedirectQuery = this.__isset.enableRedirectQuery; - if(__isset.jdbcQuery) - { - tmp73.JdbcQuery = this.JdbcQuery; - } - tmp73.__isset.jdbcQuery = this.__isset.jdbcQuery; - return tmp73; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementResp.cs index 790850d..7a86333 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementResp.cs @@ -244,81 +244,6 @@ public TSExecuteStatementResp(TSStatus status) : this() this.Status = status; } - public TSExecuteStatementResp DeepCopy() - { - var tmp30 = new TSExecuteStatementResp(); - if((Status != null)) - { - tmp30.Status = (TSStatus)this.Status.DeepCopy(); - } - if(__isset.queryId) - { - tmp30.QueryId = this.QueryId; - } - tmp30.__isset.queryId = this.__isset.queryId; - if((Columns != null) && __isset.columns) - { - tmp30.Columns = this.Columns.DeepCopy(); - } - tmp30.__isset.columns = this.__isset.columns; - if((OperationType != null) && __isset.operationType) - { - tmp30.OperationType = this.OperationType; - } - tmp30.__isset.operationType = this.__isset.operationType; - if(__isset.ignoreTimeStamp) - { - tmp30.IgnoreTimeStamp = this.IgnoreTimeStamp; - } - tmp30.__isset.ignoreTimeStamp = this.__isset.ignoreTimeStamp; - if((DataTypeList != null) && __isset.dataTypeList) - { - tmp30.DataTypeList = this.DataTypeList.DeepCopy(); - } - tmp30.__isset.dataTypeList = this.__isset.dataTypeList; - if((QueryDataSet != null) && __isset.queryDataSet) - { - tmp30.QueryDataSet = (TSQueryDataSet)this.QueryDataSet.DeepCopy(); - } - tmp30.__isset.queryDataSet = this.__isset.queryDataSet; - if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) - { - tmp30.NonAlignQueryDataSet = (TSQueryNonAlignDataSet)this.NonAlignQueryDataSet.DeepCopy(); - } - tmp30.__isset.nonAlignQueryDataSet = this.__isset.nonAlignQueryDataSet; - if((ColumnNameIndexMap != null) && __isset.columnNameIndexMap) - { - tmp30.ColumnNameIndexMap = this.ColumnNameIndexMap.DeepCopy(); - } - tmp30.__isset.columnNameIndexMap = this.__isset.columnNameIndexMap; - if((SgColumns != null) && __isset.sgColumns) - { - tmp30.SgColumns = this.SgColumns.DeepCopy(); - } - tmp30.__isset.sgColumns = this.__isset.sgColumns; - if((AliasColumns != null) && __isset.aliasColumns) - { - tmp30.AliasColumns = this.AliasColumns.DeepCopy(); - } - tmp30.__isset.aliasColumns = this.__isset.aliasColumns; - if((TracingInfo != null) && __isset.tracingInfo) - { - tmp30.TracingInfo = (TSTracingInfo)this.TracingInfo.DeepCopy(); - } - tmp30.__isset.tracingInfo = this.__isset.tracingInfo; - if((QueryResult != null) && __isset.queryResult) - { - tmp30.QueryResult = this.QueryResult.DeepCopy(); - } - tmp30.__isset.queryResult = this.__isset.queryResult; - if(__isset.moreData) - { - tmp30.MoreData = this.MoreData; - } - tmp30.__isset.moreData = this.__isset.moreData; - return tmp30; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -363,13 +288,13 @@ public TSExecuteStatementResp DeepCopy() if (field.Type == TType.List) { { - TList _list31 = await iprot.ReadListBeginAsync(cancellationToken); - Columns = new List(_list31.Count); - for(int _i32 = 0; _i32 < _list31.Count; ++_i32) + TList _list27 = await iprot.ReadListBeginAsync(cancellationToken); + Columns = new List(_list27.Count); + for(int _i28 = 0; _i28 < _list27.Count; ++_i28) { - string _elem33; - _elem33 = await iprot.ReadStringAsync(cancellationToken); - Columns.Add(_elem33); + string _elem29; + _elem29 = await iprot.ReadStringAsync(cancellationToken); + Columns.Add(_elem29); } await iprot.ReadListEndAsync(cancellationToken); } @@ -403,13 +328,13 @@ public TSExecuteStatementResp DeepCopy() if (field.Type == TType.List) { { - TList _list34 = await iprot.ReadListBeginAsync(cancellationToken); - DataTypeList = new List(_list34.Count); - for(int _i35 = 0; _i35 < _list34.Count; ++_i35) + TList _list30 = await iprot.ReadListBeginAsync(cancellationToken); + DataTypeList = new List(_list30.Count); + for(int _i31 = 0; _i31 < _list30.Count; ++_i31) { - string _elem36; - _elem36 = await iprot.ReadStringAsync(cancellationToken); - DataTypeList.Add(_elem36); + string _elem32; + _elem32 = await iprot.ReadStringAsync(cancellationToken); + DataTypeList.Add(_elem32); } await iprot.ReadListEndAsync(cancellationToken); } @@ -445,15 +370,15 @@ public TSExecuteStatementResp DeepCopy() if (field.Type == TType.Map) { { - TMap _map37 = await iprot.ReadMapBeginAsync(cancellationToken); - ColumnNameIndexMap = new Dictionary(_map37.Count); - for(int _i38 = 0; _i38 < _map37.Count; ++_i38) + TMap _map33 = await iprot.ReadMapBeginAsync(cancellationToken); + ColumnNameIndexMap = new Dictionary(_map33.Count); + for(int _i34 = 0; _i34 < _map33.Count; ++_i34) { - string _key39; - int _val40; - _key39 = await iprot.ReadStringAsync(cancellationToken); - _val40 = await iprot.ReadI32Async(cancellationToken); - ColumnNameIndexMap[_key39] = _val40; + string _key35; + int _val36; + _key35 = await iprot.ReadStringAsync(cancellationToken); + _val36 = await iprot.ReadI32Async(cancellationToken); + ColumnNameIndexMap[_key35] = _val36; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -467,13 +392,13 @@ public TSExecuteStatementResp DeepCopy() if (field.Type == TType.List) { { - TList _list41 = await iprot.ReadListBeginAsync(cancellationToken); - SgColumns = new List(_list41.Count); - for(int _i42 = 0; _i42 < _list41.Count; ++_i42) + TList _list37 = await iprot.ReadListBeginAsync(cancellationToken); + SgColumns = new List(_list37.Count); + for(int _i38 = 0; _i38 < _list37.Count; ++_i38) { - string _elem43; - _elem43 = await iprot.ReadStringAsync(cancellationToken); - SgColumns.Add(_elem43); + string _elem39; + _elem39 = await iprot.ReadStringAsync(cancellationToken); + SgColumns.Add(_elem39); } await iprot.ReadListEndAsync(cancellationToken); } @@ -487,13 +412,13 @@ public TSExecuteStatementResp DeepCopy() if (field.Type == TType.List) { { - TList _list44 = await iprot.ReadListBeginAsync(cancellationToken); - AliasColumns = new List(_list44.Count); - for(int _i45 = 0; _i45 < _list44.Count; ++_i45) + TList _list40 = await iprot.ReadListBeginAsync(cancellationToken); + AliasColumns = new List(_list40.Count); + for(int _i41 = 0; _i41 < _list40.Count; ++_i41) { - sbyte _elem46; - _elem46 = await iprot.ReadByteAsync(cancellationToken); - AliasColumns.Add(_elem46); + sbyte _elem42; + _elem42 = await iprot.ReadByteAsync(cancellationToken); + AliasColumns.Add(_elem42); } await iprot.ReadListEndAsync(cancellationToken); } @@ -518,13 +443,13 @@ public TSExecuteStatementResp DeepCopy() if (field.Type == TType.List) { { - TList _list47 = await iprot.ReadListBeginAsync(cancellationToken); - QueryResult = new List(_list47.Count); - for(int _i48 = 0; _i48 < _list47.Count; ++_i48) + TList _list43 = await iprot.ReadListBeginAsync(cancellationToken); + QueryResult = new List(_list43.Count); + for(int _i44 = 0; _i44 < _list43.Count; ++_i44) { - byte[] _elem49; - _elem49 = await iprot.ReadBinaryAsync(cancellationToken); - QueryResult.Add(_elem49); + byte[] _elem45; + _elem45 = await iprot.ReadBinaryAsync(cancellationToken); + QueryResult.Add(_elem45); } await iprot.ReadListEndAsync(cancellationToken); } @@ -598,9 +523,9 @@ public TSExecuteStatementResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Columns.Count), cancellationToken); - foreach (string _iter50 in Columns) + foreach (string _iter46 in Columns) { - await oprot.WriteStringAsync(_iter50, cancellationToken); + await oprot.WriteStringAsync(_iter46, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -632,9 +557,9 @@ public TSExecuteStatementResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, DataTypeList.Count), cancellationToken); - foreach (string _iter51 in DataTypeList) + foreach (string _iter47 in DataTypeList) { - await oprot.WriteStringAsync(_iter51, cancellationToken); + await oprot.WriteStringAsync(_iter47, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -666,10 +591,10 @@ public TSExecuteStatementResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.I32, ColumnNameIndexMap.Count), cancellationToken); - foreach (string _iter52 in ColumnNameIndexMap.Keys) + foreach (string _iter48 in ColumnNameIndexMap.Keys) { - await oprot.WriteStringAsync(_iter52, cancellationToken); - await oprot.WriteI32Async(ColumnNameIndexMap[_iter52], cancellationToken); + await oprot.WriteStringAsync(_iter48, cancellationToken); + await oprot.WriteI32Async(ColumnNameIndexMap[_iter48], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -683,9 +608,9 @@ public TSExecuteStatementResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, SgColumns.Count), cancellationToken); - foreach (string _iter53 in SgColumns) + foreach (string _iter49 in SgColumns) { - await oprot.WriteStringAsync(_iter53, cancellationToken); + await oprot.WriteStringAsync(_iter49, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -699,9 +624,9 @@ public TSExecuteStatementResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Byte, AliasColumns.Count), cancellationToken); - foreach (sbyte _iter54 in AliasColumns) + foreach (sbyte _iter50 in AliasColumns) { - await oprot.WriteByteAsync(_iter54, cancellationToken); + await oprot.WriteByteAsync(_iter50, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -724,9 +649,9 @@ public TSExecuteStatementResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, QueryResult.Count), cancellationToken); - foreach (byte[] _iter55 in QueryResult) + foreach (byte[] _iter51 in QueryResult) { - await oprot.WriteBinaryAsync(_iter55, cancellationToken); + await oprot.WriteBinaryAsync(_iter51, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOneDeviceReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOneDeviceReq.cs index 511a42e..b1ce861 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOneDeviceReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOneDeviceReq.cs @@ -136,51 +136,6 @@ public TSFastLastDataQueryForOneDeviceReq(long sessionId, string db, string devi this.StatementId = statementId; } - public TSFastLastDataQueryForOneDeviceReq DeepCopy() - { - var tmp330 = new TSFastLastDataQueryForOneDeviceReq(); - tmp330.SessionId = this.SessionId; - if((Db != null)) - { - tmp330.Db = this.Db; - } - if((DeviceId != null)) - { - tmp330.DeviceId = this.DeviceId; - } - if((Sensors != null)) - { - tmp330.Sensors = this.Sensors.DeepCopy(); - } - if(__isset.fetchSize) - { - tmp330.FetchSize = this.FetchSize; - } - tmp330.__isset.fetchSize = this.__isset.fetchSize; - tmp330.StatementId = this.StatementId; - if(__isset.enableRedirectQuery) - { - tmp330.EnableRedirectQuery = this.EnableRedirectQuery; - } - tmp330.__isset.enableRedirectQuery = this.__isset.enableRedirectQuery; - if(__isset.jdbcQuery) - { - tmp330.JdbcQuery = this.JdbcQuery; - } - tmp330.__isset.jdbcQuery = this.__isset.jdbcQuery; - if(__isset.timeout) - { - tmp330.Timeout = this.Timeout; - } - tmp330.__isset.timeout = this.__isset.timeout; - if(__isset.legalPathNodes) - { - tmp330.LegalPathNodes = this.LegalPathNodes; - } - tmp330.__isset.legalPathNodes = this.__isset.legalPathNodes; - return tmp330; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -240,13 +195,13 @@ public TSFastLastDataQueryForOneDeviceReq DeepCopy() if (field.Type == TType.List) { { - TList _list331 = await iprot.ReadListBeginAsync(cancellationToken); - Sensors = new List(_list331.Count); - for(int _i332 = 0; _i332 < _list331.Count; ++_i332) + TList _list299 = await iprot.ReadListBeginAsync(cancellationToken); + Sensors = new List(_list299.Count); + for(int _i300 = 0; _i300 < _list299.Count; ++_i300) { - string _elem333; - _elem333 = await iprot.ReadStringAsync(cancellationToken); - Sensors.Add(_elem333); + string _elem301; + _elem301 = await iprot.ReadStringAsync(cancellationToken); + Sensors.Add(_elem301); } await iprot.ReadListEndAsync(cancellationToken); } @@ -394,9 +349,9 @@ public TSFastLastDataQueryForOneDeviceReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Sensors.Count), cancellationToken); - foreach (string _iter334 in Sensors) + foreach (string _iter302 in Sensors) { - await oprot.WriteStringAsync(_iter334, cancellationToken); + await oprot.WriteStringAsync(_iter302, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataReq.cs index 0e37b8a..630fab7 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataReq.cs @@ -67,22 +67,6 @@ public TSFetchMetadataReq(long sessionId, string type) : this() this.Type = type; } - public TSFetchMetadataReq DeepCopy() - { - var tmp101 = new TSFetchMetadataReq(); - tmp101.SessionId = this.SessionId; - if((Type != null)) - { - tmp101.Type = this.Type; - } - if((ColumnPath != null) && __isset.columnPath) - { - tmp101.ColumnPath = this.ColumnPath; - } - tmp101.__isset.columnPath = this.__isset.columnPath; - return tmp101; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataResp.cs index 0561acb..b6df764 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataResp.cs @@ -94,31 +94,6 @@ public TSFetchMetadataResp(TSStatus status) : this() this.Status = status; } - public TSFetchMetadataResp DeepCopy() - { - var tmp95 = new TSFetchMetadataResp(); - if((Status != null)) - { - tmp95.Status = (TSStatus)this.Status.DeepCopy(); - } - if((MetadataInJson != null) && __isset.metadataInJson) - { - tmp95.MetadataInJson = this.MetadataInJson; - } - tmp95.__isset.metadataInJson = this.__isset.metadataInJson; - if((ColumnsList != null) && __isset.columnsList) - { - tmp95.ColumnsList = this.ColumnsList.DeepCopy(); - } - tmp95.__isset.columnsList = this.__isset.columnsList; - if((DataType != null) && __isset.dataType) - { - tmp95.DataType = this.DataType; - } - tmp95.__isset.dataType = this.__isset.dataType; - return tmp95; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -163,13 +138,13 @@ public TSFetchMetadataResp DeepCopy() if (field.Type == TType.List) { { - TList _list96 = await iprot.ReadListBeginAsync(cancellationToken); - ColumnsList = new List(_list96.Count); - for(int _i97 = 0; _i97 < _list96.Count; ++_i97) + TList _list81 = await iprot.ReadListBeginAsync(cancellationToken); + ColumnsList = new List(_list81.Count); + for(int _i82 = 0; _i82 < _list81.Count; ++_i82) { - string _elem98; - _elem98 = await iprot.ReadStringAsync(cancellationToken); - ColumnsList.Add(_elem98); + string _elem83; + _elem83 = await iprot.ReadStringAsync(cancellationToken); + ColumnsList.Add(_elem83); } await iprot.ReadListEndAsync(cancellationToken); } @@ -243,9 +218,9 @@ public TSFetchMetadataResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, ColumnsList.Count), cancellationToken); - foreach (string _iter99 in ColumnsList) + foreach (string _iter84 in ColumnsList) { - await oprot.WriteStringAsync(_iter99, cancellationToken); + await oprot.WriteStringAsync(_iter84, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsReq.cs index 89494bc..828f47d 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsReq.cs @@ -76,25 +76,6 @@ public TSFetchResultsReq(long sessionId, string statement, int fetchSize, long q this.IsAlign = isAlign; } - public TSFetchResultsReq DeepCopy() - { - var tmp87 = new TSFetchResultsReq(); - tmp87.SessionId = this.SessionId; - if((Statement != null)) - { - tmp87.Statement = this.Statement; - } - tmp87.FetchSize = this.FetchSize; - tmp87.QueryId = this.QueryId; - tmp87.IsAlign = this.IsAlign; - if(__isset.timeout) - { - tmp87.Timeout = this.Timeout; - } - tmp87.__isset.timeout = this.__isset.timeout; - return tmp87; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsResp.cs index 5b1ad02..657cc6a 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsResp.cs @@ -115,38 +115,6 @@ public TSFetchResultsResp(TSStatus status, bool hasResultSet, bool isAlign) : th this.IsAlign = isAlign; } - public TSFetchResultsResp DeepCopy() - { - var tmp89 = new TSFetchResultsResp(); - if((Status != null)) - { - tmp89.Status = (TSStatus)this.Status.DeepCopy(); - } - tmp89.HasResultSet = this.HasResultSet; - tmp89.IsAlign = this.IsAlign; - if((QueryDataSet != null) && __isset.queryDataSet) - { - tmp89.QueryDataSet = (TSQueryDataSet)this.QueryDataSet.DeepCopy(); - } - tmp89.__isset.queryDataSet = this.__isset.queryDataSet; - if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) - { - tmp89.NonAlignQueryDataSet = (TSQueryNonAlignDataSet)this.NonAlignQueryDataSet.DeepCopy(); - } - tmp89.__isset.nonAlignQueryDataSet = this.__isset.nonAlignQueryDataSet; - if((QueryResult != null) && __isset.queryResult) - { - tmp89.QueryResult = this.QueryResult.DeepCopy(); - } - tmp89.__isset.queryResult = this.__isset.queryResult; - if(__isset.moreData) - { - tmp89.MoreData = this.MoreData; - } - tmp89.__isset.moreData = this.__isset.moreData; - return tmp89; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -227,13 +195,13 @@ public TSFetchResultsResp DeepCopy() if (field.Type == TType.List) { { - TList _list90 = await iprot.ReadListBeginAsync(cancellationToken); - QueryResult = new List(_list90.Count); - for(int _i91 = 0; _i91 < _list90.Count; ++_i91) + TList _list76 = await iprot.ReadListBeginAsync(cancellationToken); + QueryResult = new List(_list76.Count); + for(int _i77 = 0; _i77 < _list76.Count; ++_i77) { - byte[] _elem92; - _elem92 = await iprot.ReadBinaryAsync(cancellationToken); - QueryResult.Add(_elem92); + byte[] _elem78; + _elem78 = await iprot.ReadBinaryAsync(cancellationToken); + QueryResult.Add(_elem78); } await iprot.ReadListEndAsync(cancellationToken); } @@ -336,9 +304,9 @@ public TSFetchResultsResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, QueryResult.Count), cancellationToken); - foreach (byte[] _iter93 in QueryResult) + foreach (byte[] _iter79 in QueryResult) { - await oprot.WriteBinaryAsync(_iter93, cancellationToken); + await oprot.WriteBinaryAsync(_iter79, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSGetOperationStatusReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSGetOperationStatusReq.cs index 2da3b04..7369e01 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSGetOperationStatusReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSGetOperationStatusReq.cs @@ -46,14 +46,6 @@ public TSGetOperationStatusReq(long sessionId, long queryId) : this() this.QueryId = queryId; } - public TSGetOperationStatusReq DeepCopy() - { - var tmp81 = new TSGetOperationStatusReq(); - tmp81.SessionId = this.SessionId; - tmp81.QueryId = this.QueryId; - return tmp81; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSGetTimeZoneResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSGetTimeZoneResp.cs index 0327bcf..e10c613 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSGetTimeZoneResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSGetTimeZoneResp.cs @@ -46,20 +46,6 @@ public TSGetTimeZoneResp(TSStatus status, string timeZone) : this() this.TimeZone = timeZone; } - public TSGetTimeZoneResp DeepCopy() - { - var tmp103 = new TSGetTimeZoneResp(); - if((Status != null)) - { - tmp103.Status = (TSStatus)this.Status.DeepCopy(); - } - if((TimeZone != null)) - { - tmp103.TimeZone = this.TimeZone; - } - return tmp103; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSGroupByQueryIntervalReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSGroupByQueryIntervalReq.cs index 6ced16a..5f43094 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSGroupByQueryIntervalReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSGroupByQueryIntervalReq.cs @@ -158,54 +158,6 @@ public TSGroupByQueryIntervalReq(long sessionId, long statementId, string device this.AggregationType = aggregationType; } - public TSGroupByQueryIntervalReq DeepCopy() - { - var tmp346 = new TSGroupByQueryIntervalReq(); - tmp346.SessionId = this.SessionId; - tmp346.StatementId = this.StatementId; - if((Device != null)) - { - tmp346.Device = this.Device; - } - if((Measurement != null)) - { - tmp346.Measurement = this.Measurement; - } - tmp346.DataType = this.DataType; - tmp346.AggregationType = this.AggregationType; - if((Database != null) && __isset.database) - { - tmp346.Database = this.Database; - } - tmp346.__isset.database = this.__isset.database; - if(__isset.startTime) - { - tmp346.StartTime = this.StartTime; - } - tmp346.__isset.startTime = this.__isset.startTime; - if(__isset.endTime) - { - tmp346.EndTime = this.EndTime; - } - tmp346.__isset.endTime = this.__isset.endTime; - if(__isset.interval) - { - tmp346.Interval = this.Interval; - } - tmp346.__isset.interval = this.__isset.interval; - if(__isset.fetchSize) - { - tmp346.FetchSize = this.FetchSize; - } - tmp346.__isset.fetchSize = this.__isset.fetchSize; - if(__isset.timeout) - { - tmp346.Timeout = this.Timeout; - } - tmp346.__isset.timeout = this.__isset.timeout; - return tmp346; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordReq.cs index 1699a35..8a8c5db 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordReq.cs @@ -76,31 +76,6 @@ public TSInsertRecordReq(long sessionId, string prefixPath, List measure this.Timestamp = timestamp; } - public TSInsertRecordReq DeepCopy() - { - var tmp107 = new TSInsertRecordReq(); - tmp107.SessionId = this.SessionId; - if((PrefixPath != null)) - { - tmp107.PrefixPath = this.PrefixPath; - } - if((Measurements != null)) - { - tmp107.Measurements = this.Measurements.DeepCopy(); - } - if((Values != null)) - { - tmp107.Values = this.Values.ToArray(); - } - tmp107.Timestamp = this.Timestamp; - if(__isset.isAligned) - { - tmp107.IsAligned = this.IsAligned; - } - tmp107.__isset.isAligned = this.__isset.isAligned; - return tmp107; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -149,13 +124,13 @@ public TSInsertRecordReq DeepCopy() if (field.Type == TType.List) { { - TList _list108 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list108.Count); - for(int _i109 = 0; _i109 < _list108.Count; ++_i109) + TList _list89 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list89.Count); + for(int _i90 = 0; _i90 < _list89.Count; ++_i90) { - string _elem110; - _elem110 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem110); + string _elem91; + _elem91 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem91); } await iprot.ReadListEndAsync(cancellationToken); } @@ -265,9 +240,9 @@ public TSInsertRecordReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter111 in Measurements) + foreach (string _iter92 in Measurements) { - await oprot.WriteStringAsync(_iter111, cancellationToken); + await oprot.WriteStringAsync(_iter92, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsOfOneDeviceReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsOfOneDeviceReq.cs index 72468cd..4de5f13 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsOfOneDeviceReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsOfOneDeviceReq.cs @@ -76,34 +76,6 @@ public TSInsertRecordsOfOneDeviceReq(long sessionId, string prefixPath, List>(_list190.Count); - for(int _i191 = 0; _i191 < _list190.Count; ++_i191) + TList _list166 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list166.Count); + for(int _i167 = 0; _i167 < _list166.Count; ++_i167) { - List _elem192; + List _elem168; { - TList _list193 = await iprot.ReadListBeginAsync(cancellationToken); - _elem192 = new List(_list193.Count); - for(int _i194 = 0; _i194 < _list193.Count; ++_i194) + TList _list169 = await iprot.ReadListBeginAsync(cancellationToken); + _elem168 = new List(_list169.Count); + for(int _i170 = 0; _i170 < _list169.Count; ++_i170) { - string _elem195; - _elem195 = await iprot.ReadStringAsync(cancellationToken); - _elem192.Add(_elem195); + string _elem171; + _elem171 = await iprot.ReadStringAsync(cancellationToken); + _elem168.Add(_elem171); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem192); + MeasurementsList.Add(_elem168); } await iprot.ReadListEndAsync(cancellationToken); } @@ -183,13 +155,13 @@ public TSInsertRecordsOfOneDeviceReq DeepCopy() if (field.Type == TType.List) { { - TList _list196 = await iprot.ReadListBeginAsync(cancellationToken); - ValuesList = new List(_list196.Count); - for(int _i197 = 0; _i197 < _list196.Count; ++_i197) + TList _list172 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List(_list172.Count); + for(int _i173 = 0; _i173 < _list172.Count; ++_i173) { - byte[] _elem198; - _elem198 = await iprot.ReadBinaryAsync(cancellationToken); - ValuesList.Add(_elem198); + byte[] _elem174; + _elem174 = await iprot.ReadBinaryAsync(cancellationToken); + ValuesList.Add(_elem174); } await iprot.ReadListEndAsync(cancellationToken); } @@ -204,13 +176,13 @@ public TSInsertRecordsOfOneDeviceReq DeepCopy() if (field.Type == TType.List) { { - TList _list199 = await iprot.ReadListBeginAsync(cancellationToken); - Timestamps = new List(_list199.Count); - for(int _i200 = 0; _i200 < _list199.Count; ++_i200) + TList _list175 = await iprot.ReadListBeginAsync(cancellationToken); + Timestamps = new List(_list175.Count); + for(int _i176 = 0; _i176 < _list175.Count; ++_i176) { - long _elem201; - _elem201 = await iprot.ReadI64Async(cancellationToken); - Timestamps.Add(_elem201); + long _elem177; + _elem177 = await iprot.ReadI64Async(cancellationToken); + Timestamps.Add(_elem177); } await iprot.ReadListEndAsync(cancellationToken); } @@ -298,13 +270,13 @@ public TSInsertRecordsOfOneDeviceReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); - foreach (List _iter202 in MeasurementsList) + foreach (List _iter178 in MeasurementsList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter202.Count), cancellationToken); - foreach (string _iter203 in _iter202) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter178.Count), cancellationToken); + foreach (string _iter179 in _iter178) { - await oprot.WriteStringAsync(_iter203, cancellationToken); + await oprot.WriteStringAsync(_iter179, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -321,9 +293,9 @@ public TSInsertRecordsOfOneDeviceReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, ValuesList.Count), cancellationToken); - foreach (byte[] _iter204 in ValuesList) + foreach (byte[] _iter180 in ValuesList) { - await oprot.WriteBinaryAsync(_iter204, cancellationToken); + await oprot.WriteBinaryAsync(_iter180, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -337,9 +309,9 @@ public TSInsertRecordsOfOneDeviceReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); - foreach (long _iter205 in Timestamps) + foreach (long _iter181 in Timestamps) { - await oprot.WriteI64Async(_iter205, cancellationToken); + await oprot.WriteI64Async(_iter181, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsReq.cs index 5f1d8dc..524756c 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsReq.cs @@ -76,34 +76,6 @@ public TSInsertRecordsReq(long sessionId, List prefixPaths, List(_list168.Count); - for(int _i169 = 0; _i169 < _list168.Count; ++_i169) + TList _list145 = await iprot.ReadListBeginAsync(cancellationToken); + PrefixPaths = new List(_list145.Count); + for(int _i146 = 0; _i146 < _list145.Count; ++_i146) { - string _elem170; - _elem170 = await iprot.ReadStringAsync(cancellationToken); - PrefixPaths.Add(_elem170); + string _elem147; + _elem147 = await iprot.ReadStringAsync(cancellationToken); + PrefixPaths.Add(_elem147); } await iprot.ReadListEndAsync(cancellationToken); } @@ -162,23 +134,23 @@ public TSInsertRecordsReq DeepCopy() if (field.Type == TType.List) { { - TList _list171 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementsList = new List>(_list171.Count); - for(int _i172 = 0; _i172 < _list171.Count; ++_i172) + TList _list148 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list148.Count); + for(int _i149 = 0; _i149 < _list148.Count; ++_i149) { - List _elem173; + List _elem150; { - TList _list174 = await iprot.ReadListBeginAsync(cancellationToken); - _elem173 = new List(_list174.Count); - for(int _i175 = 0; _i175 < _list174.Count; ++_i175) + TList _list151 = await iprot.ReadListBeginAsync(cancellationToken); + _elem150 = new List(_list151.Count); + for(int _i152 = 0; _i152 < _list151.Count; ++_i152) { - string _elem176; - _elem176 = await iprot.ReadStringAsync(cancellationToken); - _elem173.Add(_elem176); + string _elem153; + _elem153 = await iprot.ReadStringAsync(cancellationToken); + _elem150.Add(_elem153); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem173); + MeasurementsList.Add(_elem150); } await iprot.ReadListEndAsync(cancellationToken); } @@ -193,13 +165,13 @@ public TSInsertRecordsReq DeepCopy() if (field.Type == TType.List) { { - TList _list177 = await iprot.ReadListBeginAsync(cancellationToken); - ValuesList = new List(_list177.Count); - for(int _i178 = 0; _i178 < _list177.Count; ++_i178) + TList _list154 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List(_list154.Count); + for(int _i155 = 0; _i155 < _list154.Count; ++_i155) { - byte[] _elem179; - _elem179 = await iprot.ReadBinaryAsync(cancellationToken); - ValuesList.Add(_elem179); + byte[] _elem156; + _elem156 = await iprot.ReadBinaryAsync(cancellationToken); + ValuesList.Add(_elem156); } await iprot.ReadListEndAsync(cancellationToken); } @@ -214,13 +186,13 @@ public TSInsertRecordsReq DeepCopy() if (field.Type == TType.List) { { - TList _list180 = await iprot.ReadListBeginAsync(cancellationToken); - Timestamps = new List(_list180.Count); - for(int _i181 = 0; _i181 < _list180.Count; ++_i181) + TList _list157 = await iprot.ReadListBeginAsync(cancellationToken); + Timestamps = new List(_list157.Count); + for(int _i158 = 0; _i158 < _list157.Count; ++_i158) { - long _elem182; - _elem182 = await iprot.ReadI64Async(cancellationToken); - Timestamps.Add(_elem182); + long _elem159; + _elem159 = await iprot.ReadI64Async(cancellationToken); + Timestamps.Add(_elem159); } await iprot.ReadListEndAsync(cancellationToken); } @@ -299,9 +271,9 @@ public TSInsertRecordsReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, PrefixPaths.Count), cancellationToken); - foreach (string _iter183 in PrefixPaths) + foreach (string _iter160 in PrefixPaths) { - await oprot.WriteStringAsync(_iter183, cancellationToken); + await oprot.WriteStringAsync(_iter160, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -315,13 +287,13 @@ public TSInsertRecordsReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); - foreach (List _iter184 in MeasurementsList) + foreach (List _iter161 in MeasurementsList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter184.Count), cancellationToken); - foreach (string _iter185 in _iter184) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter161.Count), cancellationToken); + foreach (string _iter162 in _iter161) { - await oprot.WriteStringAsync(_iter185, cancellationToken); + await oprot.WriteStringAsync(_iter162, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -338,9 +310,9 @@ public TSInsertRecordsReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, ValuesList.Count), cancellationToken); - foreach (byte[] _iter186 in ValuesList) + foreach (byte[] _iter163 in ValuesList) { - await oprot.WriteBinaryAsync(_iter186, cancellationToken); + await oprot.WriteBinaryAsync(_iter163, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -354,9 +326,9 @@ public TSInsertRecordsReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); - foreach (long _iter187 in Timestamps) + foreach (long _iter164 in Timestamps) { - await oprot.WriteI64Async(_iter187, cancellationToken); + await oprot.WriteI64Async(_iter164, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordReq.cs index 74f3de3..8d4f58a 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordReq.cs @@ -91,36 +91,6 @@ public TSInsertStringRecordReq(long sessionId, string prefixPath, List m this.Timestamp = timestamp; } - public TSInsertStringRecordReq DeepCopy() - { - var tmp113 = new TSInsertStringRecordReq(); - tmp113.SessionId = this.SessionId; - if((PrefixPath != null)) - { - tmp113.PrefixPath = this.PrefixPath; - } - if((Measurements != null)) - { - tmp113.Measurements = this.Measurements.DeepCopy(); - } - if((Values != null)) - { - tmp113.Values = this.Values.DeepCopy(); - } - tmp113.Timestamp = this.Timestamp; - if(__isset.isAligned) - { - tmp113.IsAligned = this.IsAligned; - } - tmp113.__isset.isAligned = this.__isset.isAligned; - if(__isset.timeout) - { - tmp113.Timeout = this.Timeout; - } - tmp113.__isset.timeout = this.__isset.timeout; - return tmp113; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -169,13 +139,13 @@ public TSInsertStringRecordReq DeepCopy() if (field.Type == TType.List) { { - TList _list114 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list114.Count); - for(int _i115 = 0; _i115 < _list114.Count; ++_i115) + TList _list94 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list94.Count); + for(int _i95 = 0; _i95 < _list94.Count; ++_i95) { - string _elem116; - _elem116 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem116); + string _elem96; + _elem96 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem96); } await iprot.ReadListEndAsync(cancellationToken); } @@ -190,13 +160,13 @@ public TSInsertStringRecordReq DeepCopy() if (field.Type == TType.List) { { - TList _list117 = await iprot.ReadListBeginAsync(cancellationToken); - Values = new List(_list117.Count); - for(int _i118 = 0; _i118 < _list117.Count; ++_i118) + TList _list97 = await iprot.ReadListBeginAsync(cancellationToken); + Values = new List(_list97.Count); + for(int _i98 = 0; _i98 < _list97.Count; ++_i98) { - string _elem119; - _elem119 = await iprot.ReadStringAsync(cancellationToken); - Values.Add(_elem119); + string _elem99; + _elem99 = await iprot.ReadStringAsync(cancellationToken); + Values.Add(_elem99); } await iprot.ReadListEndAsync(cancellationToken); } @@ -305,9 +275,9 @@ public TSInsertStringRecordReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter120 in Measurements) + foreach (string _iter100 in Measurements) { - await oprot.WriteStringAsync(_iter120, cancellationToken); + await oprot.WriteStringAsync(_iter100, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -321,9 +291,9 @@ public TSInsertStringRecordReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Values.Count), cancellationToken); - foreach (string _iter121 in Values) + foreach (string _iter101 in Values) { - await oprot.WriteStringAsync(_iter121, cancellationToken); + await oprot.WriteStringAsync(_iter101, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsOfOneDeviceReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsOfOneDeviceReq.cs index 2252912..3d47126 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsOfOneDeviceReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsOfOneDeviceReq.cs @@ -76,34 +76,6 @@ public TSInsertStringRecordsOfOneDeviceReq(long sessionId, string prefixPath, Li this.Timestamps = timestamps; } - public TSInsertStringRecordsOfOneDeviceReq DeepCopy() - { - var tmp207 = new TSInsertStringRecordsOfOneDeviceReq(); - tmp207.SessionId = this.SessionId; - if((PrefixPath != null)) - { - tmp207.PrefixPath = this.PrefixPath; - } - if((MeasurementsList != null)) - { - tmp207.MeasurementsList = this.MeasurementsList.DeepCopy(); - } - if((ValuesList != null)) - { - tmp207.ValuesList = this.ValuesList.DeepCopy(); - } - if((Timestamps != null)) - { - tmp207.Timestamps = this.Timestamps.DeepCopy(); - } - if(__isset.isAligned) - { - tmp207.IsAligned = this.IsAligned; - } - tmp207.__isset.isAligned = this.__isset.isAligned; - return tmp207; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -152,23 +124,23 @@ public TSInsertStringRecordsOfOneDeviceReq DeepCopy() if (field.Type == TType.List) { { - TList _list208 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementsList = new List>(_list208.Count); - for(int _i209 = 0; _i209 < _list208.Count; ++_i209) + TList _list183 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list183.Count); + for(int _i184 = 0; _i184 < _list183.Count; ++_i184) { - List _elem210; + List _elem185; { - TList _list211 = await iprot.ReadListBeginAsync(cancellationToken); - _elem210 = new List(_list211.Count); - for(int _i212 = 0; _i212 < _list211.Count; ++_i212) + TList _list186 = await iprot.ReadListBeginAsync(cancellationToken); + _elem185 = new List(_list186.Count); + for(int _i187 = 0; _i187 < _list186.Count; ++_i187) { - string _elem213; - _elem213 = await iprot.ReadStringAsync(cancellationToken); - _elem210.Add(_elem213); + string _elem188; + _elem188 = await iprot.ReadStringAsync(cancellationToken); + _elem185.Add(_elem188); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem210); + MeasurementsList.Add(_elem185); } await iprot.ReadListEndAsync(cancellationToken); } @@ -183,23 +155,23 @@ public TSInsertStringRecordsOfOneDeviceReq DeepCopy() if (field.Type == TType.List) { { - TList _list214 = await iprot.ReadListBeginAsync(cancellationToken); - ValuesList = new List>(_list214.Count); - for(int _i215 = 0; _i215 < _list214.Count; ++_i215) + TList _list189 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List>(_list189.Count); + for(int _i190 = 0; _i190 < _list189.Count; ++_i190) { - List _elem216; + List _elem191; { - TList _list217 = await iprot.ReadListBeginAsync(cancellationToken); - _elem216 = new List(_list217.Count); - for(int _i218 = 0; _i218 < _list217.Count; ++_i218) + TList _list192 = await iprot.ReadListBeginAsync(cancellationToken); + _elem191 = new List(_list192.Count); + for(int _i193 = 0; _i193 < _list192.Count; ++_i193) { - string _elem219; - _elem219 = await iprot.ReadStringAsync(cancellationToken); - _elem216.Add(_elem219); + string _elem194; + _elem194 = await iprot.ReadStringAsync(cancellationToken); + _elem191.Add(_elem194); } await iprot.ReadListEndAsync(cancellationToken); } - ValuesList.Add(_elem216); + ValuesList.Add(_elem191); } await iprot.ReadListEndAsync(cancellationToken); } @@ -214,13 +186,13 @@ public TSInsertStringRecordsOfOneDeviceReq DeepCopy() if (field.Type == TType.List) { { - TList _list220 = await iprot.ReadListBeginAsync(cancellationToken); - Timestamps = new List(_list220.Count); - for(int _i221 = 0; _i221 < _list220.Count; ++_i221) + TList _list195 = await iprot.ReadListBeginAsync(cancellationToken); + Timestamps = new List(_list195.Count); + for(int _i196 = 0; _i196 < _list195.Count; ++_i196) { - long _elem222; - _elem222 = await iprot.ReadI64Async(cancellationToken); - Timestamps.Add(_elem222); + long _elem197; + _elem197 = await iprot.ReadI64Async(cancellationToken); + Timestamps.Add(_elem197); } await iprot.ReadListEndAsync(cancellationToken); } @@ -308,13 +280,13 @@ public TSInsertStringRecordsOfOneDeviceReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); - foreach (List _iter223 in MeasurementsList) + foreach (List _iter198 in MeasurementsList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter223.Count), cancellationToken); - foreach (string _iter224 in _iter223) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter198.Count), cancellationToken); + foreach (string _iter199 in _iter198) { - await oprot.WriteStringAsync(_iter224, cancellationToken); + await oprot.WriteStringAsync(_iter199, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -331,13 +303,13 @@ public TSInsertStringRecordsOfOneDeviceReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.List, ValuesList.Count), cancellationToken); - foreach (List _iter225 in ValuesList) + foreach (List _iter200 in ValuesList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter225.Count), cancellationToken); - foreach (string _iter226 in _iter225) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter200.Count), cancellationToken); + foreach (string _iter201 in _iter200) { - await oprot.WriteStringAsync(_iter226, cancellationToken); + await oprot.WriteStringAsync(_iter201, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -354,9 +326,9 @@ public TSInsertStringRecordsOfOneDeviceReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); - foreach (long _iter227 in Timestamps) + foreach (long _iter202 in Timestamps) { - await oprot.WriteI64Async(_iter227, cancellationToken); + await oprot.WriteI64Async(_iter202, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsReq.cs index 104cc85..c743d12 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsReq.cs @@ -76,34 +76,6 @@ public TSInsertStringRecordsReq(long sessionId, List prefixPaths, List(_list230.Count); - for(int _i231 = 0; _i231 < _list230.Count; ++_i231) + TList _list204 = await iprot.ReadListBeginAsync(cancellationToken); + PrefixPaths = new List(_list204.Count); + for(int _i205 = 0; _i205 < _list204.Count; ++_i205) { - string _elem232; - _elem232 = await iprot.ReadStringAsync(cancellationToken); - PrefixPaths.Add(_elem232); + string _elem206; + _elem206 = await iprot.ReadStringAsync(cancellationToken); + PrefixPaths.Add(_elem206); } await iprot.ReadListEndAsync(cancellationToken); } @@ -162,23 +134,23 @@ public TSInsertStringRecordsReq DeepCopy() if (field.Type == TType.List) { { - TList _list233 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementsList = new List>(_list233.Count); - for(int _i234 = 0; _i234 < _list233.Count; ++_i234) + TList _list207 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list207.Count); + for(int _i208 = 0; _i208 < _list207.Count; ++_i208) { - List _elem235; + List _elem209; { - TList _list236 = await iprot.ReadListBeginAsync(cancellationToken); - _elem235 = new List(_list236.Count); - for(int _i237 = 0; _i237 < _list236.Count; ++_i237) + TList _list210 = await iprot.ReadListBeginAsync(cancellationToken); + _elem209 = new List(_list210.Count); + for(int _i211 = 0; _i211 < _list210.Count; ++_i211) { - string _elem238; - _elem238 = await iprot.ReadStringAsync(cancellationToken); - _elem235.Add(_elem238); + string _elem212; + _elem212 = await iprot.ReadStringAsync(cancellationToken); + _elem209.Add(_elem212); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem235); + MeasurementsList.Add(_elem209); } await iprot.ReadListEndAsync(cancellationToken); } @@ -193,23 +165,23 @@ public TSInsertStringRecordsReq DeepCopy() if (field.Type == TType.List) { { - TList _list239 = await iprot.ReadListBeginAsync(cancellationToken); - ValuesList = new List>(_list239.Count); - for(int _i240 = 0; _i240 < _list239.Count; ++_i240) + TList _list213 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List>(_list213.Count); + for(int _i214 = 0; _i214 < _list213.Count; ++_i214) { - List _elem241; + List _elem215; { - TList _list242 = await iprot.ReadListBeginAsync(cancellationToken); - _elem241 = new List(_list242.Count); - for(int _i243 = 0; _i243 < _list242.Count; ++_i243) + TList _list216 = await iprot.ReadListBeginAsync(cancellationToken); + _elem215 = new List(_list216.Count); + for(int _i217 = 0; _i217 < _list216.Count; ++_i217) { - string _elem244; - _elem244 = await iprot.ReadStringAsync(cancellationToken); - _elem241.Add(_elem244); + string _elem218; + _elem218 = await iprot.ReadStringAsync(cancellationToken); + _elem215.Add(_elem218); } await iprot.ReadListEndAsync(cancellationToken); } - ValuesList.Add(_elem241); + ValuesList.Add(_elem215); } await iprot.ReadListEndAsync(cancellationToken); } @@ -224,13 +196,13 @@ public TSInsertStringRecordsReq DeepCopy() if (field.Type == TType.List) { { - TList _list245 = await iprot.ReadListBeginAsync(cancellationToken); - Timestamps = new List(_list245.Count); - for(int _i246 = 0; _i246 < _list245.Count; ++_i246) + TList _list219 = await iprot.ReadListBeginAsync(cancellationToken); + Timestamps = new List(_list219.Count); + for(int _i220 = 0; _i220 < _list219.Count; ++_i220) { - long _elem247; - _elem247 = await iprot.ReadI64Async(cancellationToken); - Timestamps.Add(_elem247); + long _elem221; + _elem221 = await iprot.ReadI64Async(cancellationToken); + Timestamps.Add(_elem221); } await iprot.ReadListEndAsync(cancellationToken); } @@ -309,9 +281,9 @@ public TSInsertStringRecordsReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, PrefixPaths.Count), cancellationToken); - foreach (string _iter248 in PrefixPaths) + foreach (string _iter222 in PrefixPaths) { - await oprot.WriteStringAsync(_iter248, cancellationToken); + await oprot.WriteStringAsync(_iter222, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -325,13 +297,13 @@ public TSInsertStringRecordsReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); - foreach (List _iter249 in MeasurementsList) + foreach (List _iter223 in MeasurementsList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter249.Count), cancellationToken); - foreach (string _iter250 in _iter249) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter223.Count), cancellationToken); + foreach (string _iter224 in _iter223) { - await oprot.WriteStringAsync(_iter250, cancellationToken); + await oprot.WriteStringAsync(_iter224, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -348,13 +320,13 @@ public TSInsertStringRecordsReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.List, ValuesList.Count), cancellationToken); - foreach (List _iter251 in ValuesList) + foreach (List _iter225 in ValuesList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter251.Count), cancellationToken); - foreach (string _iter252 in _iter251) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter225.Count), cancellationToken); + foreach (string _iter226 in _iter225) { - await oprot.WriteStringAsync(_iter252, cancellationToken); + await oprot.WriteStringAsync(_iter226, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -371,9 +343,9 @@ public TSInsertStringRecordsReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); - foreach (long _iter253 in Timestamps) + foreach (long _iter227 in Timestamps) { - await oprot.WriteI64Async(_iter253, cancellationToken); + await oprot.WriteI64Async(_iter227, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletReq.cs index 2d4ce1e..31492b8 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletReq.cs @@ -82,39 +82,6 @@ public TSInsertTabletReq(long sessionId, string prefixPath, List measure this.Size = size; } - public TSInsertTabletReq DeepCopy() - { - var tmp123 = new TSInsertTabletReq(); - tmp123.SessionId = this.SessionId; - if((PrefixPath != null)) - { - tmp123.PrefixPath = this.PrefixPath; - } - if((Measurements != null)) - { - tmp123.Measurements = this.Measurements.DeepCopy(); - } - if((Values != null)) - { - tmp123.Values = this.Values.ToArray(); - } - if((Timestamps != null)) - { - tmp123.Timestamps = this.Timestamps.ToArray(); - } - if((Types != null)) - { - tmp123.Types = this.Types.DeepCopy(); - } - tmp123.Size = this.Size; - if(__isset.isAligned) - { - tmp123.IsAligned = this.IsAligned; - } - tmp123.__isset.isAligned = this.__isset.isAligned; - return tmp123; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -165,13 +132,13 @@ public TSInsertTabletReq DeepCopy() if (field.Type == TType.List) { { - TList _list124 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list124.Count); - for(int _i125 = 0; _i125 < _list124.Count; ++_i125) + TList _list103 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list103.Count); + for(int _i104 = 0; _i104 < _list103.Count; ++_i104) { - string _elem126; - _elem126 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem126); + string _elem105; + _elem105 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem105); } await iprot.ReadListEndAsync(cancellationToken); } @@ -208,13 +175,13 @@ public TSInsertTabletReq DeepCopy() if (field.Type == TType.List) { { - TList _list127 = await iprot.ReadListBeginAsync(cancellationToken); - Types = new List(_list127.Count); - for(int _i128 = 0; _i128 < _list127.Count; ++_i128) + TList _list106 = await iprot.ReadListBeginAsync(cancellationToken); + Types = new List(_list106.Count); + for(int _i107 = 0; _i107 < _list106.Count; ++_i107) { - int _elem129; - _elem129 = await iprot.ReadI32Async(cancellationToken); - Types.Add(_elem129); + int _elem108; + _elem108 = await iprot.ReadI32Async(cancellationToken); + Types.Add(_elem108); } await iprot.ReadListEndAsync(cancellationToken); } @@ -321,9 +288,9 @@ public TSInsertTabletReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter130 in Measurements) + foreach (string _iter109 in Measurements) { - await oprot.WriteStringAsync(_iter130, cancellationToken); + await oprot.WriteStringAsync(_iter109, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -355,9 +322,9 @@ public TSInsertTabletReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, Types.Count), cancellationToken); - foreach (int _iter131 in Types) + foreach (int _iter110 in Types) { - await oprot.WriteI32Async(_iter131, cancellationToken); + await oprot.WriteI32Async(_iter110, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletsReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletsReq.cs index e35d43c..349631a 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletsReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletsReq.cs @@ -82,42 +82,6 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List(_list134.Count); - for(int _i135 = 0; _i135 < _list134.Count; ++_i135) + TList _list112 = await iprot.ReadListBeginAsync(cancellationToken); + PrefixPaths = new List(_list112.Count); + for(int _i113 = 0; _i113 < _list112.Count; ++_i113) { - string _elem136; - _elem136 = await iprot.ReadStringAsync(cancellationToken); - PrefixPaths.Add(_elem136); + string _elem114; + _elem114 = await iprot.ReadStringAsync(cancellationToken); + PrefixPaths.Add(_elem114); } await iprot.ReadListEndAsync(cancellationToken); } @@ -178,23 +142,23 @@ public TSInsertTabletsReq DeepCopy() if (field.Type == TType.List) { { - TList _list137 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementsList = new List>(_list137.Count); - for(int _i138 = 0; _i138 < _list137.Count; ++_i138) + TList _list115 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list115.Count); + for(int _i116 = 0; _i116 < _list115.Count; ++_i116) { - List _elem139; + List _elem117; { - TList _list140 = await iprot.ReadListBeginAsync(cancellationToken); - _elem139 = new List(_list140.Count); - for(int _i141 = 0; _i141 < _list140.Count; ++_i141) + TList _list118 = await iprot.ReadListBeginAsync(cancellationToken); + _elem117 = new List(_list118.Count); + for(int _i119 = 0; _i119 < _list118.Count; ++_i119) { - string _elem142; - _elem142 = await iprot.ReadStringAsync(cancellationToken); - _elem139.Add(_elem142); + string _elem120; + _elem120 = await iprot.ReadStringAsync(cancellationToken); + _elem117.Add(_elem120); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem139); + MeasurementsList.Add(_elem117); } await iprot.ReadListEndAsync(cancellationToken); } @@ -209,13 +173,13 @@ public TSInsertTabletsReq DeepCopy() if (field.Type == TType.List) { { - TList _list143 = await iprot.ReadListBeginAsync(cancellationToken); - ValuesList = new List(_list143.Count); - for(int _i144 = 0; _i144 < _list143.Count; ++_i144) + TList _list121 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List(_list121.Count); + for(int _i122 = 0; _i122 < _list121.Count; ++_i122) { - byte[] _elem145; - _elem145 = await iprot.ReadBinaryAsync(cancellationToken); - ValuesList.Add(_elem145); + byte[] _elem123; + _elem123 = await iprot.ReadBinaryAsync(cancellationToken); + ValuesList.Add(_elem123); } await iprot.ReadListEndAsync(cancellationToken); } @@ -230,13 +194,13 @@ public TSInsertTabletsReq DeepCopy() if (field.Type == TType.List) { { - TList _list146 = await iprot.ReadListBeginAsync(cancellationToken); - TimestampsList = new List(_list146.Count); - for(int _i147 = 0; _i147 < _list146.Count; ++_i147) + TList _list124 = await iprot.ReadListBeginAsync(cancellationToken); + TimestampsList = new List(_list124.Count); + for(int _i125 = 0; _i125 < _list124.Count; ++_i125) { - byte[] _elem148; - _elem148 = await iprot.ReadBinaryAsync(cancellationToken); - TimestampsList.Add(_elem148); + byte[] _elem126; + _elem126 = await iprot.ReadBinaryAsync(cancellationToken); + TimestampsList.Add(_elem126); } await iprot.ReadListEndAsync(cancellationToken); } @@ -251,23 +215,23 @@ public TSInsertTabletsReq DeepCopy() if (field.Type == TType.List) { { - TList _list149 = await iprot.ReadListBeginAsync(cancellationToken); - TypesList = new List>(_list149.Count); - for(int _i150 = 0; _i150 < _list149.Count; ++_i150) + TList _list127 = await iprot.ReadListBeginAsync(cancellationToken); + TypesList = new List>(_list127.Count); + for(int _i128 = 0; _i128 < _list127.Count; ++_i128) { - List _elem151; + List _elem129; { - TList _list152 = await iprot.ReadListBeginAsync(cancellationToken); - _elem151 = new List(_list152.Count); - for(int _i153 = 0; _i153 < _list152.Count; ++_i153) + TList _list130 = await iprot.ReadListBeginAsync(cancellationToken); + _elem129 = new List(_list130.Count); + for(int _i131 = 0; _i131 < _list130.Count; ++_i131) { - int _elem154; - _elem154 = await iprot.ReadI32Async(cancellationToken); - _elem151.Add(_elem154); + int _elem132; + _elem132 = await iprot.ReadI32Async(cancellationToken); + _elem129.Add(_elem132); } await iprot.ReadListEndAsync(cancellationToken); } - TypesList.Add(_elem151); + TypesList.Add(_elem129); } await iprot.ReadListEndAsync(cancellationToken); } @@ -282,13 +246,13 @@ public TSInsertTabletsReq DeepCopy() if (field.Type == TType.List) { { - TList _list155 = await iprot.ReadListBeginAsync(cancellationToken); - SizeList = new List(_list155.Count); - for(int _i156 = 0; _i156 < _list155.Count; ++_i156) + TList _list133 = await iprot.ReadListBeginAsync(cancellationToken); + SizeList = new List(_list133.Count); + for(int _i134 = 0; _i134 < _list133.Count; ++_i134) { - int _elem157; - _elem157 = await iprot.ReadI32Async(cancellationToken); - SizeList.Add(_elem157); + int _elem135; + _elem135 = await iprot.ReadI32Async(cancellationToken); + SizeList.Add(_elem135); } await iprot.ReadListEndAsync(cancellationToken); } @@ -375,9 +339,9 @@ public TSInsertTabletsReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, PrefixPaths.Count), cancellationToken); - foreach (string _iter158 in PrefixPaths) + foreach (string _iter136 in PrefixPaths) { - await oprot.WriteStringAsync(_iter158, cancellationToken); + await oprot.WriteStringAsync(_iter136, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -391,13 +355,13 @@ public TSInsertTabletsReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); - foreach (List _iter159 in MeasurementsList) + foreach (List _iter137 in MeasurementsList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter159.Count), cancellationToken); - foreach (string _iter160 in _iter159) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter137.Count), cancellationToken); + foreach (string _iter138 in _iter137) { - await oprot.WriteStringAsync(_iter160, cancellationToken); + await oprot.WriteStringAsync(_iter138, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -414,9 +378,9 @@ public TSInsertTabletsReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, ValuesList.Count), cancellationToken); - foreach (byte[] _iter161 in ValuesList) + foreach (byte[] _iter139 in ValuesList) { - await oprot.WriteBinaryAsync(_iter161, cancellationToken); + await oprot.WriteBinaryAsync(_iter139, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -430,9 +394,9 @@ public TSInsertTabletsReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, TimestampsList.Count), cancellationToken); - foreach (byte[] _iter162 in TimestampsList) + foreach (byte[] _iter140 in TimestampsList) { - await oprot.WriteBinaryAsync(_iter162, cancellationToken); + await oprot.WriteBinaryAsync(_iter140, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -446,13 +410,13 @@ public TSInsertTabletsReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.List, TypesList.Count), cancellationToken); - foreach (List _iter163 in TypesList) + foreach (List _iter141 in TypesList) { { - await oprot.WriteListBeginAsync(new TList(TType.I32, _iter163.Count), cancellationToken); - foreach (int _iter164 in _iter163) + await oprot.WriteListBeginAsync(new TList(TType.I32, _iter141.Count), cancellationToken); + foreach (int _iter142 in _iter141) { - await oprot.WriteI32Async(_iter164, cancellationToken); + await oprot.WriteI32Async(_iter142, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -469,9 +433,9 @@ public TSInsertTabletsReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, SizeList.Count), cancellationToken); - foreach (int _iter165 in SizeList) + foreach (int _iter143 in SizeList) { - await oprot.WriteI32Async(_iter165, cancellationToken); + await oprot.WriteI32Async(_iter143, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSLastDataQueryReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSLastDataQueryReq.cs index 685a95f..c125b27 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSLastDataQueryReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSLastDataQueryReq.cs @@ -133,44 +133,6 @@ public TSLastDataQueryReq(long sessionId, List paths, long time, long st this.StatementId = statementId; } - public TSLastDataQueryReq DeepCopy() - { - var tmp324 = new TSLastDataQueryReq(); - tmp324.SessionId = this.SessionId; - if((Paths != null)) - { - tmp324.Paths = this.Paths.DeepCopy(); - } - if(__isset.fetchSize) - { - tmp324.FetchSize = this.FetchSize; - } - tmp324.__isset.fetchSize = this.__isset.fetchSize; - tmp324.Time = this.Time; - tmp324.StatementId = this.StatementId; - if(__isset.enableRedirectQuery) - { - tmp324.EnableRedirectQuery = this.EnableRedirectQuery; - } - tmp324.__isset.enableRedirectQuery = this.__isset.enableRedirectQuery; - if(__isset.jdbcQuery) - { - tmp324.JdbcQuery = this.JdbcQuery; - } - tmp324.__isset.jdbcQuery = this.__isset.jdbcQuery; - if(__isset.timeout) - { - tmp324.Timeout = this.Timeout; - } - tmp324.__isset.timeout = this.__isset.timeout; - if(__isset.legalPathNodes) - { - tmp324.LegalPathNodes = this.LegalPathNodes; - } - tmp324.__isset.legalPathNodes = this.__isset.legalPathNodes; - return tmp324; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -207,13 +169,13 @@ public TSLastDataQueryReq DeepCopy() if (field.Type == TType.List) { { - TList _list325 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list325.Count); - for(int _i326 = 0; _i326 < _list325.Count; ++_i326) + TList _list294 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list294.Count); + for(int _i295 = 0; _i295 < _list294.Count; ++_i295) { - string _elem327; - _elem327 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem327); + string _elem296; + _elem296 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem296); } await iprot.ReadListEndAsync(cancellationToken); } @@ -350,9 +312,9 @@ public TSLastDataQueryReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter328 in Paths) + foreach (string _iter297 in Paths) { - await oprot.WriteStringAsync(_iter328, cancellationToken); + await oprot.WriteStringAsync(_iter297, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionReq.cs index 1fa5440..ba022ff 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionReq.cs @@ -90,31 +90,6 @@ public TSOpenSessionReq(TSProtocolVersion client_protocol, string zoneId, string this.Username = username; } - public TSOpenSessionReq DeepCopy() - { - var tmp64 = new TSOpenSessionReq(); - tmp64.Client_protocol = this.Client_protocol; - if((ZoneId != null)) - { - tmp64.ZoneId = this.ZoneId; - } - if((Username != null)) - { - tmp64.Username = this.Username; - } - if((Password != null) && __isset.password) - { - tmp64.Password = this.Password; - } - tmp64.__isset.password = this.__isset.password; - if((Configuration != null) && __isset.configuration) - { - tmp64.Configuration = this.Configuration.DeepCopy(); - } - tmp64.__isset.configuration = this.__isset.configuration; - return tmp64; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -182,15 +157,15 @@ public TSOpenSessionReq DeepCopy() if (field.Type == TType.Map) { { - TMap _map65 = await iprot.ReadMapBeginAsync(cancellationToken); - Configuration = new Dictionary(_map65.Count); - for(int _i66 = 0; _i66 < _map65.Count; ++_i66) + TMap _map59 = await iprot.ReadMapBeginAsync(cancellationToken); + Configuration = new Dictionary(_map59.Count); + for(int _i60 = 0; _i60 < _map59.Count; ++_i60) { - string _key67; - string _val68; - _key67 = await iprot.ReadStringAsync(cancellationToken); - _val68 = await iprot.ReadStringAsync(cancellationToken); - Configuration[_key67] = _val68; + string _key61; + string _val62; + _key61 = await iprot.ReadStringAsync(cancellationToken); + _val62 = await iprot.ReadStringAsync(cancellationToken); + Configuration[_key61] = _val62; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -277,10 +252,10 @@ public TSOpenSessionReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Configuration.Count), cancellationToken); - foreach (string _iter69 in Configuration.Keys) + foreach (string _iter63 in Configuration.Keys) { - await oprot.WriteStringAsync(_iter69, cancellationToken); - await oprot.WriteStringAsync(Configuration[_iter69], cancellationToken); + await oprot.WriteStringAsync(_iter63, cancellationToken); + await oprot.WriteStringAsync(Configuration[_iter63], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionResp.cs index 72e59bf..23db995 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionResp.cs @@ -87,27 +87,6 @@ public TSOpenSessionResp(TSStatus status, TSProtocolVersion serverProtocolVersio this.ServerProtocolVersion = serverProtocolVersion; } - public TSOpenSessionResp DeepCopy() - { - var tmp57 = new TSOpenSessionResp(); - if((Status != null)) - { - tmp57.Status = (TSStatus)this.Status.DeepCopy(); - } - tmp57.ServerProtocolVersion = this.ServerProtocolVersion; - if(__isset.sessionId) - { - tmp57.SessionId = this.SessionId; - } - tmp57.__isset.sessionId = this.__isset.sessionId; - if((Configuration != null) && __isset.configuration) - { - tmp57.Configuration = this.Configuration.DeepCopy(); - } - tmp57.__isset.configuration = this.__isset.configuration; - return tmp57; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -164,15 +143,15 @@ public TSOpenSessionResp DeepCopy() if (field.Type == TType.Map) { { - TMap _map58 = await iprot.ReadMapBeginAsync(cancellationToken); - Configuration = new Dictionary(_map58.Count); - for(int _i59 = 0; _i59 < _map58.Count; ++_i59) + TMap _map53 = await iprot.ReadMapBeginAsync(cancellationToken); + Configuration = new Dictionary(_map53.Count); + for(int _i54 = 0; _i54 < _map53.Count; ++_i54) { - string _key60; - string _val61; - _key60 = await iprot.ReadStringAsync(cancellationToken); - _val61 = await iprot.ReadStringAsync(cancellationToken); - Configuration[_key60] = _val61; + string _key55; + string _val56; + _key55 = await iprot.ReadStringAsync(cancellationToken); + _val56 = await iprot.ReadStringAsync(cancellationToken); + Configuration[_key55] = _val56; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -246,10 +225,10 @@ public TSOpenSessionResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Configuration.Count), cancellationToken); - foreach (string _iter62 in Configuration.Keys) + foreach (string _iter57 in Configuration.Keys) { - await oprot.WriteStringAsync(_iter62, cancellationToken); - await oprot.WriteStringAsync(Configuration[_iter62], cancellationToken); + await oprot.WriteStringAsync(_iter57, cancellationToken); + await oprot.WriteStringAsync(Configuration[_iter57], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSPruneSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSPruneSchemaTemplateReq.cs index 087a3d5..d377c88 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSPruneSchemaTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSPruneSchemaTemplateReq.cs @@ -49,21 +49,6 @@ public TSPruneSchemaTemplateReq(long sessionId, string name, string path) : this this.Path = path; } - public TSPruneSchemaTemplateReq DeepCopy() - { - var tmp425 = new TSPruneSchemaTemplateReq(); - tmp425.SessionId = this.SessionId; - if((Name != null)) - { - tmp425.Name = this.Name; - } - if((Path != null)) - { - tmp425.Path = this.Path; - } - return tmp425; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSQueryDataSet.cs b/src/Apache.IoTDB/Rpc/Generated/TSQueryDataSet.cs index 8606cd1..4927f17 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSQueryDataSet.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSQueryDataSet.cs @@ -49,24 +49,6 @@ public TSQueryDataSet(byte[] time, List valueList, List bitmapLi this.BitmapList = bitmapList; } - public TSQueryDataSet DeepCopy() - { - var tmp0 = new TSQueryDataSet(); - if((Time != null)) - { - tmp0.Time = this.Time.ToArray(); - } - if((ValueList != null)) - { - tmp0.ValueList = this.ValueList.DeepCopy(); - } - if((BitmapList != null)) - { - tmp0.BitmapList = this.BitmapList.DeepCopy(); - } - return tmp0; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -102,13 +84,13 @@ public TSQueryDataSet DeepCopy() if (field.Type == TType.List) { { - TList _list1 = await iprot.ReadListBeginAsync(cancellationToken); - ValueList = new List(_list1.Count); - for(int _i2 = 0; _i2 < _list1.Count; ++_i2) + TList _list0 = await iprot.ReadListBeginAsync(cancellationToken); + ValueList = new List(_list0.Count); + for(int _i1 = 0; _i1 < _list0.Count; ++_i1) { - byte[] _elem3; - _elem3 = await iprot.ReadBinaryAsync(cancellationToken); - ValueList.Add(_elem3); + byte[] _elem2; + _elem2 = await iprot.ReadBinaryAsync(cancellationToken); + ValueList.Add(_elem2); } await iprot.ReadListEndAsync(cancellationToken); } @@ -123,13 +105,13 @@ public TSQueryDataSet DeepCopy() if (field.Type == TType.List) { { - TList _list4 = await iprot.ReadListBeginAsync(cancellationToken); - BitmapList = new List(_list4.Count); - for(int _i5 = 0; _i5 < _list4.Count; ++_i5) + TList _list3 = await iprot.ReadListBeginAsync(cancellationToken); + BitmapList = new List(_list3.Count); + for(int _i4 = 0; _i4 < _list3.Count; ++_i4) { - byte[] _elem6; - _elem6 = await iprot.ReadBinaryAsync(cancellationToken); - BitmapList.Add(_elem6); + byte[] _elem5; + _elem5 = await iprot.ReadBinaryAsync(cancellationToken); + BitmapList.Add(_elem5); } await iprot.ReadListEndAsync(cancellationToken); } @@ -193,9 +175,9 @@ public TSQueryDataSet DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, ValueList.Count), cancellationToken); - foreach (byte[] _iter7 in ValueList) + foreach (byte[] _iter6 in ValueList) { - await oprot.WriteBinaryAsync(_iter7, cancellationToken); + await oprot.WriteBinaryAsync(_iter6, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -209,9 +191,9 @@ public TSQueryDataSet DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, BitmapList.Count), cancellationToken); - foreach (byte[] _iter8 in BitmapList) + foreach (byte[] _iter7 in BitmapList) { - await oprot.WriteBinaryAsync(_iter8, cancellationToken); + await oprot.WriteBinaryAsync(_iter7, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSQueryNonAlignDataSet.cs b/src/Apache.IoTDB/Rpc/Generated/TSQueryNonAlignDataSet.cs index f1b7e58..73fac7c 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSQueryNonAlignDataSet.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSQueryNonAlignDataSet.cs @@ -46,20 +46,6 @@ public TSQueryNonAlignDataSet(List timeList, List valueList) : t this.ValueList = valueList; } - public TSQueryNonAlignDataSet DeepCopy() - { - var tmp10 = new TSQueryNonAlignDataSet(); - if((TimeList != null)) - { - tmp10.TimeList = this.TimeList.DeepCopy(); - } - if((ValueList != null)) - { - tmp10.ValueList = this.ValueList.DeepCopy(); - } - return tmp10; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -83,13 +69,13 @@ public TSQueryNonAlignDataSet DeepCopy() if (field.Type == TType.List) { { - TList _list11 = await iprot.ReadListBeginAsync(cancellationToken); - TimeList = new List(_list11.Count); - for(int _i12 = 0; _i12 < _list11.Count; ++_i12) + TList _list9 = await iprot.ReadListBeginAsync(cancellationToken); + TimeList = new List(_list9.Count); + for(int _i10 = 0; _i10 < _list9.Count; ++_i10) { - byte[] _elem13; - _elem13 = await iprot.ReadBinaryAsync(cancellationToken); - TimeList.Add(_elem13); + byte[] _elem11; + _elem11 = await iprot.ReadBinaryAsync(cancellationToken); + TimeList.Add(_elem11); } await iprot.ReadListEndAsync(cancellationToken); } @@ -104,13 +90,13 @@ public TSQueryNonAlignDataSet DeepCopy() if (field.Type == TType.List) { { - TList _list14 = await iprot.ReadListBeginAsync(cancellationToken); - ValueList = new List(_list14.Count); - for(int _i15 = 0; _i15 < _list14.Count; ++_i15) + TList _list12 = await iprot.ReadListBeginAsync(cancellationToken); + ValueList = new List(_list12.Count); + for(int _i13 = 0; _i13 < _list12.Count; ++_i13) { - byte[] _elem16; - _elem16 = await iprot.ReadBinaryAsync(cancellationToken); - ValueList.Add(_elem16); + byte[] _elem14; + _elem14 = await iprot.ReadBinaryAsync(cancellationToken); + ValueList.Add(_elem14); } await iprot.ReadListEndAsync(cancellationToken); } @@ -161,9 +147,9 @@ public TSQueryNonAlignDataSet DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, TimeList.Count), cancellationToken); - foreach (byte[] _iter17 in TimeList) + foreach (byte[] _iter15 in TimeList) { - await oprot.WriteBinaryAsync(_iter17, cancellationToken); + await oprot.WriteBinaryAsync(_iter15, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -177,9 +163,9 @@ public TSQueryNonAlignDataSet DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, ValueList.Count), cancellationToken); - foreach (byte[] _iter18 in ValueList) + foreach (byte[] _iter16 in ValueList) { - await oprot.WriteBinaryAsync(_iter18, cancellationToken); + await oprot.WriteBinaryAsync(_iter16, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateReq.cs index 51b6d40..5073c0e 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateReq.cs @@ -70,23 +70,6 @@ public TSQueryTemplateReq(long sessionId, string name, int queryType) : this() this.QueryType = queryType; } - public TSQueryTemplateReq DeepCopy() - { - var tmp427 = new TSQueryTemplateReq(); - tmp427.SessionId = this.SessionId; - if((Name != null)) - { - tmp427.Name = this.Name; - } - tmp427.QueryType = this.QueryType; - if((Measurement != null) && __isset.measurement) - { - tmp427.Measurement = this.Measurement; - } - tmp427.__isset.measurement = this.__isset.measurement; - return tmp427; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateResp.cs index 6372222..e289bc7 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateResp.cs @@ -97,32 +97,6 @@ public TSQueryTemplateResp(TSStatus status, int queryType) : this() this.QueryType = queryType; } - public TSQueryTemplateResp DeepCopy() - { - var tmp429 = new TSQueryTemplateResp(); - if((Status != null)) - { - tmp429.Status = (TSStatus)this.Status.DeepCopy(); - } - tmp429.QueryType = this.QueryType; - if(__isset.result) - { - tmp429.Result = this.Result; - } - tmp429.__isset.result = this.__isset.result; - if(__isset.count) - { - tmp429.Count = this.Count; - } - tmp429.__isset.count = this.__isset.count; - if((Measurements != null) && __isset.measurements) - { - tmp429.Measurements = this.Measurements.DeepCopy(); - } - tmp429.__isset.measurements = this.__isset.measurements; - return tmp429; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -189,13 +163,13 @@ public TSQueryTemplateResp DeepCopy() if (field.Type == TType.List) { { - TList _list430 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list430.Count); - for(int _i431 = 0; _i431 < _list430.Count; ++_i431) + TList _list388 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list388.Count); + for(int _i389 = 0; _i389 < _list388.Count; ++_i389) { - string _elem432; - _elem432 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem432); + string _elem390; + _elem390 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem390); } await iprot.ReadListEndAsync(cancellationToken); } @@ -278,9 +252,9 @@ public TSQueryTemplateResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter433 in Measurements) + foreach (string _iter391 in Measurements) { - await oprot.WriteStringAsync(_iter433, cancellationToken); + await oprot.WriteStringAsync(_iter391, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSRawDataQueryReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSRawDataQueryReq.cs index c621f21..85dc4ae 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSRawDataQueryReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSRawDataQueryReq.cs @@ -136,45 +136,6 @@ public TSRawDataQueryReq(long sessionId, List paths, long startTime, lon this.StatementId = statementId; } - public TSRawDataQueryReq DeepCopy() - { - var tmp318 = new TSRawDataQueryReq(); - tmp318.SessionId = this.SessionId; - if((Paths != null)) - { - tmp318.Paths = this.Paths.DeepCopy(); - } - if(__isset.fetchSize) - { - tmp318.FetchSize = this.FetchSize; - } - tmp318.__isset.fetchSize = this.__isset.fetchSize; - tmp318.StartTime = this.StartTime; - tmp318.EndTime = this.EndTime; - tmp318.StatementId = this.StatementId; - if(__isset.enableRedirectQuery) - { - tmp318.EnableRedirectQuery = this.EnableRedirectQuery; - } - tmp318.__isset.enableRedirectQuery = this.__isset.enableRedirectQuery; - if(__isset.jdbcQuery) - { - tmp318.JdbcQuery = this.JdbcQuery; - } - tmp318.__isset.jdbcQuery = this.__isset.jdbcQuery; - if(__isset.timeout) - { - tmp318.Timeout = this.Timeout; - } - tmp318.__isset.timeout = this.__isset.timeout; - if(__isset.legalPathNodes) - { - tmp318.LegalPathNodes = this.LegalPathNodes; - } - tmp318.__isset.legalPathNodes = this.__isset.legalPathNodes; - return tmp318; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -212,13 +173,13 @@ public TSRawDataQueryReq DeepCopy() if (field.Type == TType.List) { { - TList _list319 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list319.Count); - for(int _i320 = 0; _i320 < _list319.Count; ++_i320) + TList _list289 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list289.Count); + for(int _i290 = 0; _i290 < _list289.Count; ++_i290) { - string _elem321; - _elem321 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem321); + string _elem291; + _elem291 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem291); } await iprot.ReadListEndAsync(cancellationToken); } @@ -370,9 +331,9 @@ public TSRawDataQueryReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter322 in Paths) + foreach (string _iter292 in Paths) { - await oprot.WriteStringAsync(_iter322, cancellationToken); + await oprot.WriteStringAsync(_iter292, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSSetSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSSetSchemaTemplateReq.cs index 930d22b..7d7e213 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSSetSchemaTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSSetSchemaTemplateReq.cs @@ -49,21 +49,6 @@ public TSSetSchemaTemplateReq(long sessionId, string templateName, string prefix this.PrefixPath = prefixPath; } - public TSSetSchemaTemplateReq DeepCopy() - { - var tmp403 = new TSSetSchemaTemplateReq(); - tmp403.SessionId = this.SessionId; - if((TemplateName != null)) - { - tmp403.TemplateName = this.TemplateName; - } - if((PrefixPath != null)) - { - tmp403.PrefixPath = this.PrefixPath; - } - return tmp403; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSSetTimeZoneReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSSetTimeZoneReq.cs index a91c322..f9f2d84 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSSetTimeZoneReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSSetTimeZoneReq.cs @@ -46,17 +46,6 @@ public TSSetTimeZoneReq(long sessionId, string timeZone) : this() this.TimeZone = timeZone; } - public TSSetTimeZoneReq DeepCopy() - { - var tmp105 = new TSSetTimeZoneReq(); - tmp105.SessionId = this.SessionId; - if((TimeZone != null)) - { - tmp105.TimeZone = this.TimeZone; - } - return tmp105; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSStatus.cs b/src/Apache.IoTDB/Rpc/Generated/TSStatus.cs index 0e738ef..3575330 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSStatus.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSStatus.cs @@ -109,33 +109,6 @@ public TSStatus(int code) : this() this.Code = code; } - public TSStatus DeepCopy() - { - var tmp2 = new TSStatus(); - tmp2.Code = this.Code; - if((Message != null) && __isset.message) - { - tmp2.Message = this.Message; - } - tmp2.__isset.message = this.__isset.message; - if((SubStatus != null) && __isset.subStatus) - { - tmp2.SubStatus = this.SubStatus.DeepCopy(); - } - tmp2.__isset.subStatus = this.__isset.subStatus; - if((RedirectNode != null) && __isset.redirectNode) - { - tmp2.RedirectNode = (TEndPoint)this.RedirectNode.DeepCopy(); - } - tmp2.__isset.redirectNode = this.__isset.redirectNode; - if(__isset.needRetry) - { - tmp2.NeedRetry = this.NeedRetry; - } - tmp2.__isset.needRetry = this.__isset.needRetry; - return tmp2; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -179,14 +152,14 @@ public TSStatus DeepCopy() if (field.Type == TType.List) { { - TList _list3 = await iprot.ReadListBeginAsync(cancellationToken); - SubStatus = new List(_list3.Count); - for(int _i4 = 0; _i4 < _list3.Count; ++_i4) + TList _list1 = await iprot.ReadListBeginAsync(cancellationToken); + SubStatus = new List(_list1.Count); + for(int _i2 = 0; _i2 < _list1.Count; ++_i2) { - TSStatus _elem5; - _elem5 = new TSStatus(); - await _elem5.ReadAsync(iprot, cancellationToken); - SubStatus.Add(_elem5); + TSStatus _elem3; + _elem3 = new TSStatus(); + await _elem3.ReadAsync(iprot, cancellationToken); + SubStatus.Add(_elem3); } await iprot.ReadListEndAsync(cancellationToken); } @@ -268,9 +241,9 @@ public TSStatus DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, SubStatus.Count), cancellationToken); - foreach (TSStatus _iter6 in SubStatus) + foreach (TSStatus _iter4 in SubStatus) { - await _iter6.WriteAsync(oprot, cancellationToken); + await _iter4.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSTracingInfo.cs b/src/Apache.IoTDB/Rpc/Generated/TSTracingInfo.cs index 73d55dd..a5029a9 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSTracingInfo.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSTracingInfo.cs @@ -187,65 +187,6 @@ public TSTracingInfo(List activityList, List elapsedTimeList) : th this.ElapsedTimeList = elapsedTimeList; } - public TSTracingInfo DeepCopy() - { - var tmp20 = new TSTracingInfo(); - if((ActivityList != null)) - { - tmp20.ActivityList = this.ActivityList.DeepCopy(); - } - if((ElapsedTimeList != null)) - { - tmp20.ElapsedTimeList = this.ElapsedTimeList.DeepCopy(); - } - if(__isset.seriesPathNum) - { - tmp20.SeriesPathNum = this.SeriesPathNum; - } - tmp20.__isset.seriesPathNum = this.__isset.seriesPathNum; - if(__isset.seqFileNum) - { - tmp20.SeqFileNum = this.SeqFileNum; - } - tmp20.__isset.seqFileNum = this.__isset.seqFileNum; - if(__isset.unSeqFileNum) - { - tmp20.UnSeqFileNum = this.UnSeqFileNum; - } - tmp20.__isset.unSeqFileNum = this.__isset.unSeqFileNum; - if(__isset.sequenceChunkNum) - { - tmp20.SequenceChunkNum = this.SequenceChunkNum; - } - tmp20.__isset.sequenceChunkNum = this.__isset.sequenceChunkNum; - if(__isset.sequenceChunkPointNum) - { - tmp20.SequenceChunkPointNum = this.SequenceChunkPointNum; - } - tmp20.__isset.sequenceChunkPointNum = this.__isset.sequenceChunkPointNum; - if(__isset.unsequenceChunkNum) - { - tmp20.UnsequenceChunkNum = this.UnsequenceChunkNum; - } - tmp20.__isset.unsequenceChunkNum = this.__isset.unsequenceChunkNum; - if(__isset.unsequenceChunkPointNum) - { - tmp20.UnsequenceChunkPointNum = this.UnsequenceChunkPointNum; - } - tmp20.__isset.unsequenceChunkPointNum = this.__isset.unsequenceChunkPointNum; - if(__isset.totalPageNum) - { - tmp20.TotalPageNum = this.TotalPageNum; - } - tmp20.__isset.totalPageNum = this.__isset.totalPageNum; - if(__isset.overlappedPageNum) - { - tmp20.OverlappedPageNum = this.OverlappedPageNum; - } - tmp20.__isset.overlappedPageNum = this.__isset.overlappedPageNum; - return tmp20; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -269,13 +210,13 @@ public TSTracingInfo DeepCopy() if (field.Type == TType.List) { { - TList _list21 = await iprot.ReadListBeginAsync(cancellationToken); - ActivityList = new List(_list21.Count); - for(int _i22 = 0; _i22 < _list21.Count; ++_i22) + TList _list18 = await iprot.ReadListBeginAsync(cancellationToken); + ActivityList = new List(_list18.Count); + for(int _i19 = 0; _i19 < _list18.Count; ++_i19) { - string _elem23; - _elem23 = await iprot.ReadStringAsync(cancellationToken); - ActivityList.Add(_elem23); + string _elem20; + _elem20 = await iprot.ReadStringAsync(cancellationToken); + ActivityList.Add(_elem20); } await iprot.ReadListEndAsync(cancellationToken); } @@ -290,13 +231,13 @@ public TSTracingInfo DeepCopy() if (field.Type == TType.List) { { - TList _list24 = await iprot.ReadListBeginAsync(cancellationToken); - ElapsedTimeList = new List(_list24.Count); - for(int _i25 = 0; _i25 < _list24.Count; ++_i25) + TList _list21 = await iprot.ReadListBeginAsync(cancellationToken); + ElapsedTimeList = new List(_list21.Count); + for(int _i22 = 0; _i22 < _list21.Count; ++_i22) { - long _elem26; - _elem26 = await iprot.ReadI64Async(cancellationToken); - ElapsedTimeList.Add(_elem26); + long _elem23; + _elem23 = await iprot.ReadI64Async(cancellationToken); + ElapsedTimeList.Add(_elem23); } await iprot.ReadListEndAsync(cancellationToken); } @@ -437,9 +378,9 @@ public TSTracingInfo DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, ActivityList.Count), cancellationToken); - foreach (string _iter27 in ActivityList) + foreach (string _iter24 in ActivityList) { - await oprot.WriteStringAsync(_iter27, cancellationToken); + await oprot.WriteStringAsync(_iter24, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -453,9 +394,9 @@ public TSTracingInfo DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I64, ElapsedTimeList.Count), cancellationToken); - foreach (long _iter28 in ElapsedTimeList) + foreach (long _iter25 in ElapsedTimeList) { - await oprot.WriteI64Async(_iter28, cancellationToken); + await oprot.WriteI64Async(_iter25, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSUnsetSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSUnsetSchemaTemplateReq.cs index e400e8c..7aa04f4 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSUnsetSchemaTemplateReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSUnsetSchemaTemplateReq.cs @@ -49,21 +49,6 @@ public TSUnsetSchemaTemplateReq(long sessionId, string prefixPath, string templa this.TemplateName = templateName; } - public TSUnsetSchemaTemplateReq DeepCopy() - { - var tmp435 = new TSUnsetSchemaTemplateReq(); - tmp435.SessionId = this.SessionId; - if((PrefixPath != null)) - { - tmp435.PrefixPath = this.PrefixPath; - } - if((TemplateName != null)) - { - tmp435.TemplateName = this.TemplateName; - } - return tmp435; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs b/src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs index ba18a41..1cc55f7 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs @@ -46,17 +46,6 @@ public TSchemaNode(string nodeName, sbyte nodeType) : this() this.NodeType = nodeType; } - public TSchemaNode DeepCopy() - { - var tmp40 = new TSchemaNode(); - if((NodeName != null)) - { - tmp40.NodeName = this.NodeName; - } - tmp40.NodeType = this.NodeType; - return tmp40; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSender.cs b/src/Apache.IoTDB/Rpc/Generated/TSender.cs index 81b5028..9cadb9b 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSender.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSender.cs @@ -72,22 +72,6 @@ public TSender() { } - public TSender DeepCopy() - { - var tmp92 = new TSender(); - if((DataNodeLocation != null) && __isset.dataNodeLocation) - { - tmp92.DataNodeLocation = (TDataNodeLocation)this.DataNodeLocation.DeepCopy(); - } - tmp92.__isset.dataNodeLocation = this.__isset.dataNodeLocation; - if((ConfigNodeLocation != null) && __isset.configNodeLocation) - { - tmp92.ConfigNodeLocation = (TConfigNodeLocation)this.ConfigNodeLocation.DeepCopy(); - } - tmp92.__isset.configNodeLocation = this.__isset.configNodeLocation; - return tmp92; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -204,16 +188,16 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSender("); - int tmp93 = 0; + int tmp67 = 0; if((DataNodeLocation != null) && __isset.dataNodeLocation) { - if(0 < tmp93++) { sb.Append(", "); } + if(0 < tmp67++) { sb.Append(", "); } sb.Append("DataNodeLocation: "); DataNodeLocation.ToString(sb); } if((ConfigNodeLocation != null) && __isset.configNodeLocation) { - if(0 < tmp93++) { sb.Append(", "); } + if(0 < tmp67++) { sb.Append(", "); } sb.Append("ConfigNodeLocation: "); ConfigNodeLocation.ToString(sb); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSeriesPartitionSlot.cs b/src/Apache.IoTDB/Rpc/Generated/TSeriesPartitionSlot.cs index 81bff8c..3f14d2b 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSeriesPartitionSlot.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSeriesPartitionSlot.cs @@ -43,13 +43,6 @@ public TSeriesPartitionSlot(int slotId) : this() this.SlotId = slotId; } - public TSeriesPartitionSlot DeepCopy() - { - var tmp10 = new TSeriesPartitionSlot(); - tmp10.SlotId = this.SlotId; - return tmp10; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TServiceProvider.cs b/src/Apache.IoTDB/Rpc/Generated/TServiceProvider.cs index a3226ed..3480593 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TServiceProvider.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TServiceProvider.cs @@ -50,17 +50,6 @@ public TServiceProvider(TEndPoint endPoint, TServiceType serviceType) : this() this.ServiceType = serviceType; } - public TServiceProvider DeepCopy() - { - var tmp90 = new TServiceProvider(); - if((EndPoint != null)) - { - tmp90.EndPoint = (TEndPoint)this.EndPoint.DeepCopy(); - } - tmp90.ServiceType = this.ServiceType; - return tmp90; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSetConfigurationReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSetConfigurationReq.cs index b92cb73..b2d316a 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSetConfigurationReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSetConfigurationReq.cs @@ -46,17 +46,6 @@ public TSetConfigurationReq(Dictionary configs, int nodeId) : th this.NodeId = nodeId; } - public TSetConfigurationReq DeepCopy() - { - var tmp42 = new TSetConfigurationReq(); - if((Configs != null)) - { - tmp42.Configs = this.Configs.DeepCopy(); - } - tmp42.NodeId = this.NodeId; - return tmp42; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -80,15 +69,15 @@ public TSetConfigurationReq DeepCopy() if (field.Type == TType.Map) { { - TMap _map43 = await iprot.ReadMapBeginAsync(cancellationToken); - Configs = new Dictionary(_map43.Count); - for(int _i44 = 0; _i44 < _map43.Count; ++_i44) + TMap _map29 = await iprot.ReadMapBeginAsync(cancellationToken); + Configs = new Dictionary(_map29.Count); + for(int _i30 = 0; _i30 < _map29.Count; ++_i30) { - string _key45; - string _val46; - _key45 = await iprot.ReadStringAsync(cancellationToken); - _val46 = await iprot.ReadStringAsync(cancellationToken); - Configs[_key45] = _val46; + string _key31; + string _val32; + _key31 = await iprot.ReadStringAsync(cancellationToken); + _val32 = await iprot.ReadStringAsync(cancellationToken); + Configs[_key31] = _val32; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -150,10 +139,10 @@ public TSetConfigurationReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Configs.Count), cancellationToken); - foreach (string _iter47 in Configs.Keys) + foreach (string _iter33 in Configs.Keys) { - await oprot.WriteStringAsync(_iter47, cancellationToken); - await oprot.WriteStringAsync(Configs[_iter47], cancellationToken); + await oprot.WriteStringAsync(_iter33, cancellationToken); + await oprot.WriteStringAsync(Configs[_iter33], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSetSpaceQuotaReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSetSpaceQuotaReq.cs index c3c2264..7bc7f83 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSetSpaceQuotaReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSetSpaceQuotaReq.cs @@ -46,20 +46,6 @@ public TSetSpaceQuotaReq(List database, TSpaceQuota spaceLimit) : this() this.SpaceLimit = spaceLimit; } - public TSetSpaceQuotaReq DeepCopy() - { - var tmp80 = new TSetSpaceQuotaReq(); - if((Database != null)) - { - tmp80.Database = this.Database.DeepCopy(); - } - if((SpaceLimit != null)) - { - tmp80.SpaceLimit = (TSpaceQuota)this.SpaceLimit.DeepCopy(); - } - return tmp80; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -83,13 +69,13 @@ public TSetSpaceQuotaReq DeepCopy() if (field.Type == TType.List) { { - TList _list81 = await iprot.ReadListBeginAsync(cancellationToken); - Database = new List(_list81.Count); - for(int _i82 = 0; _i82 < _list81.Count; ++_i82) + TList _list59 = await iprot.ReadListBeginAsync(cancellationToken); + Database = new List(_list59.Count); + for(int _i60 = 0; _i60 < _list59.Count; ++_i60) { - string _elem83; - _elem83 = await iprot.ReadStringAsync(cancellationToken); - Database.Add(_elem83); + string _elem61; + _elem61 = await iprot.ReadStringAsync(cancellationToken); + Database.Add(_elem61); } await iprot.ReadListEndAsync(cancellationToken); } @@ -152,9 +138,9 @@ public TSetSpaceQuotaReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Database.Count), cancellationToken); - foreach (string _iter84 in Database) + foreach (string _iter62 in Database) { - await oprot.WriteStringAsync(_iter84, cancellationToken); + await oprot.WriteStringAsync(_iter62, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSetTTLReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSetTTLReq.cs index 66b146f..c256828 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSetTTLReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSetTTLReq.cs @@ -49,18 +49,6 @@ public TSetTTLReq(List pathPattern, long TTL, bool isDataBase) : this() this.IsDataBase = isDataBase; } - public TSetTTLReq DeepCopy() - { - var tmp49 = new TSetTTLReq(); - if((PathPattern != null)) - { - tmp49.PathPattern = this.PathPattern.DeepCopy(); - } - tmp49.TTL = this.TTL; - tmp49.IsDataBase = this.IsDataBase; - return tmp49; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -85,13 +73,13 @@ public TSetTTLReq DeepCopy() if (field.Type == TType.List) { { - TList _list50 = await iprot.ReadListBeginAsync(cancellationToken); - PathPattern = new List(_list50.Count); - for(int _i51 = 0; _i51 < _list50.Count; ++_i51) + TList _list35 = await iprot.ReadListBeginAsync(cancellationToken); + PathPattern = new List(_list35.Count); + for(int _i36 = 0; _i36 < _list35.Count; ++_i36) { - string _elem52; - _elem52 = await iprot.ReadStringAsync(cancellationToken); - PathPattern.Add(_elem52); + string _elem37; + _elem37 = await iprot.ReadStringAsync(cancellationToken); + PathPattern.Add(_elem37); } await iprot.ReadListEndAsync(cancellationToken); } @@ -168,9 +156,9 @@ public TSetTTLReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, PathPattern.Count), cancellationToken); - foreach (string _iter53 in PathPattern) + foreach (string _iter38 in PathPattern) { - await oprot.WriteStringAsync(_iter53, cancellationToken); + await oprot.WriteStringAsync(_iter38, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSetThrottleQuotaReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSetThrottleQuotaReq.cs index 2bb32e7..651db17 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSetThrottleQuotaReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSetThrottleQuotaReq.cs @@ -46,20 +46,6 @@ public TSetThrottleQuotaReq(string userName, TThrottleQuota throttleQuota) : thi this.ThrottleQuota = throttleQuota; } - public TSetThrottleQuotaReq DeepCopy() - { - var tmp86 = new TSetThrottleQuotaReq(); - if((UserName != null)) - { - tmp86.UserName = this.UserName; - } - if((ThrottleQuota != null)) - { - tmp86.ThrottleQuota = (TThrottleQuota)this.ThrottleQuota.DeepCopy(); - } - return tmp86; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs index 99d5edd..786daf1 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs @@ -43,16 +43,6 @@ public TSettleReq(List paths) : this() this.Paths = paths; } - public TSettleReq DeepCopy() - { - var tmp34 = new TSettleReq(); - if((Paths != null)) - { - tmp34.Paths = this.Paths.DeepCopy(); - } - return tmp34; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -75,13 +65,13 @@ public TSettleReq DeepCopy() if (field.Type == TType.List) { { - TList _list35 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list35.Count); - for(int _i36 = 0; _i36 < _list35.Count; ++_i36) + TList _list23 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list23.Count); + for(int _i24 = 0; _i24 < _list23.Count; ++_i24) { - string _elem37; - _elem37 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem37); + string _elem25; + _elem25 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem25); } await iprot.ReadListEndAsync(cancellationToken); } @@ -128,9 +118,9 @@ public TSettleReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter38 in Paths) + foreach (string _iter26 in Paths) { - await oprot.WriteStringAsync(_iter38, cancellationToken); + await oprot.WriteStringAsync(_iter26, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationResp.cs b/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationResp.cs index 559ff82..0fa4bb9 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationResp.cs @@ -46,20 +46,6 @@ public TShowConfigurationResp(TSStatus status, string content) : this() this.Content = content; } - public TShowConfigurationResp DeepCopy() - { - var tmp114 = new TShowConfigurationResp(); - if((Status != null)) - { - tmp114.Status = (TSStatus)this.Status.DeepCopy(); - } - if((Content != null)) - { - tmp114.Content = this.Content; - } - return tmp114; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationTemplateResp.cs b/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationTemplateResp.cs index 9608481..79ab277 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationTemplateResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationTemplateResp.cs @@ -46,20 +46,6 @@ public TShowConfigurationTemplateResp(TSStatus status, string content) : this() this.Content = content; } - public TShowConfigurationTemplateResp DeepCopy() - { - var tmp112 = new TShowConfigurationTemplateResp(); - if((Status != null)) - { - tmp112.Status = (TSStatus)this.Status.DeepCopy(); - } - if((Content != null)) - { - tmp112.Content = this.Content; - } - return tmp112; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs b/src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs index 56806b7..eacfb85 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs @@ -43,16 +43,6 @@ public TShowTTLReq(List pathPattern) : this() this.PathPattern = pathPattern; } - public TShowTTLReq DeepCopy() - { - var tmp55 = new TShowTTLReq(); - if((PathPattern != null)) - { - tmp55.PathPattern = this.PathPattern.DeepCopy(); - } - return tmp55; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -75,13 +65,13 @@ public TShowTTLReq DeepCopy() if (field.Type == TType.List) { { - TList _list56 = await iprot.ReadListBeginAsync(cancellationToken); - PathPattern = new List(_list56.Count); - for(int _i57 = 0; _i57 < _list56.Count; ++_i57) + TList _list40 = await iprot.ReadListBeginAsync(cancellationToken); + PathPattern = new List(_list40.Count); + for(int _i41 = 0; _i41 < _list40.Count; ++_i41) { - string _elem58; - _elem58 = await iprot.ReadStringAsync(cancellationToken); - PathPattern.Add(_elem58); + string _elem42; + _elem42 = await iprot.ReadStringAsync(cancellationToken); + PathPattern.Add(_elem42); } await iprot.ReadListEndAsync(cancellationToken); } @@ -128,9 +118,9 @@ public TShowTTLReq DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, PathPattern.Count), cancellationToken); - foreach (string _iter59 in PathPattern) + foreach (string _iter43 in PathPattern) { - await oprot.WriteStringAsync(_iter59, cancellationToken); + await oprot.WriteStringAsync(_iter43, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs b/src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs index a69823d..14ca513 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs @@ -87,27 +87,6 @@ public TSpaceQuota() { } - public TSpaceQuota DeepCopy() - { - var tmp69 = new TSpaceQuota(); - if(__isset.diskSize) - { - tmp69.DiskSize = this.DiskSize; - } - tmp69.__isset.diskSize = this.__isset.diskSize; - if(__isset.deviceNum) - { - tmp69.DeviceNum = this.DeviceNum; - } - tmp69.__isset.deviceNum = this.__isset.deviceNum; - if(__isset.timeserieNum) - { - tmp69.TimeserieNum = this.TimeserieNum; - } - tmp69.__isset.timeserieNum = this.__isset.timeserieNum; - return tmp69; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -246,22 +225,22 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TSpaceQuota("); - int tmp70 = 0; + int tmp51 = 0; if(__isset.diskSize) { - if(0 < tmp70++) { sb.Append(", "); } + if(0 < tmp51++) { sb.Append(", "); } sb.Append("DiskSize: "); DiskSize.ToString(sb); } if(__isset.deviceNum) { - if(0 < tmp70++) { sb.Append(", "); } + if(0 < tmp51++) { sb.Append(", "); } sb.Append("DeviceNum: "); DeviceNum.ToString(sb); } if(__isset.timeserieNum) { - if(0 < tmp70++) { sb.Append(", "); } + if(0 < tmp51++) { sb.Append(", "); } sb.Append("TimeserieNum: "); TimeserieNum.ToString(sb); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSyncIdentityInfo.cs b/src/Apache.IoTDB/Rpc/Generated/TSyncIdentityInfo.cs index fde1167..ccf7bc5 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSyncIdentityInfo.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSyncIdentityInfo.cs @@ -52,25 +52,6 @@ public TSyncIdentityInfo(string pipeName, long createTime, string version, strin this.Database = database; } - public TSyncIdentityInfo DeepCopy() - { - var tmp445 = new TSyncIdentityInfo(); - if((PipeName != null)) - { - tmp445.PipeName = this.PipeName; - } - tmp445.CreateTime = this.CreateTime; - if((Version != null)) - { - tmp445.Version = this.Version; - } - if((Database != null)) - { - tmp445.Database = this.Database; - } - return tmp445; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TSyncTransportMetaInfo.cs b/src/Apache.IoTDB/Rpc/Generated/TSyncTransportMetaInfo.cs index 1482952..ef840cc 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSyncTransportMetaInfo.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSyncTransportMetaInfo.cs @@ -46,17 +46,6 @@ public TSyncTransportMetaInfo(string fileName, long startIndex) : this() this.StartIndex = startIndex; } - public TSyncTransportMetaInfo DeepCopy() - { - var tmp447 = new TSyncTransportMetaInfo(); - if((FileName != null)) - { - tmp447.FileName = this.FileName; - } - tmp447.StartIndex = this.StartIndex; - return tmp447; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResp.cs b/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResp.cs index 06549e5..836a6a7 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResp.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResp.cs @@ -46,20 +46,6 @@ public TTestConnectionResp(TSStatus status, List resultLi this.ResultList = resultList; } - public TTestConnectionResp DeepCopy() - { - var tmp96 = new TTestConnectionResp(); - if((Status != null)) - { - tmp96.Status = (TSStatus)this.Status.DeepCopy(); - } - if((ResultList != null)) - { - tmp96.ResultList = this.ResultList.DeepCopy(); - } - return tmp96; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -95,14 +81,14 @@ public TTestConnectionResp DeepCopy() if (field.Type == TType.List) { { - TList _list97 = await iprot.ReadListBeginAsync(cancellationToken); - ResultList = new List(_list97.Count); - for(int _i98 = 0; _i98 < _list97.Count; ++_i98) + TList _list69 = await iprot.ReadListBeginAsync(cancellationToken); + ResultList = new List(_list69.Count); + for(int _i70 = 0; _i70 < _list69.Count; ++_i70) { - TTestConnectionResult _elem99; - _elem99 = new TTestConnectionResult(); - await _elem99.ReadAsync(iprot, cancellationToken); - ResultList.Add(_elem99); + TTestConnectionResult _elem71; + _elem71 = new TTestConnectionResult(); + await _elem71.ReadAsync(iprot, cancellationToken); + ResultList.Add(_elem71); } await iprot.ReadListEndAsync(cancellationToken); } @@ -162,9 +148,9 @@ public TTestConnectionResp DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, ResultList.Count), cancellationToken); - foreach (TTestConnectionResult _iter100 in ResultList) + foreach (TTestConnectionResult _iter72 in ResultList) { - await _iter100.WriteAsync(oprot, cancellationToken); + await _iter72.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResult.cs b/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResult.cs index dd62cfe..b4117b9 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResult.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResult.cs @@ -70,26 +70,6 @@ public TTestConnectionResult(TServiceProvider serviceProvider, TSender sender, b this.Success = success; } - public TTestConnectionResult DeepCopy() - { - var tmp94 = new TTestConnectionResult(); - if((ServiceProvider != null)) - { - tmp94.ServiceProvider = (TServiceProvider)this.ServiceProvider.DeepCopy(); - } - if((Sender != null)) - { - tmp94.Sender = (TSender)this.Sender.DeepCopy(); - } - tmp94.Success = this.Success; - if((Reason != null) && __isset.reason) - { - tmp94.Reason = this.Reason; - } - tmp94.__isset.reason = this.__isset.reason; - return tmp94; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TThrottleQuota.cs b/src/Apache.IoTDB/Rpc/Generated/TThrottleQuota.cs index d902e0d..25794ec 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TThrottleQuota.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TThrottleQuota.cs @@ -87,27 +87,6 @@ public TThrottleQuota() { } - public TThrottleQuota DeepCopy() - { - var tmp73 = new TThrottleQuota(); - if((ThrottleLimit != null) && __isset.throttleLimit) - { - tmp73.ThrottleLimit = this.ThrottleLimit.DeepCopy(); - } - tmp73.__isset.throttleLimit = this.__isset.throttleLimit; - if(__isset.memLimit) - { - tmp73.MemLimit = this.MemLimit; - } - tmp73.__isset.memLimit = this.__isset.memLimit; - if(__isset.cpuLimit) - { - tmp73.CpuLimit = this.CpuLimit; - } - tmp73.__isset.cpuLimit = this.__isset.cpuLimit; - return tmp73; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); @@ -129,16 +108,16 @@ public TThrottleQuota DeepCopy() if (field.Type == TType.Map) { { - TMap _map74 = await iprot.ReadMapBeginAsync(cancellationToken); - ThrottleLimit = new Dictionary(_map74.Count); - for(int _i75 = 0; _i75 < _map74.Count; ++_i75) + TMap _map53 = await iprot.ReadMapBeginAsync(cancellationToken); + ThrottleLimit = new Dictionary(_map53.Count); + for(int _i54 = 0; _i54 < _map53.Count; ++_i54) { - ThrottleType _key76; - TTimedQuota _val77; - _key76 = (ThrottleType)await iprot.ReadI32Async(cancellationToken); - _val77 = new TTimedQuota(); - await _val77.ReadAsync(iprot, cancellationToken); - ThrottleLimit[_key76] = _val77; + ThrottleType _key55; + TTimedQuota _val56; + _key55 = (ThrottleType)await iprot.ReadI32Async(cancellationToken); + _val56 = new TTimedQuota(); + await _val56.ReadAsync(iprot, cancellationToken); + ThrottleLimit[_key55] = _val56; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -200,10 +179,10 @@ public TThrottleQuota DeepCopy() await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, ThrottleLimit.Count), cancellationToken); - foreach (ThrottleType _iter78 in ThrottleLimit.Keys) + foreach (ThrottleType _iter57 in ThrottleLimit.Keys) { - await oprot.WriteI32Async((int)_iter78, cancellationToken); - await ThrottleLimit[_iter78].WriteAsync(oprot, cancellationToken); + await oprot.WriteI32Async((int)_iter57, cancellationToken); + await ThrottleLimit[_iter57].WriteAsync(oprot, cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -267,22 +246,22 @@ public override int GetHashCode() { public override string ToString() { var sb = new StringBuilder("TThrottleQuota("); - int tmp79 = 0; + int tmp58 = 0; if((ThrottleLimit != null) && __isset.throttleLimit) { - if(0 < tmp79++) { sb.Append(", "); } + if(0 < tmp58++) { sb.Append(", "); } sb.Append("ThrottleLimit: "); ThrottleLimit.ToString(sb); } if(__isset.memLimit) { - if(0 < tmp79++) { sb.Append(", "); } + if(0 < tmp58++) { sb.Append(", "); } sb.Append("MemLimit: "); MemLimit.ToString(sb); } if(__isset.cpuLimit) { - if(0 < tmp79++) { sb.Append(", "); } + if(0 < tmp58++) { sb.Append(", "); } sb.Append("CpuLimit: "); CpuLimit.ToString(sb); } diff --git a/src/Apache.IoTDB/Rpc/Generated/TTimePartitionSlot.cs b/src/Apache.IoTDB/Rpc/Generated/TTimePartitionSlot.cs index 7ac09f7..abf1d79 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TTimePartitionSlot.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TTimePartitionSlot.cs @@ -43,13 +43,6 @@ public TTimePartitionSlot(long startTime) : this() this.StartTime = startTime; } - public TTimePartitionSlot DeepCopy() - { - var tmp12 = new TTimePartitionSlot(); - tmp12.StartTime = this.StartTime; - return tmp12; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/TTimedQuota.cs b/src/Apache.IoTDB/Rpc/Generated/TTimedQuota.cs index 63cc675..282ac91 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TTimedQuota.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TTimedQuota.cs @@ -46,14 +46,6 @@ public TTimedQuota(long timeUnit, long softLimit) : this() this.SoftLimit = softLimit; } - public TTimedQuota DeepCopy() - { - var tmp71 = new TTimedQuota(); - tmp71.TimeUnit = this.TimeUnit; - tmp71.SoftLimit = this.SoftLimit; - return tmp71; - } - public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); diff --git a/src/Apache.IoTDB/Rpc/Generated/client.Extensions.cs b/src/Apache.IoTDB/Rpc/Generated/client.Extensions.cs index 17fda94..49c8a7e 100644 --- a/src/Apache.IoTDB/Rpc/Generated/client.Extensions.cs +++ b/src/Apache.IoTDB/Rpc/Generated/client.Extensions.cs @@ -37,18 +37,6 @@ public static int GetHashCode(this Dictionary instance) } - public static Dictionary DeepCopy(this Dictionary source) - { - if (source == null) - return null; - - var tmp743 = new Dictionary(source.Count); - foreach (var pair in source) - tmp743.Add((pair.Key != null) ? pair.Key : null, pair.Value); - return tmp743; - } - - public static bool Equals(this Dictionary instance, object that) { if (!(that is Dictionary other)) return false; @@ -64,18 +52,6 @@ public static int GetHashCode(this Dictionary instance) } - public static Dictionary DeepCopy(this Dictionary source) - { - if (source == null) - return null; - - var tmp744 = new Dictionary(source.Count); - foreach (var pair in source) - tmp744.Add((pair.Key != null) ? pair.Key : null, (pair.Value != null) ? pair.Value : null); - return tmp744; - } - - public static bool Equals(this List> instance, object that) { if (!(that is List> other)) return false; @@ -91,18 +67,6 @@ public static int GetHashCode(this List> instance) } - public static List> DeepCopy(this List> source) - { - if (source == null) - return null; - - var tmp745 = new List>(source.Count); - foreach (var elem in source) - tmp745.Add((elem != null) ? elem.DeepCopy() : null); - return tmp745; - } - - public static bool Equals(this List> instance, object that) { if (!(that is List> other)) return false; @@ -118,18 +82,6 @@ public static int GetHashCode(this List> instance) } - public static List> DeepCopy(this List> source) - { - if (source == null) - return null; - - var tmp746 = new List>(source.Count); - foreach (var elem in source) - tmp746.Add((elem != null) ? elem.DeepCopy() : null); - return tmp746; - } - - public static bool Equals(this List> instance, object that) { if (!(that is List> other)) return false; @@ -145,18 +97,6 @@ public static int GetHashCode(this List> instance) } - public static List> DeepCopy(this List> source) - { - if (source == null) - return null; - - var tmp747 = new List>(source.Count); - foreach (var elem in source) - tmp747.Add((elem != null) ? elem.DeepCopy() : null); - return tmp747; - } - - public static bool Equals(this List instance, object that) { if (!(that is List other)) return false; @@ -172,18 +112,6 @@ public static int GetHashCode(this List instance) } - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp748 = new List(source.Count); - foreach (var elem in source) - tmp748.Add(elem); - return tmp748; - } - - public static bool Equals(this List instance, object that) { if (!(that is List other)) return false; @@ -199,18 +127,6 @@ public static int GetHashCode(this List instance) } - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp749 = new List(source.Count); - foreach (var elem in source) - tmp749.Add((elem != null) ? elem.DeepCopy() : null); - return tmp749; - } - - public static bool Equals(this List instance, object that) { if (!(that is List other)) return false; @@ -226,18 +142,6 @@ public static int GetHashCode(this List instance) } - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp750 = new List(source.Count); - foreach (var elem in source) - tmp750.Add((elem != null) ? elem.DeepCopy() : null); - return tmp750; - } - - public static bool Equals(this List instance, object that) { if (!(that is List other)) return false; @@ -253,18 +157,6 @@ public static int GetHashCode(this List instance) } - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp751 = new List(source.Count); - foreach (var elem in source) - tmp751.Add((elem != null) ? elem.ToArray() : null); - return tmp751; - } - - public static bool Equals(this List instance, object that) { if (!(that is List other)) return false; @@ -280,18 +172,6 @@ public static int GetHashCode(this List instance) } - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp752 = new List(source.Count); - foreach (var elem in source) - tmp752.Add(elem); - return tmp752; - } - - public static bool Equals(this List instance, object that) { if (!(that is List other)) return false; @@ -307,18 +187,6 @@ public static int GetHashCode(this List instance) } - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp753 = new List(source.Count); - foreach (var elem in source) - tmp753.Add(elem); - return tmp753; - } - - public static bool Equals(this List instance, object that) { if (!(that is List other)) return false; @@ -334,18 +202,6 @@ public static int GetHashCode(this List instance) } - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp754 = new List(source.Count); - foreach (var elem in source) - tmp754.Add(elem); - return tmp754; - } - - public static bool Equals(this List instance, object that) { if (!(that is List other)) return false; @@ -361,16 +217,4 @@ public static int GetHashCode(this List instance) } - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp755 = new List(source.Count); - foreach (var elem in source) - tmp755.Add((elem != null) ? elem : null); - return tmp755; - } - - } diff --git a/src/Apache.IoTDB/Rpc/Generated/common.Extensions.cs b/src/Apache.IoTDB/Rpc/Generated/common.Extensions.cs index 831b43d..4fd2bad 100644 --- a/src/Apache.IoTDB/Rpc/Generated/common.Extensions.cs +++ b/src/Apache.IoTDB/Rpc/Generated/common.Extensions.cs @@ -37,18 +37,6 @@ public static int GetHashCode(this Dictionary instanc } - public static Dictionary DeepCopy(this Dictionary source) - { - if (source == null) - return null; - - var tmp116 = new Dictionary(source.Count); - foreach (var pair in source) - tmp116.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); - return tmp116; - } - - public static bool Equals(this Dictionary instance, object that) { if (!(that is Dictionary other)) return false; @@ -64,18 +52,6 @@ public static int GetHashCode(this Dictionary instance) } - public static Dictionary DeepCopy(this Dictionary source) - { - if (source == null) - return null; - - var tmp117 = new Dictionary(source.Count); - foreach (var pair in source) - tmp117.Add((pair.Key != null) ? pair.Key : null, (pair.Value != null) ? pair.Value : null); - return tmp117; - } - - public static bool Equals(this List instance, object that) { if (!(that is List other)) return false; @@ -91,18 +67,6 @@ public static int GetHashCode(this List instance) } - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp118 = new List(source.Count); - foreach (var elem in source) - tmp118.Add((elem != null) ? elem.DeepCopy() : null); - return tmp118; - } - - public static bool Equals(this List instance, object that) { if (!(that is List other)) return false; @@ -118,18 +82,6 @@ public static int GetHashCode(this List instance) } - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp119 = new List(source.Count); - foreach (var elem in source) - tmp119.Add((elem != null) ? elem.DeepCopy() : null); - return tmp119; - } - - public static bool Equals(this List instance, object that) { if (!(that is List other)) return false; @@ -145,18 +97,6 @@ public static int GetHashCode(this List instance) } - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp120 = new List(source.Count); - foreach (var elem in source) - tmp120.Add((elem != null) ? elem.DeepCopy() : null); - return tmp120; - } - - public static bool Equals(this List instance, object that) { if (!(that is List other)) return false; @@ -172,18 +112,6 @@ public static int GetHashCode(this List instance) } - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp121 = new List(source.Count); - foreach (var elem in source) - tmp121.Add((elem != null) ? elem.DeepCopy() : null); - return tmp121; - } - - public static bool Equals(this List instance, object that) { if (!(that is List other)) return false; @@ -199,18 +127,6 @@ public static int GetHashCode(this List instance) } - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp122 = new List(source.Count); - foreach (var elem in source) - tmp122.Add((elem != null) ? elem.DeepCopy() : null); - return tmp122; - } - - public static bool Equals(this List instance, object that) { if (!(that is List other)) return false; @@ -226,16 +142,4 @@ public static int GetHashCode(this List instance) } - public static List DeepCopy(this List source) - { - if (source == null) - return null; - - var tmp123 = new List(source.Count); - foreach (var elem in source) - tmp123.Add((elem != null) ? elem : null); - return tmp123; - } - - } From 77c35693b2b829a7cbc1bd47794f760edb568bae Mon Sep 17 00:00:00 2001 From: luzhan <513964121@qq.com> Date: Mon, 8 Jul 2024 22:55:50 +0800 Subject: [PATCH 13/15] feat: allow clients in sessionpool to connect to different endpoints --- src/Apache.IoTDB/Apache.IoTDB.csproj | 29 +++++++---- src/Apache.IoTDB/Client.cs | 4 +- src/Apache.IoTDB/SessionPool.cs | 75 +++++++++++++++++----------- 3 files changed, 66 insertions(+), 42 deletions(-) diff --git a/src/Apache.IoTDB/Apache.IoTDB.csproj b/src/Apache.IoTDB/Apache.IoTDB.csproj index 9441084..89d433b 100644 --- a/src/Apache.IoTDB/Apache.IoTDB.csproj +++ b/src/Apache.IoTDB/Apache.IoTDB.csproj @@ -1,16 +1,23 @@  - - net5.0;net6.0;netstandard2.1;netstandard2.0;net461 - latest + + net5.0;net6.0;netstandard2.1;netstandard2.0;net461 + latest + eedalong, lausannel, MysticBoy, Aiemu, HTHou + LiuLin Lab + C# client for Apache IoTDB + https://github.com/apache/iotdb-client-csharp + https://github.com/apache/iotdb-client-csharp - - - - - - - + - + + + + + + + + \ No newline at end of file diff --git a/src/Apache.IoTDB/Client.cs b/src/Apache.IoTDB/Client.cs index 0fb5507..8478706 100644 --- a/src/Apache.IoTDB/Client.cs +++ b/src/Apache.IoTDB/Client.cs @@ -8,13 +8,15 @@ public class Client public long SessionId { get; } public long StatementId { get; } public TFramedTransport Transport { get; } + public TEndPoint EndPoint { get; } - public Client(IClientRPCService.Client client, long sessionId, long statementId, TFramedTransport transport) + public Client(IClientRPCService.Client client, long sessionId, long statementId, TFramedTransport transport, TEndPoint endpoint) { ServiceClient = client; SessionId = sessionId; StatementId = statementId; Transport = transport; + EndPoint = endpoint; } } } \ No newline at end of file diff --git a/src/Apache.IoTDB/SessionPool.cs b/src/Apache.IoTDB/SessionPool.cs index 44c3d7b..1014416 100644 --- a/src/Apache.IoTDB/SessionPool.cs +++ b/src/Apache.IoTDB/SessionPool.cs @@ -122,7 +122,7 @@ public async Task ExecuteClientOperationAsync(AsyncOperation x.Ip == originalClient.EndPoint.Ip && x.Port == originalClient.EndPoint.Port); + if (startIndex == -1) { - int currentHostIndex = random.Next(0, _endPoints.Count); - int attempts = 0; + throw new ArgumentException($"The original client is not in the list of endpoints. Original client: {originalClient.EndPoint.Ip}:{originalClient.EndPoint.Port}"); + } + for (int i = 0; i < RetryNum && !isConnected; i++) + { + int attempts = 1; while (attempts < _endPoints.Count) { - int j = (currentHostIndex + attempts) % _endPoints.Count; - + int j = (startIndex + attempts) % _endPoints.Count; try { - for (int index = 0; index < _poolSize; index++) - { - var client = await CreateAndOpen(_endPoints[j].Ip, _endPoints[j].Port, _enableRpcCompression, _timeout, cancellationToken); - _clients.Add(client); - } + var client = await CreateAndOpen(_endPoints[j].Ip, _endPoints[j].Port, _enableRpcCompression, _timeout, cancellationToken); + _clients.Add(client); isConnected = true; break; } @@ -248,7 +262,7 @@ public async Task Reconnect(CancellationToken cancellationToken = default) } } - if (!isConnected || _clients.ClientQueue.Count != _poolSize) + if (!isConnected) { throw new TException("Error occurs when reconnecting session pool. Could not connect to any server", null); } @@ -369,13 +383,14 @@ private async Task CreateAndOpen(string host, int port, bool enableRpcCo var sessionId = openResp.SessionId; var statementId = await client.requestStatementIdAsync(sessionId, cancellationToken); - _isClose = false; + var endpoint = new TEndPoint(host, port); var returnClient = new Client( client, sessionId, statementId, - transport); + transport, + endpoint); return returnClient; } From 9994beb04ae78369110c4273a3500a9d15a4b520 Mon Sep 17 00:00:00 2001 From: Zhan Lu <51200935+lausannel@users.noreply.github.com> Date: Mon, 8 Jul 2024 20:21:53 -0700 Subject: [PATCH 14/15] fix: handle cases when multiple clients failing simultaneously --- src/Apache.IoTDB/SessionPool.cs | 33 +++++++++++++-------------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/src/Apache.IoTDB/SessionPool.cs b/src/Apache.IoTDB/SessionPool.cs index 1014416..3d46082 100644 --- a/src/Apache.IoTDB/SessionPool.cs +++ b/src/Apache.IoTDB/SessionPool.cs @@ -122,8 +122,7 @@ public async Task ExecuteClientOperationAsync(AsyncOperation Reconnect(Client originalClient = null, CancellationToken cancellationToken = default) { if (_nodeUrls.Count == 0) { await Open(_enableRpcCompression); - return; + return _clients.Take(); } - bool isConnected = false; originalClient.Transport.Close(); int startIndex = _endPoints.FindIndex(x => x.Ip == originalClient.EndPoint.Ip && x.Port == originalClient.EndPoint.Port); @@ -241,31 +239,26 @@ public async Task Reconnect(Client originalClient = null, CancellationToken canc throw new ArgumentException($"The original client is not in the list of endpoints. Original client: {originalClient.EndPoint.Ip}:{originalClient.EndPoint.Port}"); } - for (int i = 0; i < RetryNum && !isConnected; i++) + for (int attempt = 1; attempt <= RetryNum; attempt++) { - int attempts = 1; - while (attempts < _endPoints.Count) + for (int i = 0; i < _endPoints.Count; i++) { - int j = (startIndex + attempts) % _endPoints.Count; + int j = (startIndex + i) % _endPoints.Count; try { var client = await CreateAndOpen(_endPoints[j].Ip, _endPoints[j].Port, _enableRpcCompression, _timeout, cancellationToken); - _clients.Add(client); - isConnected = true; - break; + return client; } - catch (TException) + catch (Exception) { - // Connection failed, try next node + if (_debugMode) + { + _logger.LogWarning(e, "Attempt connecting to {0}:{1} failed", _endPoints[j].Ip, _endPoints[j].Port); + } } - attempts++; } } - - if (!isConnected) - { - throw new TException("Error occurs when reconnecting session pool. Could not connect to any server", null); - } + throw new TException("Error occurs when reconnecting session pool. Could not connect to any server", null); } From a1c967a790f24e5ae68822d48d8f13457e530042 Mon Sep 17 00:00:00 2001 From: Zhan Lu <51200935+lausannel@users.noreply.github.com> Date: Mon, 8 Jul 2024 20:23:40 -0700 Subject: [PATCH 15/15] fix: missing var --- src/Apache.IoTDB/SessionPool.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Apache.IoTDB/SessionPool.cs b/src/Apache.IoTDB/SessionPool.cs index 3d46082..7b9a09b 100644 --- a/src/Apache.IoTDB/SessionPool.cs +++ b/src/Apache.IoTDB/SessionPool.cs @@ -249,7 +249,7 @@ public async Task Reconnect(Client originalClient = null, CancellationTo var client = await CreateAndOpen(_endPoints[j].Ip, _endPoints[j].Port, _enableRpcCompression, _timeout, cancellationToken); return client; } - catch (Exception) + catch (Exception e) { if (_debugMode) {