From 9c49167f2a7da24fea1b630b4714fdf236b66520 Mon Sep 17 00:00:00 2001 From: Zhan Lu <51200935+lausannel@users.noreply.github.com> Date: Fri, 27 Jun 2025 16:36:43 +0800 Subject: [PATCH 01/14] Add TSBlock (#1) * add tsblock * develop tsblock and rpcdataset * improve code specifications * develop RpcDataSet api * coding api in SessionDataSet and rpcDataSet * fix bugs & pass test * adapted to IoTDBDataReader * adopted comments * add license and change ubuntu version * format code --------- Co-authored-by: xxhz22 <1791961174@qq.com> --- .github/workflows/pre-commit-format.yml | 2 +- .../Program.cs | 4 +- .../SessionPoolTest.AlignedRecord.cs | 32 +- .../SessionPoolTest.AlignedTablet.cs | 12 +- .../SessionPoolTest.Record.cs | 54 +- .../SessionPoolTest.Tablet.cs | 20 +- .../SessionPoolTest.TestNetwork.cs | 18 +- .../Apache.IoTDB.Samples/SessionPoolTest.cs | 49 +- .../TableSessionPoolTest.cs | 14 +- samples/Apache.IoTDB.Samples/UtilsTest.cs | 103 + .../IoTDBConnectionStringBuilder.cs | 4 +- src/Apache.IoTDB.Data/IoTDBDataReader.cs | 17 +- src/Apache.IoTDB/Client.cs | 18 + src/Apache.IoTDB/DataStructure/ByteBuffer.cs | 10 + src/Apache.IoTDB/DataStructure/Column.cs | 324 + .../DataStructure/ColumnDecoder.cs | 220 + src/Apache.IoTDB/DataStructure/RpcDataSet.cs | 847 ++ .../DataStructure/SessionDataSet.cs | 297 +- src/Apache.IoTDB/DataStructure/TsBlock.cs | 124 + .../Rpc/Generated/FunctionType.cs | 3 +- .../Rpc/Generated/IClientRPCService.cs | 8531 +++++++++-------- src/Apache.IoTDB/Rpc/Generated/Model.cs | 3 +- .../Rpc/Generated/ServerProperties.cs | 127 +- .../Rpc/Generated/TAINodeConfiguration.cs | 39 +- .../Rpc/Generated/TAINodeLocation.cs | 39 +- .../Rpc/Generated/TAggregationType.cs | 6 +- .../Rpc/Generated/TConfigNodeLocation.cs | 51 +- .../Rpc/Generated/TConsensusGroupId.cs | 39 +- .../Rpc/Generated/TConsensusGroupType.cs | 3 +- ...TCreateTimeseriesUsingSchemaTemplateReq.cs | 55 +- .../Rpc/Generated/TDataNodeConfiguration.cs | 39 +- .../Rpc/Generated/TDataNodeLocation.cs | 87 +- src/Apache.IoTDB/Rpc/Generated/TEndPoint.cs | 39 +- src/Apache.IoTDB/Rpc/Generated/TFile.cs | 39 +- src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs | 57 +- src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs | 125 +- src/Apache.IoTDB/Rpc/Generated/TLicense.cs | 111 +- src/Apache.IoTDB/Rpc/Generated/TLoadSample.cs | 63 +- .../Rpc/Generated/TNodeLocations.cs | 81 +- .../Rpc/Generated/TNodeResource.cs | 39 +- .../Rpc/Generated/TPipeSubscribeReq.cs | 51 +- .../Rpc/Generated/TPipeSubscribeResp.cs | 79 +- .../Rpc/Generated/TPipeTransferReq.cs | 51 +- .../Rpc/Generated/TPipeTransferResp.cs | 39 +- .../Generated/TRegionMaintainTaskStatus.cs | 3 +- .../Rpc/Generated/TRegionMigrateFailedType.cs | 3 +- .../Rpc/Generated/TRegionReplicaSet.cs | 57 +- .../Rpc/Generated/TSAggregationQueryReq.cs | 179 +- .../Generated/TSAppendSchemaTemplateReq.cs | 163 +- .../Generated/TSBackupConfigurationResp.cs | 63 +- .../Rpc/Generated/TSCancelOperationReq.cs | 39 +- .../Rpc/Generated/TSCloseOperationReq.cs | 51 +- .../Rpc/Generated/TSCloseSessionReq.cs | 27 +- .../Rpc/Generated/TSConnectionInfo.cs | 63 +- .../Rpc/Generated/TSConnectionInfoResp.cs | 45 +- .../Rpc/Generated/TSConnectionType.cs | 3 +- .../Generated/TSCreateAlignedTimeseriesReq.cs | 275 +- .../Generated/TSCreateMultiTimeseriesReq.cs | 311 +- .../Generated/TSCreateSchemaTemplateReq.cs | 51 +- .../Rpc/Generated/TSCreateTimeseriesReq.cs | 189 +- .../Rpc/Generated/TSDeleteDataReq.cs | 79 +- .../Rpc/Generated/TSDropSchemaTemplateReq.cs | 39 +- .../Generated/TSExecuteBatchStatementReq.cs | 55 +- .../Rpc/Generated/TSExecuteStatementReq.cs | 99 +- .../Rpc/Generated/TSExecuteStatementResp.cs | 337 +- .../TSFastLastDataQueryForOneDeviceReq.cs | 151 +- .../TSFastLastDataQueryForOnePrefixPathReq.cs | 409 + .../Rpc/Generated/TSFetchMetadataReq.cs | 51 +- .../Rpc/Generated/TSFetchMetadataResp.cs | 79 +- .../Rpc/Generated/TSFetchResultsReq.cs | 133 +- .../Rpc/Generated/TSFetchResultsResp.cs | 115 +- .../Rpc/Generated/TSGetOperationStatusReq.cs | 39 +- .../Rpc/Generated/TSGetTimeZoneResp.cs | 39 +- .../Generated/TSGroupByQueryIntervalReq.cs | 205 +- .../Rpc/Generated/TSInsertRecordReq.cs | 143 +- .../TSInsertRecordsOfOneDeviceReq.cs | 149 +- .../Rpc/Generated/TSInsertRecordsReq.cs | 165 +- .../Rpc/Generated/TSInsertStringRecordReq.cs | 131 +- .../TSInsertStringRecordsOfOneDeviceReq.cs | 163 +- .../Rpc/Generated/TSInsertStringRecordsReq.cs | 179 +- .../Rpc/Generated/TSInsertTabletReq.cs | 183 +- .../Rpc/Generated/TSInsertTabletsReq.cs | 235 +- .../Rpc/Generated/TSLastDataQueryReq.cs | 139 +- .../Rpc/Generated/TSOpenSessionReq.cs | 97 +- .../Rpc/Generated/TSOpenSessionResp.cs | 85 +- .../Rpc/Generated/TSProtocolVersion.cs | 3 +- .../Rpc/Generated/TSPruneSchemaTemplateReq.cs | 51 +- .../Rpc/Generated/TSQueryDataSet.cs | 59 +- .../Rpc/Generated/TSQueryNonAlignDataSet.cs | 71 +- .../Rpc/Generated/TSQueryTemplateReq.cs | 63 +- .../Rpc/Generated/TSQueryTemplateResp.cs | 91 +- .../Rpc/Generated/TSRawDataQueryReq.cs | 151 +- .../Rpc/Generated/TSSetSchemaTemplateReq.cs | 51 +- .../Rpc/Generated/TSSetTimeZoneReq.cs | 39 +- src/Apache.IoTDB/Rpc/Generated/TSStatus.cs | 93 +- .../Rpc/Generated/TSTracingInfo.cs | 179 +- .../Rpc/Generated/TSUnsetSchemaTemplateReq.cs | 51 +- src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs | 39 +- src/Apache.IoTDB/Rpc/Generated/TSender.cs | 45 +- .../Rpc/Generated/TSeriesPartitionSlot.cs | 27 +- .../Rpc/Generated/TServiceProvider.cs | 72 +- .../Rpc/Generated/TServiceType.cs | 3 +- .../Rpc/Generated/TSetConfigurationReq.cs | 61 +- .../Rpc/Generated/TSetSpaceQuotaReq.cs | 55 +- src/Apache.IoTDB/Rpc/Generated/TSetTTLReq.cs | 67 +- .../Rpc/Generated/TSetThrottleQuotaReq.cs | 39 +- src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs | 43 +- .../Rpc/Generated/TShowConfigurationResp.cs | 39 +- .../TShowConfigurationTemplateResp.cs | 39 +- src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs | 43 +- src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs | 59 +- .../Rpc/Generated/TSyncIdentityInfo.cs | 63 +- .../Rpc/Generated/TSyncTransportMetaInfo.cs | 39 +- .../Rpc/Generated/TTestConnectionResp.cs | 57 +- .../Rpc/Generated/TTestConnectionResult.cs | 63 +- .../Rpc/Generated/TThrottleQuota.cs | 83 +- .../Rpc/Generated/TTimePartitionSlot.cs | 27 +- src/Apache.IoTDB/Rpc/Generated/TTimedQuota.cs | 39 +- .../Rpc/Generated/ThrottleType.cs | 3 +- .../Rpc/Generated/TrainingState.cs | 3 +- .../Rpc/Generated/client.Extensions.cs | 3 +- .../Rpc/Generated/common.Extensions.cs | 3 +- src/Apache.IoTDB/SessionPool.Builder.cs | 4 +- src/Apache.IoTDB/SessionPool.cs | 152 +- src/Apache.IoTDB/TableSessionPool.Builder.cs | 4 +- 125 files changed, 11105 insertions(+), 7957 deletions(-) create mode 100644 src/Apache.IoTDB/DataStructure/Column.cs create mode 100644 src/Apache.IoTDB/DataStructure/ColumnDecoder.cs create mode 100644 src/Apache.IoTDB/DataStructure/RpcDataSet.cs create mode 100644 src/Apache.IoTDB/DataStructure/TsBlock.cs create mode 100644 src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOnePrefixPathReq.cs diff --git a/.github/workflows/pre-commit-format.yml b/.github/workflows/pre-commit-format.yml index fe5d151..226cfd3 100644 --- a/.github/workflows/pre-commit-format.yml +++ b/.github/workflows/pre-commit-format.yml @@ -16,7 +16,7 @@ concurrency: jobs: formatting-checks: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 diff --git a/Apache-IoTDB-Client-CSharp-UserCase/Program.cs b/Apache-IoTDB-Client-CSharp-UserCase/Program.cs index 281104d..54635b5 100644 --- a/Apache-IoTDB-Client-CSharp-UserCase/Program.cs +++ b/Apache-IoTDB-Client-CSharp-UserCase/Program.cs @@ -99,9 +99,9 @@ static async Task ExecuteQueryStatement() await session_pool.Open(false); var res = await session_pool.ExecuteQueryStatementAsync("select * from root.ln.wf01.wt01"); res.ShowTableNames(); - while (res.HasNext()) + while (res.Next()) { - Console.WriteLine(res.Next()); + Console.WriteLine(res.GetRow()); } await res.Close(); await session_pool.Close(); diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedRecord.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedRecord.cs index cb4d8f6..011c480 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedRecord.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedRecord.cs @@ -98,9 +98,8 @@ public async Task TestInsertAlignedStringRecord() Console.WriteLine(string.Format("total insert aligned string record time is {0}", end_ms - start_ms)); var res = await session_pool.ExecuteQueryStatementAsync("select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); var res_cnt = 0; - while (res.HasNext()) + while (res.Next()) { - res.Next(); res_cnt++; } Console.WriteLine(res_cnt + " " + fetchSize * processedSize); @@ -185,8 +184,10 @@ public async Task TestInsertAlignedRecords() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); + Console.WriteLine(rowRecords); + + System.Diagnostics.Debug.Assert(true); await res.Close(); Console.WriteLine(status); @@ -214,10 +215,10 @@ public async Task TestInsertAlignedRecords() res.ShowTableNames(); var record_count = fetchSize * processedSize; var res_count = 0; - while (res.HasNext()) + while (res.Next()) { - res.Next(); res_count += 1; + Console.WriteLine(res.GetRow()); } await res.Close(); @@ -265,8 +266,7 @@ public async Task TestInsertAlignedStringRecords() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); await res.Close(); @@ -297,9 +297,9 @@ public async Task TestInsertAlignedStringRecords() "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); res.ShowTableNames(); var res_count = 0; - while (res.HasNext()) + while (res.Next()) { - res.Next(); + Console.WriteLine(res.GetRow()); res_count += 1; } @@ -386,8 +386,7 @@ public async Task TestInsertAlignedRecordsOfOneDevice() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); await res.Close(); rowRecords = new List() { }; @@ -407,9 +406,8 @@ public async Task TestInsertAlignedRecordsOfOneDevice() res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); var res_count = 0; - while (res.HasNext()) + while (res.Next()) { - res.Next(); res_count += 1; } @@ -454,8 +452,7 @@ public async Task TestInsertAlignedStringRecordsOfOneDevice() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); await res.Close(); // large data test @@ -481,9 +478,8 @@ public async Task TestInsertAlignedStringRecordsOfOneDevice() res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); var res_count = 0; - while (res.HasNext()) + while (res.Next()) { - res.Next(); res_count += 1; } diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedTablet.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedTablet.cs index 77050ad..1b80b09 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedTablet.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedTablet.cs @@ -54,8 +54,7 @@ public async Task TestInsertAlignedTablet() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<15"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); await res.Close(); // large data test @@ -84,9 +83,8 @@ public async Task TestInsertAlignedTablet() "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); res.ShowTableNames(); var res_count = 0; - while (res.HasNext()) + while (res.Next()) { - res.Next(); res_count += 1; } @@ -149,8 +147,7 @@ public async Task TestInsertAlignedTablets() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevices[1]) + " where time<15"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); // large data test var tasks = new List>(); @@ -177,9 +174,8 @@ public async Task TestInsertAlignedTablets() "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevices[1])); res.ShowTableNames(); var res_count = 0; - while (res.HasNext()) + while (res.Next()) { - res.Next(); res_count += 1; } diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.Record.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.Record.cs index 4cf68f4..d75e605 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.Record.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.Record.cs @@ -111,9 +111,8 @@ public async Task TestInsertStringRecord() Console.WriteLine(string.Format("total insert string record time is {0}", end_ms - start_ms)); var res = await session_pool.ExecuteQueryStatementAsync("select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); var res_cnt = 0; - while (res.HasNext()) + while (res.Next()) { - res.Next(); res_cnt++; } Console.WriteLine(res_cnt + " " + fetchSize * processedSize); @@ -149,8 +148,7 @@ public async Task TestInsertStrRecord() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<2"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); await res.Close(); @@ -171,9 +169,8 @@ public async Task TestInsertStrRecord() res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); var res_count = 0; - while (res.HasNext()) + while (res.Next()) { - res.Next(); res_count += 1; } @@ -256,8 +253,7 @@ public async Task TestInsertRecords() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); await res.Close(); Console.WriteLine(status); @@ -282,12 +278,13 @@ public async Task TestInsertRecords() Task.WaitAll(tasks.ToArray()); res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); - res.ShowTableNames(); + var record_count = fetchSize * processedSize; + + res.ShowTableNames(); var res_count = 0; - while (res.HasNext()) + while (res.Next()) { - res.Next(); res_count += 1; } @@ -300,16 +297,16 @@ public async Task TestInsertRecords() res = await session_pool.ExecuteQueryStatementAsync(sql); res.ShowTableNames(); RowRecord row = null; - while (res.HasNext()) + while (res.Next()) { - row = res.Next(); + row = res.GetRow(); break; } - Console.WriteLine($"{testDatabaseName}.{testDevice}.{row.Measurements[0]} {testMeasurements[3]}"); - System.Diagnostics.Debug.Assert($"{testDatabaseName}.{testDevice}.{testMeasurements[3]}" == row.Measurements[0]); - System.Diagnostics.Debug.Assert($"{testDatabaseName}.{testDevice}.{testMeasurements[1]}" == row.Measurements[1]); - System.Diagnostics.Debug.Assert($"{testDatabaseName}.{testDevice}.{testMeasurements[2]}" == row.Measurements[2]); + Console.WriteLine($"{testDatabaseName}.{testDevice}.{row.Measurements[1]} {testMeasurements[3]}"); + System.Diagnostics.Debug.Assert($"{testDatabaseName}.{testDevice}.{testMeasurements[3]}" == row.Measurements[1]); + System.Diagnostics.Debug.Assert($"{testDatabaseName}.{testDevice}.{testMeasurements[1]}" == row.Measurements[2]); + System.Diagnostics.Debug.Assert($"{testDatabaseName}.{testDevice}.{testMeasurements[2]}" == row.Measurements[3]); status = await session_pool.DeleteDatabaseAsync(testDatabaseName); System.Diagnostics.Debug.Assert(status == 0); @@ -351,8 +348,7 @@ public async Task TestInsertStringRecords() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); await res.Close(); @@ -384,9 +380,9 @@ public async Task TestInsertStringRecords() res.ShowTableNames(); var record_count = fetchSize * processedSize; var res_count = 0; - while (res.HasNext()) + while (res.Next()) { - res.Next(); + Console.WriteLine(res.GetRow()); res_count += 1; } @@ -468,8 +464,7 @@ public async Task TestInsertRecordsOfOneDevice() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); await res.Close(); // large data test @@ -490,9 +485,8 @@ public async Task TestInsertRecordsOfOneDevice() res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); var res_count = 0; - while (res.HasNext()) + while (res.Next()) { - res.Next(); res_count += 1; } @@ -543,8 +537,7 @@ public async Task TestInsertStringRecordsOfOneDevice() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); await res.Close(); // large data test @@ -570,9 +563,8 @@ public async Task TestInsertStringRecordsOfOneDevice() res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); var res_count = 0; - while (res.HasNext()) + while (res.Next()) { - res.Next(); res_count += 1; } @@ -651,9 +643,9 @@ public async Task TestInsertRecordsWithAllType() "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); res.ShowTableNames(); var res_count = 0; - while (res.HasNext()) + while (res.Next()) { - Console.WriteLine(res.Next()); + Console.WriteLine(res.GetRow()); res_count += 1; } diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.Tablet.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.Tablet.cs index bf2ae17..d4739c2 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.Tablet.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.Tablet.cs @@ -55,8 +55,7 @@ public async Task TestInsertTablet() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<15"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); await res.Close(); // large data test @@ -84,9 +83,8 @@ public async Task TestInsertTablet() "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); res.ShowTableNames(); var res_count = 0; - while (res.HasNext()) + while (res.Next()) { - res.Next(); res_count += 1; } @@ -149,8 +147,7 @@ public async Task TestInsertTablets() // System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevices[1]) + " where time<15"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); // large data test @@ -178,9 +175,8 @@ public async Task TestInsertTablets() "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevices[1])); res.ShowTableNames(); var res_count = 0; - while (res.HasNext()) + while (res.Next()) { - res.Next(); res_count += 1; } @@ -217,9 +213,9 @@ public async Task TestInsertTabletWithNullValue() "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); res.ShowTableNames(); var res_count = 0; - while (res.HasNext()) + while (res.Next()) { - Console.WriteLine(res.Next()); + Console.WriteLine(res.GetRow()); res_count += 1; } @@ -280,9 +276,9 @@ public async Task TestInsertTabletWithAllType() "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); res.ShowTableNames(); var res_count = 0; - while (res.HasNext()) + while (res.Next()) { - Console.WriteLine(res.Next()); + Console.WriteLine(res.GetRow()); res_count += 1; } diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.TestNetwork.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.TestNetwork.cs index 9f2a61c..56b66ca 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.TestNetwork.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.TestNetwork.cs @@ -144,8 +144,7 @@ public async Task TestTestInsertRecords() // System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); await res.Close(); @@ -172,9 +171,8 @@ public async Task TestTestInsertRecords() res.ShowTableNames(); var record_count = fetchSize * processedSize; var res_count = 0; - while (res.HasNext()) + while (res.Next()) { - res.Next(); res_count += 1; } @@ -214,8 +212,7 @@ public async Task TestTestInsertTablet() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<15"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); await res.Close(); // large data test @@ -243,9 +240,8 @@ public async Task TestTestInsertTablet() "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); res.ShowTableNames(); var res_count = 0; - while (res.HasNext()) + while (res.Next()) { - res.Next(); res_count += 1; } @@ -307,8 +303,7 @@ public async Task TestTestInsertTablets() // System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevices[1]) + " where time<15"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); await res.Close(); // large data test @@ -336,9 +331,8 @@ public async Task TestTestInsertTablets() "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevices[1])); res.ShowTableNames(); var res_count = 0; - while (res.HasNext()) + while (res.Next()) { - res.Next(); res_count += 1; } diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.cs index 8b27c97..284fba0 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.cs @@ -224,7 +224,7 @@ public async Task TestGetTimeZone() await session_pool.DeleteDatabaseAsync(testDatabaseName); System.Diagnostics.Debug.Assert(session_pool.IsOpen()); var time_zone = await session_pool.GetTimeZone(); - System.Diagnostics.Debug.Assert(time_zone == "UTC+08:00"); + System.Diagnostics.Debug.Assert(time_zone == "Asia/Shanghai"); await session_pool.Close(); Console.WriteLine("TestGetTimeZone Passed!"); } @@ -324,8 +324,7 @@ public async Task TestDeleteData() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); await res.Close(); var ts_path_lst = new List() @@ -336,8 +335,7 @@ public async Task TestDeleteData() await session_pool.DeleteDataAsync(ts_path_lst, 2, 3); res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); await res.Close(); status = await session_pool.DeleteDatabaseAsync(testDatabaseName); @@ -374,8 +372,8 @@ await session_pool.ExecuteNonQueryStatementAsync( "insert into " + string.Format("{0}.{1}", testDatabaseName, testDevice) + "(timestamp, status, hardware) VALUES (7, true,'lz')"); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + + UtilsTest.PrintDataSetByString(res); await res.Close(); status = await session_pool.DeleteDatabaseAsync(testDatabaseName); @@ -452,33 +450,28 @@ await session_pool.ExecuteNonQueryStatementAsync( "insert into " + string.Format("{0}.{1}", testDatabaseName, testDevice) + "(timestamp, status, hardware) VALUES (7, true,'lz')"); var res = await session_pool.ExecuteQueryStatementAsync("show timeseries root"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); await res.Close(); Console.WriteLine("SHOW TIMESERIES ROOT sql passed!"); res = await session_pool.ExecuteQueryStatementAsync("show devices"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); await res.Close(); Console.WriteLine("SHOW DEVICES sql passed!"); res = await session_pool.ExecuteQueryStatementAsync($"COUNT TIMESERIES {testDatabaseName}"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); await res.Close(); Console.WriteLine("COUNT TIMESERIES root sql Passed"); res = await session_pool.ExecuteQueryStatementAsync("select * from root.ln.wf01 where time<10"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); await res.Close(); Console.WriteLine("SELECT sql Passed"); res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + UtilsTest.PrintDataSetByString(res); await res.Close(); status = await session_pool.DeleteDatabaseAsync(testDatabaseName); @@ -519,9 +512,8 @@ public async Task TestRawDataQuery() var res = await session_pool.ExecuteRawDataQuery(paths, 10, fetchSize * processedSize); var count = 0; - while (res.HasNext()) + while (res.Next()) { - var record = res.Next(); count++; } Console.WriteLine(count + " " + (fetchSize * processedSize - 10)); @@ -566,10 +558,9 @@ public async Task TestLastDataQuery() var res = await session_pool.ExecuteLastDataQueryAsync(paths, fetchSize * processedSize - 10); var count = 0; - while (res.HasNext()) + while (res.Next()) { - var record = res.Next(); - Console.WriteLine(record); + Console.WriteLine(count); count++; } Console.WriteLine(count + " " + (fetchSize * processedSize - 10)); @@ -621,13 +612,17 @@ public async Task TestMultiNodeDataFetch() // fetch data var paths = new List() { string.Format("{0}.{1}", device_id, testMeasurements[0]), string.Format("{0}.{1}", device_id, testMeasurements[1]) }; var res = await session_pool.ExecuteQueryStatementAsync("select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); - res.ShowTableNames(); - var count = 0; - while (res.HasNext()) + + IReadOnlyList columns = res.GetColumnNames(); + foreach (string columnName in columns) { - var record = res.Next(); - count++; + Console.Write($"{columnName}\t"); } + Console.WriteLine(); + + var count = 0; + while (res.Next()) count++; + Console.WriteLine(count + " " + (fetchSize * processedSize * 4 + 783)); System.Diagnostics.Debug.Assert(count == fetchSize * processedSize * 4 + 783); await res.Close(); diff --git a/samples/Apache.IoTDB.Samples/TableSessionPoolTest.cs b/samples/Apache.IoTDB.Samples/TableSessionPoolTest.cs index cebcd2f..97ae404 100644 --- a/samples/Apache.IoTDB.Samples/TableSessionPoolTest.cs +++ b/samples/Apache.IoTDB.Samples/TableSessionPoolTest.cs @@ -73,14 +73,14 @@ await tableSessionPool.ExecuteNonQueryStatementAsync( // show tables from current database var res = await tableSessionPool.ExecuteQueryStatementAsync("SHOW TABLES"); res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + while (res.Next()) Console.WriteLine(res.GetRow()); await res.Close(); // show tables by specifying another database // using SHOW tables FROM res = await tableSessionPool.ExecuteQueryStatementAsync("SHOW TABLES FROM test1"); res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + while (res.Next()) Console.WriteLine(res.GetRow()); await res.Close(); var tableName = "testTable1"; @@ -123,7 +123,7 @@ await tableSessionPool.ExecuteNonQueryStatementAsync( res = await tableSessionPool.ExecuteQueryStatementAsync("select * from testTable1 " + "where region_id = '1' and plant_id in ('3', '5') and device_id = '3'"); res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + while (res.Next()) Console.WriteLine(res.GetRow()); await res.Close(); await tableSessionPool.Close(); @@ -148,7 +148,7 @@ public async Task TestUseDatabase() // show tables from current database var res = await tableSessionPool.ExecuteQueryStatementAsync("SHOW TABLES"); res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + while (res.Next()) Console.WriteLine(res.GetRow()); await res.Close(); await tableSessionPool.ExecuteNonQueryStatementAsync("use test2"); @@ -156,7 +156,7 @@ public async Task TestUseDatabase() // show tables from current database res = await tableSessionPool.ExecuteQueryStatementAsync("SHOW TABLES"); res.ShowTableNames(); - while (res.HasNext()) Console.WriteLine(res.Next()); + while (res.Next()) Console.WriteLine(res.GetRow()); await res.Close(); await tableSessionPool.Close(); @@ -225,9 +225,9 @@ await tableSessionPool.ExecuteNonQueryStatementAsync( var res = await tableSessionPool.ExecuteQueryStatementAsync("select count(*) from " + tableName + " where f1 is null"); - while (res.HasNext()) + while (res.Next()) { - var row = res.Next(); + var row = res.GetRow(); Console.WriteLine(row); var value = row.Values[0]; if (value is long longValue) diff --git a/samples/Apache.IoTDB.Samples/UtilsTest.cs b/samples/Apache.IoTDB.Samples/UtilsTest.cs index 0670cd6..6a31901 100644 --- a/samples/Apache.IoTDB.Samples/UtilsTest.cs +++ b/samples/Apache.IoTDB.Samples/UtilsTest.cs @@ -18,7 +18,9 @@ */ using System; +using System.Collections.Generic; using System.Diagnostics; +using Apache.IoTDB.DataStructure; namespace Apache.IoTDB.Samples { @@ -77,5 +79,106 @@ private void TestInvalidInputs() } Console.WriteLine("TestInvalidInputs passed."); } + + static public void PrintDataSetByType(SessionDataSet sessionDataSet) + { + IReadOnlyList columns = sessionDataSet.GetColumnNames(); + + foreach (string columnName in columns) + { + Console.Write($"{columnName}\t"); + } + Console.WriteLine(); + + while (sessionDataSet.Next()) + { + for (int i = 0; i < columns.Count; i++) + { + string columnName = columns[i]; + string typeStr = sessionDataSet.GetColumnTypes()[i]; + TSDataType dataType = Client.GetDataTypeByStr(typeStr); + + switch (dataType) + { + case TSDataType.BOOLEAN: + bool boolValue = sessionDataSet.GetBoolean(columnName); + Console.Write(boolValue); + break; + case TSDataType.INT32: + int intValue = sessionDataSet.GetInt(columnName); + Console.Write(intValue); + break; + case TSDataType.INT64: + case TSDataType.TIMESTAMP: + long longValue = sessionDataSet.GetLong(columnName); + Console.Write(longValue); + break; + case TSDataType.FLOAT: + float floatValue = sessionDataSet.GetFloat(columnName); + Console.Write(floatValue); + break; + case TSDataType.DOUBLE: + double doubleValue = sessionDataSet.GetDouble(columnName); + Console.Write(doubleValue); + break; + case TSDataType.TEXT: + case TSDataType.STRING: + case TSDataType.BLOB: + case TSDataType.DATE: + string stringValue = sessionDataSet.GetString(columnName); + Console.Write(stringValue); + break; + default: + break; + } + Console.Write("\t\t"); + } + Console.WriteLine(); + } + } + + static public void PrintDataSetByObject(SessionDataSet sessionDataSet) + { + IReadOnlyList columns = sessionDataSet.GetColumnNames(); + + foreach (string columnName in columns) + { + Console.Write($"{columnName}\t"); + } + Console.WriteLine(); + + while (sessionDataSet.Next()) + { + for (int i = 0; i < columns.Count; i++) + { + string columnName = columns[i]; + Console.Write(sessionDataSet.GetObject(columnName)); + Console.Write("\t\t"); + } + Console.WriteLine(); + } + } + + static public void PrintDataSetByString(SessionDataSet sessionDataSet) + { + IReadOnlyList columns = sessionDataSet.GetColumnNames(); + + foreach (string columnName in columns) + { + Console.Write($"{columnName}\t"); + } + Console.WriteLine(); + + while (sessionDataSet.Next()) + { + for (int i = 0; i < columns.Count; i++) + { + string columnName = columns[i]; + Console.Write(sessionDataSet.GetString(columnName)); + Console.Write("\t\t"); + } + Console.WriteLine(); + } + } } } diff --git a/src/Apache.IoTDB.Data/IoTDBConnectionStringBuilder.cs b/src/Apache.IoTDB.Data/IoTDBConnectionStringBuilder.cs index c2cac87..74280c9 100644 --- a/src/Apache.IoTDB.Data/IoTDBConnectionStringBuilder.cs +++ b/src/Apache.IoTDB.Data/IoTDBConnectionStringBuilder.cs @@ -66,7 +66,7 @@ private enum Keywords private string _password = "root"; private bool _enableRpcCompression = false; private int _fetchSize = 1800; - private string _zoneId = "UTC+08:00"; + private string _zoneId = "Asia/Shanghai"; private int _port = 6667; private int _poolSize = 8; private int _timeOut = 10000; @@ -413,7 +413,7 @@ private void Reset(Keywords index) _poolSize = 8; return; case Keywords.ZoneId: - _zoneId = "UTC+08:00"; + _zoneId = "Asia/Shanghai"; return; case Keywords.TimeOut: _timeOut = 10000;//10sec. diff --git a/src/Apache.IoTDB.Data/IoTDBDataReader.cs b/src/Apache.IoTDB.Data/IoTDBDataReader.cs index 156844e..0c5a5c4 100644 --- a/src/Apache.IoTDB.Data/IoTDBDataReader.cs +++ b/src/Apache.IoTDB.Data/IoTDBDataReader.cs @@ -41,7 +41,7 @@ public class IoTDBDataReader : DbDataReader private bool _hasRows; private readonly int _recordsAffected; private bool _closed; - private readonly List _metas; + private IReadOnlyList _metas; private bool _closeConnection; private int _fieldCount; @@ -55,11 +55,12 @@ internal IoTDBDataReader(IoTDBCommand IoTDBCommand, SessionDataSet dataSet, bool _IoTDB = IoTDBCommand.Connection._IoTDB; _command = IoTDBCommand; _closeConnection = closeConnection; - _fieldCount = dataSet.ColumnNames.Count; - _hasRows = dataSet.RowCount > 0; - _recordsAffected = dataSet.RowCount; + _fieldCount = dataSet.GetColumnNames().Count; + _hasRows = dataSet.RowCount() > 0; + _recordsAffected = dataSet.RowCount(); + _closed = _closeConnection; - _metas = dataSet.ColumnNames; + _metas = dataSet.GetColumnNames(); _dataSet = dataSet; } @@ -136,9 +137,9 @@ public override bool Read() { throw new InvalidOperationException($"DataReaderClosed{nameof(Read)}"); } - if (_dataSet.HasNext()) + if (_dataSet.Next()) { - rowdata = _dataSet.Next(); + rowdata = _dataSet.GetRow(); } else { @@ -454,7 +455,7 @@ public override int GetValues(object[] values) /// A System.Data.DataTable that describes the column metadata. public override DataTable GetSchemaTable() { - if (_dataSet.HasNext()) + if (_dataSet.Next()) { rowdata = _dataSet.GetRow(); } diff --git a/src/Apache.IoTDB/Client.cs b/src/Apache.IoTDB/Client.cs index 03238d2..943cfa1 100644 --- a/src/Apache.IoTDB/Client.cs +++ b/src/Apache.IoTDB/Client.cs @@ -37,5 +37,23 @@ public Client(IClientRPCService.Client client, long sessionId, long statementId, Transport = transport; EndPoint = endpoint; } + + static public TSDataType GetDataTypeByStr(string typeStr) + { + return typeStr switch + { + "BOOLEAN" => TSDataType.BOOLEAN, + "INT32" => TSDataType.INT32, + "INT64" => TSDataType.INT64, + "FLOAT" => TSDataType.FLOAT, + "DOUBLE" => TSDataType.DOUBLE, + "TEXT" => TSDataType.TEXT, + "STRING" => TSDataType.STRING, + "BLOB" => TSDataType.BLOB, + "TIMESTAMP" => TSDataType.TIMESTAMP, + "DATE" => TSDataType.DATE, + _ => TSDataType.NONE + }; + } } } diff --git a/src/Apache.IoTDB/DataStructure/ByteBuffer.cs b/src/Apache.IoTDB/DataStructure/ByteBuffer.cs index a3e1823..d190dd2 100644 --- a/src/Apache.IoTDB/DataStructure/ByteBuffer.cs +++ b/src/Apache.IoTDB/DataStructure/ByteBuffer.cs @@ -146,6 +146,16 @@ public byte[] GetBuffer() return _buffer[.._writePos]; } + public byte[] GetBytesbyLength(int length) + { + if (_readPos + length > _buffer.Length) + throw new ArgumentOutOfRangeException(nameof(length), + $"Requested length ({length}) with current read position ({_readPos}) exceeds buffer size ({_buffer.Length})."); + var strBuff = _buffer[_readPos..(_readPos + length)]; + _readPos += length; + return strBuff; + } + private void ExtendBuffer(int spaceNeed) { if (_writePos + spaceNeed >= _totalLength) diff --git a/src/Apache.IoTDB/DataStructure/Column.cs b/src/Apache.IoTDB/DataStructure/Column.cs new file mode 100644 index 0000000..e594883 --- /dev/null +++ b/src/Apache.IoTDB/DataStructure/Column.cs @@ -0,0 +1,324 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; +using System.Linq; + +namespace Apache.IoTDB.DataStructure +{ + public enum ColumnEncoding : byte + { + ByteArray, + Int32Array, + Int64Array, + BinaryArray, + Rle + } + + public class Binary + { + public byte[] Data { get; } + + public Binary(byte[] data) + { + Data = data; + } + } + + public interface Column + { + TSDataType GetDataType(); + ColumnEncoding GetEncoding(); + bool GetBoolean(int position); + int GetInt(int position); + long GetLong(int position); + float GetFloat(int position); + double GetDouble(int position); + Binary GetBinary(int position); + object GetObject(int position); + + bool[] GetBooleans(); + int[] GetInts(); + long[] GetLongs(); + float[] GetFloats(); + double[] GetDoubles(); + Binary[] GetBinaries(); + object[] GetObjects(); + + bool MayHaveNull(); + bool IsNull(int position); + bool[] GetNulls(); + + int GetPositionCount(); + } + + public abstract class BaseColumn : Column + { + public virtual TSDataType GetDataType() => throw new NotSupportedException(); + public virtual ColumnEncoding GetEncoding() => throw new NotSupportedException(); + public virtual bool GetBoolean(int position) => throw new NotSupportedException("GetBoolean not supported"); + public virtual int GetInt(int position) => throw new NotSupportedException("GetInt not supported"); + public virtual long GetLong(int position) => throw new NotSupportedException("GetLong not supported"); + public virtual float GetFloat(int position) => throw new NotSupportedException("GetFloat not supported"); + public virtual double GetDouble(int position) => throw new NotSupportedException("GetDouble not supported"); + public virtual Binary GetBinary(int position) => throw new NotSupportedException("GetBinary not supported"); + public virtual object GetObject(int position) => throw new NotSupportedException("GetObject not supported"); + + public virtual bool[] GetBooleans() => throw new NotSupportedException("GetBooleans not supported"); + public virtual int[] GetInts() => throw new NotSupportedException("GetInts not supported"); + public virtual long[] GetLongs() => throw new NotSupportedException("GetLongs not supported"); + public virtual float[] GetFloats() => throw new NotSupportedException("GetFloats not supported"); + public virtual double[] GetDoubles() => throw new NotSupportedException("GetDoubles not supported"); + public virtual Binary[] GetBinaries() => throw new NotSupportedException("GetBinaries not supported"); + public virtual object[] GetObjects() => throw new NotSupportedException("GetObjects not supported"); + + public virtual bool MayHaveNull() => false; + public virtual bool IsNull(int position) => false; + public virtual bool[] GetNulls() => new bool[GetPositionCount()]; + public abstract int GetPositionCount(); + } + + public abstract class PrimitiveColumn : BaseColumn + { + protected readonly T[] _values; + protected readonly int _arrayOffset; + protected readonly int _positionCount; + protected readonly bool[] _valueIsNull; + + private readonly TSDataType _dataType; + private readonly ColumnEncoding _encoding; + + protected PrimitiveColumn( + TSDataType dataType, + ColumnEncoding encoding, + int arrayOffset, + int positionCount, + bool[] valueIsNull, + T[] values) + { + if (arrayOffset < 0) + throw new ArgumentException("arrayOffset is negative"); + if (positionCount < 0) + throw new ArgumentException("positionCount is negative"); + if (values == null || values.Length - arrayOffset < positionCount) + throw new ArgumentException("values array is too short"); + if (valueIsNull != null && valueIsNull.Length - arrayOffset < positionCount) + throw new ArgumentException("isNull array is too short"); + + _dataType = dataType; + _encoding = encoding; + _arrayOffset = arrayOffset; + _positionCount = positionCount; + _valueIsNull = valueIsNull; + _values = values; + } + + public override TSDataType GetDataType() => _dataType; + public override ColumnEncoding GetEncoding() => _encoding; + + public override bool MayHaveNull() => _valueIsNull != null; + public override bool IsNull(int position) => _valueIsNull?[position + _arrayOffset] ?? false; + public override bool[] GetNulls() + { + if (_valueIsNull == null) + return new bool[_positionCount]; + + return _valueIsNull.Skip(_arrayOffset).Take(_positionCount).ToArray(); + } + + public override int GetPositionCount() => _positionCount; + } + + public class TimeColumn : PrimitiveColumn + { + public TimeColumn(int arrayOffset, int positionCount, long[] values) + : base( + dataType: TSDataType.INT64, + encoding: ColumnEncoding.Int64Array, + arrayOffset: arrayOffset, + positionCount: positionCount, + valueIsNull: null, + values: values) + { } + + public override long GetLong(int position) => _values[position + _arrayOffset]; + public override long[] GetLongs() => _values.Skip(_arrayOffset).Take(_positionCount).ToArray(); + public override object GetObject(int position) => GetLong(position); + public override object[] GetObjects() => GetLongs().Cast().ToArray(); + + public long GetStartTime() => _values[_arrayOffset]; + public long GetEndTime() => _values[_arrayOffset + _positionCount - 1]; + public long[] GetTimes() => _values.Skip(_arrayOffset).Take(_positionCount).ToArray(); + } + + public class BinaryColumn : PrimitiveColumn + { + public BinaryColumn(int arrayOffset, int positionCount, bool[] valueIsNull, Binary[] values) + : base( + TSDataType.TEXT, + ColumnEncoding.BinaryArray, + arrayOffset: arrayOffset, + positionCount: positionCount, + valueIsNull: null, + values: values) + { } + + public override Binary GetBinary(int position) => _values[position + _arrayOffset]; + public override Binary[] GetBinaries() => _values.Skip(_arrayOffset).Take(_positionCount).ToArray(); + public override object GetObject(int position) => GetBinary(position); + public override object[] GetObjects() => GetBinaries().Cast().ToArray(); + } + + public class IntColumn : PrimitiveColumn + { + public IntColumn(int arrayOffset, int positionCount, bool[] valueIsNull, int[] values) + : base( + TSDataType.INT32, + ColumnEncoding.Int32Array, + arrayOffset: arrayOffset, + positionCount: positionCount, + valueIsNull: null, + values: values) + { } + + public override int GetInt(int position) => _values[position + _arrayOffset]; + public override int[] GetInts() => _values.Skip(_arrayOffset).Take(_positionCount).ToArray(); + public override object GetObject(int position) => GetInt(position); + public override object[] GetObjects() => GetInts().Cast().ToArray(); + } + + public class FloatColumn : PrimitiveColumn + { + public FloatColumn(int arrayOffset, int positionCount, bool[] valueIsNull, float[] values) + : base( + TSDataType.FLOAT, + ColumnEncoding.Int32Array, + arrayOffset: arrayOffset, + positionCount: positionCount, + valueIsNull: null, + values: values) + { } + + public override float GetFloat(int position) => _values[position + _arrayOffset]; + public override float[] GetFloats() => _values.Skip(_arrayOffset).Take(_positionCount).ToArray(); + public override object GetObject(int position) => GetFloat(position); + public override object[] GetObjects() => GetFloats().Cast().ToArray(); + } + + public class LongColumn : PrimitiveColumn + { + public LongColumn(int arrayOffset, int positionCount, bool[] valueIsNull, long[] values) + : base( + TSDataType.INT64, + ColumnEncoding.Int64Array, + arrayOffset: arrayOffset, + positionCount: positionCount, + valueIsNull: null, + values: values) + { } + + public override long GetLong(int position) => _values[position + _arrayOffset]; + public override long[] GetLongs() => _values.Skip(_arrayOffset).Take(_positionCount).ToArray(); + public override object GetObject(int position) => GetLong(position); + public override object[] GetObjects() => GetLongs().Cast().ToArray(); + } + + public class DoubleColumn : PrimitiveColumn + { + public DoubleColumn(int arrayOffset, int positionCount, bool[] valueIsNull, double[] values) + : base( + TSDataType.DOUBLE, + ColumnEncoding.Int64Array, + arrayOffset: arrayOffset, + positionCount: positionCount, + valueIsNull: null, + values: values) + { } + + public override double GetDouble(int position) => _values[position + _arrayOffset]; + public override double[] GetDoubles() => _values.Skip(_arrayOffset).Take(_positionCount).ToArray(); + public override object GetObject(int position) => GetDouble(position); + public override object[] GetObjects() => GetDoubles().Cast().ToArray(); + } + + public class BooleanColumn : PrimitiveColumn + { + public BooleanColumn(int arrayOffset, int positionCount, bool[] valueIsNull, bool[] values) + : base( + TSDataType.BOOLEAN, + ColumnEncoding.ByteArray, + arrayOffset: arrayOffset, + positionCount: positionCount, + valueIsNull: null, + values: values) + { } + + public override bool GetBoolean(int position) => _values[position + _arrayOffset]; + public override bool[] GetBooleans() => _values.Skip(_arrayOffset).Take(_positionCount).ToArray(); + public override object GetObject(int position) => GetBoolean(position); + public override object[] GetObjects() => GetBooleans().Cast().ToArray(); + } + + public class RunLengthEncodedColumn : BaseColumn + { + private readonly Column _value; + private readonly int _positionCount; + + public RunLengthEncodedColumn(Column value, int positionCount) + { + if (value == null) + throw new ArgumentNullException(nameof(value)); + if (value.GetPositionCount() != 1) + throw new ArgumentException("Expected value to contain a single position"); + if (positionCount < 0) + throw new ArgumentException("positionCount is negative"); + + // Unwrap nested RLE columns + _value = value is RunLengthEncodedColumn rle ? rle.Value : value; + _positionCount = positionCount; + } + + public Column Value => _value; + + public override TSDataType GetDataType() => _value.GetDataType(); + public override ColumnEncoding GetEncoding() => ColumnEncoding.Rle; + + public override bool GetBoolean(int position) => _value.GetBoolean(0); + public override int GetInt(int position) => _value.GetInt(0); + public override long GetLong(int position) => _value.GetLong(0); + public override float GetFloat(int position) => _value.GetFloat(0); + public override double GetDouble(int position) => _value.GetDouble(0); + public override Binary GetBinary(int position) => _value.GetBinary(0); + public override object GetObject(int position) => _value.GetObject(0); + + public override bool[] GetBooleans() => Enumerable.Repeat(_value.GetBoolean(0), _positionCount).ToArray(); + public override int[] GetInts() => Enumerable.Repeat(_value.GetInt(0), _positionCount).ToArray(); + public override long[] GetLongs() => Enumerable.Repeat(_value.GetLong(0), _positionCount).ToArray(); + public override float[] GetFloats() => Enumerable.Repeat(_value.GetFloat(0), _positionCount).ToArray(); + public override double[] GetDoubles() => Enumerable.Repeat(_value.GetDouble(0), _positionCount).ToArray(); + public override Binary[] GetBinaries() => Enumerable.Repeat(_value.GetBinary(0), _positionCount).ToArray(); + public override object[] GetObjects() => Enumerable.Repeat(_value.GetObject(0), _positionCount).ToArray(); + + public override bool MayHaveNull() => _value.MayHaveNull(); + public override bool IsNull(int position) => _value.IsNull(0); + public override bool[] GetNulls() => Enumerable.Repeat(_value.IsNull(0), _positionCount).ToArray(); + + public override int GetPositionCount() => _positionCount; + } +} diff --git a/src/Apache.IoTDB/DataStructure/ColumnDecoder.cs b/src/Apache.IoTDB/DataStructure/ColumnDecoder.cs new file mode 100644 index 0000000..83ce03a --- /dev/null +++ b/src/Apache.IoTDB/DataStructure/ColumnDecoder.cs @@ -0,0 +1,220 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; +using System.Collections.Generic; +using System.IO; +using System.Text; + +namespace Apache.IoTDB.DataStructure +{ + public interface ColumnDecoder + { + Column ReadColumn(ByteBuffer reader, TSDataType dataType, int positionCount); + } + + public class BaseColumnDecoder + { + + private static Dictionary decoders = new Dictionary + { + { ColumnEncoding.Int32Array, new Int32ArrayColumnDecoder() }, + { ColumnEncoding.Int64Array, new Int64ArrayColumnDecoder() }, + { ColumnEncoding.ByteArray, new ByteArrayColumnDecoder() }, + { ColumnEncoding.BinaryArray, new BinaryArrayColumnDecoder() }, + { ColumnEncoding.Rle, new RunLengthColumnDecoder() } + }; + + public static ColumnDecoder GetDecoder(ColumnEncoding encoding) + { + if (decoders.TryGetValue(encoding, out var decoder)) + return decoder; + throw new ArgumentException($"Unsupported encoding: {encoding}"); + } + + public static ColumnEncoding DeserializeColumnEncoding(ByteBuffer reader) + { + return (ColumnEncoding)reader.GetByte(); + } + } + + public static class ColumnDeserializer + { + public static bool[] DeserializeNullIndicators(ByteBuffer reader, int positionCount) + { + byte b = reader.GetByte(); + bool mayHaveNull = b != 0; + if (!mayHaveNull) + return null; + return DeserializeBooleanArray(reader, positionCount); + } + + public static bool[] DeserializeBooleanArray(ByteBuffer reader, int size) + { + int packedSize = (size + 7) / 8; + byte[] packedBytes = reader.GetBytesbyLength(packedSize); + if (packedBytes.Length < packedSize) + throw new InvalidDataException( + $"Boolean array decoding failed: expected {packedSize} bytes for {size} bits, but only received {packedBytes.Length} bytes from buffer." + ); + bool[] output = new bool[size]; + int currentByte = 0; + int fullGroups = size & ~0b111; + + for (int pos = 0; pos < fullGroups; pos += 8) + { + byte b = packedBytes[currentByte++]; + output[pos + 0] = (b & 0b10000000) != 0; + output[pos + 1] = (b & 0b01000000) != 0; + output[pos + 2] = (b & 0b00100000) != 0; + output[pos + 3] = (b & 0b00010000) != 0; + output[pos + 4] = (b & 0b00001000) != 0; + output[pos + 5] = (b & 0b00000100) != 0; + output[pos + 6] = (b & 0b00000010) != 0; + output[pos + 7] = (b & 0b00000001) != 0; + } + + if (size % 8 != 0) + { + byte b = packedBytes[packedSize - 1]; + byte mask = 0b10000000; + for (int pos = fullGroups; pos < size; pos++) + { + output[pos] = (b & mask) != 0; + mask >>= 1; + } + } + + return output; + } + } + + public class Int32ArrayColumnDecoder : ColumnDecoder + { + public Column ReadColumn(ByteBuffer reader, TSDataType dataType, int positionCount) + { + bool[] nullIndicators = ColumnDeserializer.DeserializeNullIndicators(reader, positionCount); + + switch (dataType) + { + case TSDataType.INT32: + case TSDataType.DATE: + int[] intValues = new int[positionCount]; + for (int i = 0; i < positionCount; i++) + { + if (nullIndicators != null && nullIndicators[i]) + continue; + intValues[i] = reader.GetInt(); + } + return new IntColumn(0, positionCount, nullIndicators, intValues); + case TSDataType.FLOAT: + float[] floatValues = new float[positionCount]; + for (int i = 0; i < positionCount; i++) + { + if (nullIndicators != null && nullIndicators[i]) + continue; + floatValues[i] = reader.GetFloat(); + } + return new FloatColumn(0, positionCount, nullIndicators, floatValues); + default: + throw new ArgumentException($"Invalid data type: {dataType}"); + } + } + } + + public class Int64ArrayColumnDecoder : ColumnDecoder + { + public Column ReadColumn(ByteBuffer reader, TSDataType dataType, int positionCount) + { + bool[] nullIndicators = ColumnDeserializer.DeserializeNullIndicators(reader, positionCount); + + switch (dataType) + { + case TSDataType.INT64: + case TSDataType.TIMESTAMP: + long[] longValues = new long[positionCount]; + for (int i = 0; i < positionCount; i++) + { + if (nullIndicators != null && nullIndicators[i]) + continue; + longValues[i] = reader.GetLong(); + } + return new LongColumn(0, positionCount, nullIndicators, longValues); + case TSDataType.DOUBLE: + double[] doubleValues = new double[positionCount]; + for (int i = 0; i < positionCount; i++) + { + if (nullIndicators != null && nullIndicators[i]) + continue; + doubleValues[i] = reader.GetDouble(); + } + return new DoubleColumn(0, positionCount, nullIndicators, doubleValues); + default: + throw new ArgumentException($"Invalid data type: {dataType}"); + } + } + } + + public class ByteArrayColumnDecoder : ColumnDecoder + { + public Column ReadColumn(ByteBuffer reader, TSDataType dataType, int positionCount) + { + if (dataType != TSDataType.BOOLEAN) + throw new ArgumentException($"Invalid data type: {dataType}"); + + bool[] nullIndicators = ColumnDeserializer.DeserializeNullIndicators(reader, positionCount); + bool[] values = ColumnDeserializer.DeserializeBooleanArray(reader, positionCount); + return new BooleanColumn(0, positionCount, nullIndicators, values); + } + } + + public class BinaryArrayColumnDecoder : ColumnDecoder + { + public Column ReadColumn(ByteBuffer reader, TSDataType dataType, int positionCount) + { + if (dataType != TSDataType.TEXT) + throw new ArgumentException($"Invalid data type: {dataType}"); + + bool[] nullIndicators = ColumnDeserializer.DeserializeNullIndicators(reader, positionCount); + Binary[] values = new Binary[positionCount]; + + for (int i = 0; i < positionCount; i++) + { + if (nullIndicators != null && nullIndicators[i]) + continue; + int length = reader.GetInt(); + byte[] value = reader.GetBytesbyLength(length); + values[i] = new Binary(value); + } + + return new BinaryColumn(0, positionCount, nullIndicators, values); + } + } + + public class RunLengthColumnDecoder : ColumnDecoder + { + public Column ReadColumn(ByteBuffer reader, TSDataType dataType, int positionCount) + { + ColumnEncoding encoding = BaseColumnDecoder.DeserializeColumnEncoding(reader); + ColumnDecoder decoder = BaseColumnDecoder.GetDecoder(encoding); + Column column = decoder.ReadColumn(reader, dataType, 1); + return new RunLengthEncodedColumn(column, positionCount); + } + } +} diff --git a/src/Apache.IoTDB/DataStructure/RpcDataSet.cs b/src/Apache.IoTDB/DataStructure/RpcDataSet.cs new file mode 100644 index 0000000..74346a4 --- /dev/null +++ b/src/Apache.IoTDB/DataStructure/RpcDataSet.cs @@ -0,0 +1,847 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Thrift; + +namespace Apache.IoTDB.DataStructure +{ + public class RpcDataSet : System.IDisposable + { + private const string TimestampColumnName = "Time"; + private const string DefaultTimeFormat = "yyyy-MM-dd HH:mm:ss.fff"; + + private readonly string _sql; + private bool _isClosed; + private readonly Client _client; + public readonly List _columnNameList = new List(); + public readonly List _columnTypeList = new List(); + private readonly Dictionary _columnOrdinalMap = new Dictionary(); + private readonly Dictionary _columnName2TsBlockColumnIndexMap = new Dictionary(); + private readonly List _columnIndex2TsBlockColumnIndexList = new List(); + private readonly TSDataType[] _dataTypeForTsBlockColumn; + private int _fetchSize; + private long _timeout; + private bool _hasCachedRecord; + private bool _lastReadWasNull; + + private int _columnSize; + private long _sessionId; + private long _queryId; + private long _statementId; + private long _time; + private bool _ignoreTimestamp; + private bool _moreData; + + private List _queryResult; + private TsBlock _curTsBlock; + private int _queryResultSize; + private int _queryResultIndex; + public int _tsBlockSize; + private int _tsBlockIndex; + private TimeZoneInfo _zoneId; + private int _timeFactor; + private string _timePrecision; + private bool disposedValue; + + public RpcDataSet(string sql, List columnNameList, List columnTypeList, + Dictionary columnNameIndex, bool ignoreTimestamp, bool moreData, long queryId, + long statementId, Client client, long sessionId, List queryResult, int fetchSize, + long timeout, string zoneId, List columnIndex2TsBlockColumnIndexList) + { + _sql = sql; + _client = client; + _fetchSize = fetchSize; + _timeout = timeout; + _moreData = moreData; + _columnSize = columnNameList.Count; + _sessionId = sessionId; + _queryId = queryId; + _statementId = statementId; + _ignoreTimestamp = ignoreTimestamp; + + int columnStartIndex = 1; + int resultSetColumnSize = columnNameList.Count; + int startIndexForColumnIndex2TsBlockColumnIndexList = 0; + + if (!_ignoreTimestamp) + { + _columnNameList.Add(TimestampColumnName); + _columnTypeList.Add("INT64"); + _columnName2TsBlockColumnIndexMap[TimestampColumnName] = -1; + _columnOrdinalMap[TimestampColumnName] = 1; + + if (columnIndex2TsBlockColumnIndexList != null) + { + columnIndex2TsBlockColumnIndexList.Insert(0, -1); + startIndexForColumnIndex2TsBlockColumnIndexList = 1; + } + columnStartIndex++; + resultSetColumnSize++; + } + + _columnNameList.AddRange(columnNameList); + _columnTypeList.AddRange(columnTypeList); + + if (columnIndex2TsBlockColumnIndexList == null) + { + columnIndex2TsBlockColumnIndexList = new List(); + if (!_ignoreTimestamp) + { + startIndexForColumnIndex2TsBlockColumnIndexList = 1; + columnIndex2TsBlockColumnIndexList.Add(-1); + } + for (int i = 0; i < columnNameList.Count; i++) + columnIndex2TsBlockColumnIndexList.Add(i); + } + + int tsBlockColumnSize = columnIndex2TsBlockColumnIndexList.Max() + 1; + _dataTypeForTsBlockColumn = new TSDataType[tsBlockColumnSize]; + + for (int i = 0; i < columnNameList.Count; i++) + { + int tsBlockColumnIndex = columnIndex2TsBlockColumnIndexList[startIndexForColumnIndex2TsBlockColumnIndexList + i]; + if (tsBlockColumnIndex != -1) + { + TSDataType columnType = Client.GetDataTypeByStr(columnTypeList[i]); + _dataTypeForTsBlockColumn[tsBlockColumnIndex] = columnType; + } + + if (!_columnName2TsBlockColumnIndexMap.ContainsKey(columnNameList[i])) + { + _columnOrdinalMap[columnNameList[i]] = i + columnStartIndex; + _columnName2TsBlockColumnIndexMap[columnNameList[i]] = tsBlockColumnIndex; + } + } + + _queryResult = queryResult; + _queryResultSize = queryResult?.Count ?? 0; + _queryResultIndex = 0; + _tsBlockSize = 0; + _tsBlockIndex = -1; + + _zoneId = TimeZoneInfo.FindSystemTimeZoneById(zoneId); + + if (columnIndex2TsBlockColumnIndexList.Count != _columnNameList.Count) + throw new ArgumentException("Column index list size mismatch"); + + _columnIndex2TsBlockColumnIndexList = columnIndex2TsBlockColumnIndexList; + } + + protected virtual void Dispose(bool disposing) + { + if (!disposedValue) + { + if (disposing) + { + try + { + this.Close().Wait(); + } + catch + { + } + } + disposedValue = true; + } + } + + public void Dispose() + { + Dispose(disposing: true); + GC.SuppressFinalize(this); + } + + public async Task Close() + { + if (_isClosed) return; + + var closeRequest = new TSCloseOperationReq + { + SessionId = _sessionId, + StatementId = _statementId, + QueryId = _queryId + }; + + try + { + var status = await _client.ServiceClient.closeOperation(closeRequest); + } + catch (TException e) + { + throw new TException("Operation Handle Close Failed", e); + } + _isClosed = true; + } + + public bool Next() + { + if (HasCachedBlock()) + { + _lastReadWasNull = false; + ConstructOneRow(); + return true; + } + + if (HasCachedByteBuffer()) + { + ConstructOneTsBlock(); + ConstructOneRow(); + return true; + } + + if (_moreData) + { + bool hasResultSet = FetchResults(); + if (hasResultSet && HasCachedByteBuffer()) + { + ConstructOneTsBlock(); + ConstructOneRow(); + return true; + } + } + + Close().Wait(); + return false; + } + + private bool FetchResults() + { + if (_isClosed) + throw new InvalidOperationException("Dataset closed"); + + var req = new TSFetchResultsReq + { + SessionId = _sessionId, + Statement = _sql, + FetchSize = _fetchSize, + QueryId = _queryId, + IsAlign = true, + Timeout = _timeout + }; + + try + { + var task = _client.ServiceClient.fetchResultsV2(req); + + var resp = task.ConfigureAwait(false).GetAwaiter().GetResult(); + + if (!resp.HasResultSet) + { + Close().Wait(); + return false; + } + + // return _queryResult != null && _queryResultIndex < _queryResultSize; + _queryResult = resp.QueryResult; + _queryResultIndex = 0; + _queryResultSize = _queryResult?.Count ?? 0; + _tsBlockSize = 0; + _tsBlockIndex = -1; + return true; + } + catch (TException e) + { + throw new TException("Cannot fetch result from server, because of network connection", e); + } + } + + private bool HasCachedBlock() + { + return _curTsBlock != null && _tsBlockIndex < _tsBlockSize - 1; + } + + public bool HasCachedByteBuffer() + { + return _queryResult != null && _queryResultIndex < _queryResultSize; + } + + private void ConstructOneRow() + { + _tsBlockIndex++; + _hasCachedRecord = true; + _time = _curTsBlock.GetTimeByIndex(_tsBlockIndex); + } + + private void ConstructOneTsBlock() + { + _lastReadWasNull = false; + byte[] curTsBlockBytes = _queryResult[_queryResultIndex]; + + _queryResultIndex++; + _curTsBlock = TsBlock.Deserialize(new ByteBuffer(curTsBlockBytes)); + _tsBlockIndex = -1; + _tsBlockSize = _curTsBlock.PositionCount; + } + + public bool IsIgnoredTimestamp => _ignoreTimestamp; + + public bool IsNullByIndex(int columnIndex) + { + int index = GetTsBlockColumnIndexForColumnIndex(columnIndex); + return IsNull(index, _tsBlockIndex); + } + + public bool IsNullByColumnName(string columnName) + { + int index = GetTsBlockColumnIndexForColumnName(columnName); + return IsNull(index, _tsBlockIndex); + } + + private bool IsNull(int index, int rowNum) + { + return index >= 0 && _curTsBlock.GetColumn(index).IsNull(rowNum); + } + + public bool GetBooleanByIndex(int columnIndex) + { + int index = GetTsBlockColumnIndexForColumnIndex(columnIndex); + return GetBooleanByTsBlockColumnIndex(index); + } + + public bool GetBoolean(string columnName) + { + int index = GetTsBlockColumnIndexForColumnName(columnName); + return GetBooleanByTsBlockColumnIndex(index); + } + + private bool GetBooleanByTsBlockColumnIndex(int tsBlockColumnIndex) + { + CheckRecord(); + if (!IsNull(tsBlockColumnIndex, _tsBlockIndex)) + { + _lastReadWasNull = false; + return _curTsBlock.GetColumn(tsBlockColumnIndex).GetBoolean(_tsBlockIndex); + } + else + { + _lastReadWasNull = true; + return false; + } + } + + public double GetDoubleByIndex(int columnIndex) + { + int index = GetTsBlockColumnIndexForColumnIndex(columnIndex); + return GetDoubleByTsBlockColumnIndex(index); + } + + public double GetDouble(string columnName) + { + int index = GetTsBlockColumnIndexForColumnName(columnName); + return GetDoubleByTsBlockColumnIndex(index); + } + + private double GetDoubleByTsBlockColumnIndex(int tsBlockColumnIndex) + { + CheckRecord(); + if (!IsNull(tsBlockColumnIndex, _tsBlockIndex)) + { + _lastReadWasNull = false; + return _curTsBlock.GetColumn(tsBlockColumnIndex).GetDouble(_tsBlockIndex); + } + else + { + _lastReadWasNull = true; + return 0.0; + } + } + + public float GetFloatByIndex(int columnIndex) + { + int index = GetTsBlockColumnIndexForColumnIndex(columnIndex); + return GetFloatByTsBlockColumnIndex(index); + } + + public float GetFloat(string columnName) + { + int index = GetTsBlockColumnIndexForColumnName(columnName); + return GetFloatByTsBlockColumnIndex(index); + } + + private float GetFloatByTsBlockColumnIndex(int tsBlockColumnIndex) + { + CheckRecord(); + if (!IsNull(tsBlockColumnIndex, _tsBlockIndex)) + { + _lastReadWasNull = false; + return _curTsBlock.GetColumn(tsBlockColumnIndex).GetFloat(_tsBlockIndex); + } + else + { + _lastReadWasNull = true; + return 0.0f; + } + } + + public int GetIntByIndex(int columnIndex) + { + int index = GetTsBlockColumnIndexForColumnIndex(columnIndex); + return GetIntByTsBlockColumnIndex(index); + } + + public int GetInt(string columnName) + { + int index = GetTsBlockColumnIndexForColumnName(columnName); + return GetIntByTsBlockColumnIndex(index); + } + + private int GetIntByTsBlockColumnIndex(int tsBlockColumnIndex) + { + CheckRecord(); + if (!IsNull(tsBlockColumnIndex, _tsBlockIndex)) + { + _lastReadWasNull = false; + TSDataType dataType = _curTsBlock.GetColumn(tsBlockColumnIndex).GetDataType(); + if (dataType == TSDataType.INT64) + { + long v = _curTsBlock.GetColumn(tsBlockColumnIndex).GetLong(_tsBlockIndex); + return (int)v; + } + return _curTsBlock.GetColumn(tsBlockColumnIndex).GetInt(_tsBlockIndex); + } + else + { + _lastReadWasNull = true; + return 0; + } + } + + public long GetLongByIndex(int columnIndex) + { + int index = GetTsBlockColumnIndexForColumnIndex(columnIndex); + return GetLongByTsBlockColumnIndex(index); + } + + public long GetLong(string columnName) + { + int index = GetTsBlockColumnIndexForColumnName(columnName); + return GetLongByTsBlockColumnIndex(index); + } + + private long GetLongByTsBlockColumnIndex(int tsBlockColumnIndex) + { + CheckRecord(); + if (!IsNull(tsBlockColumnIndex, _tsBlockIndex)) + { + if (tsBlockColumnIndex == -1) return _curTsBlock.GetTimeByIndex(_tsBlockIndex); + _lastReadWasNull = false; + return _curTsBlock.GetColumn(tsBlockColumnIndex).GetLong(_tsBlockIndex); + } + else + { + _lastReadWasNull = true; + return 0L; + } + } + + public Binary GetBinaryByIndex(int columnIndex) + { + int index = GetTsBlockColumnIndexForColumnIndex(columnIndex); + return GetBinaryByTsBlockColumnIndex(index); + } + + public Binary GetBinary(string columnName) + { + int index = GetTsBlockColumnIndexForColumnName(columnName); + return GetBinaryByTsBlockColumnIndex(index); + } + + private Binary GetBinaryByTsBlockColumnIndex(int tsBlockColumnIndex) + { + CheckRecord(); + if (!IsNull(tsBlockColumnIndex, _tsBlockIndex)) + { + _lastReadWasNull = false; + return _curTsBlock.GetColumn(tsBlockColumnIndex).GetBinary(_tsBlockIndex); + } + else + { + _lastReadWasNull = true; + return null; + } + } + + public object GetObjectByIndex(int columnIndex) + { + int index = GetTsBlockColumnIndexForColumnIndex(columnIndex); + return GetObjectByTsBlockIndex(index); + } + + public object GetObject(string columnName) + { + int index = GetTsBlockColumnIndexForColumnName(columnName); + return GetObjectByTsBlockIndex(index); + } + + private object GetObjectByTsBlockIndex(int tsBlockColumnIndex) + { + CheckRecord(); + if (IsNull(tsBlockColumnIndex, _tsBlockIndex)) + { + _lastReadWasNull = true; + return null; + } + + _lastReadWasNull = false; + TSDataType dataType = GetDataTypeByTsBlockColumnIndex(tsBlockColumnIndex); + + switch (dataType) + { + case TSDataType.BOOLEAN: + case TSDataType.INT32: + case TSDataType.INT64: + case TSDataType.FLOAT: + case TSDataType.DOUBLE: + return _curTsBlock.GetColumn(tsBlockColumnIndex).GetObject(_tsBlockIndex); + + case TSDataType.TIMESTAMP: + long timestamp = tsBlockColumnIndex == -1 + ? _curTsBlock.GetTimeByIndex(_tsBlockIndex) + : _curTsBlock.GetColumn(tsBlockColumnIndex).GetLong(_tsBlockIndex); + return ConvertToTimestamp(timestamp, _timeFactor); + + case TSDataType.TEXT: + case TSDataType.STRING: + Binary binaryStr = _curTsBlock.GetColumn(tsBlockColumnIndex).GetBinary(_tsBlockIndex); + return binaryStr != null ? Encoding.UTF8.GetString(binaryStr.Data) : null; + + case TSDataType.BLOB: + return _curTsBlock.GetColumn(tsBlockColumnIndex).GetBinary(_tsBlockIndex); + + case TSDataType.DATE: + int value = _curTsBlock.GetColumn(tsBlockColumnIndex).GetInt(_tsBlockIndex); + return Int32ToDate(value); + + default: + return null; + } + } + + public string GetStringByIndex(int columnIndex) + { + int index = GetTsBlockColumnIndexForColumnIndex(columnIndex); + return GetStringByTsBlockColumnIndex(index); + } + + public string GetString(string columnName) + { + int index = GetTsBlockColumnIndexForColumnName(columnName); + return GetStringByTsBlockColumnIndex(index); + } + + private string GetStringByTsBlockColumnIndex(int tsBlockColumnIndex) + { + CheckRecord(); + + if (tsBlockColumnIndex == -1) + { + long timestamp = _curTsBlock.GetTimeByIndex(_tsBlockIndex); + return timestamp.ToString(); + } + + if (IsNull(tsBlockColumnIndex, _tsBlockIndex)) + { + _lastReadWasNull = true; + Console.WriteLine("null"); + return string.Empty; + } + + _lastReadWasNull = false; + return GetStringByTsBlockColumnIndexAndDataType( + tsBlockColumnIndex, + GetDataTypeByTsBlockColumnIndex(tsBlockColumnIndex)); + } + + private string GetStringByTsBlockColumnIndexAndDataType(int index, TSDataType tsDataType) + { + switch (tsDataType) + { + case TSDataType.BOOLEAN: + bool boolVal = _curTsBlock.GetColumn(index).GetBoolean(_tsBlockIndex); + return boolVal.ToString(); + + case TSDataType.INT32: + int intVal = _curTsBlock.GetColumn(index).GetInt(_tsBlockIndex); + return intVal.ToString(); + + case TSDataType.INT64: + long longVal = _curTsBlock.GetColumn(index).GetLong(_tsBlockIndex); + return longVal.ToString(); + + case TSDataType.TIMESTAMP: + long tsValue = _curTsBlock.GetColumn(index).GetLong(_tsBlockIndex); + return FormatDatetime(DefaultTimeFormat, _timePrecision, tsValue, _zoneId); + + case TSDataType.FLOAT: + float floatVal = _curTsBlock.GetColumn(index).GetFloat(_tsBlockIndex); + return floatVal.ToString("G9"); + + case TSDataType.DOUBLE: + double doubleVal = _curTsBlock.GetColumn(index).GetDouble(_tsBlockIndex); + return doubleVal.ToString("G17"); + + case TSDataType.TEXT: + case TSDataType.STRING: + Binary strBytes = _curTsBlock.GetColumn(index).GetBinary(_tsBlockIndex); + return strBytes != null ? Encoding.UTF8.GetString(strBytes.Data) : "0"; + + case TSDataType.BLOB: + Binary blobBytes = _curTsBlock.GetColumn(index).GetBinary(_tsBlockIndex); + return blobBytes.ToString().Replace("-", ""); + + case TSDataType.DATE: + int dateValue = _curTsBlock.GetColumn(index).GetInt(_tsBlockIndex); + DateTime date = Int32ToDate(dateValue); + return date.ToString("yyyy-MM-dd"); + + default: + return string.Empty; + } + } + + public RowRecord GetRow() + { + IReadOnlyList columns = _columnNameList; + int i = 0; + List fieldList = new List(); + long timestamp = 0; + foreach (string columnName in columns) + { + object localfield; + string typeStr = _columnTypeList[i]; + TSDataType dataType = Client.GetDataTypeByStr(typeStr); + + switch (dataType) + { + case TSDataType.BOOLEAN: + localfield = GetBoolean(columnName); + break; + case TSDataType.INT32: + localfield = GetInt(columnName); + break; + case TSDataType.INT64: + localfield = GetLong(columnName); + break; + case TSDataType.TIMESTAMP: + localfield = null; + timestamp = GetLong(columnName); + break; + case TSDataType.FLOAT: + localfield = GetFloat(columnName); + break; + case TSDataType.DOUBLE: + localfield = GetDouble(columnName); + break; + case TSDataType.TEXT: + case TSDataType.STRING: + case TSDataType.BLOB: + case TSDataType.DATE: + localfield = GetString(columnName); + break; + default: + string err_msg = "value format not supported"; + throw new TException(err_msg, null); + } + if (localfield != null) + fieldList.Add(localfield); + i += 1; + } + return new RowRecord(timestamp, fieldList, _columnNameList); + } + + public DateTime GetTimestampByIndex(int columnIndex) + { + int index = GetTsBlockColumnIndexForColumnIndex(columnIndex); + return GetTimestampByTsBlockColumnIndex(index); + } + + public DateTime GetTimestamp(string columnName) + { + int index = GetTsBlockColumnIndexForColumnName(columnName); + return GetTimestampByTsBlockColumnIndex(index); + } + + private DateTime GetTimestampByTsBlockColumnIndex(int tsBlockColumnIndex) + { + long value = GetLongByTsBlockColumnIndex(tsBlockColumnIndex); + return ConvertToTimestamp(value, _timeFactor); + } + + public DateTime GetDateByIndex(int columnIndex) + { + int index = GetTsBlockColumnIndexForColumnIndex(columnIndex); + return GetDateByTsBlockColumnIndex(index); + } + + public DateTime GetDate(string columnName) + { + int index = GetTsBlockColumnIndexForColumnName(columnName); + return GetDateByTsBlockColumnIndex(index); + } + + private DateTime GetDateByTsBlockColumnIndex(int tsBlockColumnIndex) + { + int value = GetIntByTsBlockColumnIndex(tsBlockColumnIndex); + return Int32ToDate(value); + } + + public TSDataType GetDataTypeByIndex(int columnIndex) + { + int index = GetTsBlockColumnIndexForColumnIndex(columnIndex); + return GetDataTypeByTsBlockColumnIndex(index); + } + + public TSDataType GetDataType(string columnName) + { + if (!_columnName2TsBlockColumnIndexMap.TryGetValue(columnName, out int index)) + throw new ArgumentException($"Column {columnName} not found"); + + return GetDataTypeByTsBlockColumnIndex(index); + } + + private TSDataType GetDataTypeByTsBlockColumnIndex(int tsBlockColumnIndex) + { + return tsBlockColumnIndex < 0 + ? TSDataType.TIMESTAMP + : _dataTypeForTsBlockColumn[tsBlockColumnIndex]; + } + + private DateTime ConvertToTimestamp(long value, double timeFactor) + { + long timestamp = (long)(value * timeFactor); + return DateTimeOffset.FromUnixTimeMilliseconds(timestamp).DateTime; + } + + public static DateTime Int32ToDate(int val) + { + int year = val / 10000; + int remaining = val % 10000; + int month = remaining / 100; + int day = remaining % 100; + + if (year < 1 || year > 9999) + throw new ArgumentOutOfRangeException( + paramName: nameof(val), + message: $"Invalid year value: {year}. Year must be between 1-9999" + ); + + if (month < 1 || month > 12) + throw new ArgumentOutOfRangeException( + paramName: nameof(val), + message: $"Invalid month value: {month}. Month must be between 1-12" + ); + + int daysInMonth = DateTime.DaysInMonth(year, month); + if (day < 1 || day > daysInMonth) + throw new ArgumentOutOfRangeException( + paramName: nameof(val), + message: $"Invalid day value: {day}. Day must be between 1-{daysInMonth} for {year}-{month}" + ); + + return new DateTime(year, month, day, 0, 0, 0, DateTimeKind.Utc); + } + + private string FormatDatetime(string format, string precision, long value, TimeZoneInfo zone) + { + DateTime dt = ConvertToTimestamp(value, 1); // 假设timeFactor=1 + DateTime convertedTime = TimeZoneInfo.ConvertTime(dt, zone); + return convertedTime.ToString(format); + } + + private int GetTsBlockColumnIndexForColumnName(string columnName) + { + if (!_columnName2TsBlockColumnIndexMap.TryGetValue(columnName, out int index)) + throw new ArgumentException($"Column {columnName} not found"); + return index; + } + + public int FindColumn(string columnName) + { + if (!_columnOrdinalMap.TryGetValue(columnName, out int ordinal)) + throw new ArgumentException($"Column {columnName} not found"); + return ordinal; + } + + public string FindColumnNameByIndex(int columnIndex) + { + if (columnIndex <= 0) + throw new ArgumentOutOfRangeException(nameof(columnIndex), "Column index should start from 1"); + + if (columnIndex > _columnNameList.Count) + throw new ArgumentOutOfRangeException(nameof(columnIndex), + $"Column index {columnIndex} out of range {_columnNameList.Count}"); + + return _columnNameList[columnIndex - 1]; + } + + private int GetTsBlockColumnIndexForColumnIndex(int columnIndex) + { + int adjustedIndex = columnIndex - 1; + if (adjustedIndex < 0 || adjustedIndex >= _columnIndex2TsBlockColumnIndexList.Count) + throw new ArgumentOutOfRangeException(nameof(columnIndex), + $"Index {adjustedIndex} out of range {_columnIndex2TsBlockColumnIndexList.Count}"); + + return _columnIndex2TsBlockColumnIndexList[adjustedIndex]; + } + + private void CheckRecord() + { + if (_queryResultIndex > _queryResultSize || + _tsBlockIndex >= _tsBlockSize || + _queryResult == null || + _curTsBlock == null) + { + throw new InvalidOperationException("No record remains"); + } + } + + public int GetValueColumnStartIndex() => _ignoreTimestamp ? 0 : 1; + + public int GetColumnSize() => _columnNameList.Count; + + public List GetColumnTypeList() => new List(_columnTypeList); + + public List GetColumnNameTypeList() => new List(_columnTypeList); + + public bool IsClosed() => _isClosed; + + public int FetchSize + { + get => _fetchSize; + set => _fetchSize = value; + } + + public bool HasCachedRecord + { + get => _hasCachedRecord; + set => _hasCachedRecord = value; + } + + public bool IsLastReadWasNull() => _lastReadWasNull; + + public long GetCurrentRowTime() => _time; + + public bool IsIgnoreTimestamp() => _ignoreTimestamp; + } +} diff --git a/src/Apache.IoTDB/DataStructure/SessionDataSet.cs b/src/Apache.IoTDB/DataStructure/SessionDataSet.cs index 3d606f4..d8c8b5d 100644 --- a/src/Apache.IoTDB/DataStructure/SessionDataSet.cs +++ b/src/Apache.IoTDB/DataStructure/SessionDataSet.cs @@ -32,284 +32,104 @@ public class SessionDataSet : System.IDisposable private readonly string _sql; private readonly List _columnNames; private readonly Dictionary _columnNameIndexMap; - private readonly Dictionary _duplicateLocation; private readonly List _columnTypeLst; - private TSQueryDataSet _queryDataset; - private readonly byte[] _currentBitmap; private readonly int _columnSize; private List _valueBufferLst, _bitmapBufferLst; - private ByteBuffer _timeBuffer; - private readonly ConcurrentClientQueue _clientQueue; private Client _client; private int _rowIndex; - private bool _hasCatchedResult; private RowRecord _cachedRowRecord; private bool _isClosed = false; private bool disposedValue; + private RpcDataSet _rpcDataSet; + private string _zoneId; + private readonly ConcurrentClientQueue _clientQueue; private string TimestampStr => "Time"; private int StartIndex => 2; private int Flag => 0x80; private int DefaultTimeout => 10000; public int FetchSize { get; set; } - public int RowCount { get; set; } - public SessionDataSet(string sql, TSExecuteStatementResp resp, Client client, ConcurrentClientQueue clientQueue, long statementId) + public SessionDataSet( + string sql, List ColumnNameList, List ColumnTypeList, + Dictionary ColumnNameIndexMap, long QueryId, long statementId, Client client, List QueryResult, + bool IgnoreTimeStamp, bool MoreData, string zoneId, List ColumnIndex2TsBlockColumnIndexList, ConcurrentClientQueue _clientQueueS + ) { - _clientQueue = clientQueue; _client = client; _sql = sql; - _queryDataset = resp.QueryDataSet; - _queryId = resp.QueryId; + _queryId = QueryId; _statementId = statementId; - _columnSize = resp.Columns.Count; - _currentBitmap = new byte[_columnSize]; - _columnNames = new List(); - _timeBuffer = new ByteBuffer(_queryDataset.Time); - // column name -> column location - _columnNameIndexMap = new Dictionary(); - _columnTypeLst = new List(); - _duplicateLocation = new Dictionary(); - _valueBufferLst = new List(); - _bitmapBufferLst = new List(); - // some internal variable - _hasCatchedResult = false; + _columnSize = ColumnNameList.Count; + _columnNameIndexMap = ColumnNameIndexMap; _rowIndex = 0; - RowCount = _queryDataset.Time.Length / sizeof(long); - - _columnNames = resp.Columns; - _columnTypeLst = resp.DataTypeList; - - int deduplicateIdx = 0; - Dictionary columnToFirstIndexMap = new Dictionary(); - for (var i = 0; i < _columnSize; i++) - { - var columnName = _columnNames[i]; - if (_columnNameIndexMap.ContainsKey(columnName)) - { - _duplicateLocation[i] = columnToFirstIndexMap[columnName]; - } - else - { - columnToFirstIndexMap[columnName] = i; - if (resp.ColumnNameIndexMap != null) - { - int valueIndex = resp.ColumnNameIndexMap[columnName]; - _columnNameIndexMap[columnName] = valueIndex; - _valueBufferLst.Add(new ByteBuffer(_queryDataset.ValueList[valueIndex])); - _bitmapBufferLst.Add(new ByteBuffer(_queryDataset.BitmapList[valueIndex])); - } - else - { - _columnNameIndexMap[columnName] = deduplicateIdx; - _valueBufferLst.Add(new ByteBuffer(_queryDataset.ValueList[deduplicateIdx])); - _bitmapBufferLst.Add(new ByteBuffer(_queryDataset.BitmapList[deduplicateIdx])); - } - deduplicateIdx++; - } - } - } - public List ColumnNames => _columnNames; - - - private List GetColumnNames() - { - var lst = new List - { - "timestamp" - }; - lst.AddRange(_columnNames); - return lst; - } - public void ShowTableNames() - { - var str = GetColumnNames() - .Aggregate("", (current, name) => current + (name + "\t\t")); + _columnNames = ColumnNameList; + _columnTypeLst = ColumnTypeList; + _zoneId = zoneId; + _clientQueue = _clientQueueS; - Console.WriteLine(str); + _rpcDataSet = new RpcDataSet( + _sql, _columnNames, _columnTypeLst, _columnNameIndexMap, IgnoreTimeStamp, + MoreData, _queryId, _statementId, _client, _client.SessionId, QueryResult, FetchSize, + DefaultTimeout, _zoneId, ColumnIndex2TsBlockColumnIndexList + ); } - public bool HasNext() { - if (_hasCatchedResult) - { - return true; - } - - // we have consumed all current data, fetch some more - if (!_timeBuffer.HasRemaining()) - { - if (!FetchResults()) - { - return false; - } - } - - ConstructOneRow(); - _hasCatchedResult = true; - return true; + if (_rpcDataSet.HasCachedRecord) return true; + return Next(); } - public RowRecord Next() - { - if (!_hasCatchedResult) - { - if (!HasNext()) - { - return null; - } - } + public bool Next() => _rpcDataSet.Next(); + public bool IsNull(string columnName) => _rpcDataSet.IsNullByColumnName(columnName); + public bool IsNullByIndex(int columnIndex) => _rpcDataSet.IsNullByIndex(columnIndex); - _hasCatchedResult = false; - return _cachedRowRecord; - } - public RowRecord GetRow() - { - return _cachedRowRecord; - } + public bool GetBooleanByIndex(int columnIndex) => _rpcDataSet.GetBooleanByIndex(columnIndex); + public bool GetBoolean(string columnName) => _rpcDataSet.GetBoolean(columnName); - private TSDataType GetDataTypeFromStr(string str) - { - return str switch - { - "BOOLEAN" => TSDataType.BOOLEAN, - "INT32" => TSDataType.INT32, - "INT64" => TSDataType.INT64, - "FLOAT" => TSDataType.FLOAT, - "DOUBLE" => TSDataType.DOUBLE, - "TEXT" => TSDataType.TEXT, - "NULLTYPE" => TSDataType.NONE, - "TIMESTAMP" => TSDataType.TIMESTAMP, - "DATE" => TSDataType.DATE, - "BLOB" => TSDataType.BLOB, - "STRING" => TSDataType.STRING, - _ => TSDataType.STRING - }; - } + public double GetDoubleByIndex(int columnIndex) => _rpcDataSet.GetDoubleByIndex(columnIndex); + public double GetDouble(string columnName) => _rpcDataSet.GetDouble(columnName); - private void ConstructOneRow() - { - List fieldList = new List(); + public float GetFloatByIndex(int columnIndex) => _rpcDataSet.GetFloatByIndex(columnIndex); + public float GetFloat(string columnName) => _rpcDataSet.GetFloat(columnName); - for (int i = 0; i < _columnSize; i++) - { - if (_duplicateLocation.ContainsKey(i)) - { - var field = fieldList[_duplicateLocation[i]]; - fieldList.Add(field); - } - else - { - var columnValueBuffer = _valueBufferLst[i]; - var columnBitmapBuffer = _bitmapBufferLst[i]; + public int GetIntByIndex(int columnIndex) => _rpcDataSet.GetIntByIndex(columnIndex); + public int GetInt(string columnName) => _rpcDataSet.GetInt(columnName); - if (_rowIndex % 8 == 0) - { - _currentBitmap[i] = columnBitmapBuffer.GetByte(); - } + public long GetLongByIndex(int columnIndex) => _rpcDataSet.GetLongByIndex(columnIndex); + public long GetLong(string columnName) => _rpcDataSet.GetLong(columnName); - object localField; - if (!IsNull(i, _rowIndex)) - { - var columnDataType = GetDataTypeFromStr(_columnTypeLst[i]); + public object GetObjectByIndex(int columnIndex) => _rpcDataSet.GetObjectByIndex(columnIndex); + public object GetObject(string columnName) => _rpcDataSet.GetObject(columnName); + public string GetStringByIndex(int columnIndex) => _rpcDataSet.GetStringByIndex(columnIndex); + public string GetString(string columnName) => _rpcDataSet.GetString(columnName); - switch (columnDataType) - { - case TSDataType.BOOLEAN: - localField = columnValueBuffer.GetBool(); - break; - case TSDataType.INT32: - // case TSDataType.DATE: - localField = columnValueBuffer.GetInt(); - break; - case TSDataType.DATE: - localField = Utils.ParseIntToDate(columnValueBuffer.GetInt()); - break; - case TSDataType.INT64: - case TSDataType.TIMESTAMP: - localField = columnValueBuffer.GetLong(); - break; - case TSDataType.FLOAT: - localField = columnValueBuffer.GetFloat(); - break; - case TSDataType.DOUBLE: - localField = columnValueBuffer.GetDouble(); - break; - case TSDataType.TEXT: - case TSDataType.STRING: - // case TSDataType.BLOB: - localField = columnValueBuffer.GetStr(); - break; - case TSDataType.BLOB: - localField = columnValueBuffer.GetBinary(); - break; - // TODO - default: - string err_msg = "value format not supported"; - throw new TException(err_msg, null); - } + public DateTime GetTimestampByIndex(int columnIndex) => _rpcDataSet.GetTimestampByIndex(columnIndex); + public DateTime GetTimestamp(string columnName) => _rpcDataSet.GetTimestamp(columnName); - fieldList.Add(localField); - } - else - { - localField = null; - fieldList.Add(DBNull.Value); - } - } - } + public DateTime GetDateByIndex(int columnIndex) => _rpcDataSet.GetDateByIndex(columnIndex); + public DateTime GetDate(string columnName) => _rpcDataSet.GetDate(columnName); - long timestamp = _timeBuffer.GetLong(); - _rowIndex += 1; - _cachedRowRecord = new RowRecord(timestamp, fieldList, _columnNames); - } + public Binary GetBlobByIndex(int columnIndex) => _rpcDataSet.GetBinaryByIndex(columnIndex); + public Binary GetBlob(string columnName) => _rpcDataSet.GetBinary(columnName); - private bool IsNull(int loc, int row_index) - { - byte bitmap = _currentBitmap[loc]; - int shift = row_index % 8; - return ((Flag >> shift) & bitmap) == 0; - } + public int FindColumn(string columnName) => _rpcDataSet.FindColumn(columnName); - private bool FetchResults() - { - _rowIndex = 0; - var req = new TSFetchResultsReq(_client.SessionId, _sql, FetchSize, _queryId, true) - { - Timeout = DefaultTimeout - }; - try - { - var task = _client.ServiceClient.fetchResultsAsync(req); + public IReadOnlyList GetColumnNames() => _rpcDataSet._columnNameList; + public IReadOnlyList GetColumnTypes() => _rpcDataSet._columnTypeList; - var resp = task.ConfigureAwait(false).GetAwaiter().GetResult(); + public RowRecord GetRow() => _rpcDataSet.GetRow(); + public int RowCount() => _rpcDataSet._tsBlockSize; - if (resp.HasResultSet) - { - _queryDataset = resp.QueryDataSet; - // reset buffer - _timeBuffer = new ByteBuffer(resp.QueryDataSet.Time); - _valueBufferLst = new List(); - _bitmapBufferLst = new List(); - for (int index = 0; index < _queryDataset.ValueList.Count; index++) - { - string columnName = _columnNames[index]; - int valueIndex = _columnNameIndexMap[columnName]; - _valueBufferLst.Add(new ByteBuffer(_queryDataset.ValueList[valueIndex])); - _bitmapBufferLst.Add(new ByteBuffer(_queryDataset.BitmapList[valueIndex])); - } - - // reset row index - _rowIndex = 0; - } - - return resp.HasResultSet; - } - catch (TException e) + public void ShowTableNames() + { + IReadOnlyList columns = GetColumnNames(); + foreach (string columnName in columns) { - throw new TException("Cannot fetch result from server, because of network connection", e); + Console.Write($"{columnName}\t"); } + Console.WriteLine(); } public async Task Close() @@ -324,7 +144,7 @@ public async Task Close() try { - var status = await _client.ServiceClient.closeOperationAsync(req); + var status = await _client.ServiceClient.closeOperation(req); } catch (TException e) { @@ -332,6 +152,7 @@ public async Task Close() } finally { + await _rpcDataSet.Close(); _clientQueue.Add(_client); _client = null; } @@ -352,8 +173,6 @@ protected virtual void Dispose(bool disposing) { } } - _queryDataset = null; - _timeBuffer = null; _valueBufferLst = null; _bitmapBufferLst = null; disposedValue = true; diff --git a/src/Apache.IoTDB/DataStructure/TsBlock.cs b/src/Apache.IoTDB/DataStructure/TsBlock.cs new file mode 100644 index 0000000..e399c22 --- /dev/null +++ b/src/Apache.IoTDB/DataStructure/TsBlock.cs @@ -0,0 +1,124 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; +using System.Collections.Generic; +using System.IO; +using System.Text; + +namespace Apache.IoTDB.DataStructure +{ + public class TsBlock + { + private readonly Column _timeColumn; + private readonly List _valueColumns; + private readonly int _positionCount; + + public TsBlock(int positionCount, Column timeColumn, params Column[] valueColumns) + { + _positionCount = positionCount; + _timeColumn = timeColumn; + _valueColumns = new List(valueColumns); + if (valueColumns == null) + throw new ArgumentNullException(nameof(valueColumns)); + if (timeColumn.GetPositionCount() != positionCount) + throw new ArgumentException( + $"input positionCount {positionCount} does not match timeColumn.positionCount {timeColumn.GetPositionCount()}" + ); + for (int i = 0; i < ValueColumnCount; i++) + { + if (valueColumns[i].GetPositionCount() != positionCount) + throw new ArgumentException( + $"input positionCount {positionCount} does not match valueColumn{i}.positionCount {valueColumns[i].GetPositionCount()}" + ); + } + } + + public static TsBlock Deserialize(ByteBuffer reader) + { + // Serialized tsblock: + // +-------------+---------------+---------+------------+-----------+----------+ + // | val col cnt | val col types | pos cnt | encodings | time col | val col | + // +-------------+---------------+---------+------------+-----------+----------+ + // | int32 | list[byte] | int32 | list[byte] | bytes | bytes | + // +-------------+---------------+---------+------------+-----------+----------+ + + // Read value column count + var valueColumnCount = reader.GetInt(); + + // Read value column data types + var valueColumnDataTypes = new TSDataType[valueColumnCount]; + for (int i = 0; i < valueColumnCount; i++) + { + valueColumnDataTypes[i] = DeserializeDataType(reader); + } + + // Read position count + var positionCount = reader.GetInt(); + + // Read column encodings + // Read time column encoding + ColumnEncoding timeColumnEncodings = DeserializeColumnEncoding(reader); + + // Read value column encodings + var valuecolumnEncodings = new ColumnEncoding[valueColumnCount]; + for (int i = 1; i < valueColumnCount + 1; i++) + { + valuecolumnEncodings[i - 1] = DeserializeColumnEncoding(reader); + } + + // Read time column + var timeColumnDecoder = BaseColumnDecoder.GetDecoder(timeColumnEncodings); + var timeColumn = timeColumnDecoder.ReadColumn(reader, TSDataType.INT64, positionCount); + + // Read value columns + var valueColumns = new Column[valueColumnCount]; + for (int i = 1; i < valueColumnCount + 1; i++) + { + var decoder = BaseColumnDecoder.GetDecoder(valuecolumnEncodings[i - 1]); + valueColumns[i - 1] = decoder.ReadColumn(reader, valueColumnDataTypes[i - 1], positionCount); + } + + return new TsBlock(positionCount, timeColumn, valueColumns); + } + + private static TSDataType DeserializeDataType(ByteBuffer reader) + { + byte b = reader.GetByte(); + return (TSDataType)b; + } + + private static ColumnEncoding DeserializeColumnEncoding(ByteBuffer reader) + { + byte b = reader.GetByte(); + return (ColumnEncoding)b; + } + + public int PositionCount => _positionCount; + + public long GetStartTime() => _timeColumn.GetLong(0); + public long GetEndTime() => _timeColumn.GetLong(_positionCount - 1); + public bool IsEmpty => _positionCount == 0; + public long GetTimeByIndex(int index) => _timeColumn.GetLong(index); + public int ValueColumnCount => _valueColumns.Count; + public Column TimeColumn => _timeColumn; + public IReadOnlyList ValueColumns => _valueColumns; + public Column GetColumn(int columnIndex) => _valueColumns[columnIndex]; + } +} diff --git a/src/Apache.IoTDB/Rpc/Generated/FunctionType.cs b/src/Apache.IoTDB/Rpc/Generated/FunctionType.cs index 4ec65ad..ab47cd3 100644 --- a/src/Apache.IoTDB/Rpc/Generated/FunctionType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/FunctionType.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,6 +7,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum FunctionType { diff --git a/src/Apache.IoTDB/Rpc/Generated/IClientRPCService.cs b/src/Apache.IoTDB/Rpc/Generated/IClientRPCService.cs index c0a051d..5323f6b 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,145 +27,148 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class IClientRPCService { public interface IAsync { - global::System.Threading.Tasks.Task executeQueryStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeQueryStatementV2(TSExecuteStatementReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeUpdateStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeUpdateStatementV2(TSExecuteStatementReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeStatementV2(TSExecuteStatementReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeRawDataQueryV2Async(TSRawDataQueryReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeRawDataQueryV2(TSRawDataQueryReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeLastDataQueryV2Async(TSLastDataQueryReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeLastDataQueryV2(TSLastDataQueryReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeFastLastDataQueryForOneDeviceV2Async(TSFastLastDataQueryForOneDeviceReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeFastLastDataQueryForOnePrefixPath(TSFastLastDataQueryForOnePrefixPathReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeAggregationQueryV2Async(TSAggregationQueryReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeFastLastDataQueryForOneDeviceV2(TSFastLastDataQueryForOneDeviceReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeGroupByQueryIntervalQueryAsync(TSGroupByQueryIntervalReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeAggregationQueryV2(TSAggregationQueryReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task fetchResultsV2Async(TSFetchResultsReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeGroupByQueryIntervalQuery(TSGroupByQueryIntervalReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task openSessionAsync(TSOpenSessionReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task fetchResultsV2(TSFetchResultsReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task closeSessionAsync(TSCloseSessionReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task openSession(TSOpenSessionReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task closeSession(TSCloseSessionReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeBatchStatementAsync(TSExecuteBatchStatementReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeStatement(TSExecuteStatementReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeQueryStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeBatchStatement(TSExecuteBatchStatementReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeUpdateStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeQueryStatement(TSExecuteStatementReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task fetchResultsAsync(TSFetchResultsReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeUpdateStatement(TSExecuteStatementReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task fetchMetadataAsync(TSFetchMetadataReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task fetchResults(TSFetchResultsReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task cancelOperationAsync(TSCancelOperationReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task fetchMetadata(TSFetchMetadataReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task closeOperationAsync(TSCloseOperationReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task cancelOperation(TSCancelOperationReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task getTimeZoneAsync(long sessionId, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task closeOperation(TSCloseOperationReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task setTimeZoneAsync(TSSetTimeZoneReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task getTimeZone(long sessionId, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task getPropertiesAsync(CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task setTimeZone(TSSetTimeZoneReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task setStorageGroupAsync(long sessionId, string storageGroup, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task getProperties(CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task createTimeseriesAsync(TSCreateTimeseriesReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task setStorageGroup(long sessionId, string storageGroup, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task createAlignedTimeseriesAsync(TSCreateAlignedTimeseriesReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task createTimeseries(TSCreateTimeseriesReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task createMultiTimeseriesAsync(TSCreateMultiTimeseriesReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task createAlignedTimeseries(TSCreateAlignedTimeseriesReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task deleteTimeseriesAsync(long sessionId, List path, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task createMultiTimeseries(TSCreateMultiTimeseriesReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task deleteStorageGroupsAsync(long sessionId, List storageGroup, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task deleteTimeseries(long sessionId, List path, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task insertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task deleteStorageGroups(long sessionId, List storageGroup, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task insertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task insertRecord(TSInsertRecordReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task insertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task insertStringRecord(TSInsertStringRecordReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task insertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task insertTablet(TSInsertTabletReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task insertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task insertTablets(TSInsertTabletsReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task insertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task insertRecords(TSInsertRecordsReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task insertStringRecordsOfOneDeviceAsync(TSInsertStringRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task insertRecordsOfOneDevice(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task insertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task insertStringRecordsOfOneDevice(TSInsertStringRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task testInsertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task insertStringRecords(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task testInsertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task testInsertTablet(TSInsertTabletReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task testInsertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task testInsertTablets(TSInsertTabletsReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task testInsertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task testInsertRecord(TSInsertRecordReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task testInsertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task testInsertStringRecord(TSInsertStringRecordReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task testInsertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task testInsertRecords(TSInsertRecordsReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task testInsertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task testInsertRecordsOfOneDevice(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task deleteDataAsync(TSDeleteDataReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task testInsertStringRecords(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeRawDataQueryAsync(TSRawDataQueryReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task deleteData(TSDeleteDataReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeLastDataQueryAsync(TSLastDataQueryReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeRawDataQuery(TSRawDataQueryReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeAggregationQueryAsync(TSAggregationQueryReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeLastDataQuery(TSLastDataQueryReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task requestStatementIdAsync(long sessionId, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeAggregationQuery(TSAggregationQueryReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task createSchemaTemplateAsync(TSCreateSchemaTemplateReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task requestStatementId(long sessionId, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task appendSchemaTemplateAsync(TSAppendSchemaTemplateReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task createSchemaTemplate(TSCreateSchemaTemplateReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task pruneSchemaTemplateAsync(TSPruneSchemaTemplateReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task appendSchemaTemplate(TSAppendSchemaTemplateReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task querySchemaTemplateAsync(TSQueryTemplateReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task pruneSchemaTemplate(TSPruneSchemaTemplateReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task showConfigurationTemplateAsync(CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task querySchemaTemplate(TSQueryTemplateReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task showConfigurationAsync(int nodeId, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task showConfigurationTemplate(CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task setSchemaTemplateAsync(TSSetSchemaTemplateReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task showConfiguration(int nodeId, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task unsetSchemaTemplateAsync(TSUnsetSchemaTemplateReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task setSchemaTemplate(TSSetSchemaTemplateReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task dropSchemaTemplateAsync(TSDropSchemaTemplateReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task unsetSchemaTemplate(TSUnsetSchemaTemplateReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task createTimeseriesUsingSchemaTemplateAsync(TCreateTimeseriesUsingSchemaTemplateReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task dropSchemaTemplate(TSDropSchemaTemplateReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task handshakeAsync(TSyncIdentityInfo info, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task createTimeseriesUsingSchemaTemplate(TCreateTimeseriesUsingSchemaTemplateReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task sendPipeDataAsync(byte[] buff, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task handshake(TSyncIdentityInfo info, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task sendFileAsync(TSyncTransportMetaInfo metaInfo, byte[] buff, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task sendPipeData(byte[] buff, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task pipeTransferAsync(TPipeTransferReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task sendFile(TSyncTransportMetaInfo metaInfo, byte[] buff, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task pipeSubscribeAsync(TPipeSubscribeReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task pipeTransfer(TPipeTransferReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task getBackupConfigurationAsync(CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task pipeSubscribe(TPipeSubscribeReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task fetchAllConnectionsInfoAsync(CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task getBackupConfiguration(CancellationToken cancellationToken = default); + + global::System.Threading.Tasks.Task fetchAllConnectionsInfo(CancellationToken cancellationToken = default); /// /// For other node's call /// - global::System.Threading.Tasks.Task testConnectionEmptyRPCAsync(CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task testConnectionEmptyRPC(CancellationToken cancellationToken = default); } @@ -176,1983 +179,2685 @@ public Client(TProtocol protocol) : this(protocol, protocol) { } - public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputProtocol, outputProtocol) { + public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputProtocol, outputProtocol) + { } - public async global::System.Threading.Tasks.Task executeQueryStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default) + + public async global::System.Threading.Tasks.Task executeQueryStatementV2(TSExecuteStatementReq req, CancellationToken cancellationToken = default) + { + await send_executeQueryStatementV2(req, cancellationToken); + return await recv_executeQueryStatementV2(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_executeQueryStatementV2(TSExecuteStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeQueryStatementV2", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeQueryStatementV2Args() { + var tmp599 = new InternalStructs.executeQueryStatementV2_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp599.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_executeQueryStatementV2(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp600 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp600.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp601 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp601; } - var result = new InternalStructs.executeQueryStatementV2Result(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp602 = new InternalStructs.executeQueryStatementV2_result(); + await tmp602.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp602.__isset.success) { - return result.Success; + return tmp602.Success; } 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 global::System.Threading.Tasks.Task executeUpdateStatementV2(TSExecuteStatementReq req, CancellationToken cancellationToken = default) + { + await send_executeUpdateStatementV2(req, cancellationToken); + return await recv_executeUpdateStatementV2(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_executeUpdateStatementV2(TSExecuteStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeUpdateStatementV2", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeUpdateStatementV2Args() { + var tmp603 = new InternalStructs.executeUpdateStatementV2_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp603.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_executeUpdateStatementV2(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp604 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp604.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp605 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp605; } - var result = new InternalStructs.executeUpdateStatementV2Result(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp606 = new InternalStructs.executeUpdateStatementV2_result(); + await tmp606.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp606.__isset.success) { - return result.Success; + return tmp606.Success; } 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 global::System.Threading.Tasks.Task executeStatementV2(TSExecuteStatementReq req, CancellationToken cancellationToken = default) + { + await send_executeStatementV2(req, cancellationToken); + return await recv_executeStatementV2(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_executeStatementV2(TSExecuteStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeStatementV2", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeStatementV2Args() { + var tmp607 = new InternalStructs.executeStatementV2_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp607.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_executeStatementV2(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp608 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp608.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp609 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp609; } - var result = new InternalStructs.executeStatementV2Result(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp610 = new InternalStructs.executeStatementV2_result(); + await tmp610.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp610.__isset.success) { - return result.Success; + return tmp610.Success; } 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 global::System.Threading.Tasks.Task executeRawDataQueryV2(TSRawDataQueryReq req, CancellationToken cancellationToken = default) + { + await send_executeRawDataQueryV2(req, cancellationToken); + return await recv_executeRawDataQueryV2(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_executeRawDataQueryV2(TSRawDataQueryReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeRawDataQueryV2", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeRawDataQueryV2Args() { + var tmp611 = new InternalStructs.executeRawDataQueryV2_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp611.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_executeRawDataQueryV2(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp612 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp612.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp613 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp613; } - var result = new InternalStructs.executeRawDataQueryV2Result(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp614 = new InternalStructs.executeRawDataQueryV2_result(); + await tmp614.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp614.__isset.success) { - return result.Success; + return tmp614.Success; } 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 global::System.Threading.Tasks.Task executeLastDataQueryV2(TSLastDataQueryReq req, CancellationToken cancellationToken = default) + { + await send_executeLastDataQueryV2(req, cancellationToken); + return await recv_executeLastDataQueryV2(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_executeLastDataQueryV2(TSLastDataQueryReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeLastDataQueryV2", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeLastDataQueryV2Args() { + var tmp615 = new InternalStructs.executeLastDataQueryV2_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp615.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_executeLastDataQueryV2(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp616 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp616.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp617 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp617; } - var result = new InternalStructs.executeLastDataQueryV2Result(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp618 = new InternalStructs.executeLastDataQueryV2_result(); + await tmp618.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp618.__isset.success) { - return result.Success; + return tmp618.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeLastDataQueryV2 failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeFastLastDataQueryForOneDeviceV2Async(TSFastLastDataQueryForOneDeviceReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task executeFastLastDataQueryForOnePrefixPath(TSFastLastDataQueryForOnePrefixPathReq req, CancellationToken cancellationToken = default) + { + await send_executeFastLastDataQueryForOnePrefixPath(req, cancellationToken); + return await recv_executeFastLastDataQueryForOnePrefixPath(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_executeFastLastDataQueryForOnePrefixPath(TSFastLastDataQueryForOnePrefixPathReq req, CancellationToken cancellationToken = default) + { + await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeFastLastDataQueryForOnePrefixPath", TMessageType.Call, SeqId), cancellationToken); + + var tmp619 = new InternalStructs.executeFastLastDataQueryForOnePrefixPath_args() { + Req = req, + }; + + await tmp619.WriteAsync(OutputProtocol, cancellationToken); + await OutputProtocol.WriteMessageEndAsync(cancellationToken); + await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_executeFastLastDataQueryForOnePrefixPath(CancellationToken cancellationToken = default) + { + + var tmp620 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp620.Type == TMessageType.Exception) + { + var tmp621 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + throw tmp621; + } + + var tmp622 = new InternalStructs.executeFastLastDataQueryForOnePrefixPath_result(); + await tmp622.ReadAsync(InputProtocol, cancellationToken); + await InputProtocol.ReadMessageEndAsync(cancellationToken); + if (tmp622.__isset.success) + { + return tmp622.Success; + } + throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeFastLastDataQueryForOnePrefixPath failed: unknown result"); + } + + public async global::System.Threading.Tasks.Task executeFastLastDataQueryForOneDeviceV2(TSFastLastDataQueryForOneDeviceReq req, CancellationToken cancellationToken = default) + { + await send_executeFastLastDataQueryForOneDeviceV2(req, cancellationToken); + return await recv_executeFastLastDataQueryForOneDeviceV2(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_executeFastLastDataQueryForOneDeviceV2(TSFastLastDataQueryForOneDeviceReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeFastLastDataQueryForOneDeviceV2", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeFastLastDataQueryForOneDeviceV2Args() { + var tmp623 = new InternalStructs.executeFastLastDataQueryForOneDeviceV2_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp623.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_executeFastLastDataQueryForOneDeviceV2(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp624 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp624.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp625 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp625; } - var result = new InternalStructs.executeFastLastDataQueryForOneDeviceV2Result(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp626 = new InternalStructs.executeFastLastDataQueryForOneDeviceV2_result(); + await tmp626.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp626.__isset.success) { - return result.Success; + return tmp626.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeFastLastDataQueryForOneDeviceV2 failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeAggregationQueryV2Async(TSAggregationQueryReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task executeAggregationQueryV2(TSAggregationQueryReq req, CancellationToken cancellationToken = default) + { + await send_executeAggregationQueryV2(req, cancellationToken); + return await recv_executeAggregationQueryV2(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_executeAggregationQueryV2(TSAggregationQueryReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeAggregationQueryV2", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeAggregationQueryV2Args() { + var tmp627 = new InternalStructs.executeAggregationQueryV2_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp627.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_executeAggregationQueryV2(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp628 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp628.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp629 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp629; } - var result = new InternalStructs.executeAggregationQueryV2Result(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp630 = new InternalStructs.executeAggregationQueryV2_result(); + await tmp630.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp630.__isset.success) { - return result.Success; + return tmp630.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeAggregationQueryV2 failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeGroupByQueryIntervalQueryAsync(TSGroupByQueryIntervalReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task executeGroupByQueryIntervalQuery(TSGroupByQueryIntervalReq req, CancellationToken cancellationToken = default) + { + await send_executeGroupByQueryIntervalQuery(req, cancellationToken); + return await recv_executeGroupByQueryIntervalQuery(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_executeGroupByQueryIntervalQuery(TSGroupByQueryIntervalReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeGroupByQueryIntervalQuery", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeGroupByQueryIntervalQueryArgs() { + var tmp631 = new InternalStructs.executeGroupByQueryIntervalQuery_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp631.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_executeGroupByQueryIntervalQuery(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp632 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp632.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp633 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp633; } - var result = new InternalStructs.executeGroupByQueryIntervalQueryResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp634 = new InternalStructs.executeGroupByQueryIntervalQuery_result(); + await tmp634.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp634.__isset.success) { - return result.Success; + return tmp634.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeGroupByQueryIntervalQuery failed: unknown result"); } - public async global::System.Threading.Tasks.Task fetchResultsV2Async(TSFetchResultsReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task fetchResultsV2(TSFetchResultsReq req, CancellationToken cancellationToken = default) + { + await send_fetchResultsV2(req, cancellationToken); + return await recv_fetchResultsV2(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_fetchResultsV2(TSFetchResultsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("fetchResultsV2", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.fetchResultsV2Args() { + var tmp635 = new InternalStructs.fetchResultsV2_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp635.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_fetchResultsV2(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp636 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp636.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp637 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp637; } - var result = new InternalStructs.fetchResultsV2Result(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp638 = new InternalStructs.fetchResultsV2_result(); + await tmp638.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp638.__isset.success) { - return result.Success; + return tmp638.Success; } 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 global::System.Threading.Tasks.Task openSession(TSOpenSessionReq req, CancellationToken cancellationToken = default) + { + await send_openSession(req, cancellationToken); + return await recv_openSession(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_openSession(TSOpenSessionReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("openSession", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.openSessionArgs() { + var tmp639 = new InternalStructs.openSession_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp639.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_openSession(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp640 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp640.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp641 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp641; } - var result = new InternalStructs.openSessionResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp642 = new InternalStructs.openSession_result(); + await tmp642.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp642.__isset.success) { - return result.Success; + return tmp642.Success; } 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 global::System.Threading.Tasks.Task closeSession(TSCloseSessionReq req, CancellationToken cancellationToken = default) + { + await send_closeSession(req, cancellationToken); + return await recv_closeSession(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_closeSession(TSCloseSessionReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("closeSession", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.closeSessionArgs() { + var tmp643 = new InternalStructs.closeSession_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp643.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_closeSession(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp644 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp644.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp645 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp645; } - var result = new InternalStructs.closeSessionResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp646 = new InternalStructs.closeSession_result(); + await tmp646.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp646.__isset.success) { - return result.Success; + return tmp646.Success; } 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 global::System.Threading.Tasks.Task executeStatement(TSExecuteStatementReq req, CancellationToken cancellationToken = default) + { + await send_executeStatement(req, cancellationToken); + return await recv_executeStatement(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_executeStatement(TSExecuteStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeStatement", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeStatementArgs() { + var tmp647 = new InternalStructs.executeStatement_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp647.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_executeStatement(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp648 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp648.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp649 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp649; } - var result = new InternalStructs.executeStatementResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp650 = new InternalStructs.executeStatement_result(); + await tmp650.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp650.__isset.success) { - return result.Success; + return tmp650.Success; } 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 global::System.Threading.Tasks.Task executeBatchStatement(TSExecuteBatchStatementReq req, CancellationToken cancellationToken = default) + { + await send_executeBatchStatement(req, cancellationToken); + return await recv_executeBatchStatement(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_executeBatchStatement(TSExecuteBatchStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeBatchStatement", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeBatchStatementArgs() { + var tmp651 = new InternalStructs.executeBatchStatement_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp651.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_executeBatchStatement(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp652 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp652.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp653 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp653; } - var result = new InternalStructs.executeBatchStatementResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp654 = new InternalStructs.executeBatchStatement_result(); + await tmp654.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp654.__isset.success) { - return result.Success; + return tmp654.Success; } 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 global::System.Threading.Tasks.Task executeQueryStatement(TSExecuteStatementReq req, CancellationToken cancellationToken = default) + { + await send_executeQueryStatement(req, cancellationToken); + return await recv_executeQueryStatement(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_executeQueryStatement(TSExecuteStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeQueryStatement", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeQueryStatementArgs() { + var tmp655 = new InternalStructs.executeQueryStatement_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp655.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_executeQueryStatement(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp656 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp656.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp657 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp657; } - var result = new InternalStructs.executeQueryStatementResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp658 = new InternalStructs.executeQueryStatement_result(); + await tmp658.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp658.__isset.success) { - return result.Success; + return tmp658.Success; } 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 global::System.Threading.Tasks.Task executeUpdateStatement(TSExecuteStatementReq req, CancellationToken cancellationToken = default) + { + await send_executeUpdateStatement(req, cancellationToken); + return await recv_executeUpdateStatement(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_executeUpdateStatement(TSExecuteStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeUpdateStatement", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeUpdateStatementArgs() { + var tmp659 = new InternalStructs.executeUpdateStatement_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp659.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_executeUpdateStatement(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp660 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp660.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp661 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp661; } - var result = new InternalStructs.executeUpdateStatementResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp662 = new InternalStructs.executeUpdateStatement_result(); + await tmp662.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp662.__isset.success) { - return result.Success; + return tmp662.Success; } 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 global::System.Threading.Tasks.Task fetchResults(TSFetchResultsReq req, CancellationToken cancellationToken = default) + { + await send_fetchResults(req, cancellationToken); + return await recv_fetchResults(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_fetchResults(TSFetchResultsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("fetchResults", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.fetchResultsArgs() { + var tmp663 = new InternalStructs.fetchResults_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp663.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_fetchResults(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp664 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp664.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp665 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp665; } - var result = new InternalStructs.fetchResultsResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp666 = new InternalStructs.fetchResults_result(); + await tmp666.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp666.__isset.success) { - return result.Success; + return tmp666.Success; } 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 global::System.Threading.Tasks.Task fetchMetadata(TSFetchMetadataReq req, CancellationToken cancellationToken = default) + { + await send_fetchMetadata(req, cancellationToken); + return await recv_fetchMetadata(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_fetchMetadata(TSFetchMetadataReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("fetchMetadata", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.fetchMetadataArgs() { + var tmp667 = new InternalStructs.fetchMetadata_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp667.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_fetchMetadata(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp668 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp668.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp669 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp669; } - var result = new InternalStructs.fetchMetadataResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp670 = new InternalStructs.fetchMetadata_result(); + await tmp670.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp670.__isset.success) { - return result.Success; + return tmp670.Success; } 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 global::System.Threading.Tasks.Task cancelOperation(TSCancelOperationReq req, CancellationToken cancellationToken = default) + { + await send_cancelOperation(req, cancellationToken); + return await recv_cancelOperation(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_cancelOperation(TSCancelOperationReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("cancelOperation", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.cancelOperationArgs() { + var tmp671 = new InternalStructs.cancelOperation_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp671.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_cancelOperation(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp672 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp672.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp673 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp673; } - var result = new InternalStructs.cancelOperationResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp674 = new InternalStructs.cancelOperation_result(); + await tmp674.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp674.__isset.success) { - return result.Success; + return tmp674.Success; } 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 global::System.Threading.Tasks.Task closeOperation(TSCloseOperationReq req, CancellationToken cancellationToken = default) + { + await send_closeOperation(req, cancellationToken); + return await recv_closeOperation(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_closeOperation(TSCloseOperationReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("closeOperation", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.closeOperationArgs() { + var tmp675 = new InternalStructs.closeOperation_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp675.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_closeOperation(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp676 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp676.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp677 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp677; } - var result = new InternalStructs.closeOperationResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp678 = new InternalStructs.closeOperation_result(); + await tmp678.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp678.__isset.success) { - return result.Success; + return tmp678.Success; } 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 global::System.Threading.Tasks.Task getTimeZone(long sessionId, CancellationToken cancellationToken = default) + { + await send_getTimeZone(sessionId, cancellationToken); + return await recv_getTimeZone(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_getTimeZone(long sessionId, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("getTimeZone", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.getTimeZoneArgs() { + var tmp679 = new InternalStructs.getTimeZone_args() { SessionId = sessionId, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp679.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_getTimeZone(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp680 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp680.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp681 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp681; } - var result = new InternalStructs.getTimeZoneResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp682 = new InternalStructs.getTimeZone_result(); + await tmp682.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp682.__isset.success) { - return result.Success; + return tmp682.Success; } 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 global::System.Threading.Tasks.Task setTimeZone(TSSetTimeZoneReq req, CancellationToken cancellationToken = default) + { + await send_setTimeZone(req, cancellationToken); + return await recv_setTimeZone(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_setTimeZone(TSSetTimeZoneReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("setTimeZone", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.setTimeZoneArgs() { + var tmp683 = new InternalStructs.setTimeZone_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp683.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_setTimeZone(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp684 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp684.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp685 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp685; } - var result = new InternalStructs.setTimeZoneResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp686 = new InternalStructs.setTimeZone_result(); + await tmp686.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp686.__isset.success) { - return result.Success; + return tmp686.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "setTimeZone failed: unknown result"); } - public async global::System.Threading.Tasks.Task getPropertiesAsync(CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task getProperties(CancellationToken cancellationToken = default) + { + await send_getProperties(cancellationToken); + return await recv_getProperties(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_getProperties(CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("getProperties", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.getPropertiesArgs() { + var tmp687 = new InternalStructs.getProperties_args() { }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp687.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_getProperties(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp688 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp688.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp689 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp689; } - var result = new InternalStructs.getPropertiesResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp690 = new InternalStructs.getProperties_result(); + await tmp690.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp690.__isset.success) { - return result.Success; + return tmp690.Success; } 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 global::System.Threading.Tasks.Task setStorageGroup(long sessionId, string storageGroup, CancellationToken cancellationToken = default) + { + await send_setStorageGroup(sessionId, storageGroup, cancellationToken); + return await recv_setStorageGroup(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_setStorageGroup(long sessionId, string storageGroup, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("setStorageGroup", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.setStorageGroupArgs() { + var tmp691 = new InternalStructs.setStorageGroup_args() { SessionId = sessionId, StorageGroup = storageGroup, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp691.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_setStorageGroup(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp692 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp692.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp693 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp693; } - var result = new InternalStructs.setStorageGroupResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp694 = new InternalStructs.setStorageGroup_result(); + await tmp694.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp694.__isset.success) { - return result.Success; + return tmp694.Success; } 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 global::System.Threading.Tasks.Task createTimeseries(TSCreateTimeseriesReq req, CancellationToken cancellationToken = default) + { + await send_createTimeseries(req, cancellationToken); + return await recv_createTimeseries(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_createTimeseries(TSCreateTimeseriesReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("createTimeseries", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.createTimeseriesArgs() { + var tmp695 = new InternalStructs.createTimeseries_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp695.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_createTimeseries(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp696 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp696.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp697 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp697; } - var result = new InternalStructs.createTimeseriesResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp698 = new InternalStructs.createTimeseries_result(); + await tmp698.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp698.__isset.success) { - return result.Success; + return tmp698.Success; } 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 global::System.Threading.Tasks.Task createAlignedTimeseries(TSCreateAlignedTimeseriesReq req, CancellationToken cancellationToken = default) + { + await send_createAlignedTimeseries(req, cancellationToken); + return await recv_createAlignedTimeseries(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_createAlignedTimeseries(TSCreateAlignedTimeseriesReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("createAlignedTimeseries", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.createAlignedTimeseriesArgs() { + var tmp699 = new InternalStructs.createAlignedTimeseries_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp699.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_createAlignedTimeseries(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp700 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp700.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp701 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp701; } - var result = new InternalStructs.createAlignedTimeseriesResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp702 = new InternalStructs.createAlignedTimeseries_result(); + await tmp702.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp702.__isset.success) { - return result.Success; + return tmp702.Success; } 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 global::System.Threading.Tasks.Task createMultiTimeseries(TSCreateMultiTimeseriesReq req, CancellationToken cancellationToken = default) + { + await send_createMultiTimeseries(req, cancellationToken); + return await recv_createMultiTimeseries(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_createMultiTimeseries(TSCreateMultiTimeseriesReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("createMultiTimeseries", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.createMultiTimeseriesArgs() { + var tmp703 = new InternalStructs.createMultiTimeseries_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp703.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_createMultiTimeseries(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp704 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp704.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp705 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp705; } - var result = new InternalStructs.createMultiTimeseriesResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp706 = new InternalStructs.createMultiTimeseries_result(); + await tmp706.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp706.__isset.success) { - return result.Success; + return tmp706.Success; } 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 global::System.Threading.Tasks.Task deleteTimeseries(long sessionId, List path, CancellationToken cancellationToken = default) + { + await send_deleteTimeseries(sessionId, path, cancellationToken); + return await recv_deleteTimeseries(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_deleteTimeseries(long sessionId, List path, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("deleteTimeseries", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.deleteTimeseriesArgs() { + var tmp707 = new InternalStructs.deleteTimeseries_args() { SessionId = sessionId, Path = path, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp707.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_deleteTimeseries(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp708 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp708.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp709 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp709; } - var result = new InternalStructs.deleteTimeseriesResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp710 = new InternalStructs.deleteTimeseries_result(); + await tmp710.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp710.__isset.success) { - return result.Success; + return tmp710.Success; } 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 global::System.Threading.Tasks.Task deleteStorageGroups(long sessionId, List storageGroup, CancellationToken cancellationToken = default) + { + await send_deleteStorageGroups(sessionId, storageGroup, cancellationToken); + return await recv_deleteStorageGroups(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_deleteStorageGroups(long sessionId, List storageGroup, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("deleteStorageGroups", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.deleteStorageGroupsArgs() { + var tmp711 = new InternalStructs.deleteStorageGroups_args() { SessionId = sessionId, StorageGroup = storageGroup, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp711.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_deleteStorageGroups(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp712 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp712.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp713 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp713; } - var result = new InternalStructs.deleteStorageGroupsResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp714 = new InternalStructs.deleteStorageGroups_result(); + await tmp714.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp714.__isset.success) { - return result.Success; + return tmp714.Success; } 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 global::System.Threading.Tasks.Task insertRecord(TSInsertRecordReq req, CancellationToken cancellationToken = default) + { + await send_insertRecord(req, cancellationToken); + return await recv_insertRecord(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_insertRecord(TSInsertRecordReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertRecord", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.insertRecordArgs() { + var tmp715 = new InternalStructs.insertRecord_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp715.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_insertRecord(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp716 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp716.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp717 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp717; } - var result = new InternalStructs.insertRecordResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp718 = new InternalStructs.insertRecord_result(); + await tmp718.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp718.__isset.success) { - return result.Success; + return tmp718.Success; } 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 global::System.Threading.Tasks.Task insertStringRecord(TSInsertStringRecordReq req, CancellationToken cancellationToken = default) + { + await send_insertStringRecord(req, cancellationToken); + return await recv_insertStringRecord(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_insertStringRecord(TSInsertStringRecordReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertStringRecord", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.insertStringRecordArgs() { + var tmp719 = new InternalStructs.insertStringRecord_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp719.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_insertStringRecord(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp720 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp720.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp721 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp721; } - var result = new InternalStructs.insertStringRecordResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp722 = new InternalStructs.insertStringRecord_result(); + await tmp722.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp722.__isset.success) { - return result.Success; + return tmp722.Success; } 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 global::System.Threading.Tasks.Task insertTablet(TSInsertTabletReq req, CancellationToken cancellationToken = default) + { + await send_insertTablet(req, cancellationToken); + return await recv_insertTablet(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_insertTablet(TSInsertTabletReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertTablet", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.insertTabletArgs() { + var tmp723 = new InternalStructs.insertTablet_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp723.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_insertTablet(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp724 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp724.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp725 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp725; } - var result = new InternalStructs.insertTabletResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp726 = new InternalStructs.insertTablet_result(); + await tmp726.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp726.__isset.success) { - return result.Success; + return tmp726.Success; } 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 global::System.Threading.Tasks.Task insertTablets(TSInsertTabletsReq req, CancellationToken cancellationToken = default) + { + await send_insertTablets(req, cancellationToken); + return await recv_insertTablets(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_insertTablets(TSInsertTabletsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertTablets", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.insertTabletsArgs() { + var tmp727 = new InternalStructs.insertTablets_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp727.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_insertTablets(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp728 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp728.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp729 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp729; } - var result = new InternalStructs.insertTabletsResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp730 = new InternalStructs.insertTablets_result(); + await tmp730.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp730.__isset.success) { - return result.Success; + return tmp730.Success; } 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 global::System.Threading.Tasks.Task insertRecords(TSInsertRecordsReq req, CancellationToken cancellationToken = default) + { + await send_insertRecords(req, cancellationToken); + return await recv_insertRecords(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_insertRecords(TSInsertRecordsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertRecords", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.insertRecordsArgs() { + var tmp731 = new InternalStructs.insertRecords_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp731.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_insertRecords(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp732 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp732.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp733 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp733; } - var result = new InternalStructs.insertRecordsResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp734 = new InternalStructs.insertRecords_result(); + await tmp734.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp734.__isset.success) { - return result.Success; + return tmp734.Success; } 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 global::System.Threading.Tasks.Task insertRecordsOfOneDevice(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) + { + await send_insertRecordsOfOneDevice(req, cancellationToken); + return await recv_insertRecordsOfOneDevice(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_insertRecordsOfOneDevice(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertRecordsOfOneDevice", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.insertRecordsOfOneDeviceArgs() { + var tmp735 = new InternalStructs.insertRecordsOfOneDevice_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp735.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_insertRecordsOfOneDevice(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp736 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp736.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp737 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp737; } - var result = new InternalStructs.insertRecordsOfOneDeviceResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp738 = new InternalStructs.insertRecordsOfOneDevice_result(); + await tmp738.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp738.__isset.success) { - return result.Success; + return tmp738.Success; } 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 global::System.Threading.Tasks.Task insertStringRecordsOfOneDevice(TSInsertStringRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) + { + await send_insertStringRecordsOfOneDevice(req, cancellationToken); + return await recv_insertStringRecordsOfOneDevice(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_insertStringRecordsOfOneDevice(TSInsertStringRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertStringRecordsOfOneDevice", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.insertStringRecordsOfOneDeviceArgs() { + var tmp739 = new InternalStructs.insertStringRecordsOfOneDevice_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp739.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_insertStringRecordsOfOneDevice(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp740 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp740.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp741 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp741; } - var result = new InternalStructs.insertStringRecordsOfOneDeviceResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp742 = new InternalStructs.insertStringRecordsOfOneDevice_result(); + await tmp742.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp742.__isset.success) { - return result.Success; + return tmp742.Success; } 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 global::System.Threading.Tasks.Task insertStringRecords(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default) + { + await send_insertStringRecords(req, cancellationToken); + return await recv_insertStringRecords(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_insertStringRecords(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertStringRecords", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.insertStringRecordsArgs() { + var tmp743 = new InternalStructs.insertStringRecords_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp743.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_insertStringRecords(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp744 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp744.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp745 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp745; } - var result = new InternalStructs.insertStringRecordsResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp746 = new InternalStructs.insertStringRecords_result(); + await tmp746.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp746.__isset.success) { - return result.Success; + return tmp746.Success; } 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 global::System.Threading.Tasks.Task testInsertTablet(TSInsertTabletReq req, CancellationToken cancellationToken = default) + { + await send_testInsertTablet(req, cancellationToken); + return await recv_testInsertTablet(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_testInsertTablet(TSInsertTabletReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertTablet", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.testInsertTabletArgs() { + var tmp747 = new InternalStructs.testInsertTablet_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp747.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_testInsertTablet(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp748 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp748.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp749 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp749; } - var result = new InternalStructs.testInsertTabletResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp750 = new InternalStructs.testInsertTablet_result(); + await tmp750.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp750.__isset.success) { - return result.Success; + return tmp750.Success; } 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 global::System.Threading.Tasks.Task testInsertTablets(TSInsertTabletsReq req, CancellationToken cancellationToken = default) + { + await send_testInsertTablets(req, cancellationToken); + return await recv_testInsertTablets(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_testInsertTablets(TSInsertTabletsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertTablets", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.testInsertTabletsArgs() { + var tmp751 = new InternalStructs.testInsertTablets_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp751.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_testInsertTablets(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp752 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp752.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp753 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp753; } - var result = new InternalStructs.testInsertTabletsResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp754 = new InternalStructs.testInsertTablets_result(); + await tmp754.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp754.__isset.success) { - return result.Success; + return tmp754.Success; } 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 global::System.Threading.Tasks.Task testInsertRecord(TSInsertRecordReq req, CancellationToken cancellationToken = default) + { + await send_testInsertRecord(req, cancellationToken); + return await recv_testInsertRecord(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_testInsertRecord(TSInsertRecordReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertRecord", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.testInsertRecordArgs() { + var tmp755 = new InternalStructs.testInsertRecord_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp755.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_testInsertRecord(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp756 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp756.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp757 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp757; } - var result = new InternalStructs.testInsertRecordResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp758 = new InternalStructs.testInsertRecord_result(); + await tmp758.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp758.__isset.success) { - return result.Success; + return tmp758.Success; } 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 global::System.Threading.Tasks.Task testInsertStringRecord(TSInsertStringRecordReq req, CancellationToken cancellationToken = default) + { + await send_testInsertStringRecord(req, cancellationToken); + return await recv_testInsertStringRecord(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_testInsertStringRecord(TSInsertStringRecordReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertStringRecord", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.testInsertStringRecordArgs() { + var tmp759 = new InternalStructs.testInsertStringRecord_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp759.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_testInsertStringRecord(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp760 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp760.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp761 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp761; } - var result = new InternalStructs.testInsertStringRecordResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp762 = new InternalStructs.testInsertStringRecord_result(); + await tmp762.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp762.__isset.success) { - return result.Success; + return tmp762.Success; } 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 global::System.Threading.Tasks.Task testInsertRecords(TSInsertRecordsReq req, CancellationToken cancellationToken = default) + { + await send_testInsertRecords(req, cancellationToken); + return await recv_testInsertRecords(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_testInsertRecords(TSInsertRecordsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertRecords", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.testInsertRecordsArgs() { + var tmp763 = new InternalStructs.testInsertRecords_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp763.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_testInsertRecords(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp764 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp764.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp765 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp765; } - var result = new InternalStructs.testInsertRecordsResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp766 = new InternalStructs.testInsertRecords_result(); + await tmp766.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp766.__isset.success) { - return result.Success; + return tmp766.Success; } 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 global::System.Threading.Tasks.Task testInsertRecordsOfOneDevice(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) + { + await send_testInsertRecordsOfOneDevice(req, cancellationToken); + return await recv_testInsertRecordsOfOneDevice(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_testInsertRecordsOfOneDevice(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertRecordsOfOneDevice", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.testInsertRecordsOfOneDeviceArgs() { + var tmp767 = new InternalStructs.testInsertRecordsOfOneDevice_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp767.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_testInsertRecordsOfOneDevice(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp768 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp768.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp769 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp769; } - var result = new InternalStructs.testInsertRecordsOfOneDeviceResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp770 = new InternalStructs.testInsertRecordsOfOneDevice_result(); + await tmp770.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp770.__isset.success) { - return result.Success; + return tmp770.Success; } 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 global::System.Threading.Tasks.Task testInsertStringRecords(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default) + { + await send_testInsertStringRecords(req, cancellationToken); + return await recv_testInsertStringRecords(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_testInsertStringRecords(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertStringRecords", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.testInsertStringRecordsArgs() { + var tmp771 = new InternalStructs.testInsertStringRecords_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp771.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_testInsertStringRecords(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp772 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp772.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp773 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp773; } - var result = new InternalStructs.testInsertStringRecordsResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp774 = new InternalStructs.testInsertStringRecords_result(); + await tmp774.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp774.__isset.success) { - return result.Success; + return tmp774.Success; } 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 global::System.Threading.Tasks.Task deleteData(TSDeleteDataReq req, CancellationToken cancellationToken = default) + { + await send_deleteData(req, cancellationToken); + return await recv_deleteData(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_deleteData(TSDeleteDataReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("deleteData", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.deleteDataArgs() { + var tmp775 = new InternalStructs.deleteData_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp775.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_deleteData(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp776 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp776.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp777 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp777; } - var result = new InternalStructs.deleteDataResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp778 = new InternalStructs.deleteData_result(); + await tmp778.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp778.__isset.success) { - return result.Success; + return tmp778.Success; } 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 global::System.Threading.Tasks.Task executeRawDataQuery(TSRawDataQueryReq req, CancellationToken cancellationToken = default) + { + await send_executeRawDataQuery(req, cancellationToken); + return await recv_executeRawDataQuery(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_executeRawDataQuery(TSRawDataQueryReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeRawDataQuery", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeRawDataQueryArgs() { + var tmp779 = new InternalStructs.executeRawDataQuery_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp779.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_executeRawDataQuery(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp780 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp780.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp781 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp781; } - var result = new InternalStructs.executeRawDataQueryResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp782 = new InternalStructs.executeRawDataQuery_result(); + await tmp782.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp782.__isset.success) { - return result.Success; + return tmp782.Success; } 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 global::System.Threading.Tasks.Task executeLastDataQuery(TSLastDataQueryReq req, CancellationToken cancellationToken = default) + { + await send_executeLastDataQuery(req, cancellationToken); + return await recv_executeLastDataQuery(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_executeLastDataQuery(TSLastDataQueryReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeLastDataQuery", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeLastDataQueryArgs() { + var tmp783 = new InternalStructs.executeLastDataQuery_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp783.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_executeLastDataQuery(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp784 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp784.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp785 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp785; } - var result = new InternalStructs.executeLastDataQueryResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp786 = new InternalStructs.executeLastDataQuery_result(); + await tmp786.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp786.__isset.success) { - return result.Success; + return tmp786.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeLastDataQuery failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeAggregationQueryAsync(TSAggregationQueryReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task executeAggregationQuery(TSAggregationQueryReq req, CancellationToken cancellationToken = default) + { + await send_executeAggregationQuery(req, cancellationToken); + return await recv_executeAggregationQuery(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_executeAggregationQuery(TSAggregationQueryReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeAggregationQuery", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.executeAggregationQueryArgs() { + var tmp787 = new InternalStructs.executeAggregationQuery_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp787.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_executeAggregationQuery(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp788 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp788.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp789 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp789; } - var result = new InternalStructs.executeAggregationQueryResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp790 = new InternalStructs.executeAggregationQuery_result(); + await tmp790.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp790.__isset.success) { - return result.Success; + return tmp790.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeAggregationQuery failed: unknown result"); } - public async global::System.Threading.Tasks.Task requestStatementIdAsync(long sessionId, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task requestStatementId(long sessionId, CancellationToken cancellationToken = default) + { + await send_requestStatementId(sessionId, cancellationToken); + return await recv_requestStatementId(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_requestStatementId(long sessionId, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("requestStatementId", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.requestStatementIdArgs() { + var tmp791 = new InternalStructs.requestStatementId_args() { SessionId = sessionId, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp791.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_requestStatementId(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp792 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp792.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp793 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp793; } - var result = new InternalStructs.requestStatementIdResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp794 = new InternalStructs.requestStatementId_result(); + await tmp794.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp794.__isset.success) { - return result.Success; + return tmp794.Success; } 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 global::System.Threading.Tasks.Task createSchemaTemplate(TSCreateSchemaTemplateReq req, CancellationToken cancellationToken = default) + { + await send_createSchemaTemplate(req, cancellationToken); + return await recv_createSchemaTemplate(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_createSchemaTemplate(TSCreateSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("createSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.createSchemaTemplateArgs() { + var tmp795 = new InternalStructs.createSchemaTemplate_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp795.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_createSchemaTemplate(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp796 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp796.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp797 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp797; } - var result = new InternalStructs.createSchemaTemplateResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp798 = new InternalStructs.createSchemaTemplate_result(); + await tmp798.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp798.__isset.success) { - return result.Success; + return tmp798.Success; } 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 global::System.Threading.Tasks.Task appendSchemaTemplate(TSAppendSchemaTemplateReq req, CancellationToken cancellationToken = default) + { + await send_appendSchemaTemplate(req, cancellationToken); + return await recv_appendSchemaTemplate(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_appendSchemaTemplate(TSAppendSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("appendSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.appendSchemaTemplateArgs() { + var tmp799 = new InternalStructs.appendSchemaTemplate_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp799.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_appendSchemaTemplate(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp800 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp800.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp801 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp801; } - var result = new InternalStructs.appendSchemaTemplateResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp802 = new InternalStructs.appendSchemaTemplate_result(); + await tmp802.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp802.__isset.success) { - return result.Success; + return tmp802.Success; } 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 global::System.Threading.Tasks.Task pruneSchemaTemplate(TSPruneSchemaTemplateReq req, CancellationToken cancellationToken = default) + { + await send_pruneSchemaTemplate(req, cancellationToken); + return await recv_pruneSchemaTemplate(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_pruneSchemaTemplate(TSPruneSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("pruneSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.pruneSchemaTemplateArgs() { + var tmp803 = new InternalStructs.pruneSchemaTemplate_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp803.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_pruneSchemaTemplate(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp804 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp804.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp805 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp805; } - var result = new InternalStructs.pruneSchemaTemplateResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp806 = new InternalStructs.pruneSchemaTemplate_result(); + await tmp806.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp806.__isset.success) { - return result.Success; + return tmp806.Success; } 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 global::System.Threading.Tasks.Task querySchemaTemplate(TSQueryTemplateReq req, CancellationToken cancellationToken = default) + { + await send_querySchemaTemplate(req, cancellationToken); + return await recv_querySchemaTemplate(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_querySchemaTemplate(TSQueryTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("querySchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.querySchemaTemplateArgs() { + var tmp807 = new InternalStructs.querySchemaTemplate_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp807.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_querySchemaTemplate(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp808 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp808.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp809 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp809; } - var result = new InternalStructs.querySchemaTemplateResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp810 = new InternalStructs.querySchemaTemplate_result(); + await tmp810.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp810.__isset.success) { - return result.Success; + return tmp810.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "querySchemaTemplate failed: unknown result"); } - public async global::System.Threading.Tasks.Task showConfigurationTemplateAsync(CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task showConfigurationTemplate(CancellationToken cancellationToken = default) + { + await send_showConfigurationTemplate(cancellationToken); + return await recv_showConfigurationTemplate(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_showConfigurationTemplate(CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("showConfigurationTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.showConfigurationTemplateArgs() { + var tmp811 = new InternalStructs.showConfigurationTemplate_args() { }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp811.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_showConfigurationTemplate(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp812 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp812.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp813 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp813; } - var result = new InternalStructs.showConfigurationTemplateResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp814 = new InternalStructs.showConfigurationTemplate_result(); + await tmp814.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp814.__isset.success) { - return result.Success; + return tmp814.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "showConfigurationTemplate failed: unknown result"); } - public async global::System.Threading.Tasks.Task showConfigurationAsync(int nodeId, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task showConfiguration(int nodeId, CancellationToken cancellationToken = default) + { + await send_showConfiguration(nodeId, cancellationToken); + return await recv_showConfiguration(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_showConfiguration(int nodeId, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("showConfiguration", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.showConfigurationArgs() { + var tmp815 = new InternalStructs.showConfiguration_args() { NodeId = nodeId, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp815.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_showConfiguration(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp816 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp816.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp817 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp817; } - var result = new InternalStructs.showConfigurationResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp818 = new InternalStructs.showConfiguration_result(); + await tmp818.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp818.__isset.success) { - return result.Success; + return tmp818.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "showConfiguration failed: unknown result"); } - public async global::System.Threading.Tasks.Task setSchemaTemplateAsync(TSSetSchemaTemplateReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task setSchemaTemplate(TSSetSchemaTemplateReq req, CancellationToken cancellationToken = default) + { + await send_setSchemaTemplate(req, cancellationToken); + return await recv_setSchemaTemplate(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_setSchemaTemplate(TSSetSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("setSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.setSchemaTemplateArgs() { + var tmp819 = new InternalStructs.setSchemaTemplate_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp819.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_setSchemaTemplate(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp820 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp820.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp821 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp821; } - var result = new InternalStructs.setSchemaTemplateResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp822 = new InternalStructs.setSchemaTemplate_result(); + await tmp822.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp822.__isset.success) { - return result.Success; + return tmp822.Success; } 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 global::System.Threading.Tasks.Task unsetSchemaTemplate(TSUnsetSchemaTemplateReq req, CancellationToken cancellationToken = default) + { + await send_unsetSchemaTemplate(req, cancellationToken); + return await recv_unsetSchemaTemplate(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_unsetSchemaTemplate(TSUnsetSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("unsetSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.unsetSchemaTemplateArgs() { + var tmp823 = new InternalStructs.unsetSchemaTemplate_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp823.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_unsetSchemaTemplate(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp824 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp824.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp825 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp825; } - var result = new InternalStructs.unsetSchemaTemplateResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp826 = new InternalStructs.unsetSchemaTemplate_result(); + await tmp826.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp826.__isset.success) { - return result.Success; + return tmp826.Success; } 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 global::System.Threading.Tasks.Task dropSchemaTemplate(TSDropSchemaTemplateReq req, CancellationToken cancellationToken = default) + { + await send_dropSchemaTemplate(req, cancellationToken); + return await recv_dropSchemaTemplate(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_dropSchemaTemplate(TSDropSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("dropSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.dropSchemaTemplateArgs() { + var tmp827 = new InternalStructs.dropSchemaTemplate_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp827.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_dropSchemaTemplate(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp828 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp828.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp829 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp829; } - var result = new InternalStructs.dropSchemaTemplateResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp830 = new InternalStructs.dropSchemaTemplate_result(); + await tmp830.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp830.__isset.success) { - return result.Success; + return tmp830.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "dropSchemaTemplate failed: unknown result"); } - public async global::System.Threading.Tasks.Task createTimeseriesUsingSchemaTemplateAsync(TCreateTimeseriesUsingSchemaTemplateReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task createTimeseriesUsingSchemaTemplate(TCreateTimeseriesUsingSchemaTemplateReq req, CancellationToken cancellationToken = default) + { + await send_createTimeseriesUsingSchemaTemplate(req, cancellationToken); + return await recv_createTimeseriesUsingSchemaTemplate(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_createTimeseriesUsingSchemaTemplate(TCreateTimeseriesUsingSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("createTimeseriesUsingSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.createTimeseriesUsingSchemaTemplateArgs() { + var tmp831 = new InternalStructs.createTimeseriesUsingSchemaTemplate_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp831.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_createTimeseriesUsingSchemaTemplate(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp832 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp832.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp833 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp833; } - var result = new InternalStructs.createTimeseriesUsingSchemaTemplateResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp834 = new InternalStructs.createTimeseriesUsingSchemaTemplate_result(); + await tmp834.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp834.__isset.success) { - return result.Success; + return tmp834.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "createTimeseriesUsingSchemaTemplate failed: unknown result"); } - public async global::System.Threading.Tasks.Task handshakeAsync(TSyncIdentityInfo info, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task handshake(TSyncIdentityInfo info, CancellationToken cancellationToken = default) + { + await send_handshake(info, cancellationToken); + return await recv_handshake(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_handshake(TSyncIdentityInfo info, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("handshake", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.handshakeArgs() { + var tmp835 = new InternalStructs.handshake_args() { Info = info, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp835.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_handshake(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp836 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp836.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp837 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp837; } - var result = new InternalStructs.handshakeResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp838 = new InternalStructs.handshake_result(); + await tmp838.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp838.__isset.success) { - return result.Success; + return tmp838.Success; } 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 global::System.Threading.Tasks.Task sendPipeData(byte[] buff, CancellationToken cancellationToken = default) + { + await send_sendPipeData(buff, cancellationToken); + return await recv_sendPipeData(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_sendPipeData(byte[] buff, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("sendPipeData", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.sendPipeDataArgs() { + var tmp839 = new InternalStructs.sendPipeData_args() { Buff = buff, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp839.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_sendPipeData(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp840 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp840.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp841 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp841; } - var result = new InternalStructs.sendPipeDataResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp842 = new InternalStructs.sendPipeData_result(); + await tmp842.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp842.__isset.success) { - return result.Success; + return tmp842.Success; } 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 global::System.Threading.Tasks.Task sendFile(TSyncTransportMetaInfo metaInfo, byte[] buff, CancellationToken cancellationToken = default) + { + await send_sendFile(metaInfo, buff, cancellationToken); + return await recv_sendFile(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_sendFile(TSyncTransportMetaInfo metaInfo, byte[] buff, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("sendFile", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.sendFileArgs() { + var tmp843 = new InternalStructs.sendFile_args() { MetaInfo = metaInfo, Buff = buff, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp843.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_sendFile(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp844 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp844.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp845 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp845; } - var result = new InternalStructs.sendFileResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp846 = new InternalStructs.sendFile_result(); + await tmp846.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp846.__isset.success) { - return result.Success; + return tmp846.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "sendFile failed: unknown result"); } - public async global::System.Threading.Tasks.Task pipeTransferAsync(TPipeTransferReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task pipeTransfer(TPipeTransferReq req, CancellationToken cancellationToken = default) + { + await send_pipeTransfer(req, cancellationToken); + return await recv_pipeTransfer(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_pipeTransfer(TPipeTransferReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("pipeTransfer", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.pipeTransferArgs() { + var tmp847 = new InternalStructs.pipeTransfer_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp847.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_pipeTransfer(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp848 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp848.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp849 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp849; } - var result = new InternalStructs.pipeTransferResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp850 = new InternalStructs.pipeTransfer_result(); + await tmp850.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp850.__isset.success) { - return result.Success; + return tmp850.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "pipeTransfer failed: unknown result"); } - public async global::System.Threading.Tasks.Task pipeSubscribeAsync(TPipeSubscribeReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task pipeSubscribe(TPipeSubscribeReq req, CancellationToken cancellationToken = default) + { + await send_pipeSubscribe(req, cancellationToken); + return await recv_pipeSubscribe(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_pipeSubscribe(TPipeSubscribeReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("pipeSubscribe", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.pipeSubscribeArgs() { + var tmp851 = new InternalStructs.pipeSubscribe_args() { Req = req, }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp851.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_pipeSubscribe(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp852 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp852.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp853 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp853; } - var result = new InternalStructs.pipeSubscribeResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp854 = new InternalStructs.pipeSubscribe_result(); + await tmp854.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp854.__isset.success) { - return result.Success; + return tmp854.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "pipeSubscribe failed: unknown result"); } - public async global::System.Threading.Tasks.Task getBackupConfigurationAsync(CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task getBackupConfiguration(CancellationToken cancellationToken = default) + { + await send_getBackupConfiguration(cancellationToken); + return await recv_getBackupConfiguration(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_getBackupConfiguration(CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("getBackupConfiguration", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.getBackupConfigurationArgs() { + var tmp855 = new InternalStructs.getBackupConfiguration_args() { }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp855.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_getBackupConfiguration(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp856 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp856.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp857 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp857; } - var result = new InternalStructs.getBackupConfigurationResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp858 = new InternalStructs.getBackupConfiguration_result(); + await tmp858.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp858.__isset.success) { - return result.Success; + return tmp858.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getBackupConfiguration failed: unknown result"); } - public async global::System.Threading.Tasks.Task fetchAllConnectionsInfoAsync(CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task fetchAllConnectionsInfo(CancellationToken cancellationToken = default) + { + await send_fetchAllConnectionsInfo(cancellationToken); + return await recv_fetchAllConnectionsInfo(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_fetchAllConnectionsInfo(CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("fetchAllConnectionsInfo", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.fetchAllConnectionsInfoArgs() { + var tmp859 = new InternalStructs.fetchAllConnectionsInfo_args() { }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp859.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_fetchAllConnectionsInfo(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp860 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp860.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp861 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp861; } - var result = new InternalStructs.fetchAllConnectionsInfoResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp862 = new InternalStructs.fetchAllConnectionsInfo_result(); + await tmp862.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp862.__isset.success) { - return result.Success; + return tmp862.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "fetchAllConnectionsInfo failed: unknown result"); } - public async global::System.Threading.Tasks.Task testConnectionEmptyRPCAsync(CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task testConnectionEmptyRPC(CancellationToken cancellationToken = default) + { + await send_testConnectionEmptyRPC(cancellationToken); + return await recv_testConnectionEmptyRPC(cancellationToken); + } + + public async global::System.Threading.Tasks.Task send_testConnectionEmptyRPC(CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testConnectionEmptyRPC", TMessageType.Call, SeqId), cancellationToken); - var args = new InternalStructs.testConnectionEmptyRPCArgs() { + var tmp863 = new InternalStructs.testConnectionEmptyRPC_args() { }; - await args.WriteAsync(OutputProtocol, cancellationToken); + await tmp863.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task recv_testConnectionEmptyRPC(CancellationToken cancellationToken = default) + { - var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (msg.Type == TMessageType.Exception) + var tmp864 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (tmp864.Type == TMessageType.Exception) { - var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var tmp865 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw x; + throw tmp865; } - var result = new InternalStructs.testConnectionEmptyRPCResult(); - await result.ReadAsync(InputProtocol, cancellationToken); + var tmp866 = new InternalStructs.testConnectionEmptyRPC_result(); + await tmp866.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (result.__isset.success) + if (tmp866.__isset.success) { - return result.Success; + return tmp866.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testConnectionEmptyRPC failed: unknown result"); } @@ -2173,6 +2878,7 @@ public AsyncProcessor(IAsync iAsync, ILogger logger = default) processMap_["executeStatementV2"] = executeStatementV2_ProcessAsync; processMap_["executeRawDataQueryV2"] = executeRawDataQueryV2_ProcessAsync; processMap_["executeLastDataQueryV2"] = executeLastDataQueryV2_ProcessAsync; + processMap_["executeFastLastDataQueryForOnePrefixPath"] = executeFastLastDataQueryForOnePrefixPath_ProcessAsync; processMap_["executeFastLastDataQueryForOneDeviceV2"] = executeFastLastDataQueryForOneDeviceV2_ProcessAsync; processMap_["executeAggregationQueryV2"] = executeAggregationQueryV2_ProcessAsync; processMap_["executeGroupByQueryIntervalQuery"] = executeGroupByQueryIntervalQuery_ProcessAsync; @@ -2277,30 +2983,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeQueryStatementV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeQueryStatementV2Args(); - await args.ReadAsync(iprot, cancellationToken); + var tmp867 = new InternalStructs.executeQueryStatementV2_args(); + await tmp867.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeQueryStatementV2Result(); + var tmp868 = new InternalStructs.executeQueryStatementV2_result(); try { - result.Success = await _iAsync.executeQueryStatementV2Async(args.Req, cancellationToken); + tmp868.Success = await _iAsync.executeQueryStatementV2(tmp867.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeQueryStatementV2", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp868.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp869) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp870 = $"Error occurred in {GetType().FullName}: {tmp869.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp869, tmp870); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp870); + var tmp871 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeQueryStatementV2", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp871.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2308,30 +3014,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeUpdateStatementV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeUpdateStatementV2Args(); - await args.ReadAsync(iprot, cancellationToken); + var tmp872 = new InternalStructs.executeUpdateStatementV2_args(); + await tmp872.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeUpdateStatementV2Result(); + var tmp873 = new InternalStructs.executeUpdateStatementV2_result(); try { - result.Success = await _iAsync.executeUpdateStatementV2Async(args.Req, cancellationToken); + tmp873.Success = await _iAsync.executeUpdateStatementV2(tmp872.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeUpdateStatementV2", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp873.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp874) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp875 = $"Error occurred in {GetType().FullName}: {tmp874.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp874, tmp875); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp875); + var tmp876 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeUpdateStatementV2", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp876.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2339,30 +3045,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeStatementV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeStatementV2Args(); - await args.ReadAsync(iprot, cancellationToken); + var tmp877 = new InternalStructs.executeStatementV2_args(); + await tmp877.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeStatementV2Result(); + var tmp878 = new InternalStructs.executeStatementV2_result(); try { - result.Success = await _iAsync.executeStatementV2Async(args.Req, cancellationToken); + tmp878.Success = await _iAsync.executeStatementV2(tmp877.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeStatementV2", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp878.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp879) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp880 = $"Error occurred in {GetType().FullName}: {tmp879.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp879, tmp880); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp880); + var tmp881 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeStatementV2", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp881.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2370,30 +3076,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeRawDataQueryV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeRawDataQueryV2Args(); - await args.ReadAsync(iprot, cancellationToken); + var tmp882 = new InternalStructs.executeRawDataQueryV2_args(); + await tmp882.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeRawDataQueryV2Result(); + var tmp883 = new InternalStructs.executeRawDataQueryV2_result(); try { - result.Success = await _iAsync.executeRawDataQueryV2Async(args.Req, cancellationToken); + tmp883.Success = await _iAsync.executeRawDataQueryV2(tmp882.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeRawDataQueryV2", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp883.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp884) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp885 = $"Error occurred in {GetType().FullName}: {tmp884.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp884, tmp885); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp885); + var tmp886 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeRawDataQueryV2", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp886.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2401,30 +3107,61 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeLastDataQueryV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeLastDataQueryV2Args(); - await args.ReadAsync(iprot, cancellationToken); + var tmp887 = new InternalStructs.executeLastDataQueryV2_args(); + await tmp887.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeLastDataQueryV2Result(); + var tmp888 = new InternalStructs.executeLastDataQueryV2_result(); try { - result.Success = await _iAsync.executeLastDataQueryV2Async(args.Req, cancellationToken); + tmp888.Success = await _iAsync.executeLastDataQueryV2(tmp887.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeLastDataQueryV2", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp888.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp889) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp890 = $"Error occurred in {GetType().FullName}: {tmp889.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp889, tmp890); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp890); + var tmp891 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeLastDataQueryV2", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp891.WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMessageEndAsync(cancellationToken); + await oprot.Transport.FlushAsync(cancellationToken); + } + + public async global::System.Threading.Tasks.Task executeFastLastDataQueryForOnePrefixPath_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) + { + var tmp892 = new InternalStructs.executeFastLastDataQueryForOnePrefixPath_args(); + await tmp892.ReadAsync(iprot, cancellationToken); + await iprot.ReadMessageEndAsync(cancellationToken); + var tmp893 = new InternalStructs.executeFastLastDataQueryForOnePrefixPath_result(); + try + { + tmp893.Success = await _iAsync.executeFastLastDataQueryForOnePrefixPath(tmp892.Req, cancellationToken); + await oprot.WriteMessageBeginAsync(new TMessage("executeFastLastDataQueryForOnePrefixPath", TMessageType.Reply, seqid), cancellationToken); + await tmp893.WriteAsync(oprot, cancellationToken); + } + catch (TTransportException) + { + throw; + } + catch (Exception tmp894) + { + var tmp895 = $"Error occurred in {GetType().FullName}: {tmp894.Message}"; + if(_logger != null) + _logger.LogError(tmp894, tmp895); + else + Console.Error.WriteLine(tmp895); + var tmp896 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + await oprot.WriteMessageBeginAsync(new TMessage("executeFastLastDataQueryForOnePrefixPath", TMessageType.Exception, seqid), cancellationToken); + await tmp896.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2432,30 +3169,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeFastLastDataQueryForOneDeviceV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeFastLastDataQueryForOneDeviceV2Args(); - await args.ReadAsync(iprot, cancellationToken); + var tmp897 = new InternalStructs.executeFastLastDataQueryForOneDeviceV2_args(); + await tmp897.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeFastLastDataQueryForOneDeviceV2Result(); + var tmp898 = new InternalStructs.executeFastLastDataQueryForOneDeviceV2_result(); try { - result.Success = await _iAsync.executeFastLastDataQueryForOneDeviceV2Async(args.Req, cancellationToken); + tmp898.Success = await _iAsync.executeFastLastDataQueryForOneDeviceV2(tmp897.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeFastLastDataQueryForOneDeviceV2", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp898.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp899) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp900 = $"Error occurred in {GetType().FullName}: {tmp899.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp899, tmp900); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp900); + var tmp901 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeFastLastDataQueryForOneDeviceV2", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp901.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2463,30 +3200,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeAggregationQueryV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeAggregationQueryV2Args(); - await args.ReadAsync(iprot, cancellationToken); + var tmp902 = new InternalStructs.executeAggregationQueryV2_args(); + await tmp902.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeAggregationQueryV2Result(); + var tmp903 = new InternalStructs.executeAggregationQueryV2_result(); try { - result.Success = await _iAsync.executeAggregationQueryV2Async(args.Req, cancellationToken); + tmp903.Success = await _iAsync.executeAggregationQueryV2(tmp902.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeAggregationQueryV2", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp903.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp904) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp905 = $"Error occurred in {GetType().FullName}: {tmp904.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp904, tmp905); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp905); + var tmp906 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeAggregationQueryV2", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp906.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2494,30 +3231,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeGroupByQueryIntervalQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeGroupByQueryIntervalQueryArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp907 = new InternalStructs.executeGroupByQueryIntervalQuery_args(); + await tmp907.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeGroupByQueryIntervalQueryResult(); + var tmp908 = new InternalStructs.executeGroupByQueryIntervalQuery_result(); try { - result.Success = await _iAsync.executeGroupByQueryIntervalQueryAsync(args.Req, cancellationToken); + tmp908.Success = await _iAsync.executeGroupByQueryIntervalQuery(tmp907.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeGroupByQueryIntervalQuery", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp908.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp909) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp910 = $"Error occurred in {GetType().FullName}: {tmp909.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp909, tmp910); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp910); + var tmp911 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeGroupByQueryIntervalQuery", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp911.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2525,30 +3262,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task fetchResultsV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.fetchResultsV2Args(); - await args.ReadAsync(iprot, cancellationToken); + var tmp912 = new InternalStructs.fetchResultsV2_args(); + await tmp912.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.fetchResultsV2Result(); + var tmp913 = new InternalStructs.fetchResultsV2_result(); try { - result.Success = await _iAsync.fetchResultsV2Async(args.Req, cancellationToken); + tmp913.Success = await _iAsync.fetchResultsV2(tmp912.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("fetchResultsV2", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp913.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp914) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp915 = $"Error occurred in {GetType().FullName}: {tmp914.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp914, tmp915); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp915); + var tmp916 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("fetchResultsV2", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp916.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2556,30 +3293,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task openSession_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.openSessionArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp917 = new InternalStructs.openSession_args(); + await tmp917.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.openSessionResult(); + var tmp918 = new InternalStructs.openSession_result(); try { - result.Success = await _iAsync.openSessionAsync(args.Req, cancellationToken); + tmp918.Success = await _iAsync.openSession(tmp917.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("openSession", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp918.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp919) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp920 = $"Error occurred in {GetType().FullName}: {tmp919.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp919, tmp920); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp920); + var tmp921 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("openSession", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp921.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2587,30 +3324,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task closeSession_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.closeSessionArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp922 = new InternalStructs.closeSession_args(); + await tmp922.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.closeSessionResult(); + var tmp923 = new InternalStructs.closeSession_result(); try { - result.Success = await _iAsync.closeSessionAsync(args.Req, cancellationToken); + tmp923.Success = await _iAsync.closeSession(tmp922.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("closeSession", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp923.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp924) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp925 = $"Error occurred in {GetType().FullName}: {tmp924.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp924, tmp925); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp925); + var tmp926 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("closeSession", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp926.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2618,30 +3355,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeStatementArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp927 = new InternalStructs.executeStatement_args(); + await tmp927.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeStatementResult(); + var tmp928 = new InternalStructs.executeStatement_result(); try { - result.Success = await _iAsync.executeStatementAsync(args.Req, cancellationToken); + tmp928.Success = await _iAsync.executeStatement(tmp927.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeStatement", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp928.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp929) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp930 = $"Error occurred in {GetType().FullName}: {tmp929.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp929, tmp930); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp930); + var tmp931 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeStatement", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp931.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2649,30 +3386,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeBatchStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeBatchStatementArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp932 = new InternalStructs.executeBatchStatement_args(); + await tmp932.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeBatchStatementResult(); + var tmp933 = new InternalStructs.executeBatchStatement_result(); try { - result.Success = await _iAsync.executeBatchStatementAsync(args.Req, cancellationToken); + tmp933.Success = await _iAsync.executeBatchStatement(tmp932.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeBatchStatement", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp933.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp934) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp935 = $"Error occurred in {GetType().FullName}: {tmp934.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp934, tmp935); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp935); + var tmp936 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeBatchStatement", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp936.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2680,30 +3417,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeQueryStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeQueryStatementArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp937 = new InternalStructs.executeQueryStatement_args(); + await tmp937.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeQueryStatementResult(); + var tmp938 = new InternalStructs.executeQueryStatement_result(); try { - result.Success = await _iAsync.executeQueryStatementAsync(args.Req, cancellationToken); + tmp938.Success = await _iAsync.executeQueryStatement(tmp937.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeQueryStatement", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp938.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp939) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp940 = $"Error occurred in {GetType().FullName}: {tmp939.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp939, tmp940); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp940); + var tmp941 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeQueryStatement", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp941.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2711,30 +3448,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeUpdateStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeUpdateStatementArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp942 = new InternalStructs.executeUpdateStatement_args(); + await tmp942.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeUpdateStatementResult(); + var tmp943 = new InternalStructs.executeUpdateStatement_result(); try { - result.Success = await _iAsync.executeUpdateStatementAsync(args.Req, cancellationToken); + tmp943.Success = await _iAsync.executeUpdateStatement(tmp942.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeUpdateStatement", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp943.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp944) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp945 = $"Error occurred in {GetType().FullName}: {tmp944.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp944, tmp945); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp945); + var tmp946 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeUpdateStatement", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp946.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2742,30 +3479,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task fetchResults_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.fetchResultsArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp947 = new InternalStructs.fetchResults_args(); + await tmp947.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.fetchResultsResult(); + var tmp948 = new InternalStructs.fetchResults_result(); try { - result.Success = await _iAsync.fetchResultsAsync(args.Req, cancellationToken); + tmp948.Success = await _iAsync.fetchResults(tmp947.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("fetchResults", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp948.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp949) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp950 = $"Error occurred in {GetType().FullName}: {tmp949.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp949, tmp950); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp950); + var tmp951 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("fetchResults", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp951.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2773,30 +3510,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task fetchMetadata_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.fetchMetadataArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp952 = new InternalStructs.fetchMetadata_args(); + await tmp952.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.fetchMetadataResult(); + var tmp953 = new InternalStructs.fetchMetadata_result(); try { - result.Success = await _iAsync.fetchMetadataAsync(args.Req, cancellationToken); + tmp953.Success = await _iAsync.fetchMetadata(tmp952.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("fetchMetadata", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp953.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp954) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp955 = $"Error occurred in {GetType().FullName}: {tmp954.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp954, tmp955); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp955); + var tmp956 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("fetchMetadata", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp956.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2804,30 +3541,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task cancelOperation_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.cancelOperationArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp957 = new InternalStructs.cancelOperation_args(); + await tmp957.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.cancelOperationResult(); + var tmp958 = new InternalStructs.cancelOperation_result(); try { - result.Success = await _iAsync.cancelOperationAsync(args.Req, cancellationToken); + tmp958.Success = await _iAsync.cancelOperation(tmp957.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("cancelOperation", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp958.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp959) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp960 = $"Error occurred in {GetType().FullName}: {tmp959.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp959, tmp960); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp960); + var tmp961 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("cancelOperation", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp961.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2835,30 +3572,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task closeOperation_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.closeOperationArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp962 = new InternalStructs.closeOperation_args(); + await tmp962.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.closeOperationResult(); + var tmp963 = new InternalStructs.closeOperation_result(); try { - result.Success = await _iAsync.closeOperationAsync(args.Req, cancellationToken); + tmp963.Success = await _iAsync.closeOperation(tmp962.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("closeOperation", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp963.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp964) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp965 = $"Error occurred in {GetType().FullName}: {tmp964.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp964, tmp965); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp965); + var tmp966 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("closeOperation", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp966.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2866,30 +3603,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task getTimeZone_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.getTimeZoneArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp967 = new InternalStructs.getTimeZone_args(); + await tmp967.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.getTimeZoneResult(); + var tmp968 = new InternalStructs.getTimeZone_result(); try { - result.Success = await _iAsync.getTimeZoneAsync(args.SessionId, cancellationToken); + tmp968.Success = await _iAsync.getTimeZone(tmp967.SessionId, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("getTimeZone", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp968.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp969) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp970 = $"Error occurred in {GetType().FullName}: {tmp969.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp969, tmp970); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp970); + var tmp971 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("getTimeZone", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp971.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2897,30 +3634,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task setTimeZone_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.setTimeZoneArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp972 = new InternalStructs.setTimeZone_args(); + await tmp972.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.setTimeZoneResult(); + var tmp973 = new InternalStructs.setTimeZone_result(); try { - result.Success = await _iAsync.setTimeZoneAsync(args.Req, cancellationToken); + tmp973.Success = await _iAsync.setTimeZone(tmp972.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("setTimeZone", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp973.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp974) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp975 = $"Error occurred in {GetType().FullName}: {tmp974.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp974, tmp975); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp975); + var tmp976 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("setTimeZone", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp976.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2928,30 +3665,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task getProperties_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.getPropertiesArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp977 = new InternalStructs.getProperties_args(); + await tmp977.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.getPropertiesResult(); + var tmp978 = new InternalStructs.getProperties_result(); try { - result.Success = await _iAsync.getPropertiesAsync(cancellationToken); + tmp978.Success = await _iAsync.getProperties(cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("getProperties", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp978.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp979) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp980 = $"Error occurred in {GetType().FullName}: {tmp979.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp979, tmp980); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp980); + var tmp981 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("getProperties", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp981.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2959,30 +3696,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task setStorageGroup_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.setStorageGroupArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp982 = new InternalStructs.setStorageGroup_args(); + await tmp982.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.setStorageGroupResult(); + var tmp983 = new InternalStructs.setStorageGroup_result(); try { - result.Success = await _iAsync.setStorageGroupAsync(args.SessionId, args.StorageGroup, cancellationToken); + tmp983.Success = await _iAsync.setStorageGroup(tmp982.SessionId, tmp982.StorageGroup, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("setStorageGroup", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp983.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp984) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp985 = $"Error occurred in {GetType().FullName}: {tmp984.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp984, tmp985); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp985); + var tmp986 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("setStorageGroup", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp986.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -2990,30 +3727,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task createTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.createTimeseriesArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp987 = new InternalStructs.createTimeseries_args(); + await tmp987.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.createTimeseriesResult(); + var tmp988 = new InternalStructs.createTimeseries_result(); try { - result.Success = await _iAsync.createTimeseriesAsync(args.Req, cancellationToken); + tmp988.Success = await _iAsync.createTimeseries(tmp987.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("createTimeseries", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp988.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp989) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp990 = $"Error occurred in {GetType().FullName}: {tmp989.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp989, tmp990); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp990); + var tmp991 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("createTimeseries", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp991.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3021,30 +3758,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task createAlignedTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.createAlignedTimeseriesArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp992 = new InternalStructs.createAlignedTimeseries_args(); + await tmp992.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.createAlignedTimeseriesResult(); + var tmp993 = new InternalStructs.createAlignedTimeseries_result(); try { - result.Success = await _iAsync.createAlignedTimeseriesAsync(args.Req, cancellationToken); + tmp993.Success = await _iAsync.createAlignedTimeseries(tmp992.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("createAlignedTimeseries", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp993.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp994) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp995 = $"Error occurred in {GetType().FullName}: {tmp994.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp994, tmp995); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp995); + var tmp996 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("createAlignedTimeseries", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp996.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3052,30 +3789,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task createMultiTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.createMultiTimeseriesArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp997 = new InternalStructs.createMultiTimeseries_args(); + await tmp997.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.createMultiTimeseriesResult(); + var tmp998 = new InternalStructs.createMultiTimeseries_result(); try { - result.Success = await _iAsync.createMultiTimeseriesAsync(args.Req, cancellationToken); + tmp998.Success = await _iAsync.createMultiTimeseries(tmp997.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("createMultiTimeseries", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp998.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp999) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1000 = $"Error occurred in {GetType().FullName}: {tmp999.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp999, tmp1000); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1000); + var tmp1001 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("createMultiTimeseries", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1001.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3083,30 +3820,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task deleteTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.deleteTimeseriesArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1002 = new InternalStructs.deleteTimeseries_args(); + await tmp1002.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.deleteTimeseriesResult(); + var tmp1003 = new InternalStructs.deleteTimeseries_result(); try { - result.Success = await _iAsync.deleteTimeseriesAsync(args.SessionId, args.Path, cancellationToken); + tmp1003.Success = await _iAsync.deleteTimeseries(tmp1002.SessionId, tmp1002.Path, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("deleteTimeseries", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1003.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1004) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1005 = $"Error occurred in {GetType().FullName}: {tmp1004.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1004, tmp1005); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1005); + var tmp1006 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("deleteTimeseries", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1006.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3114,30 +3851,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task deleteStorageGroups_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.deleteStorageGroupsArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1007 = new InternalStructs.deleteStorageGroups_args(); + await tmp1007.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.deleteStorageGroupsResult(); + var tmp1008 = new InternalStructs.deleteStorageGroups_result(); try { - result.Success = await _iAsync.deleteStorageGroupsAsync(args.SessionId, args.StorageGroup, cancellationToken); + tmp1008.Success = await _iAsync.deleteStorageGroups(tmp1007.SessionId, tmp1007.StorageGroup, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("deleteStorageGroups", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1008.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1009) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1010 = $"Error occurred in {GetType().FullName}: {tmp1009.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1009, tmp1010); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1010); + var tmp1011 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("deleteStorageGroups", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1011.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3145,30 +3882,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task insertRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.insertRecordArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1012 = new InternalStructs.insertRecord_args(); + await tmp1012.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.insertRecordResult(); + var tmp1013 = new InternalStructs.insertRecord_result(); try { - result.Success = await _iAsync.insertRecordAsync(args.Req, cancellationToken); + tmp1013.Success = await _iAsync.insertRecord(tmp1012.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("insertRecord", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1013.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1014) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1015 = $"Error occurred in {GetType().FullName}: {tmp1014.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1014, tmp1015); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1015); + var tmp1016 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertRecord", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1016.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3176,30 +3913,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task insertStringRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.insertStringRecordArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1017 = new InternalStructs.insertStringRecord_args(); + await tmp1017.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.insertStringRecordResult(); + var tmp1018 = new InternalStructs.insertStringRecord_result(); try { - result.Success = await _iAsync.insertStringRecordAsync(args.Req, cancellationToken); + tmp1018.Success = await _iAsync.insertStringRecord(tmp1017.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("insertStringRecord", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1018.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1019) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1020 = $"Error occurred in {GetType().FullName}: {tmp1019.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1019, tmp1020); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1020); + var tmp1021 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertStringRecord", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1021.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3207,30 +3944,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task insertTablet_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.insertTabletArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1022 = new InternalStructs.insertTablet_args(); + await tmp1022.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.insertTabletResult(); + var tmp1023 = new InternalStructs.insertTablet_result(); try { - result.Success = await _iAsync.insertTabletAsync(args.Req, cancellationToken); + tmp1023.Success = await _iAsync.insertTablet(tmp1022.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("insertTablet", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1023.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1024) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1025 = $"Error occurred in {GetType().FullName}: {tmp1024.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1024, tmp1025); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1025); + var tmp1026 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertTablet", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1026.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3238,30 +3975,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task insertTablets_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.insertTabletsArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1027 = new InternalStructs.insertTablets_args(); + await tmp1027.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.insertTabletsResult(); + var tmp1028 = new InternalStructs.insertTablets_result(); try { - result.Success = await _iAsync.insertTabletsAsync(args.Req, cancellationToken); + tmp1028.Success = await _iAsync.insertTablets(tmp1027.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("insertTablets", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1028.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1029) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1030 = $"Error occurred in {GetType().FullName}: {tmp1029.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1029, tmp1030); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1030); + var tmp1031 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertTablets", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1031.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3269,30 +4006,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task insertRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.insertRecordsArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1032 = new InternalStructs.insertRecords_args(); + await tmp1032.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.insertRecordsResult(); + var tmp1033 = new InternalStructs.insertRecords_result(); try { - result.Success = await _iAsync.insertRecordsAsync(args.Req, cancellationToken); + tmp1033.Success = await _iAsync.insertRecords(tmp1032.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("insertRecords", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1033.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1034) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1035 = $"Error occurred in {GetType().FullName}: {tmp1034.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1034, tmp1035); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1035); + var tmp1036 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertRecords", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1036.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3300,30 +4037,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task insertRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.insertRecordsOfOneDeviceArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1037 = new InternalStructs.insertRecordsOfOneDevice_args(); + await tmp1037.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.insertRecordsOfOneDeviceResult(); + var tmp1038 = new InternalStructs.insertRecordsOfOneDevice_result(); try { - result.Success = await _iAsync.insertRecordsOfOneDeviceAsync(args.Req, cancellationToken); + tmp1038.Success = await _iAsync.insertRecordsOfOneDevice(tmp1037.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("insertRecordsOfOneDevice", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1038.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1039) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1040 = $"Error occurred in {GetType().FullName}: {tmp1039.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1039, tmp1040); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1040); + var tmp1041 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertRecordsOfOneDevice", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1041.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3331,30 +4068,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task insertStringRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.insertStringRecordsOfOneDeviceArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1042 = new InternalStructs.insertStringRecordsOfOneDevice_args(); + await tmp1042.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.insertStringRecordsOfOneDeviceResult(); + var tmp1043 = new InternalStructs.insertStringRecordsOfOneDevice_result(); try { - result.Success = await _iAsync.insertStringRecordsOfOneDeviceAsync(args.Req, cancellationToken); + tmp1043.Success = await _iAsync.insertStringRecordsOfOneDevice(tmp1042.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("insertStringRecordsOfOneDevice", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1043.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1044) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1045 = $"Error occurred in {GetType().FullName}: {tmp1044.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1044, tmp1045); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1045); + var tmp1046 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertStringRecordsOfOneDevice", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1046.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3362,30 +4099,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task insertStringRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.insertStringRecordsArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1047 = new InternalStructs.insertStringRecords_args(); + await tmp1047.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.insertStringRecordsResult(); + var tmp1048 = new InternalStructs.insertStringRecords_result(); try { - result.Success = await _iAsync.insertStringRecordsAsync(args.Req, cancellationToken); + tmp1048.Success = await _iAsync.insertStringRecords(tmp1047.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("insertStringRecords", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1048.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1049) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1050 = $"Error occurred in {GetType().FullName}: {tmp1049.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1049, tmp1050); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1050); + var tmp1051 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertStringRecords", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1051.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3393,30 +4130,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task testInsertTablet_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.testInsertTabletArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1052 = new InternalStructs.testInsertTablet_args(); + await tmp1052.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.testInsertTabletResult(); + var tmp1053 = new InternalStructs.testInsertTablet_result(); try { - result.Success = await _iAsync.testInsertTabletAsync(args.Req, cancellationToken); + tmp1053.Success = await _iAsync.testInsertTablet(tmp1052.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("testInsertTablet", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1053.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1054) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1055 = $"Error occurred in {GetType().FullName}: {tmp1054.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1054, tmp1055); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1055); + var tmp1056 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertTablet", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1056.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3424,30 +4161,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task testInsertTablets_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.testInsertTabletsArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1057 = new InternalStructs.testInsertTablets_args(); + await tmp1057.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.testInsertTabletsResult(); + var tmp1058 = new InternalStructs.testInsertTablets_result(); try { - result.Success = await _iAsync.testInsertTabletsAsync(args.Req, cancellationToken); + tmp1058.Success = await _iAsync.testInsertTablets(tmp1057.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("testInsertTablets", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1058.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1059) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1060 = $"Error occurred in {GetType().FullName}: {tmp1059.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1059, tmp1060); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1060); + var tmp1061 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertTablets", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1061.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3455,30 +4192,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task testInsertRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.testInsertRecordArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1062 = new InternalStructs.testInsertRecord_args(); + await tmp1062.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.testInsertRecordResult(); + var tmp1063 = new InternalStructs.testInsertRecord_result(); try { - result.Success = await _iAsync.testInsertRecordAsync(args.Req, cancellationToken); + tmp1063.Success = await _iAsync.testInsertRecord(tmp1062.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("testInsertRecord", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1063.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1064) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1065 = $"Error occurred in {GetType().FullName}: {tmp1064.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1064, tmp1065); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1065); + var tmp1066 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertRecord", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1066.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3486,30 +4223,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task testInsertStringRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.testInsertStringRecordArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1067 = new InternalStructs.testInsertStringRecord_args(); + await tmp1067.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.testInsertStringRecordResult(); + var tmp1068 = new InternalStructs.testInsertStringRecord_result(); try { - result.Success = await _iAsync.testInsertStringRecordAsync(args.Req, cancellationToken); + tmp1068.Success = await _iAsync.testInsertStringRecord(tmp1067.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("testInsertStringRecord", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1068.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1069) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1070 = $"Error occurred in {GetType().FullName}: {tmp1069.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1069, tmp1070); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1070); + var tmp1071 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertStringRecord", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1071.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3517,30 +4254,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task testInsertRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.testInsertRecordsArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1072 = new InternalStructs.testInsertRecords_args(); + await tmp1072.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.testInsertRecordsResult(); + var tmp1073 = new InternalStructs.testInsertRecords_result(); try { - result.Success = await _iAsync.testInsertRecordsAsync(args.Req, cancellationToken); + tmp1073.Success = await _iAsync.testInsertRecords(tmp1072.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("testInsertRecords", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1073.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1074) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1075 = $"Error occurred in {GetType().FullName}: {tmp1074.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1074, tmp1075); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1075); + var tmp1076 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertRecords", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1076.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3548,30 +4285,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task testInsertRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.testInsertRecordsOfOneDeviceArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1077 = new InternalStructs.testInsertRecordsOfOneDevice_args(); + await tmp1077.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.testInsertRecordsOfOneDeviceResult(); + var tmp1078 = new InternalStructs.testInsertRecordsOfOneDevice_result(); try { - result.Success = await _iAsync.testInsertRecordsOfOneDeviceAsync(args.Req, cancellationToken); + tmp1078.Success = await _iAsync.testInsertRecordsOfOneDevice(tmp1077.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("testInsertRecordsOfOneDevice", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1078.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1079) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1080 = $"Error occurred in {GetType().FullName}: {tmp1079.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1079, tmp1080); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1080); + var tmp1081 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertRecordsOfOneDevice", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1081.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3579,30 +4316,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task testInsertStringRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.testInsertStringRecordsArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1082 = new InternalStructs.testInsertStringRecords_args(); + await tmp1082.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.testInsertStringRecordsResult(); + var tmp1083 = new InternalStructs.testInsertStringRecords_result(); try { - result.Success = await _iAsync.testInsertStringRecordsAsync(args.Req, cancellationToken); + tmp1083.Success = await _iAsync.testInsertStringRecords(tmp1082.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("testInsertStringRecords", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1083.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1084) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1085 = $"Error occurred in {GetType().FullName}: {tmp1084.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1084, tmp1085); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1085); + var tmp1086 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertStringRecords", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1086.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3610,30 +4347,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task deleteData_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.deleteDataArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1087 = new InternalStructs.deleteData_args(); + await tmp1087.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.deleteDataResult(); + var tmp1088 = new InternalStructs.deleteData_result(); try { - result.Success = await _iAsync.deleteDataAsync(args.Req, cancellationToken); + tmp1088.Success = await _iAsync.deleteData(tmp1087.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("deleteData", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1088.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1089) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1090 = $"Error occurred in {GetType().FullName}: {tmp1089.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1089, tmp1090); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1090); + var tmp1091 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("deleteData", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1091.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3641,30 +4378,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeRawDataQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeRawDataQueryArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1092 = new InternalStructs.executeRawDataQuery_args(); + await tmp1092.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeRawDataQueryResult(); + var tmp1093 = new InternalStructs.executeRawDataQuery_result(); try { - result.Success = await _iAsync.executeRawDataQueryAsync(args.Req, cancellationToken); + tmp1093.Success = await _iAsync.executeRawDataQuery(tmp1092.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeRawDataQuery", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1093.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1094) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1095 = $"Error occurred in {GetType().FullName}: {tmp1094.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1094, tmp1095); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1095); + var tmp1096 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeRawDataQuery", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1096.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3672,30 +4409,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeLastDataQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeLastDataQueryArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1097 = new InternalStructs.executeLastDataQuery_args(); + await tmp1097.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeLastDataQueryResult(); + var tmp1098 = new InternalStructs.executeLastDataQuery_result(); try { - result.Success = await _iAsync.executeLastDataQueryAsync(args.Req, cancellationToken); + tmp1098.Success = await _iAsync.executeLastDataQuery(tmp1097.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeLastDataQuery", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1098.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1099) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1100 = $"Error occurred in {GetType().FullName}: {tmp1099.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1099, tmp1100); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1100); + var tmp1101 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeLastDataQuery", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1101.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3703,30 +4440,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeAggregationQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.executeAggregationQueryArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1102 = new InternalStructs.executeAggregationQuery_args(); + await tmp1102.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.executeAggregationQueryResult(); + var tmp1103 = new InternalStructs.executeAggregationQuery_result(); try { - result.Success = await _iAsync.executeAggregationQueryAsync(args.Req, cancellationToken); + tmp1103.Success = await _iAsync.executeAggregationQuery(tmp1102.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeAggregationQuery", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1103.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1104) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1105 = $"Error occurred in {GetType().FullName}: {tmp1104.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1104, tmp1105); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1105); + var tmp1106 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeAggregationQuery", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1106.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3734,30 +4471,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task requestStatementId_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.requestStatementIdArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1107 = new InternalStructs.requestStatementId_args(); + await tmp1107.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.requestStatementIdResult(); + var tmp1108 = new InternalStructs.requestStatementId_result(); try { - result.Success = await _iAsync.requestStatementIdAsync(args.SessionId, cancellationToken); + tmp1108.Success = await _iAsync.requestStatementId(tmp1107.SessionId, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("requestStatementId", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1108.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1109) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1110 = $"Error occurred in {GetType().FullName}: {tmp1109.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1109, tmp1110); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1110); + var tmp1111 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("requestStatementId", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1111.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3765,30 +4502,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task createSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.createSchemaTemplateArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1112 = new InternalStructs.createSchemaTemplate_args(); + await tmp1112.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.createSchemaTemplateResult(); + var tmp1113 = new InternalStructs.createSchemaTemplate_result(); try { - result.Success = await _iAsync.createSchemaTemplateAsync(args.Req, cancellationToken); + tmp1113.Success = await _iAsync.createSchemaTemplate(tmp1112.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("createSchemaTemplate", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1113.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1114) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1115 = $"Error occurred in {GetType().FullName}: {tmp1114.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1114, tmp1115); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1115); + var tmp1116 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("createSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1116.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3796,30 +4533,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task appendSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.appendSchemaTemplateArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1117 = new InternalStructs.appendSchemaTemplate_args(); + await tmp1117.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.appendSchemaTemplateResult(); + var tmp1118 = new InternalStructs.appendSchemaTemplate_result(); try { - result.Success = await _iAsync.appendSchemaTemplateAsync(args.Req, cancellationToken); + tmp1118.Success = await _iAsync.appendSchemaTemplate(tmp1117.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("appendSchemaTemplate", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1118.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1119) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1120 = $"Error occurred in {GetType().FullName}: {tmp1119.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1119, tmp1120); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1120); + var tmp1121 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("appendSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1121.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3827,30 +4564,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task pruneSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.pruneSchemaTemplateArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1122 = new InternalStructs.pruneSchemaTemplate_args(); + await tmp1122.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.pruneSchemaTemplateResult(); + var tmp1123 = new InternalStructs.pruneSchemaTemplate_result(); try { - result.Success = await _iAsync.pruneSchemaTemplateAsync(args.Req, cancellationToken); + tmp1123.Success = await _iAsync.pruneSchemaTemplate(tmp1122.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("pruneSchemaTemplate", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1123.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1124) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1125 = $"Error occurred in {GetType().FullName}: {tmp1124.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1124, tmp1125); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1125); + var tmp1126 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("pruneSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1126.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3858,30 +4595,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task querySchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.querySchemaTemplateArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1127 = new InternalStructs.querySchemaTemplate_args(); + await tmp1127.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.querySchemaTemplateResult(); + var tmp1128 = new InternalStructs.querySchemaTemplate_result(); try { - result.Success = await _iAsync.querySchemaTemplateAsync(args.Req, cancellationToken); + tmp1128.Success = await _iAsync.querySchemaTemplate(tmp1127.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("querySchemaTemplate", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1128.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1129) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1130 = $"Error occurred in {GetType().FullName}: {tmp1129.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1129, tmp1130); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1130); + var tmp1131 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("querySchemaTemplate", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1131.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3889,30 +4626,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task showConfigurationTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.showConfigurationTemplateArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1132 = new InternalStructs.showConfigurationTemplate_args(); + await tmp1132.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.showConfigurationTemplateResult(); + var tmp1133 = new InternalStructs.showConfigurationTemplate_result(); try { - result.Success = await _iAsync.showConfigurationTemplateAsync(cancellationToken); + tmp1133.Success = await _iAsync.showConfigurationTemplate(cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("showConfigurationTemplate", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1133.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1134) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1135 = $"Error occurred in {GetType().FullName}: {tmp1134.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1134, tmp1135); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1135); + var tmp1136 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("showConfigurationTemplate", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1136.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3920,30 +4657,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task showConfiguration_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.showConfigurationArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1137 = new InternalStructs.showConfiguration_args(); + await tmp1137.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.showConfigurationResult(); + var tmp1138 = new InternalStructs.showConfiguration_result(); try { - result.Success = await _iAsync.showConfigurationAsync(args.NodeId, cancellationToken); + tmp1138.Success = await _iAsync.showConfiguration(tmp1137.NodeId, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("showConfiguration", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1138.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1139) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1140 = $"Error occurred in {GetType().FullName}: {tmp1139.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1139, tmp1140); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1140); + var tmp1141 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("showConfiguration", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1141.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3951,30 +4688,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task setSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.setSchemaTemplateArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1142 = new InternalStructs.setSchemaTemplate_args(); + await tmp1142.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.setSchemaTemplateResult(); + var tmp1143 = new InternalStructs.setSchemaTemplate_result(); try { - result.Success = await _iAsync.setSchemaTemplateAsync(args.Req, cancellationToken); + tmp1143.Success = await _iAsync.setSchemaTemplate(tmp1142.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("setSchemaTemplate", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1143.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1144) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1145 = $"Error occurred in {GetType().FullName}: {tmp1144.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1144, tmp1145); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1145); + var tmp1146 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("setSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1146.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3982,30 +4719,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task unsetSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.unsetSchemaTemplateArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1147 = new InternalStructs.unsetSchemaTemplate_args(); + await tmp1147.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.unsetSchemaTemplateResult(); + var tmp1148 = new InternalStructs.unsetSchemaTemplate_result(); try { - result.Success = await _iAsync.unsetSchemaTemplateAsync(args.Req, cancellationToken); + tmp1148.Success = await _iAsync.unsetSchemaTemplate(tmp1147.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("unsetSchemaTemplate", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1148.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1149) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1150 = $"Error occurred in {GetType().FullName}: {tmp1149.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1149, tmp1150); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1150); + var tmp1151 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("unsetSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1151.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4013,30 +4750,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task dropSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.dropSchemaTemplateArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1152 = new InternalStructs.dropSchemaTemplate_args(); + await tmp1152.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.dropSchemaTemplateResult(); + var tmp1153 = new InternalStructs.dropSchemaTemplate_result(); try { - result.Success = await _iAsync.dropSchemaTemplateAsync(args.Req, cancellationToken); + tmp1153.Success = await _iAsync.dropSchemaTemplate(tmp1152.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("dropSchemaTemplate", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1153.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1154) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1155 = $"Error occurred in {GetType().FullName}: {tmp1154.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1154, tmp1155); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1155); + var tmp1156 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("dropSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1156.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4044,30 +4781,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task createTimeseriesUsingSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.createTimeseriesUsingSchemaTemplateArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1157 = new InternalStructs.createTimeseriesUsingSchemaTemplate_args(); + await tmp1157.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.createTimeseriesUsingSchemaTemplateResult(); + var tmp1158 = new InternalStructs.createTimeseriesUsingSchemaTemplate_result(); try { - result.Success = await _iAsync.createTimeseriesUsingSchemaTemplateAsync(args.Req, cancellationToken); + tmp1158.Success = await _iAsync.createTimeseriesUsingSchemaTemplate(tmp1157.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("createTimeseriesUsingSchemaTemplate", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1158.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1159) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1160 = $"Error occurred in {GetType().FullName}: {tmp1159.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1159, tmp1160); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1160); + var tmp1161 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("createTimeseriesUsingSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1161.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4075,30 +4812,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task handshake_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.handshakeArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1162 = new InternalStructs.handshake_args(); + await tmp1162.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.handshakeResult(); + var tmp1163 = new InternalStructs.handshake_result(); try { - result.Success = await _iAsync.handshakeAsync(args.Info, cancellationToken); + tmp1163.Success = await _iAsync.handshake(tmp1162.Info, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("handshake", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1163.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1164) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1165 = $"Error occurred in {GetType().FullName}: {tmp1164.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1164, tmp1165); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1165); + var tmp1166 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("handshake", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1166.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4106,30 +4843,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task sendPipeData_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.sendPipeDataArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1167 = new InternalStructs.sendPipeData_args(); + await tmp1167.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.sendPipeDataResult(); + var tmp1168 = new InternalStructs.sendPipeData_result(); try { - result.Success = await _iAsync.sendPipeDataAsync(args.Buff, cancellationToken); + tmp1168.Success = await _iAsync.sendPipeData(tmp1167.Buff, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("sendPipeData", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1168.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1169) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1170 = $"Error occurred in {GetType().FullName}: {tmp1169.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1169, tmp1170); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1170); + var tmp1171 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("sendPipeData", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1171.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4137,30 +4874,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task sendFile_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.sendFileArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1172 = new InternalStructs.sendFile_args(); + await tmp1172.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.sendFileResult(); + var tmp1173 = new InternalStructs.sendFile_result(); try { - result.Success = await _iAsync.sendFileAsync(args.MetaInfo, args.Buff, cancellationToken); + tmp1173.Success = await _iAsync.sendFile(tmp1172.MetaInfo, tmp1172.Buff, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("sendFile", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1173.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1174) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1175 = $"Error occurred in {GetType().FullName}: {tmp1174.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1174, tmp1175); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1175); + var tmp1176 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("sendFile", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1176.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4168,30 +4905,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task pipeTransfer_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.pipeTransferArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1177 = new InternalStructs.pipeTransfer_args(); + await tmp1177.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.pipeTransferResult(); + var tmp1178 = new InternalStructs.pipeTransfer_result(); try { - result.Success = await _iAsync.pipeTransferAsync(args.Req, cancellationToken); + tmp1178.Success = await _iAsync.pipeTransfer(tmp1177.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("pipeTransfer", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1178.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1179) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1180 = $"Error occurred in {GetType().FullName}: {tmp1179.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1179, tmp1180); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1180); + var tmp1181 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("pipeTransfer", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1181.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4199,30 +4936,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task pipeSubscribe_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.pipeSubscribeArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1182 = new InternalStructs.pipeSubscribe_args(); + await tmp1182.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.pipeSubscribeResult(); + var tmp1183 = new InternalStructs.pipeSubscribe_result(); try { - result.Success = await _iAsync.pipeSubscribeAsync(args.Req, cancellationToken); + tmp1183.Success = await _iAsync.pipeSubscribe(tmp1182.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("pipeSubscribe", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1183.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1184) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1185 = $"Error occurred in {GetType().FullName}: {tmp1184.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1184, tmp1185); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1185); + var tmp1186 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("pipeSubscribe", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1186.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4230,30 +4967,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task getBackupConfiguration_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.getBackupConfigurationArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1187 = new InternalStructs.getBackupConfiguration_args(); + await tmp1187.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.getBackupConfigurationResult(); + var tmp1188 = new InternalStructs.getBackupConfiguration_result(); try { - result.Success = await _iAsync.getBackupConfigurationAsync(cancellationToken); + tmp1188.Success = await _iAsync.getBackupConfiguration(cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("getBackupConfiguration", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1188.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1189) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1190 = $"Error occurred in {GetType().FullName}: {tmp1189.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1189, tmp1190); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1190); + var tmp1191 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("getBackupConfiguration", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1191.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4261,30 +4998,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task fetchAllConnectionsInfo_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.fetchAllConnectionsInfoArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1192 = new InternalStructs.fetchAllConnectionsInfo_args(); + await tmp1192.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.fetchAllConnectionsInfoResult(); + var tmp1193 = new InternalStructs.fetchAllConnectionsInfo_result(); try { - result.Success = await _iAsync.fetchAllConnectionsInfoAsync(cancellationToken); + tmp1193.Success = await _iAsync.fetchAllConnectionsInfo(cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("fetchAllConnectionsInfo", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1193.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1194) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1195 = $"Error occurred in {GetType().FullName}: {tmp1194.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1194, tmp1195); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1195); + var tmp1196 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("fetchAllConnectionsInfo", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1196.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4292,30 +5029,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task testConnectionEmptyRPC_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var args = new InternalStructs.testConnectionEmptyRPCArgs(); - await args.ReadAsync(iprot, cancellationToken); + var tmp1197 = new InternalStructs.testConnectionEmptyRPC_args(); + await tmp1197.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var result = new InternalStructs.testConnectionEmptyRPCResult(); + var tmp1198 = new InternalStructs.testConnectionEmptyRPC_result(); try { - result.Success = await _iAsync.testConnectionEmptyRPCAsync(cancellationToken); + tmp1198.Success = await _iAsync.testConnectionEmptyRPC(cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("testConnectionEmptyRPC", TMessageType.Reply, seqid), cancellationToken); - await result.WriteAsync(oprot, cancellationToken); + await tmp1198.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception ex) + catch (Exception tmp1199) { - var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; + var tmp1200 = $"Error occurred in {GetType().FullName}: {tmp1199.Message}"; if(_logger != null) - _logger.LogError(ex, sErr); + _logger.LogError(tmp1199, tmp1200); else - Console.Error.WriteLine(sErr); - var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(tmp1200); + var tmp1201 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testConnectionEmptyRPC", TMessageType.Exception, seqid), cancellationToken); - await x.WriteAsync(oprot, cancellationToken); + await tmp1201.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4326,7 +5063,7 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public class InternalStructs { - public partial class executeQueryStatementV2Args : TBase + public partial class executeQueryStatementV2_args : TBase { private TSExecuteStatementReq _req; @@ -4350,7 +5087,7 @@ public struct Isset public bool req; } - public executeQueryStatementV2Args() + public executeQueryStatementV2_args() { } @@ -4403,15 +5140,15 @@ public executeQueryStatementV2Args() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeQueryStatementV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1202 = new TStruct("executeQueryStatementV2_args"); + await oprot.WriteStructBeginAsync(tmp1202, cancellationToken); + var tmp1203 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1203.Name = "req"; + tmp1203.Type = TType.Struct; + tmp1203.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1203, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -4426,7 +5163,7 @@ public executeQueryStatementV2Args() public override bool Equals(object that) { - if (!(that is executeQueryStatementV2Args other)) return false; + if (!(that is executeQueryStatementV2_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -4444,21 +5181,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeQueryStatementV2_args("); - int tmp429 = 0; + var tmp1204 = new StringBuilder("executeQueryStatementV2_args("); + int tmp1205 = 0; if((Req != null) && __isset.req) { - if(0 < tmp429++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1205++) { tmp1204.Append(", "); } + tmp1204.Append("Req: "); + Req.ToString(tmp1204); } - sb.Append(')'); - return sb.ToString(); + tmp1204.Append(')'); + return tmp1204.ToString(); } } - public partial class executeQueryStatementV2Result : TBase + public partial class executeQueryStatementV2_result : TBase { private TSExecuteStatementResp _success; @@ -4482,7 +5219,7 @@ public struct Isset public bool success; } - public executeQueryStatementV2Result() + public executeQueryStatementV2_result() { } @@ -4535,18 +5272,18 @@ public executeQueryStatementV2Result() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeQueryStatementV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1206 = new TStruct("executeQueryStatementV2_result"); + await oprot.WriteStructBeginAsync(tmp1206, cancellationToken); + var tmp1207 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1207.Name = "Success"; + tmp1207.Type = TType.Struct; + tmp1207.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1207, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -4562,7 +5299,7 @@ public executeQueryStatementV2Result() public override bool Equals(object that) { - if (!(that is executeQueryStatementV2Result other)) return false; + if (!(that is executeQueryStatementV2_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -4580,21 +5317,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeQueryStatementV2_result("); - int tmp430 = 0; + var tmp1208 = new StringBuilder("executeQueryStatementV2_result("); + int tmp1209 = 0; if((Success != null) && __isset.success) { - if(0 < tmp430++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1209++) { tmp1208.Append(", "); } + tmp1208.Append("Success: "); + Success.ToString(tmp1208); } - sb.Append(')'); - return sb.ToString(); + tmp1208.Append(')'); + return tmp1208.ToString(); } } - public partial class executeUpdateStatementV2Args : TBase + public partial class executeUpdateStatementV2_args : TBase { private TSExecuteStatementReq _req; @@ -4618,7 +5355,7 @@ public struct Isset public bool req; } - public executeUpdateStatementV2Args() + public executeUpdateStatementV2_args() { } @@ -4671,15 +5408,15 @@ public executeUpdateStatementV2Args() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeUpdateStatementV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1210 = new TStruct("executeUpdateStatementV2_args"); + await oprot.WriteStructBeginAsync(tmp1210, cancellationToken); + var tmp1211 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1211.Name = "req"; + tmp1211.Type = TType.Struct; + tmp1211.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1211, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -4694,7 +5431,7 @@ public executeUpdateStatementV2Args() public override bool Equals(object that) { - if (!(that is executeUpdateStatementV2Args other)) return false; + if (!(that is executeUpdateStatementV2_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -4712,21 +5449,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeUpdateStatementV2_args("); - int tmp431 = 0; + var tmp1212 = new StringBuilder("executeUpdateStatementV2_args("); + int tmp1213 = 0; if((Req != null) && __isset.req) { - if(0 < tmp431++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1213++) { tmp1212.Append(", "); } + tmp1212.Append("Req: "); + Req.ToString(tmp1212); } - sb.Append(')'); - return sb.ToString(); + tmp1212.Append(')'); + return tmp1212.ToString(); } } - public partial class executeUpdateStatementV2Result : TBase + public partial class executeUpdateStatementV2_result : TBase { private TSExecuteStatementResp _success; @@ -4750,7 +5487,7 @@ public struct Isset public bool success; } - public executeUpdateStatementV2Result() + public executeUpdateStatementV2_result() { } @@ -4803,18 +5540,18 @@ public executeUpdateStatementV2Result() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeUpdateStatementV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1214 = new TStruct("executeUpdateStatementV2_result"); + await oprot.WriteStructBeginAsync(tmp1214, cancellationToken); + var tmp1215 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1215.Name = "Success"; + tmp1215.Type = TType.Struct; + tmp1215.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1215, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -4830,7 +5567,7 @@ public executeUpdateStatementV2Result() public override bool Equals(object that) { - if (!(that is executeUpdateStatementV2Result other)) return false; + if (!(that is executeUpdateStatementV2_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -4848,21 +5585,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeUpdateStatementV2_result("); - int tmp432 = 0; + var tmp1216 = new StringBuilder("executeUpdateStatementV2_result("); + int tmp1217 = 0; if((Success != null) && __isset.success) { - if(0 < tmp432++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1217++) { tmp1216.Append(", "); } + tmp1216.Append("Success: "); + Success.ToString(tmp1216); } - sb.Append(')'); - return sb.ToString(); + tmp1216.Append(')'); + return tmp1216.ToString(); } } - public partial class executeStatementV2Args : TBase + public partial class executeStatementV2_args : TBase { private TSExecuteStatementReq _req; @@ -4886,7 +5623,7 @@ public struct Isset public bool req; } - public executeStatementV2Args() + public executeStatementV2_args() { } @@ -4939,15 +5676,15 @@ public executeStatementV2Args() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeStatementV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1218 = new TStruct("executeStatementV2_args"); + await oprot.WriteStructBeginAsync(tmp1218, cancellationToken); + var tmp1219 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1219.Name = "req"; + tmp1219.Type = TType.Struct; + tmp1219.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1219, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -4962,7 +5699,7 @@ public executeStatementV2Args() public override bool Equals(object that) { - if (!(that is executeStatementV2Args other)) return false; + if (!(that is executeStatementV2_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -4980,21 +5717,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeStatementV2_args("); - int tmp433 = 0; + var tmp1220 = new StringBuilder("executeStatementV2_args("); + int tmp1221 = 0; if((Req != null) && __isset.req) { - if(0 < tmp433++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1221++) { tmp1220.Append(", "); } + tmp1220.Append("Req: "); + Req.ToString(tmp1220); } - sb.Append(')'); - return sb.ToString(); + tmp1220.Append(')'); + return tmp1220.ToString(); } } - public partial class executeStatementV2Result : TBase + public partial class executeStatementV2_result : TBase { private TSExecuteStatementResp _success; @@ -5018,7 +5755,7 @@ public struct Isset public bool success; } - public executeStatementV2Result() + public executeStatementV2_result() { } @@ -5071,18 +5808,18 @@ public executeStatementV2Result() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeStatementV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1222 = new TStruct("executeStatementV2_result"); + await oprot.WriteStructBeginAsync(tmp1222, cancellationToken); + var tmp1223 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1223.Name = "Success"; + tmp1223.Type = TType.Struct; + tmp1223.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1223, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -5098,7 +5835,7 @@ public executeStatementV2Result() public override bool Equals(object that) { - if (!(that is executeStatementV2Result other)) return false; + if (!(that is executeStatementV2_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -5116,21 +5853,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeStatementV2_result("); - int tmp434 = 0; + var tmp1224 = new StringBuilder("executeStatementV2_result("); + int tmp1225 = 0; if((Success != null) && __isset.success) { - if(0 < tmp434++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1225++) { tmp1224.Append(", "); } + tmp1224.Append("Success: "); + Success.ToString(tmp1224); } - sb.Append(')'); - return sb.ToString(); + tmp1224.Append(')'); + return tmp1224.ToString(); } } - public partial class executeRawDataQueryV2Args : TBase + public partial class executeRawDataQueryV2_args : TBase { private TSRawDataQueryReq _req; @@ -5154,7 +5891,7 @@ public struct Isset public bool req; } - public executeRawDataQueryV2Args() + public executeRawDataQueryV2_args() { } @@ -5207,15 +5944,15 @@ public executeRawDataQueryV2Args() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeRawDataQueryV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1226 = new TStruct("executeRawDataQueryV2_args"); + await oprot.WriteStructBeginAsync(tmp1226, cancellationToken); + var tmp1227 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1227.Name = "req"; + tmp1227.Type = TType.Struct; + tmp1227.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1227, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -5230,7 +5967,7 @@ public executeRawDataQueryV2Args() public override bool Equals(object that) { - if (!(that is executeRawDataQueryV2Args other)) return false; + if (!(that is executeRawDataQueryV2_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -5248,21 +5985,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeRawDataQueryV2_args("); - int tmp435 = 0; + var tmp1228 = new StringBuilder("executeRawDataQueryV2_args("); + int tmp1229 = 0; if((Req != null) && __isset.req) { - if(0 < tmp435++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1229++) { tmp1228.Append(", "); } + tmp1228.Append("Req: "); + Req.ToString(tmp1228); } - sb.Append(')'); - return sb.ToString(); + tmp1228.Append(')'); + return tmp1228.ToString(); } } - public partial class executeRawDataQueryV2Result : TBase + public partial class executeRawDataQueryV2_result : TBase { private TSExecuteStatementResp _success; @@ -5286,7 +6023,7 @@ public struct Isset public bool success; } - public executeRawDataQueryV2Result() + public executeRawDataQueryV2_result() { } @@ -5339,18 +6076,18 @@ public executeRawDataQueryV2Result() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeRawDataQueryV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1230 = new TStruct("executeRawDataQueryV2_result"); + await oprot.WriteStructBeginAsync(tmp1230, cancellationToken); + var tmp1231 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1231.Name = "Success"; + tmp1231.Type = TType.Struct; + tmp1231.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1231, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -5366,7 +6103,7 @@ public executeRawDataQueryV2Result() public override bool Equals(object that) { - if (!(that is executeRawDataQueryV2Result other)) return false; + if (!(that is executeRawDataQueryV2_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -5384,21 +6121,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeRawDataQueryV2_result("); - int tmp436 = 0; + var tmp1232 = new StringBuilder("executeRawDataQueryV2_result("); + int tmp1233 = 0; if((Success != null) && __isset.success) { - if(0 < tmp436++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1233++) { tmp1232.Append(", "); } + tmp1232.Append("Success: "); + Success.ToString(tmp1232); } - sb.Append(')'); - return sb.ToString(); + tmp1232.Append(')'); + return tmp1232.ToString(); } } - public partial class executeLastDataQueryV2Args : TBase + public partial class executeLastDataQueryV2_args : TBase { private TSLastDataQueryReq _req; @@ -5422,7 +6159,7 @@ public struct Isset public bool req; } - public executeLastDataQueryV2Args() + public executeLastDataQueryV2_args() { } @@ -5475,15 +6212,283 @@ public executeLastDataQueryV2Args() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeLastDataQueryV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1234 = new TStruct("executeLastDataQueryV2_args"); + await oprot.WriteStructBeginAsync(tmp1234, cancellationToken); + var tmp1235 = new TField(); + if((Req != null) && __isset.req) + { + tmp1235.Name = "req"; + tmp1235.Type = TType.Struct; + tmp1235.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1235, 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 executeLastDataQueryV2_args 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 override string ToString() + { + var tmp1236 = new StringBuilder("executeLastDataQueryV2_args("); + int tmp1237 = 0; + if((Req != null) && __isset.req) + { + if(0 < tmp1237++) { tmp1236.Append(", "); } + tmp1236.Append("Req: "); + Req.ToString(tmp1236); + } + tmp1236.Append(')'); + return tmp1236.ToString(); + } + } + + + public partial class executeLastDataQueryV2_result : TBase + { + private TSExecuteStatementResp _success; + + public TSExecuteStatementResp Success + { + get + { + return _success; + } + set + { + __isset.success = true; + this._success = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool success; + } + + public executeLastDataQueryV2_result() + { + } + + 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); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1238 = new TStruct("executeLastDataQueryV2_result"); + await oprot.WriteStructBeginAsync(tmp1238, cancellationToken); + var tmp1239 = new TField(); + + if(this.__isset.success) + { + if (Success != null) + { + tmp1239.Name = "Success"; + tmp1239.Type = TType.Struct; + tmp1239.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1239, 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 executeLastDataQueryV2_result 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 override string ToString() + { + var tmp1240 = new StringBuilder("executeLastDataQueryV2_result("); + int tmp1241 = 0; + if((Success != null) && __isset.success) + { + if(0 < tmp1241++) { tmp1240.Append(", "); } + tmp1240.Append("Success: "); + Success.ToString(tmp1240); + } + tmp1240.Append(')'); + return tmp1240.ToString(); + } + } + + + public partial class executeFastLastDataQueryForOnePrefixPath_args : TBase + { + private TSFastLastDataQueryForOnePrefixPathReq _req; + + public TSFastLastDataQueryForOnePrefixPathReq Req + { + get + { + return _req; + } + set + { + __isset.req = true; + this._req = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool req; + } + + public executeFastLastDataQueryForOnePrefixPath_args() + { + } + + 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 TSFastLastDataQueryForOnePrefixPathReq(); + 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 global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1242 = new TStruct("executeFastLastDataQueryForOnePrefixPath_args"); + await oprot.WriteStructBeginAsync(tmp1242, cancellationToken); + var tmp1243 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1243.Name = "req"; + tmp1243.Type = TType.Struct; + tmp1243.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1243, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -5498,7 +6503,7 @@ public executeLastDataQueryV2Args() public override bool Equals(object that) { - if (!(that is executeLastDataQueryV2Args other)) return false; + if (!(that is executeFastLastDataQueryForOnePrefixPath_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -5516,21 +6521,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeLastDataQueryV2_args("); - int tmp437 = 0; + var tmp1244 = new StringBuilder("executeFastLastDataQueryForOnePrefixPath_args("); + int tmp1245 = 0; if((Req != null) && __isset.req) { - if(0 < tmp437++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1245++) { tmp1244.Append(", "); } + tmp1244.Append("Req: "); + Req.ToString(tmp1244); } - sb.Append(')'); - return sb.ToString(); + tmp1244.Append(')'); + return tmp1244.ToString(); } } - public partial class executeLastDataQueryV2Result : TBase + public partial class executeFastLastDataQueryForOnePrefixPath_result : TBase { private TSExecuteStatementResp _success; @@ -5554,7 +6559,7 @@ public struct Isset public bool success; } - public executeLastDataQueryV2Result() + public executeFastLastDataQueryForOnePrefixPath_result() { } @@ -5607,18 +6612,18 @@ public executeLastDataQueryV2Result() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeLastDataQueryV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1246 = new TStruct("executeFastLastDataQueryForOnePrefixPath_result"); + await oprot.WriteStructBeginAsync(tmp1246, cancellationToken); + var tmp1247 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1247.Name = "Success"; + tmp1247.Type = TType.Struct; + tmp1247.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1247, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -5634,7 +6639,7 @@ public executeLastDataQueryV2Result() public override bool Equals(object that) { - if (!(that is executeLastDataQueryV2Result other)) return false; + if (!(that is executeFastLastDataQueryForOnePrefixPath_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -5652,21 +6657,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeLastDataQueryV2_result("); - int tmp438 = 0; + var tmp1248 = new StringBuilder("executeFastLastDataQueryForOnePrefixPath_result("); + int tmp1249 = 0; if((Success != null) && __isset.success) { - if(0 < tmp438++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1249++) { tmp1248.Append(", "); } + tmp1248.Append("Success: "); + Success.ToString(tmp1248); } - sb.Append(')'); - return sb.ToString(); + tmp1248.Append(')'); + return tmp1248.ToString(); } } - public partial class executeFastLastDataQueryForOneDeviceV2Args : TBase + public partial class executeFastLastDataQueryForOneDeviceV2_args : TBase { private TSFastLastDataQueryForOneDeviceReq _req; @@ -5690,7 +6695,7 @@ public struct Isset public bool req; } - public executeFastLastDataQueryForOneDeviceV2Args() + public executeFastLastDataQueryForOneDeviceV2_args() { } @@ -5743,15 +6748,15 @@ public executeFastLastDataQueryForOneDeviceV2Args() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeFastLastDataQueryForOneDeviceV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1250 = new TStruct("executeFastLastDataQueryForOneDeviceV2_args"); + await oprot.WriteStructBeginAsync(tmp1250, cancellationToken); + var tmp1251 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1251.Name = "req"; + tmp1251.Type = TType.Struct; + tmp1251.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1251, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -5766,7 +6771,7 @@ public executeFastLastDataQueryForOneDeviceV2Args() public override bool Equals(object that) { - if (!(that is executeFastLastDataQueryForOneDeviceV2Args other)) return false; + if (!(that is executeFastLastDataQueryForOneDeviceV2_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -5784,21 +6789,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeFastLastDataQueryForOneDeviceV2_args("); - int tmp439 = 0; + var tmp1252 = new StringBuilder("executeFastLastDataQueryForOneDeviceV2_args("); + int tmp1253 = 0; if((Req != null) && __isset.req) { - if(0 < tmp439++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1253++) { tmp1252.Append(", "); } + tmp1252.Append("Req: "); + Req.ToString(tmp1252); } - sb.Append(')'); - return sb.ToString(); + tmp1252.Append(')'); + return tmp1252.ToString(); } } - public partial class executeFastLastDataQueryForOneDeviceV2Result : TBase + public partial class executeFastLastDataQueryForOneDeviceV2_result : TBase { private TSExecuteStatementResp _success; @@ -5822,7 +6827,7 @@ public struct Isset public bool success; } - public executeFastLastDataQueryForOneDeviceV2Result() + public executeFastLastDataQueryForOneDeviceV2_result() { } @@ -5875,18 +6880,18 @@ public executeFastLastDataQueryForOneDeviceV2Result() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeFastLastDataQueryForOneDeviceV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1254 = new TStruct("executeFastLastDataQueryForOneDeviceV2_result"); + await oprot.WriteStructBeginAsync(tmp1254, cancellationToken); + var tmp1255 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1255.Name = "Success"; + tmp1255.Type = TType.Struct; + tmp1255.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1255, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -5902,7 +6907,7 @@ public executeFastLastDataQueryForOneDeviceV2Result() public override bool Equals(object that) { - if (!(that is executeFastLastDataQueryForOneDeviceV2Result other)) return false; + if (!(that is executeFastLastDataQueryForOneDeviceV2_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -5920,21 +6925,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeFastLastDataQueryForOneDeviceV2_result("); - int tmp440 = 0; + var tmp1256 = new StringBuilder("executeFastLastDataQueryForOneDeviceV2_result("); + int tmp1257 = 0; if((Success != null) && __isset.success) { - if(0 < tmp440++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1257++) { tmp1256.Append(", "); } + tmp1256.Append("Success: "); + Success.ToString(tmp1256); } - sb.Append(')'); - return sb.ToString(); + tmp1256.Append(')'); + return tmp1256.ToString(); } } - public partial class executeAggregationQueryV2Args : TBase + public partial class executeAggregationQueryV2_args : TBase { private TSAggregationQueryReq _req; @@ -5958,7 +6963,7 @@ public struct Isset public bool req; } - public executeAggregationQueryV2Args() + public executeAggregationQueryV2_args() { } @@ -6011,15 +7016,15 @@ public executeAggregationQueryV2Args() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeAggregationQueryV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1258 = new TStruct("executeAggregationQueryV2_args"); + await oprot.WriteStructBeginAsync(tmp1258, cancellationToken); + var tmp1259 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1259.Name = "req"; + tmp1259.Type = TType.Struct; + tmp1259.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1259, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -6034,7 +7039,7 @@ public executeAggregationQueryV2Args() public override bool Equals(object that) { - if (!(that is executeAggregationQueryV2Args other)) return false; + if (!(that is executeAggregationQueryV2_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -6052,21 +7057,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeAggregationQueryV2_args("); - int tmp441 = 0; + var tmp1260 = new StringBuilder("executeAggregationQueryV2_args("); + int tmp1261 = 0; if((Req != null) && __isset.req) { - if(0 < tmp441++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1261++) { tmp1260.Append(", "); } + tmp1260.Append("Req: "); + Req.ToString(tmp1260); } - sb.Append(')'); - return sb.ToString(); + tmp1260.Append(')'); + return tmp1260.ToString(); } } - public partial class executeAggregationQueryV2Result : TBase + public partial class executeAggregationQueryV2_result : TBase { private TSExecuteStatementResp _success; @@ -6090,7 +7095,7 @@ public struct Isset public bool success; } - public executeAggregationQueryV2Result() + public executeAggregationQueryV2_result() { } @@ -6143,18 +7148,18 @@ public executeAggregationQueryV2Result() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeAggregationQueryV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1262 = new TStruct("executeAggregationQueryV2_result"); + await oprot.WriteStructBeginAsync(tmp1262, cancellationToken); + var tmp1263 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1263.Name = "Success"; + tmp1263.Type = TType.Struct; + tmp1263.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1263, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -6170,7 +7175,7 @@ public executeAggregationQueryV2Result() public override bool Equals(object that) { - if (!(that is executeAggregationQueryV2Result other)) return false; + if (!(that is executeAggregationQueryV2_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -6188,21 +7193,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeAggregationQueryV2_result("); - int tmp442 = 0; + var tmp1264 = new StringBuilder("executeAggregationQueryV2_result("); + int tmp1265 = 0; if((Success != null) && __isset.success) { - if(0 < tmp442++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1265++) { tmp1264.Append(", "); } + tmp1264.Append("Success: "); + Success.ToString(tmp1264); } - sb.Append(')'); - return sb.ToString(); + tmp1264.Append(')'); + return tmp1264.ToString(); } } - public partial class executeGroupByQueryIntervalQueryArgs : TBase + public partial class executeGroupByQueryIntervalQuery_args : TBase { private TSGroupByQueryIntervalReq _req; @@ -6226,7 +7231,7 @@ public struct Isset public bool req; } - public executeGroupByQueryIntervalQueryArgs() + public executeGroupByQueryIntervalQuery_args() { } @@ -6279,15 +7284,15 @@ public executeGroupByQueryIntervalQueryArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeGroupByQueryIntervalQuery_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1266 = new TStruct("executeGroupByQueryIntervalQuery_args"); + await oprot.WriteStructBeginAsync(tmp1266, cancellationToken); + var tmp1267 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1267.Name = "req"; + tmp1267.Type = TType.Struct; + tmp1267.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1267, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -6302,7 +7307,7 @@ public executeGroupByQueryIntervalQueryArgs() public override bool Equals(object that) { - if (!(that is executeGroupByQueryIntervalQueryArgs other)) return false; + if (!(that is executeGroupByQueryIntervalQuery_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -6320,21 +7325,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeGroupByQueryIntervalQuery_args("); - int tmp443 = 0; + var tmp1268 = new StringBuilder("executeGroupByQueryIntervalQuery_args("); + int tmp1269 = 0; if((Req != null) && __isset.req) { - if(0 < tmp443++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1269++) { tmp1268.Append(", "); } + tmp1268.Append("Req: "); + Req.ToString(tmp1268); } - sb.Append(')'); - return sb.ToString(); + tmp1268.Append(')'); + return tmp1268.ToString(); } } - public partial class executeGroupByQueryIntervalQueryResult : TBase + public partial class executeGroupByQueryIntervalQuery_result : TBase { private TSExecuteStatementResp _success; @@ -6358,7 +7363,7 @@ public struct Isset public bool success; } - public executeGroupByQueryIntervalQueryResult() + public executeGroupByQueryIntervalQuery_result() { } @@ -6411,18 +7416,18 @@ public executeGroupByQueryIntervalQueryResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeGroupByQueryIntervalQuery_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1270 = new TStruct("executeGroupByQueryIntervalQuery_result"); + await oprot.WriteStructBeginAsync(tmp1270, cancellationToken); + var tmp1271 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1271.Name = "Success"; + tmp1271.Type = TType.Struct; + tmp1271.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1271, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -6438,7 +7443,7 @@ public executeGroupByQueryIntervalQueryResult() public override bool Equals(object that) { - if (!(that is executeGroupByQueryIntervalQueryResult other)) return false; + if (!(that is executeGroupByQueryIntervalQuery_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -6456,21 +7461,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeGroupByQueryIntervalQuery_result("); - int tmp444 = 0; + var tmp1272 = new StringBuilder("executeGroupByQueryIntervalQuery_result("); + int tmp1273 = 0; if((Success != null) && __isset.success) { - if(0 < tmp444++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1273++) { tmp1272.Append(", "); } + tmp1272.Append("Success: "); + Success.ToString(tmp1272); } - sb.Append(')'); - return sb.ToString(); + tmp1272.Append(')'); + return tmp1272.ToString(); } } - public partial class fetchResultsV2Args : TBase + public partial class fetchResultsV2_args : TBase { private TSFetchResultsReq _req; @@ -6494,7 +7499,7 @@ public struct Isset public bool req; } - public fetchResultsV2Args() + public fetchResultsV2_args() { } @@ -6547,15 +7552,15 @@ public fetchResultsV2Args() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("fetchResultsV2_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1274 = new TStruct("fetchResultsV2_args"); + await oprot.WriteStructBeginAsync(tmp1274, cancellationToken); + var tmp1275 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1275.Name = "req"; + tmp1275.Type = TType.Struct; + tmp1275.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1275, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -6570,7 +7575,7 @@ public fetchResultsV2Args() public override bool Equals(object that) { - if (!(that is fetchResultsV2Args other)) return false; + if (!(that is fetchResultsV2_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -6588,21 +7593,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("fetchResultsV2_args("); - int tmp445 = 0; + var tmp1276 = new StringBuilder("fetchResultsV2_args("); + int tmp1277 = 0; if((Req != null) && __isset.req) { - if(0 < tmp445++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1277++) { tmp1276.Append(", "); } + tmp1276.Append("Req: "); + Req.ToString(tmp1276); } - sb.Append(')'); - return sb.ToString(); + tmp1276.Append(')'); + return tmp1276.ToString(); } } - public partial class fetchResultsV2Result : TBase + public partial class fetchResultsV2_result : TBase { private TSFetchResultsResp _success; @@ -6626,7 +7631,7 @@ public struct Isset public bool success; } - public fetchResultsV2Result() + public fetchResultsV2_result() { } @@ -6679,18 +7684,18 @@ public fetchResultsV2Result() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("fetchResultsV2_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1278 = new TStruct("fetchResultsV2_result"); + await oprot.WriteStructBeginAsync(tmp1278, cancellationToken); + var tmp1279 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1279.Name = "Success"; + tmp1279.Type = TType.Struct; + tmp1279.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1279, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -6706,7 +7711,7 @@ public fetchResultsV2Result() public override bool Equals(object that) { - if (!(that is fetchResultsV2Result other)) return false; + if (!(that is fetchResultsV2_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -6724,21 +7729,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("fetchResultsV2_result("); - int tmp446 = 0; + var tmp1280 = new StringBuilder("fetchResultsV2_result("); + int tmp1281 = 0; if((Success != null) && __isset.success) { - if(0 < tmp446++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1281++) { tmp1280.Append(", "); } + tmp1280.Append("Success: "); + Success.ToString(tmp1280); } - sb.Append(')'); - return sb.ToString(); + tmp1280.Append(')'); + return tmp1280.ToString(); } } - public partial class openSessionArgs : TBase + public partial class openSession_args : TBase { private TSOpenSessionReq _req; @@ -6762,7 +7767,7 @@ public struct Isset public bool req; } - public openSessionArgs() + public openSession_args() { } @@ -6815,15 +7820,15 @@ public openSessionArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("openSession_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1282 = new TStruct("openSession_args"); + await oprot.WriteStructBeginAsync(tmp1282, cancellationToken); + var tmp1283 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1283.Name = "req"; + tmp1283.Type = TType.Struct; + tmp1283.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1283, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -6838,7 +7843,7 @@ public openSessionArgs() public override bool Equals(object that) { - if (!(that is openSessionArgs other)) return false; + if (!(that is openSession_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -6856,21 +7861,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("openSession_args("); - int tmp447 = 0; + var tmp1284 = new StringBuilder("openSession_args("); + int tmp1285 = 0; if((Req != null) && __isset.req) { - if(0 < tmp447++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1285++) { tmp1284.Append(", "); } + tmp1284.Append("Req: "); + Req.ToString(tmp1284); } - sb.Append(')'); - return sb.ToString(); + tmp1284.Append(')'); + return tmp1284.ToString(); } } - public partial class openSessionResult : TBase + public partial class openSession_result : TBase { private TSOpenSessionResp _success; @@ -6894,7 +7899,7 @@ public struct Isset public bool success; } - public openSessionResult() + public openSession_result() { } @@ -6947,18 +7952,18 @@ public openSessionResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("openSession_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1286 = new TStruct("openSession_result"); + await oprot.WriteStructBeginAsync(tmp1286, cancellationToken); + var tmp1287 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1287.Name = "Success"; + tmp1287.Type = TType.Struct; + tmp1287.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1287, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -6974,7 +7979,7 @@ public openSessionResult() public override bool Equals(object that) { - if (!(that is openSessionResult other)) return false; + if (!(that is openSession_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -6992,21 +7997,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("openSession_result("); - int tmp448 = 0; + var tmp1288 = new StringBuilder("openSession_result("); + int tmp1289 = 0; if((Success != null) && __isset.success) { - if(0 < tmp448++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1289++) { tmp1288.Append(", "); } + tmp1288.Append("Success: "); + Success.ToString(tmp1288); } - sb.Append(')'); - return sb.ToString(); + tmp1288.Append(')'); + return tmp1288.ToString(); } } - public partial class closeSessionArgs : TBase + public partial class closeSession_args : TBase { private TSCloseSessionReq _req; @@ -7030,7 +8035,7 @@ public struct Isset public bool req; } - public closeSessionArgs() + public closeSession_args() { } @@ -7083,15 +8088,15 @@ public closeSessionArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("closeSession_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1290 = new TStruct("closeSession_args"); + await oprot.WriteStructBeginAsync(tmp1290, cancellationToken); + var tmp1291 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1291.Name = "req"; + tmp1291.Type = TType.Struct; + tmp1291.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1291, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -7106,7 +8111,7 @@ public closeSessionArgs() public override bool Equals(object that) { - if (!(that is closeSessionArgs other)) return false; + if (!(that is closeSession_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -7124,21 +8129,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("closeSession_args("); - int tmp449 = 0; + var tmp1292 = new StringBuilder("closeSession_args("); + int tmp1293 = 0; if((Req != null) && __isset.req) { - if(0 < tmp449++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1293++) { tmp1292.Append(", "); } + tmp1292.Append("Req: "); + Req.ToString(tmp1292); } - sb.Append(')'); - return sb.ToString(); + tmp1292.Append(')'); + return tmp1292.ToString(); } } - public partial class closeSessionResult : TBase + public partial class closeSession_result : TBase { private TSStatus _success; @@ -7162,7 +8167,7 @@ public struct Isset public bool success; } - public closeSessionResult() + public closeSession_result() { } @@ -7215,18 +8220,18 @@ public closeSessionResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("closeSession_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1294 = new TStruct("closeSession_result"); + await oprot.WriteStructBeginAsync(tmp1294, cancellationToken); + var tmp1295 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1295.Name = "Success"; + tmp1295.Type = TType.Struct; + tmp1295.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1295, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -7242,7 +8247,7 @@ public closeSessionResult() public override bool Equals(object that) { - if (!(that is closeSessionResult other)) return false; + if (!(that is closeSession_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -7260,21 +8265,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("closeSession_result("); - int tmp450 = 0; + var tmp1296 = new StringBuilder("closeSession_result("); + int tmp1297 = 0; if((Success != null) && __isset.success) { - if(0 < tmp450++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1297++) { tmp1296.Append(", "); } + tmp1296.Append("Success: "); + Success.ToString(tmp1296); } - sb.Append(')'); - return sb.ToString(); + tmp1296.Append(')'); + return tmp1296.ToString(); } } - public partial class executeStatementArgs : TBase + public partial class executeStatement_args : TBase { private TSExecuteStatementReq _req; @@ -7298,7 +8303,7 @@ public struct Isset public bool req; } - public executeStatementArgs() + public executeStatement_args() { } @@ -7351,15 +8356,15 @@ public executeStatementArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeStatement_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1298 = new TStruct("executeStatement_args"); + await oprot.WriteStructBeginAsync(tmp1298, cancellationToken); + var tmp1299 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1299.Name = "req"; + tmp1299.Type = TType.Struct; + tmp1299.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1299, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -7374,7 +8379,7 @@ public executeStatementArgs() public override bool Equals(object that) { - if (!(that is executeStatementArgs other)) return false; + if (!(that is executeStatement_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -7392,21 +8397,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeStatement_args("); - int tmp451 = 0; + var tmp1300 = new StringBuilder("executeStatement_args("); + int tmp1301 = 0; if((Req != null) && __isset.req) { - if(0 < tmp451++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1301++) { tmp1300.Append(", "); } + tmp1300.Append("Req: "); + Req.ToString(tmp1300); } - sb.Append(')'); - return sb.ToString(); + tmp1300.Append(')'); + return tmp1300.ToString(); } } - public partial class executeStatementResult : TBase + public partial class executeStatement_result : TBase { private TSExecuteStatementResp _success; @@ -7430,7 +8435,7 @@ public struct Isset public bool success; } - public executeStatementResult() + public executeStatement_result() { } @@ -7483,18 +8488,18 @@ public executeStatementResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeStatement_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1302 = new TStruct("executeStatement_result"); + await oprot.WriteStructBeginAsync(tmp1302, cancellationToken); + var tmp1303 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1303.Name = "Success"; + tmp1303.Type = TType.Struct; + tmp1303.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1303, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -7510,7 +8515,7 @@ public executeStatementResult() public override bool Equals(object that) { - if (!(that is executeStatementResult other)) return false; + if (!(that is executeStatement_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -7528,21 +8533,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeStatement_result("); - int tmp452 = 0; + var tmp1304 = new StringBuilder("executeStatement_result("); + int tmp1305 = 0; if((Success != null) && __isset.success) { - if(0 < tmp452++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1305++) { tmp1304.Append(", "); } + tmp1304.Append("Success: "); + Success.ToString(tmp1304); } - sb.Append(')'); - return sb.ToString(); + tmp1304.Append(')'); + return tmp1304.ToString(); } } - public partial class executeBatchStatementArgs : TBase + public partial class executeBatchStatement_args : TBase { private TSExecuteBatchStatementReq _req; @@ -7566,7 +8571,7 @@ public struct Isset public bool req; } - public executeBatchStatementArgs() + public executeBatchStatement_args() { } @@ -7619,15 +8624,15 @@ public executeBatchStatementArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeBatchStatement_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1306 = new TStruct("executeBatchStatement_args"); + await oprot.WriteStructBeginAsync(tmp1306, cancellationToken); + var tmp1307 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1307.Name = "req"; + tmp1307.Type = TType.Struct; + tmp1307.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1307, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -7642,7 +8647,7 @@ public executeBatchStatementArgs() public override bool Equals(object that) { - if (!(that is executeBatchStatementArgs other)) return false; + if (!(that is executeBatchStatement_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -7660,21 +8665,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeBatchStatement_args("); - int tmp453 = 0; + var tmp1308 = new StringBuilder("executeBatchStatement_args("); + int tmp1309 = 0; if((Req != null) && __isset.req) { - if(0 < tmp453++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1309++) { tmp1308.Append(", "); } + tmp1308.Append("Req: "); + Req.ToString(tmp1308); } - sb.Append(')'); - return sb.ToString(); + tmp1308.Append(')'); + return tmp1308.ToString(); } } - public partial class executeBatchStatementResult : TBase + public partial class executeBatchStatement_result : TBase { private TSStatus _success; @@ -7698,7 +8703,7 @@ public struct Isset public bool success; } - public executeBatchStatementResult() + public executeBatchStatement_result() { } @@ -7751,18 +8756,18 @@ public executeBatchStatementResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeBatchStatement_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1310 = new TStruct("executeBatchStatement_result"); + await oprot.WriteStructBeginAsync(tmp1310, cancellationToken); + var tmp1311 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1311.Name = "Success"; + tmp1311.Type = TType.Struct; + tmp1311.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1311, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -7778,7 +8783,7 @@ public executeBatchStatementResult() public override bool Equals(object that) { - if (!(that is executeBatchStatementResult other)) return false; + if (!(that is executeBatchStatement_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -7796,21 +8801,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeBatchStatement_result("); - int tmp454 = 0; + var tmp1312 = new StringBuilder("executeBatchStatement_result("); + int tmp1313 = 0; if((Success != null) && __isset.success) { - if(0 < tmp454++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1313++) { tmp1312.Append(", "); } + tmp1312.Append("Success: "); + Success.ToString(tmp1312); } - sb.Append(')'); - return sb.ToString(); + tmp1312.Append(')'); + return tmp1312.ToString(); } } - public partial class executeQueryStatementArgs : TBase + public partial class executeQueryStatement_args : TBase { private TSExecuteStatementReq _req; @@ -7834,7 +8839,7 @@ public struct Isset public bool req; } - public executeQueryStatementArgs() + public executeQueryStatement_args() { } @@ -7887,15 +8892,15 @@ public executeQueryStatementArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeQueryStatement_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1314 = new TStruct("executeQueryStatement_args"); + await oprot.WriteStructBeginAsync(tmp1314, cancellationToken); + var tmp1315 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1315.Name = "req"; + tmp1315.Type = TType.Struct; + tmp1315.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1315, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -7910,7 +8915,7 @@ public executeQueryStatementArgs() public override bool Equals(object that) { - if (!(that is executeQueryStatementArgs other)) return false; + if (!(that is executeQueryStatement_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -7928,21 +8933,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeQueryStatement_args("); - int tmp455 = 0; + var tmp1316 = new StringBuilder("executeQueryStatement_args("); + int tmp1317 = 0; if((Req != null) && __isset.req) { - if(0 < tmp455++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1317++) { tmp1316.Append(", "); } + tmp1316.Append("Req: "); + Req.ToString(tmp1316); } - sb.Append(')'); - return sb.ToString(); + tmp1316.Append(')'); + return tmp1316.ToString(); } } - public partial class executeQueryStatementResult : TBase + public partial class executeQueryStatement_result : TBase { private TSExecuteStatementResp _success; @@ -7966,7 +8971,7 @@ public struct Isset public bool success; } - public executeQueryStatementResult() + public executeQueryStatement_result() { } @@ -8019,18 +9024,18 @@ public executeQueryStatementResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeQueryStatement_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1318 = new TStruct("executeQueryStatement_result"); + await oprot.WriteStructBeginAsync(tmp1318, cancellationToken); + var tmp1319 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1319.Name = "Success"; + tmp1319.Type = TType.Struct; + tmp1319.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1319, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -8046,7 +9051,7 @@ public executeQueryStatementResult() public override bool Equals(object that) { - if (!(that is executeQueryStatementResult other)) return false; + if (!(that is executeQueryStatement_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -8064,21 +9069,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeQueryStatement_result("); - int tmp456 = 0; + var tmp1320 = new StringBuilder("executeQueryStatement_result("); + int tmp1321 = 0; if((Success != null) && __isset.success) { - if(0 < tmp456++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1321++) { tmp1320.Append(", "); } + tmp1320.Append("Success: "); + Success.ToString(tmp1320); } - sb.Append(')'); - return sb.ToString(); + tmp1320.Append(')'); + return tmp1320.ToString(); } } - public partial class executeUpdateStatementArgs : TBase + public partial class executeUpdateStatement_args : TBase { private TSExecuteStatementReq _req; @@ -8102,7 +9107,7 @@ public struct Isset public bool req; } - public executeUpdateStatementArgs() + public executeUpdateStatement_args() { } @@ -8155,15 +9160,15 @@ public executeUpdateStatementArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeUpdateStatement_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1322 = new TStruct("executeUpdateStatement_args"); + await oprot.WriteStructBeginAsync(tmp1322, cancellationToken); + var tmp1323 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1323.Name = "req"; + tmp1323.Type = TType.Struct; + tmp1323.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1323, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -8178,7 +9183,7 @@ public executeUpdateStatementArgs() public override bool Equals(object that) { - if (!(that is executeUpdateStatementArgs other)) return false; + if (!(that is executeUpdateStatement_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -8196,21 +9201,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeUpdateStatement_args("); - int tmp457 = 0; + var tmp1324 = new StringBuilder("executeUpdateStatement_args("); + int tmp1325 = 0; if((Req != null) && __isset.req) { - if(0 < tmp457++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1325++) { tmp1324.Append(", "); } + tmp1324.Append("Req: "); + Req.ToString(tmp1324); } - sb.Append(')'); - return sb.ToString(); + tmp1324.Append(')'); + return tmp1324.ToString(); } } - public partial class executeUpdateStatementResult : TBase + public partial class executeUpdateStatement_result : TBase { private TSExecuteStatementResp _success; @@ -8234,7 +9239,7 @@ public struct Isset public bool success; } - public executeUpdateStatementResult() + public executeUpdateStatement_result() { } @@ -8287,18 +9292,18 @@ public executeUpdateStatementResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeUpdateStatement_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1326 = new TStruct("executeUpdateStatement_result"); + await oprot.WriteStructBeginAsync(tmp1326, cancellationToken); + var tmp1327 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1327.Name = "Success"; + tmp1327.Type = TType.Struct; + tmp1327.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1327, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -8314,7 +9319,7 @@ public executeUpdateStatementResult() public override bool Equals(object that) { - if (!(that is executeUpdateStatementResult other)) return false; + if (!(that is executeUpdateStatement_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -8332,21 +9337,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeUpdateStatement_result("); - int tmp458 = 0; + var tmp1328 = new StringBuilder("executeUpdateStatement_result("); + int tmp1329 = 0; if((Success != null) && __isset.success) { - if(0 < tmp458++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1329++) { tmp1328.Append(", "); } + tmp1328.Append("Success: "); + Success.ToString(tmp1328); } - sb.Append(')'); - return sb.ToString(); + tmp1328.Append(')'); + return tmp1328.ToString(); } } - public partial class fetchResultsArgs : TBase + public partial class fetchResults_args : TBase { private TSFetchResultsReq _req; @@ -8370,7 +9375,7 @@ public struct Isset public bool req; } - public fetchResultsArgs() + public fetchResults_args() { } @@ -8423,15 +9428,15 @@ public fetchResultsArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("fetchResults_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1330 = new TStruct("fetchResults_args"); + await oprot.WriteStructBeginAsync(tmp1330, cancellationToken); + var tmp1331 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1331.Name = "req"; + tmp1331.Type = TType.Struct; + tmp1331.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1331, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -8446,7 +9451,7 @@ public fetchResultsArgs() public override bool Equals(object that) { - if (!(that is fetchResultsArgs other)) return false; + if (!(that is fetchResults_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -8464,21 +9469,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("fetchResults_args("); - int tmp459 = 0; + var tmp1332 = new StringBuilder("fetchResults_args("); + int tmp1333 = 0; if((Req != null) && __isset.req) { - if(0 < tmp459++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1333++) { tmp1332.Append(", "); } + tmp1332.Append("Req: "); + Req.ToString(tmp1332); } - sb.Append(')'); - return sb.ToString(); + tmp1332.Append(')'); + return tmp1332.ToString(); } } - public partial class fetchResultsResult : TBase + public partial class fetchResults_result : TBase { private TSFetchResultsResp _success; @@ -8502,7 +9507,7 @@ public struct Isset public bool success; } - public fetchResultsResult() + public fetchResults_result() { } @@ -8555,18 +9560,18 @@ public fetchResultsResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("fetchResults_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1334 = new TStruct("fetchResults_result"); + await oprot.WriteStructBeginAsync(tmp1334, cancellationToken); + var tmp1335 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1335.Name = "Success"; + tmp1335.Type = TType.Struct; + tmp1335.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1335, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -8582,7 +9587,7 @@ public fetchResultsResult() public override bool Equals(object that) { - if (!(that is fetchResultsResult other)) return false; + if (!(that is fetchResults_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -8600,21 +9605,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("fetchResults_result("); - int tmp460 = 0; + var tmp1336 = new StringBuilder("fetchResults_result("); + int tmp1337 = 0; if((Success != null) && __isset.success) { - if(0 < tmp460++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1337++) { tmp1336.Append(", "); } + tmp1336.Append("Success: "); + Success.ToString(tmp1336); } - sb.Append(')'); - return sb.ToString(); + tmp1336.Append(')'); + return tmp1336.ToString(); } } - public partial class fetchMetadataArgs : TBase + public partial class fetchMetadata_args : TBase { private TSFetchMetadataReq _req; @@ -8638,7 +9643,7 @@ public struct Isset public bool req; } - public fetchMetadataArgs() + public fetchMetadata_args() { } @@ -8691,15 +9696,15 @@ public fetchMetadataArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("fetchMetadata_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1338 = new TStruct("fetchMetadata_args"); + await oprot.WriteStructBeginAsync(tmp1338, cancellationToken); + var tmp1339 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1339.Name = "req"; + tmp1339.Type = TType.Struct; + tmp1339.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1339, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -8714,7 +9719,7 @@ public fetchMetadataArgs() public override bool Equals(object that) { - if (!(that is fetchMetadataArgs other)) return false; + if (!(that is fetchMetadata_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -8732,21 +9737,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("fetchMetadata_args("); - int tmp461 = 0; + var tmp1340 = new StringBuilder("fetchMetadata_args("); + int tmp1341 = 0; if((Req != null) && __isset.req) { - if(0 < tmp461++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1341++) { tmp1340.Append(", "); } + tmp1340.Append("Req: "); + Req.ToString(tmp1340); } - sb.Append(')'); - return sb.ToString(); + tmp1340.Append(')'); + return tmp1340.ToString(); } } - public partial class fetchMetadataResult : TBase + public partial class fetchMetadata_result : TBase { private TSFetchMetadataResp _success; @@ -8770,7 +9775,7 @@ public struct Isset public bool success; } - public fetchMetadataResult() + public fetchMetadata_result() { } @@ -8823,18 +9828,18 @@ public fetchMetadataResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("fetchMetadata_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1342 = new TStruct("fetchMetadata_result"); + await oprot.WriteStructBeginAsync(tmp1342, cancellationToken); + var tmp1343 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1343.Name = "Success"; + tmp1343.Type = TType.Struct; + tmp1343.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1343, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -8850,7 +9855,7 @@ public fetchMetadataResult() public override bool Equals(object that) { - if (!(that is fetchMetadataResult other)) return false; + if (!(that is fetchMetadata_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -8868,21 +9873,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("fetchMetadata_result("); - int tmp462 = 0; + var tmp1344 = new StringBuilder("fetchMetadata_result("); + int tmp1345 = 0; if((Success != null) && __isset.success) { - if(0 < tmp462++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1345++) { tmp1344.Append(", "); } + tmp1344.Append("Success: "); + Success.ToString(tmp1344); } - sb.Append(')'); - return sb.ToString(); + tmp1344.Append(')'); + return tmp1344.ToString(); } } - public partial class cancelOperationArgs : TBase + public partial class cancelOperation_args : TBase { private TSCancelOperationReq _req; @@ -8906,7 +9911,7 @@ public struct Isset public bool req; } - public cancelOperationArgs() + public cancelOperation_args() { } @@ -8959,15 +9964,15 @@ public cancelOperationArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("cancelOperation_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1346 = new TStruct("cancelOperation_args"); + await oprot.WriteStructBeginAsync(tmp1346, cancellationToken); + var tmp1347 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1347.Name = "req"; + tmp1347.Type = TType.Struct; + tmp1347.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1347, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -8982,7 +9987,7 @@ public cancelOperationArgs() public override bool Equals(object that) { - if (!(that is cancelOperationArgs other)) return false; + if (!(that is cancelOperation_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -9000,21 +10005,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("cancelOperation_args("); - int tmp463 = 0; + var tmp1348 = new StringBuilder("cancelOperation_args("); + int tmp1349 = 0; if((Req != null) && __isset.req) { - if(0 < tmp463++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1349++) { tmp1348.Append(", "); } + tmp1348.Append("Req: "); + Req.ToString(tmp1348); } - sb.Append(')'); - return sb.ToString(); + tmp1348.Append(')'); + return tmp1348.ToString(); } } - public partial class cancelOperationResult : TBase + public partial class cancelOperation_result : TBase { private TSStatus _success; @@ -9038,7 +10043,7 @@ public struct Isset public bool success; } - public cancelOperationResult() + public cancelOperation_result() { } @@ -9091,18 +10096,18 @@ public cancelOperationResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("cancelOperation_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1350 = new TStruct("cancelOperation_result"); + await oprot.WriteStructBeginAsync(tmp1350, cancellationToken); + var tmp1351 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1351.Name = "Success"; + tmp1351.Type = TType.Struct; + tmp1351.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1351, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -9118,7 +10123,7 @@ public cancelOperationResult() public override bool Equals(object that) { - if (!(that is cancelOperationResult other)) return false; + if (!(that is cancelOperation_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -9136,21 +10141,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("cancelOperation_result("); - int tmp464 = 0; + var tmp1352 = new StringBuilder("cancelOperation_result("); + int tmp1353 = 0; if((Success != null) && __isset.success) { - if(0 < tmp464++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1353++) { tmp1352.Append(", "); } + tmp1352.Append("Success: "); + Success.ToString(tmp1352); } - sb.Append(')'); - return sb.ToString(); + tmp1352.Append(')'); + return tmp1352.ToString(); } } - public partial class closeOperationArgs : TBase + public partial class closeOperation_args : TBase { private TSCloseOperationReq _req; @@ -9174,7 +10179,7 @@ public struct Isset public bool req; } - public closeOperationArgs() + public closeOperation_args() { } @@ -9227,15 +10232,15 @@ public closeOperationArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("closeOperation_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1354 = new TStruct("closeOperation_args"); + await oprot.WriteStructBeginAsync(tmp1354, cancellationToken); + var tmp1355 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1355.Name = "req"; + tmp1355.Type = TType.Struct; + tmp1355.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1355, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -9250,7 +10255,7 @@ public closeOperationArgs() public override bool Equals(object that) { - if (!(that is closeOperationArgs other)) return false; + if (!(that is closeOperation_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -9268,21 +10273,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("closeOperation_args("); - int tmp465 = 0; + var tmp1356 = new StringBuilder("closeOperation_args("); + int tmp1357 = 0; if((Req != null) && __isset.req) { - if(0 < tmp465++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1357++) { tmp1356.Append(", "); } + tmp1356.Append("Req: "); + Req.ToString(tmp1356); } - sb.Append(')'); - return sb.ToString(); + tmp1356.Append(')'); + return tmp1356.ToString(); } } - public partial class closeOperationResult : TBase + public partial class closeOperation_result : TBase { private TSStatus _success; @@ -9306,7 +10311,7 @@ public struct Isset public bool success; } - public closeOperationResult() + public closeOperation_result() { } @@ -9359,18 +10364,18 @@ public closeOperationResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("closeOperation_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1358 = new TStruct("closeOperation_result"); + await oprot.WriteStructBeginAsync(tmp1358, cancellationToken); + var tmp1359 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1359.Name = "Success"; + tmp1359.Type = TType.Struct; + tmp1359.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1359, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -9386,7 +10391,7 @@ public closeOperationResult() public override bool Equals(object that) { - if (!(that is closeOperationResult other)) return false; + if (!(that is closeOperation_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -9404,21 +10409,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("closeOperation_result("); - int tmp466 = 0; + var tmp1360 = new StringBuilder("closeOperation_result("); + int tmp1361 = 0; if((Success != null) && __isset.success) { - if(0 < tmp466++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1361++) { tmp1360.Append(", "); } + tmp1360.Append("Success: "); + Success.ToString(tmp1360); } - sb.Append(')'); - return sb.ToString(); + tmp1360.Append(')'); + return tmp1360.ToString(); } } - public partial class getTimeZoneArgs : TBase + public partial class getTimeZone_args : TBase { private long _sessionId; @@ -9442,7 +10447,7 @@ public struct Isset public bool sessionId; } - public getTimeZoneArgs() + public getTimeZone_args() { } @@ -9494,15 +10499,15 @@ public getTimeZoneArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("getTimeZone_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1362 = new TStruct("getTimeZone_args"); + await oprot.WriteStructBeginAsync(tmp1362, cancellationToken); + var tmp1363 = new TField(); if(__isset.sessionId) { - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1363.Name = "sessionId"; + tmp1363.Type = TType.I64; + tmp1363.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1363, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -9517,7 +10522,7 @@ public getTimeZoneArgs() public override bool Equals(object that) { - if (!(that is getTimeZoneArgs other)) return false; + if (!(that is getTimeZone_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))); } @@ -9535,21 +10540,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("getTimeZone_args("); - int tmp467 = 0; + var tmp1364 = new StringBuilder("getTimeZone_args("); + int tmp1365 = 0; if(__isset.sessionId) { - if(0 < tmp467++) { sb.Append(", "); } - sb.Append("SessionId: "); - SessionId.ToString(sb); + if(0 < tmp1365++) { tmp1364.Append(", "); } + tmp1364.Append("SessionId: "); + SessionId.ToString(tmp1364); } - sb.Append(')'); - return sb.ToString(); + tmp1364.Append(')'); + return tmp1364.ToString(); } } - public partial class getTimeZoneResult : TBase + public partial class getTimeZone_result : TBase { private TSGetTimeZoneResp _success; @@ -9573,7 +10578,7 @@ public struct Isset public bool success; } - public getTimeZoneResult() + public getTimeZone_result() { } @@ -9626,18 +10631,18 @@ public getTimeZoneResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("getTimeZone_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1366 = new TStruct("getTimeZone_result"); + await oprot.WriteStructBeginAsync(tmp1366, cancellationToken); + var tmp1367 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1367.Name = "Success"; + tmp1367.Type = TType.Struct; + tmp1367.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1367, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -9653,7 +10658,7 @@ public getTimeZoneResult() public override bool Equals(object that) { - if (!(that is getTimeZoneResult other)) return false; + if (!(that is getTimeZone_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -9671,21 +10676,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("getTimeZone_result("); - int tmp468 = 0; + var tmp1368 = new StringBuilder("getTimeZone_result("); + int tmp1369 = 0; if((Success != null) && __isset.success) { - if(0 < tmp468++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1369++) { tmp1368.Append(", "); } + tmp1368.Append("Success: "); + Success.ToString(tmp1368); } - sb.Append(')'); - return sb.ToString(); + tmp1368.Append(')'); + return tmp1368.ToString(); } } - public partial class setTimeZoneArgs : TBase + public partial class setTimeZone_args : TBase { private TSSetTimeZoneReq _req; @@ -9709,7 +10714,7 @@ public struct Isset public bool req; } - public setTimeZoneArgs() + public setTimeZone_args() { } @@ -9762,15 +10767,15 @@ public setTimeZoneArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("setTimeZone_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1370 = new TStruct("setTimeZone_args"); + await oprot.WriteStructBeginAsync(tmp1370, cancellationToken); + var tmp1371 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1371.Name = "req"; + tmp1371.Type = TType.Struct; + tmp1371.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1371, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -9785,7 +10790,7 @@ public setTimeZoneArgs() public override bool Equals(object that) { - if (!(that is setTimeZoneArgs other)) return false; + if (!(that is setTimeZone_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -9803,21 +10808,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("setTimeZone_args("); - int tmp469 = 0; + var tmp1372 = new StringBuilder("setTimeZone_args("); + int tmp1373 = 0; if((Req != null) && __isset.req) { - if(0 < tmp469++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1373++) { tmp1372.Append(", "); } + tmp1372.Append("Req: "); + Req.ToString(tmp1372); } - sb.Append(')'); - return sb.ToString(); + tmp1372.Append(')'); + return tmp1372.ToString(); } } - public partial class setTimeZoneResult : TBase + public partial class setTimeZone_result : TBase { private TSStatus _success; @@ -9841,7 +10846,7 @@ public struct Isset public bool success; } - public setTimeZoneResult() + public setTimeZone_result() { } @@ -9894,18 +10899,18 @@ public setTimeZoneResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("setTimeZone_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1374 = new TStruct("setTimeZone_result"); + await oprot.WriteStructBeginAsync(tmp1374, cancellationToken); + var tmp1375 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1375.Name = "Success"; + tmp1375.Type = TType.Struct; + tmp1375.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1375, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -9921,7 +10926,7 @@ public setTimeZoneResult() public override bool Equals(object that) { - if (!(that is setTimeZoneResult other)) return false; + if (!(that is setTimeZone_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -9939,24 +10944,24 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("setTimeZone_result("); - int tmp470 = 0; + var tmp1376 = new StringBuilder("setTimeZone_result("); + int tmp1377 = 0; if((Success != null) && __isset.success) { - if(0 < tmp470++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1377++) { tmp1376.Append(", "); } + tmp1376.Append("Success: "); + Success.ToString(tmp1376); } - sb.Append(')'); - return sb.ToString(); + tmp1376.Append(')'); + return tmp1376.ToString(); } } - public partial class getPropertiesArgs : TBase + public partial class getProperties_args : TBase { - public getPropertiesArgs() + public getProperties_args() { } @@ -9998,8 +11003,8 @@ public getPropertiesArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("getProperties_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); + var tmp1378 = new TStruct("getProperties_args"); + await oprot.WriteStructBeginAsync(tmp1378, cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -10011,7 +11016,7 @@ public getPropertiesArgs() public override bool Equals(object that) { - if (!(that is getPropertiesArgs other)) return false; + if (!(that is getProperties_args other)) return false; if (ReferenceEquals(this, other)) return true; return true; } @@ -10025,14 +11030,14 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("getProperties_args("); - sb.Append(')'); - return sb.ToString(); + var tmp1379 = new StringBuilder("getProperties_args("); + tmp1379.Append(')'); + return tmp1379.ToString(); } } - public partial class getPropertiesResult : TBase + public partial class getProperties_result : TBase { private ServerProperties _success; @@ -10056,7 +11061,7 @@ public struct Isset public bool success; } - public getPropertiesResult() + public getProperties_result() { } @@ -10109,18 +11114,18 @@ public getPropertiesResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("getProperties_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1381 = new TStruct("getProperties_result"); + await oprot.WriteStructBeginAsync(tmp1381, cancellationToken); + var tmp1382 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1382.Name = "Success"; + tmp1382.Type = TType.Struct; + tmp1382.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1382, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -10136,7 +11141,7 @@ public getPropertiesResult() public override bool Equals(object that) { - if (!(that is getPropertiesResult other)) return false; + if (!(that is getProperties_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -10154,21 +11159,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("getProperties_result("); - int tmp472 = 0; + var tmp1383 = new StringBuilder("getProperties_result("); + int tmp1384 = 0; if((Success != null) && __isset.success) { - if(0 < tmp472++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1384++) { tmp1383.Append(", "); } + tmp1383.Append("Success: "); + Success.ToString(tmp1383); } - sb.Append(')'); - return sb.ToString(); + tmp1383.Append(')'); + return tmp1383.ToString(); } } - public partial class setStorageGroupArgs : TBase + public partial class setStorageGroup_args : TBase { private long _sessionId; private string _storageGroup; @@ -10207,7 +11212,7 @@ public struct Isset public bool storageGroup; } - public setStorageGroupArgs() + public setStorageGroup_args() { } @@ -10269,24 +11274,24 @@ public setStorageGroupArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("setStorageGroup_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1385 = new TStruct("setStorageGroup_args"); + await oprot.WriteStructBeginAsync(tmp1385, cancellationToken); + var tmp1386 = new TField(); if(__isset.sessionId) { - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1386.Name = "sessionId"; + tmp1386.Type = TType.I64; + tmp1386.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1386, 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); + tmp1386.Name = "storageGroup"; + tmp1386.Type = TType.String; + tmp1386.ID = 2; + await oprot.WriteFieldBeginAsync(tmp1386, cancellationToken); await oprot.WriteStringAsync(StorageGroup, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -10301,7 +11306,7 @@ public setStorageGroupArgs() public override bool Equals(object that) { - if (!(that is setStorageGroupArgs other)) return false; + if (!(that is setStorageGroup_args 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)))); @@ -10324,27 +11329,27 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("setStorageGroup_args("); - int tmp473 = 0; + var tmp1387 = new StringBuilder("setStorageGroup_args("); + int tmp1388 = 0; if(__isset.sessionId) { - if(0 < tmp473++) { sb.Append(", "); } - sb.Append("SessionId: "); - SessionId.ToString(sb); + if(0 < tmp1388++) { tmp1387.Append(", "); } + tmp1387.Append("SessionId: "); + SessionId.ToString(tmp1387); } if((StorageGroup != null) && __isset.storageGroup) { - if(0 < tmp473++) { sb.Append(", "); } - sb.Append("StorageGroup: "); - StorageGroup.ToString(sb); + if(0 < tmp1388++) { tmp1387.Append(", "); } + tmp1387.Append("StorageGroup: "); + StorageGroup.ToString(tmp1387); } - sb.Append(')'); - return sb.ToString(); + tmp1387.Append(')'); + return tmp1387.ToString(); } } - public partial class setStorageGroupResult : TBase + public partial class setStorageGroup_result : TBase { private TSStatus _success; @@ -10368,7 +11373,7 @@ public struct Isset public bool success; } - public setStorageGroupResult() + public setStorageGroup_result() { } @@ -10421,18 +11426,18 @@ public setStorageGroupResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("setStorageGroup_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1389 = new TStruct("setStorageGroup_result"); + await oprot.WriteStructBeginAsync(tmp1389, cancellationToken); + var tmp1390 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1390.Name = "Success"; + tmp1390.Type = TType.Struct; + tmp1390.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1390, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -10448,7 +11453,7 @@ public setStorageGroupResult() public override bool Equals(object that) { - if (!(that is setStorageGroupResult other)) return false; + if (!(that is setStorageGroup_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -10466,21 +11471,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("setStorageGroup_result("); - int tmp474 = 0; + var tmp1391 = new StringBuilder("setStorageGroup_result("); + int tmp1392 = 0; if((Success != null) && __isset.success) { - if(0 < tmp474++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1392++) { tmp1391.Append(", "); } + tmp1391.Append("Success: "); + Success.ToString(tmp1391); } - sb.Append(')'); - return sb.ToString(); + tmp1391.Append(')'); + return tmp1391.ToString(); } } - public partial class createTimeseriesArgs : TBase + public partial class createTimeseries_args : TBase { private TSCreateTimeseriesReq _req; @@ -10504,7 +11509,7 @@ public struct Isset public bool req; } - public createTimeseriesArgs() + public createTimeseries_args() { } @@ -10557,15 +11562,15 @@ public createTimeseriesArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("createTimeseries_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1393 = new TStruct("createTimeseries_args"); + await oprot.WriteStructBeginAsync(tmp1393, cancellationToken); + var tmp1394 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1394.Name = "req"; + tmp1394.Type = TType.Struct; + tmp1394.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1394, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -10580,7 +11585,7 @@ public createTimeseriesArgs() public override bool Equals(object that) { - if (!(that is createTimeseriesArgs other)) return false; + if (!(that is createTimeseries_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -10598,21 +11603,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("createTimeseries_args("); - int tmp475 = 0; + var tmp1395 = new StringBuilder("createTimeseries_args("); + int tmp1396 = 0; if((Req != null) && __isset.req) { - if(0 < tmp475++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1396++) { tmp1395.Append(", "); } + tmp1395.Append("Req: "); + Req.ToString(tmp1395); } - sb.Append(')'); - return sb.ToString(); + tmp1395.Append(')'); + return tmp1395.ToString(); } } - public partial class createTimeseriesResult : TBase + public partial class createTimeseries_result : TBase { private TSStatus _success; @@ -10636,7 +11641,7 @@ public struct Isset public bool success; } - public createTimeseriesResult() + public createTimeseries_result() { } @@ -10689,18 +11694,18 @@ public createTimeseriesResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("createTimeseries_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1397 = new TStruct("createTimeseries_result"); + await oprot.WriteStructBeginAsync(tmp1397, cancellationToken); + var tmp1398 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1398.Name = "Success"; + tmp1398.Type = TType.Struct; + tmp1398.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1398, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -10716,7 +11721,7 @@ public createTimeseriesResult() public override bool Equals(object that) { - if (!(that is createTimeseriesResult other)) return false; + if (!(that is createTimeseries_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -10734,21 +11739,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("createTimeseries_result("); - int tmp476 = 0; + var tmp1399 = new StringBuilder("createTimeseries_result("); + int tmp1400 = 0; if((Success != null) && __isset.success) { - if(0 < tmp476++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1400++) { tmp1399.Append(", "); } + tmp1399.Append("Success: "); + Success.ToString(tmp1399); } - sb.Append(')'); - return sb.ToString(); + tmp1399.Append(')'); + return tmp1399.ToString(); } } - public partial class createAlignedTimeseriesArgs : TBase + public partial class createAlignedTimeseries_args : TBase { private TSCreateAlignedTimeseriesReq _req; @@ -10772,7 +11777,7 @@ public struct Isset public bool req; } - public createAlignedTimeseriesArgs() + public createAlignedTimeseries_args() { } @@ -10825,15 +11830,15 @@ public createAlignedTimeseriesArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("createAlignedTimeseries_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1401 = new TStruct("createAlignedTimeseries_args"); + await oprot.WriteStructBeginAsync(tmp1401, cancellationToken); + var tmp1402 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1402.Name = "req"; + tmp1402.Type = TType.Struct; + tmp1402.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1402, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -10848,7 +11853,7 @@ public createAlignedTimeseriesArgs() public override bool Equals(object that) { - if (!(that is createAlignedTimeseriesArgs other)) return false; + if (!(that is createAlignedTimeseries_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -10866,21 +11871,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("createAlignedTimeseries_args("); - int tmp477 = 0; + var tmp1403 = new StringBuilder("createAlignedTimeseries_args("); + int tmp1404 = 0; if((Req != null) && __isset.req) { - if(0 < tmp477++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1404++) { tmp1403.Append(", "); } + tmp1403.Append("Req: "); + Req.ToString(tmp1403); } - sb.Append(')'); - return sb.ToString(); + tmp1403.Append(')'); + return tmp1403.ToString(); } } - public partial class createAlignedTimeseriesResult : TBase + public partial class createAlignedTimeseries_result : TBase { private TSStatus _success; @@ -10904,7 +11909,7 @@ public struct Isset public bool success; } - public createAlignedTimeseriesResult() + public createAlignedTimeseries_result() { } @@ -10957,18 +11962,18 @@ public createAlignedTimeseriesResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("createAlignedTimeseries_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1405 = new TStruct("createAlignedTimeseries_result"); + await oprot.WriteStructBeginAsync(tmp1405, cancellationToken); + var tmp1406 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1406.Name = "Success"; + tmp1406.Type = TType.Struct; + tmp1406.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1406, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -10984,7 +11989,7 @@ public createAlignedTimeseriesResult() public override bool Equals(object that) { - if (!(that is createAlignedTimeseriesResult other)) return false; + if (!(that is createAlignedTimeseries_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -11002,21 +12007,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("createAlignedTimeseries_result("); - int tmp478 = 0; + var tmp1407 = new StringBuilder("createAlignedTimeseries_result("); + int tmp1408 = 0; if((Success != null) && __isset.success) { - if(0 < tmp478++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1408++) { tmp1407.Append(", "); } + tmp1407.Append("Success: "); + Success.ToString(tmp1407); } - sb.Append(')'); - return sb.ToString(); + tmp1407.Append(')'); + return tmp1407.ToString(); } } - public partial class createMultiTimeseriesArgs : TBase + public partial class createMultiTimeseries_args : TBase { private TSCreateMultiTimeseriesReq _req; @@ -11040,7 +12045,7 @@ public struct Isset public bool req; } - public createMultiTimeseriesArgs() + public createMultiTimeseries_args() { } @@ -11093,15 +12098,15 @@ public createMultiTimeseriesArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("createMultiTimeseries_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1409 = new TStruct("createMultiTimeseries_args"); + await oprot.WriteStructBeginAsync(tmp1409, cancellationToken); + var tmp1410 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1410.Name = "req"; + tmp1410.Type = TType.Struct; + tmp1410.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1410, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -11116,7 +12121,7 @@ public createMultiTimeseriesArgs() public override bool Equals(object that) { - if (!(that is createMultiTimeseriesArgs other)) return false; + if (!(that is createMultiTimeseries_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -11134,21 +12139,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("createMultiTimeseries_args("); - int tmp479 = 0; + var tmp1411 = new StringBuilder("createMultiTimeseries_args("); + int tmp1412 = 0; if((Req != null) && __isset.req) { - if(0 < tmp479++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1412++) { tmp1411.Append(", "); } + tmp1411.Append("Req: "); + Req.ToString(tmp1411); } - sb.Append(')'); - return sb.ToString(); + tmp1411.Append(')'); + return tmp1411.ToString(); } } - public partial class createMultiTimeseriesResult : TBase + public partial class createMultiTimeseries_result : TBase { private TSStatus _success; @@ -11172,7 +12177,7 @@ public struct Isset public bool success; } - public createMultiTimeseriesResult() + public createMultiTimeseries_result() { } @@ -11225,18 +12230,18 @@ public createMultiTimeseriesResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("createMultiTimeseries_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1413 = new TStruct("createMultiTimeseries_result"); + await oprot.WriteStructBeginAsync(tmp1413, cancellationToken); + var tmp1414 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1414.Name = "Success"; + tmp1414.Type = TType.Struct; + tmp1414.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1414, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -11252,7 +12257,7 @@ public createMultiTimeseriesResult() public override bool Equals(object that) { - if (!(that is createMultiTimeseriesResult other)) return false; + if (!(that is createMultiTimeseries_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -11270,21 +12275,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("createMultiTimeseries_result("); - int tmp480 = 0; + var tmp1415 = new StringBuilder("createMultiTimeseries_result("); + int tmp1416 = 0; if((Success != null) && __isset.success) { - if(0 < tmp480++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1416++) { tmp1415.Append(", "); } + tmp1415.Append("Success: "); + Success.ToString(tmp1415); } - sb.Append(')'); - return sb.ToString(); + tmp1415.Append(')'); + return tmp1415.ToString(); } } - public partial class deleteTimeseriesArgs : TBase + public partial class deleteTimeseries_args : TBase { private long _sessionId; private List _path; @@ -11323,7 +12328,7 @@ public struct Isset public bool path; } - public deleteTimeseriesArgs() + public deleteTimeseries_args() { } @@ -11358,13 +12363,13 @@ public deleteTimeseriesArgs() if (field.Type == TType.List) { { - TList _list481 = await iprot.ReadListBeginAsync(cancellationToken); - Path = new List(_list481.Count); - for(int _i482 = 0; _i482 < _list481.Count; ++_i482) + TList _list1417 = await iprot.ReadListBeginAsync(cancellationToken); + Path = new List(_list1417.Count); + for(int _i1418 = 0; _i1418 < _list1417.Count; ++_i1418) { - string _elem483; - _elem483 = await iprot.ReadStringAsync(cancellationToken); - Path.Add(_elem483); + string _elem1419; + _elem1419 = await iprot.ReadStringAsync(cancellationToken); + Path.Add(_elem1419); } await iprot.ReadListEndAsync(cancellationToken); } @@ -11395,29 +12400,29 @@ public deleteTimeseriesArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("deleteTimeseries_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1420 = new TStruct("deleteTimeseries_args"); + await oprot.WriteStructBeginAsync(tmp1420, cancellationToken); + var tmp1421 = new TField(); if(__isset.sessionId) { - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1421.Name = "sessionId"; + tmp1421.Type = TType.I64; + tmp1421.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1421, 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); + tmp1421.Name = "path"; + tmp1421.Type = TType.List; + tmp1421.ID = 2; + await oprot.WriteFieldBeginAsync(tmp1421, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Path.Count), cancellationToken); - foreach (string _iter484 in Path) + foreach (string _iter1422 in Path) { - await oprot.WriteStringAsync(_iter484, cancellationToken); + await oprot.WriteStringAsync(_iter1422, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -11434,7 +12439,7 @@ public deleteTimeseriesArgs() public override bool Equals(object that) { - if (!(that is deleteTimeseriesArgs other)) return false; + if (!(that is deleteTimeseries_args 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)))); @@ -11457,27 +12462,27 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("deleteTimeseries_args("); - int tmp485 = 0; + var tmp1423 = new StringBuilder("deleteTimeseries_args("); + int tmp1424 = 0; if(__isset.sessionId) { - if(0 < tmp485++) { sb.Append(", "); } - sb.Append("SessionId: "); - SessionId.ToString(sb); + if(0 < tmp1424++) { tmp1423.Append(", "); } + tmp1423.Append("SessionId: "); + SessionId.ToString(tmp1423); } if((Path != null) && __isset.path) { - if(0 < tmp485++) { sb.Append(", "); } - sb.Append("Path: "); - Path.ToString(sb); + if(0 < tmp1424++) { tmp1423.Append(", "); } + tmp1423.Append("Path: "); + Path.ToString(tmp1423); } - sb.Append(')'); - return sb.ToString(); + tmp1423.Append(')'); + return tmp1423.ToString(); } } - public partial class deleteTimeseriesResult : TBase + public partial class deleteTimeseries_result : TBase { private TSStatus _success; @@ -11501,7 +12506,7 @@ public struct Isset public bool success; } - public deleteTimeseriesResult() + public deleteTimeseries_result() { } @@ -11554,18 +12559,18 @@ public deleteTimeseriesResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("deleteTimeseries_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1425 = new TStruct("deleteTimeseries_result"); + await oprot.WriteStructBeginAsync(tmp1425, cancellationToken); + var tmp1426 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1426.Name = "Success"; + tmp1426.Type = TType.Struct; + tmp1426.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1426, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -11581,7 +12586,7 @@ public deleteTimeseriesResult() public override bool Equals(object that) { - if (!(that is deleteTimeseriesResult other)) return false; + if (!(that is deleteTimeseries_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -11599,21 +12604,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("deleteTimeseries_result("); - int tmp486 = 0; + var tmp1427 = new StringBuilder("deleteTimeseries_result("); + int tmp1428 = 0; if((Success != null) && __isset.success) { - if(0 < tmp486++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1428++) { tmp1427.Append(", "); } + tmp1427.Append("Success: "); + Success.ToString(tmp1427); } - sb.Append(')'); - return sb.ToString(); + tmp1427.Append(')'); + return tmp1427.ToString(); } } - public partial class deleteStorageGroupsArgs : TBase + public partial class deleteStorageGroups_args : TBase { private long _sessionId; private List _storageGroup; @@ -11652,7 +12657,7 @@ public struct Isset public bool storageGroup; } - public deleteStorageGroupsArgs() + public deleteStorageGroups_args() { } @@ -11687,13 +12692,13 @@ public deleteStorageGroupsArgs() if (field.Type == TType.List) { { - TList _list487 = await iprot.ReadListBeginAsync(cancellationToken); - StorageGroup = new List(_list487.Count); - for(int _i488 = 0; _i488 < _list487.Count; ++_i488) + TList _list1429 = await iprot.ReadListBeginAsync(cancellationToken); + StorageGroup = new List(_list1429.Count); + for(int _i1430 = 0; _i1430 < _list1429.Count; ++_i1430) { - string _elem489; - _elem489 = await iprot.ReadStringAsync(cancellationToken); - StorageGroup.Add(_elem489); + string _elem1431; + _elem1431 = await iprot.ReadStringAsync(cancellationToken); + StorageGroup.Add(_elem1431); } await iprot.ReadListEndAsync(cancellationToken); } @@ -11724,29 +12729,29 @@ public deleteStorageGroupsArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("deleteStorageGroups_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1432 = new TStruct("deleteStorageGroups_args"); + await oprot.WriteStructBeginAsync(tmp1432, cancellationToken); + var tmp1433 = new TField(); if(__isset.sessionId) { - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1433.Name = "sessionId"; + tmp1433.Type = TType.I64; + tmp1433.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1433, 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); + tmp1433.Name = "storageGroup"; + tmp1433.Type = TType.List; + tmp1433.ID = 2; + await oprot.WriteFieldBeginAsync(tmp1433, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, StorageGroup.Count), cancellationToken); - foreach (string _iter490 in StorageGroup) + foreach (string _iter1434 in StorageGroup) { - await oprot.WriteStringAsync(_iter490, cancellationToken); + await oprot.WriteStringAsync(_iter1434, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -11763,7 +12768,7 @@ public deleteStorageGroupsArgs() public override bool Equals(object that) { - if (!(that is deleteStorageGroupsArgs other)) return false; + if (!(that is deleteStorageGroups_args 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)))); @@ -11786,27 +12791,27 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("deleteStorageGroups_args("); - int tmp491 = 0; + var tmp1435 = new StringBuilder("deleteStorageGroups_args("); + int tmp1436 = 0; if(__isset.sessionId) { - if(0 < tmp491++) { sb.Append(", "); } - sb.Append("SessionId: "); - SessionId.ToString(sb); + if(0 < tmp1436++) { tmp1435.Append(", "); } + tmp1435.Append("SessionId: "); + SessionId.ToString(tmp1435); } if((StorageGroup != null) && __isset.storageGroup) { - if(0 < tmp491++) { sb.Append(", "); } - sb.Append("StorageGroup: "); - StorageGroup.ToString(sb); + if(0 < tmp1436++) { tmp1435.Append(", "); } + tmp1435.Append("StorageGroup: "); + StorageGroup.ToString(tmp1435); } - sb.Append(')'); - return sb.ToString(); + tmp1435.Append(')'); + return tmp1435.ToString(); } } - public partial class deleteStorageGroupsResult : TBase + public partial class deleteStorageGroups_result : TBase { private TSStatus _success; @@ -11830,7 +12835,7 @@ public struct Isset public bool success; } - public deleteStorageGroupsResult() + public deleteStorageGroups_result() { } @@ -11883,18 +12888,18 @@ public deleteStorageGroupsResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("deleteStorageGroups_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1437 = new TStruct("deleteStorageGroups_result"); + await oprot.WriteStructBeginAsync(tmp1437, cancellationToken); + var tmp1438 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1438.Name = "Success"; + tmp1438.Type = TType.Struct; + tmp1438.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1438, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -11910,7 +12915,7 @@ public deleteStorageGroupsResult() public override bool Equals(object that) { - if (!(that is deleteStorageGroupsResult other)) return false; + if (!(that is deleteStorageGroups_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -11928,21 +12933,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("deleteStorageGroups_result("); - int tmp492 = 0; + var tmp1439 = new StringBuilder("deleteStorageGroups_result("); + int tmp1440 = 0; if((Success != null) && __isset.success) { - if(0 < tmp492++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1440++) { tmp1439.Append(", "); } + tmp1439.Append("Success: "); + Success.ToString(tmp1439); } - sb.Append(')'); - return sb.ToString(); + tmp1439.Append(')'); + return tmp1439.ToString(); } } - public partial class insertRecordArgs : TBase + public partial class insertRecord_args : TBase { private TSInsertRecordReq _req; @@ -11966,7 +12971,7 @@ public struct Isset public bool req; } - public insertRecordArgs() + public insertRecord_args() { } @@ -12019,15 +13024,15 @@ public insertRecordArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("insertRecord_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1441 = new TStruct("insertRecord_args"); + await oprot.WriteStructBeginAsync(tmp1441, cancellationToken); + var tmp1442 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1442.Name = "req"; + tmp1442.Type = TType.Struct; + tmp1442.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1442, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -12042,7 +13047,7 @@ public insertRecordArgs() public override bool Equals(object that) { - if (!(that is insertRecordArgs other)) return false; + if (!(that is insertRecord_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -12060,21 +13065,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("insertRecord_args("); - int tmp493 = 0; + var tmp1443 = new StringBuilder("insertRecord_args("); + int tmp1444 = 0; if((Req != null) && __isset.req) { - if(0 < tmp493++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1444++) { tmp1443.Append(", "); } + tmp1443.Append("Req: "); + Req.ToString(tmp1443); } - sb.Append(')'); - return sb.ToString(); + tmp1443.Append(')'); + return tmp1443.ToString(); } } - public partial class insertRecordResult : TBase + public partial class insertRecord_result : TBase { private TSStatus _success; @@ -12098,7 +13103,7 @@ public struct Isset public bool success; } - public insertRecordResult() + public insertRecord_result() { } @@ -12151,18 +13156,18 @@ public insertRecordResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("insertRecord_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1445 = new TStruct("insertRecord_result"); + await oprot.WriteStructBeginAsync(tmp1445, cancellationToken); + var tmp1446 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1446.Name = "Success"; + tmp1446.Type = TType.Struct; + tmp1446.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1446, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -12178,7 +13183,7 @@ public insertRecordResult() public override bool Equals(object that) { - if (!(that is insertRecordResult other)) return false; + if (!(that is insertRecord_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -12196,21 +13201,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("insertRecord_result("); - int tmp494 = 0; + var tmp1447 = new StringBuilder("insertRecord_result("); + int tmp1448 = 0; if((Success != null) && __isset.success) { - if(0 < tmp494++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1448++) { tmp1447.Append(", "); } + tmp1447.Append("Success: "); + Success.ToString(tmp1447); } - sb.Append(')'); - return sb.ToString(); + tmp1447.Append(')'); + return tmp1447.ToString(); } } - public partial class insertStringRecordArgs : TBase + public partial class insertStringRecord_args : TBase { private TSInsertStringRecordReq _req; @@ -12234,7 +13239,7 @@ public struct Isset public bool req; } - public insertStringRecordArgs() + public insertStringRecord_args() { } @@ -12287,15 +13292,15 @@ public insertStringRecordArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("insertStringRecord_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1449 = new TStruct("insertStringRecord_args"); + await oprot.WriteStructBeginAsync(tmp1449, cancellationToken); + var tmp1450 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1450.Name = "req"; + tmp1450.Type = TType.Struct; + tmp1450.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1450, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -12310,7 +13315,7 @@ public insertStringRecordArgs() public override bool Equals(object that) { - if (!(that is insertStringRecordArgs other)) return false; + if (!(that is insertStringRecord_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -12328,21 +13333,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("insertStringRecord_args("); - int tmp495 = 0; + var tmp1451 = new StringBuilder("insertStringRecord_args("); + int tmp1452 = 0; if((Req != null) && __isset.req) { - if(0 < tmp495++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1452++) { tmp1451.Append(", "); } + tmp1451.Append("Req: "); + Req.ToString(tmp1451); } - sb.Append(')'); - return sb.ToString(); + tmp1451.Append(')'); + return tmp1451.ToString(); } } - public partial class insertStringRecordResult : TBase + public partial class insertStringRecord_result : TBase { private TSStatus _success; @@ -12366,7 +13371,7 @@ public struct Isset public bool success; } - public insertStringRecordResult() + public insertStringRecord_result() { } @@ -12419,18 +13424,18 @@ public insertStringRecordResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("insertStringRecord_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1453 = new TStruct("insertStringRecord_result"); + await oprot.WriteStructBeginAsync(tmp1453, cancellationToken); + var tmp1454 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1454.Name = "Success"; + tmp1454.Type = TType.Struct; + tmp1454.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1454, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -12446,7 +13451,7 @@ public insertStringRecordResult() public override bool Equals(object that) { - if (!(that is insertStringRecordResult other)) return false; + if (!(that is insertStringRecord_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -12464,21 +13469,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("insertStringRecord_result("); - int tmp496 = 0; + var tmp1455 = new StringBuilder("insertStringRecord_result("); + int tmp1456 = 0; if((Success != null) && __isset.success) { - if(0 < tmp496++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1456++) { tmp1455.Append(", "); } + tmp1455.Append("Success: "); + Success.ToString(tmp1455); } - sb.Append(')'); - return sb.ToString(); + tmp1455.Append(')'); + return tmp1455.ToString(); } } - public partial class insertTabletArgs : TBase + public partial class insertTablet_args : TBase { private TSInsertTabletReq _req; @@ -12502,7 +13507,7 @@ public struct Isset public bool req; } - public insertTabletArgs() + public insertTablet_args() { } @@ -12555,15 +13560,15 @@ public insertTabletArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("insertTablet_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1457 = new TStruct("insertTablet_args"); + await oprot.WriteStructBeginAsync(tmp1457, cancellationToken); + var tmp1458 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1458.Name = "req"; + tmp1458.Type = TType.Struct; + tmp1458.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1458, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -12578,7 +13583,7 @@ public insertTabletArgs() public override bool Equals(object that) { - if (!(that is insertTabletArgs other)) return false; + if (!(that is insertTablet_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -12596,21 +13601,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("insertTablet_args("); - int tmp497 = 0; + var tmp1459 = new StringBuilder("insertTablet_args("); + int tmp1460 = 0; if((Req != null) && __isset.req) { - if(0 < tmp497++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1460++) { tmp1459.Append(", "); } + tmp1459.Append("Req: "); + Req.ToString(tmp1459); } - sb.Append(')'); - return sb.ToString(); + tmp1459.Append(')'); + return tmp1459.ToString(); } } - public partial class insertTabletResult : TBase + public partial class insertTablet_result : TBase { private TSStatus _success; @@ -12634,7 +13639,7 @@ public struct Isset public bool success; } - public insertTabletResult() + public insertTablet_result() { } @@ -12687,18 +13692,18 @@ public insertTabletResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("insertTablet_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1461 = new TStruct("insertTablet_result"); + await oprot.WriteStructBeginAsync(tmp1461, cancellationToken); + var tmp1462 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1462.Name = "Success"; + tmp1462.Type = TType.Struct; + tmp1462.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1462, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -12714,7 +13719,7 @@ public insertTabletResult() public override bool Equals(object that) { - if (!(that is insertTabletResult other)) return false; + if (!(that is insertTablet_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -12732,21 +13737,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("insertTablet_result("); - int tmp498 = 0; + var tmp1463 = new StringBuilder("insertTablet_result("); + int tmp1464 = 0; if((Success != null) && __isset.success) { - if(0 < tmp498++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1464++) { tmp1463.Append(", "); } + tmp1463.Append("Success: "); + Success.ToString(tmp1463); } - sb.Append(')'); - return sb.ToString(); + tmp1463.Append(')'); + return tmp1463.ToString(); } } - public partial class insertTabletsArgs : TBase + public partial class insertTablets_args : TBase { private TSInsertTabletsReq _req; @@ -12770,7 +13775,7 @@ public struct Isset public bool req; } - public insertTabletsArgs() + public insertTablets_args() { } @@ -12823,15 +13828,15 @@ public insertTabletsArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("insertTablets_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1465 = new TStruct("insertTablets_args"); + await oprot.WriteStructBeginAsync(tmp1465, cancellationToken); + var tmp1466 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1466.Name = "req"; + tmp1466.Type = TType.Struct; + tmp1466.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1466, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -12846,7 +13851,7 @@ public insertTabletsArgs() public override bool Equals(object that) { - if (!(that is insertTabletsArgs other)) return false; + if (!(that is insertTablets_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -12864,21 +13869,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("insertTablets_args("); - int tmp499 = 0; + var tmp1467 = new StringBuilder("insertTablets_args("); + int tmp1468 = 0; if((Req != null) && __isset.req) { - if(0 < tmp499++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1468++) { tmp1467.Append(", "); } + tmp1467.Append("Req: "); + Req.ToString(tmp1467); } - sb.Append(')'); - return sb.ToString(); + tmp1467.Append(')'); + return tmp1467.ToString(); } } - public partial class insertTabletsResult : TBase + public partial class insertTablets_result : TBase { private TSStatus _success; @@ -12902,7 +13907,7 @@ public struct Isset public bool success; } - public insertTabletsResult() + public insertTablets_result() { } @@ -12955,18 +13960,18 @@ public insertTabletsResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("insertTablets_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1469 = new TStruct("insertTablets_result"); + await oprot.WriteStructBeginAsync(tmp1469, cancellationToken); + var tmp1470 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1470.Name = "Success"; + tmp1470.Type = TType.Struct; + tmp1470.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1470, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -12982,7 +13987,7 @@ public insertTabletsResult() public override bool Equals(object that) { - if (!(that is insertTabletsResult other)) return false; + if (!(that is insertTablets_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -13000,21 +14005,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("insertTablets_result("); - int tmp500 = 0; + var tmp1471 = new StringBuilder("insertTablets_result("); + int tmp1472 = 0; if((Success != null) && __isset.success) { - if(0 < tmp500++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1472++) { tmp1471.Append(", "); } + tmp1471.Append("Success: "); + Success.ToString(tmp1471); } - sb.Append(')'); - return sb.ToString(); + tmp1471.Append(')'); + return tmp1471.ToString(); } } - public partial class insertRecordsArgs : TBase + public partial class insertRecords_args : TBase { private TSInsertRecordsReq _req; @@ -13038,7 +14043,7 @@ public struct Isset public bool req; } - public insertRecordsArgs() + public insertRecords_args() { } @@ -13091,15 +14096,15 @@ public insertRecordsArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("insertRecords_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1473 = new TStruct("insertRecords_args"); + await oprot.WriteStructBeginAsync(tmp1473, cancellationToken); + var tmp1474 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1474.Name = "req"; + tmp1474.Type = TType.Struct; + tmp1474.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1474, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -13114,7 +14119,7 @@ public insertRecordsArgs() public override bool Equals(object that) { - if (!(that is insertRecordsArgs other)) return false; + if (!(that is insertRecords_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -13132,21 +14137,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("insertRecords_args("); - int tmp501 = 0; + var tmp1475 = new StringBuilder("insertRecords_args("); + int tmp1476 = 0; if((Req != null) && __isset.req) { - if(0 < tmp501++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1476++) { tmp1475.Append(", "); } + tmp1475.Append("Req: "); + Req.ToString(tmp1475); } - sb.Append(')'); - return sb.ToString(); + tmp1475.Append(')'); + return tmp1475.ToString(); } } - public partial class insertRecordsResult : TBase + public partial class insertRecords_result : TBase { private TSStatus _success; @@ -13170,7 +14175,7 @@ public struct Isset public bool success; } - public insertRecordsResult() + public insertRecords_result() { } @@ -13223,18 +14228,18 @@ public insertRecordsResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("insertRecords_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1477 = new TStruct("insertRecords_result"); + await oprot.WriteStructBeginAsync(tmp1477, cancellationToken); + var tmp1478 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1478.Name = "Success"; + tmp1478.Type = TType.Struct; + tmp1478.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1478, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -13250,7 +14255,7 @@ public insertRecordsResult() public override bool Equals(object that) { - if (!(that is insertRecordsResult other)) return false; + if (!(that is insertRecords_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -13268,21 +14273,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("insertRecords_result("); - int tmp502 = 0; + var tmp1479 = new StringBuilder("insertRecords_result("); + int tmp1480 = 0; if((Success != null) && __isset.success) { - if(0 < tmp502++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1480++) { tmp1479.Append(", "); } + tmp1479.Append("Success: "); + Success.ToString(tmp1479); } - sb.Append(')'); - return sb.ToString(); + tmp1479.Append(')'); + return tmp1479.ToString(); } } - public partial class insertRecordsOfOneDeviceArgs : TBase + public partial class insertRecordsOfOneDevice_args : TBase { private TSInsertRecordsOfOneDeviceReq _req; @@ -13306,7 +14311,7 @@ public struct Isset public bool req; } - public insertRecordsOfOneDeviceArgs() + public insertRecordsOfOneDevice_args() { } @@ -13359,15 +14364,15 @@ public insertRecordsOfOneDeviceArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("insertRecordsOfOneDevice_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1481 = new TStruct("insertRecordsOfOneDevice_args"); + await oprot.WriteStructBeginAsync(tmp1481, cancellationToken); + var tmp1482 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1482.Name = "req"; + tmp1482.Type = TType.Struct; + tmp1482.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1482, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -13382,7 +14387,7 @@ public insertRecordsOfOneDeviceArgs() public override bool Equals(object that) { - if (!(that is insertRecordsOfOneDeviceArgs other)) return false; + if (!(that is insertRecordsOfOneDevice_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -13400,21 +14405,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("insertRecordsOfOneDevice_args("); - int tmp503 = 0; + var tmp1483 = new StringBuilder("insertRecordsOfOneDevice_args("); + int tmp1484 = 0; if((Req != null) && __isset.req) { - if(0 < tmp503++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1484++) { tmp1483.Append(", "); } + tmp1483.Append("Req: "); + Req.ToString(tmp1483); } - sb.Append(')'); - return sb.ToString(); + tmp1483.Append(')'); + return tmp1483.ToString(); } } - public partial class insertRecordsOfOneDeviceResult : TBase + public partial class insertRecordsOfOneDevice_result : TBase { private TSStatus _success; @@ -13438,7 +14443,7 @@ public struct Isset public bool success; } - public insertRecordsOfOneDeviceResult() + public insertRecordsOfOneDevice_result() { } @@ -13491,18 +14496,18 @@ public insertRecordsOfOneDeviceResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("insertRecordsOfOneDevice_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1485 = new TStruct("insertRecordsOfOneDevice_result"); + await oprot.WriteStructBeginAsync(tmp1485, cancellationToken); + var tmp1486 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1486.Name = "Success"; + tmp1486.Type = TType.Struct; + tmp1486.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1486, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -13518,7 +14523,7 @@ public insertRecordsOfOneDeviceResult() public override bool Equals(object that) { - if (!(that is insertRecordsOfOneDeviceResult other)) return false; + if (!(that is insertRecordsOfOneDevice_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -13536,21 +14541,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("insertRecordsOfOneDevice_result("); - int tmp504 = 0; + var tmp1487 = new StringBuilder("insertRecordsOfOneDevice_result("); + int tmp1488 = 0; if((Success != null) && __isset.success) { - if(0 < tmp504++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1488++) { tmp1487.Append(", "); } + tmp1487.Append("Success: "); + Success.ToString(tmp1487); } - sb.Append(')'); - return sb.ToString(); + tmp1487.Append(')'); + return tmp1487.ToString(); } } - public partial class insertStringRecordsOfOneDeviceArgs : TBase + public partial class insertStringRecordsOfOneDevice_args : TBase { private TSInsertStringRecordsOfOneDeviceReq _req; @@ -13574,7 +14579,7 @@ public struct Isset public bool req; } - public insertStringRecordsOfOneDeviceArgs() + public insertStringRecordsOfOneDevice_args() { } @@ -13627,15 +14632,15 @@ public insertStringRecordsOfOneDeviceArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("insertStringRecordsOfOneDevice_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1489 = new TStruct("insertStringRecordsOfOneDevice_args"); + await oprot.WriteStructBeginAsync(tmp1489, cancellationToken); + var tmp1490 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1490.Name = "req"; + tmp1490.Type = TType.Struct; + tmp1490.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1490, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -13650,7 +14655,7 @@ public insertStringRecordsOfOneDeviceArgs() public override bool Equals(object that) { - if (!(that is insertStringRecordsOfOneDeviceArgs other)) return false; + if (!(that is insertStringRecordsOfOneDevice_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -13668,21 +14673,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("insertStringRecordsOfOneDevice_args("); - int tmp505 = 0; + var tmp1491 = new StringBuilder("insertStringRecordsOfOneDevice_args("); + int tmp1492 = 0; if((Req != null) && __isset.req) { - if(0 < tmp505++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1492++) { tmp1491.Append(", "); } + tmp1491.Append("Req: "); + Req.ToString(tmp1491); } - sb.Append(')'); - return sb.ToString(); + tmp1491.Append(')'); + return tmp1491.ToString(); } } - public partial class insertStringRecordsOfOneDeviceResult : TBase + public partial class insertStringRecordsOfOneDevice_result : TBase { private TSStatus _success; @@ -13706,7 +14711,7 @@ public struct Isset public bool success; } - public insertStringRecordsOfOneDeviceResult() + public insertStringRecordsOfOneDevice_result() { } @@ -13759,18 +14764,18 @@ public insertStringRecordsOfOneDeviceResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("insertStringRecordsOfOneDevice_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1493 = new TStruct("insertStringRecordsOfOneDevice_result"); + await oprot.WriteStructBeginAsync(tmp1493, cancellationToken); + var tmp1494 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1494.Name = "Success"; + tmp1494.Type = TType.Struct; + tmp1494.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1494, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -13786,7 +14791,7 @@ public insertStringRecordsOfOneDeviceResult() public override bool Equals(object that) { - if (!(that is insertStringRecordsOfOneDeviceResult other)) return false; + if (!(that is insertStringRecordsOfOneDevice_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -13804,21 +14809,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("insertStringRecordsOfOneDevice_result("); - int tmp506 = 0; + var tmp1495 = new StringBuilder("insertStringRecordsOfOneDevice_result("); + int tmp1496 = 0; if((Success != null) && __isset.success) { - if(0 < tmp506++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1496++) { tmp1495.Append(", "); } + tmp1495.Append("Success: "); + Success.ToString(tmp1495); } - sb.Append(')'); - return sb.ToString(); + tmp1495.Append(')'); + return tmp1495.ToString(); } } - public partial class insertStringRecordsArgs : TBase + public partial class insertStringRecords_args : TBase { private TSInsertStringRecordsReq _req; @@ -13842,7 +14847,7 @@ public struct Isset public bool req; } - public insertStringRecordsArgs() + public insertStringRecords_args() { } @@ -13895,15 +14900,15 @@ public insertStringRecordsArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("insertStringRecords_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1497 = new TStruct("insertStringRecords_args"); + await oprot.WriteStructBeginAsync(tmp1497, cancellationToken); + var tmp1498 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1498.Name = "req"; + tmp1498.Type = TType.Struct; + tmp1498.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1498, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -13918,7 +14923,7 @@ public insertStringRecordsArgs() public override bool Equals(object that) { - if (!(that is insertStringRecordsArgs other)) return false; + if (!(that is insertStringRecords_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -13936,21 +14941,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("insertStringRecords_args("); - int tmp507 = 0; + var tmp1499 = new StringBuilder("insertStringRecords_args("); + int tmp1500 = 0; if((Req != null) && __isset.req) { - if(0 < tmp507++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1500++) { tmp1499.Append(", "); } + tmp1499.Append("Req: "); + Req.ToString(tmp1499); } - sb.Append(')'); - return sb.ToString(); + tmp1499.Append(')'); + return tmp1499.ToString(); } } - public partial class insertStringRecordsResult : TBase + public partial class insertStringRecords_result : TBase { private TSStatus _success; @@ -13974,7 +14979,7 @@ public struct Isset public bool success; } - public insertStringRecordsResult() + public insertStringRecords_result() { } @@ -14027,18 +15032,18 @@ public insertStringRecordsResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("insertStringRecords_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1501 = new TStruct("insertStringRecords_result"); + await oprot.WriteStructBeginAsync(tmp1501, cancellationToken); + var tmp1502 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1502.Name = "Success"; + tmp1502.Type = TType.Struct; + tmp1502.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1502, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -14054,7 +15059,7 @@ public insertStringRecordsResult() public override bool Equals(object that) { - if (!(that is insertStringRecordsResult other)) return false; + if (!(that is insertStringRecords_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -14072,21 +15077,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("insertStringRecords_result("); - int tmp508 = 0; + var tmp1503 = new StringBuilder("insertStringRecords_result("); + int tmp1504 = 0; if((Success != null) && __isset.success) { - if(0 < tmp508++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1504++) { tmp1503.Append(", "); } + tmp1503.Append("Success: "); + Success.ToString(tmp1503); } - sb.Append(')'); - return sb.ToString(); + tmp1503.Append(')'); + return tmp1503.ToString(); } } - public partial class testInsertTabletArgs : TBase + public partial class testInsertTablet_args : TBase { private TSInsertTabletReq _req; @@ -14110,7 +15115,7 @@ public struct Isset public bool req; } - public testInsertTabletArgs() + public testInsertTablet_args() { } @@ -14163,15 +15168,15 @@ public testInsertTabletArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("testInsertTablet_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1505 = new TStruct("testInsertTablet_args"); + await oprot.WriteStructBeginAsync(tmp1505, cancellationToken); + var tmp1506 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1506.Name = "req"; + tmp1506.Type = TType.Struct; + tmp1506.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1506, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -14186,7 +15191,7 @@ public testInsertTabletArgs() public override bool Equals(object that) { - if (!(that is testInsertTabletArgs other)) return false; + if (!(that is testInsertTablet_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -14204,21 +15209,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("testInsertTablet_args("); - int tmp509 = 0; + var tmp1507 = new StringBuilder("testInsertTablet_args("); + int tmp1508 = 0; if((Req != null) && __isset.req) { - if(0 < tmp509++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1508++) { tmp1507.Append(", "); } + tmp1507.Append("Req: "); + Req.ToString(tmp1507); } - sb.Append(')'); - return sb.ToString(); + tmp1507.Append(')'); + return tmp1507.ToString(); } } - public partial class testInsertTabletResult : TBase + public partial class testInsertTablet_result : TBase { private TSStatus _success; @@ -14242,7 +15247,7 @@ public struct Isset public bool success; } - public testInsertTabletResult() + public testInsertTablet_result() { } @@ -14295,18 +15300,18 @@ public testInsertTabletResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("testInsertTablet_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1509 = new TStruct("testInsertTablet_result"); + await oprot.WriteStructBeginAsync(tmp1509, cancellationToken); + var tmp1510 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1510.Name = "Success"; + tmp1510.Type = TType.Struct; + tmp1510.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1510, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -14322,7 +15327,7 @@ public testInsertTabletResult() public override bool Equals(object that) { - if (!(that is testInsertTabletResult other)) return false; + if (!(that is testInsertTablet_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -14340,21 +15345,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("testInsertTablet_result("); - int tmp510 = 0; + var tmp1511 = new StringBuilder("testInsertTablet_result("); + int tmp1512 = 0; if((Success != null) && __isset.success) { - if(0 < tmp510++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1512++) { tmp1511.Append(", "); } + tmp1511.Append("Success: "); + Success.ToString(tmp1511); } - sb.Append(')'); - return sb.ToString(); + tmp1511.Append(')'); + return tmp1511.ToString(); } } - public partial class testInsertTabletsArgs : TBase + public partial class testInsertTablets_args : TBase { private TSInsertTabletsReq _req; @@ -14378,7 +15383,7 @@ public struct Isset public bool req; } - public testInsertTabletsArgs() + public testInsertTablets_args() { } @@ -14431,15 +15436,15 @@ public testInsertTabletsArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("testInsertTablets_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1513 = new TStruct("testInsertTablets_args"); + await oprot.WriteStructBeginAsync(tmp1513, cancellationToken); + var tmp1514 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1514.Name = "req"; + tmp1514.Type = TType.Struct; + tmp1514.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1514, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -14454,7 +15459,7 @@ public testInsertTabletsArgs() public override bool Equals(object that) { - if (!(that is testInsertTabletsArgs other)) return false; + if (!(that is testInsertTablets_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -14472,21 +15477,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("testInsertTablets_args("); - int tmp511 = 0; + var tmp1515 = new StringBuilder("testInsertTablets_args("); + int tmp1516 = 0; if((Req != null) && __isset.req) { - if(0 < tmp511++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1516++) { tmp1515.Append(", "); } + tmp1515.Append("Req: "); + Req.ToString(tmp1515); } - sb.Append(')'); - return sb.ToString(); + tmp1515.Append(')'); + return tmp1515.ToString(); } } - public partial class testInsertTabletsResult : TBase + public partial class testInsertTablets_result : TBase { private TSStatus _success; @@ -14510,7 +15515,7 @@ public struct Isset public bool success; } - public testInsertTabletsResult() + public testInsertTablets_result() { } @@ -14563,18 +15568,18 @@ public testInsertTabletsResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("testInsertTablets_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1517 = new TStruct("testInsertTablets_result"); + await oprot.WriteStructBeginAsync(tmp1517, cancellationToken); + var tmp1518 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1518.Name = "Success"; + tmp1518.Type = TType.Struct; + tmp1518.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1518, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -14590,7 +15595,7 @@ public testInsertTabletsResult() public override bool Equals(object that) { - if (!(that is testInsertTabletsResult other)) return false; + if (!(that is testInsertTablets_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -14608,21 +15613,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("testInsertTablets_result("); - int tmp512 = 0; + var tmp1519 = new StringBuilder("testInsertTablets_result("); + int tmp1520 = 0; if((Success != null) && __isset.success) { - if(0 < tmp512++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1520++) { tmp1519.Append(", "); } + tmp1519.Append("Success: "); + Success.ToString(tmp1519); } - sb.Append(')'); - return sb.ToString(); + tmp1519.Append(')'); + return tmp1519.ToString(); } } - public partial class testInsertRecordArgs : TBase + public partial class testInsertRecord_args : TBase { private TSInsertRecordReq _req; @@ -14646,7 +15651,7 @@ public struct Isset public bool req; } - public testInsertRecordArgs() + public testInsertRecord_args() { } @@ -14699,15 +15704,15 @@ public testInsertRecordArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("testInsertRecord_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1521 = new TStruct("testInsertRecord_args"); + await oprot.WriteStructBeginAsync(tmp1521, cancellationToken); + var tmp1522 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1522.Name = "req"; + tmp1522.Type = TType.Struct; + tmp1522.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1522, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -14722,7 +15727,7 @@ public testInsertRecordArgs() public override bool Equals(object that) { - if (!(that is testInsertRecordArgs other)) return false; + if (!(that is testInsertRecord_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -14740,21 +15745,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("testInsertRecord_args("); - int tmp513 = 0; + var tmp1523 = new StringBuilder("testInsertRecord_args("); + int tmp1524 = 0; if((Req != null) && __isset.req) { - if(0 < tmp513++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1524++) { tmp1523.Append(", "); } + tmp1523.Append("Req: "); + Req.ToString(tmp1523); } - sb.Append(')'); - return sb.ToString(); + tmp1523.Append(')'); + return tmp1523.ToString(); } } - public partial class testInsertRecordResult : TBase + public partial class testInsertRecord_result : TBase { private TSStatus _success; @@ -14778,7 +15783,7 @@ public struct Isset public bool success; } - public testInsertRecordResult() + public testInsertRecord_result() { } @@ -14831,18 +15836,18 @@ public testInsertRecordResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("testInsertRecord_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1525 = new TStruct("testInsertRecord_result"); + await oprot.WriteStructBeginAsync(tmp1525, cancellationToken); + var tmp1526 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1526.Name = "Success"; + tmp1526.Type = TType.Struct; + tmp1526.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1526, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -14858,7 +15863,7 @@ public testInsertRecordResult() public override bool Equals(object that) { - if (!(that is testInsertRecordResult other)) return false; + if (!(that is testInsertRecord_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -14876,21 +15881,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("testInsertRecord_result("); - int tmp514 = 0; + var tmp1527 = new StringBuilder("testInsertRecord_result("); + int tmp1528 = 0; if((Success != null) && __isset.success) { - if(0 < tmp514++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1528++) { tmp1527.Append(", "); } + tmp1527.Append("Success: "); + Success.ToString(tmp1527); } - sb.Append(')'); - return sb.ToString(); + tmp1527.Append(')'); + return tmp1527.ToString(); } } - public partial class testInsertStringRecordArgs : TBase + public partial class testInsertStringRecord_args : TBase { private TSInsertStringRecordReq _req; @@ -14914,7 +15919,7 @@ public struct Isset public bool req; } - public testInsertStringRecordArgs() + public testInsertStringRecord_args() { } @@ -14967,15 +15972,15 @@ public testInsertStringRecordArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("testInsertStringRecord_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1529 = new TStruct("testInsertStringRecord_args"); + await oprot.WriteStructBeginAsync(tmp1529, cancellationToken); + var tmp1530 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1530.Name = "req"; + tmp1530.Type = TType.Struct; + tmp1530.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1530, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -14990,7 +15995,7 @@ public testInsertStringRecordArgs() public override bool Equals(object that) { - if (!(that is testInsertStringRecordArgs other)) return false; + if (!(that is testInsertStringRecord_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -15008,21 +16013,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("testInsertStringRecord_args("); - int tmp515 = 0; + var tmp1531 = new StringBuilder("testInsertStringRecord_args("); + int tmp1532 = 0; if((Req != null) && __isset.req) { - if(0 < tmp515++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1532++) { tmp1531.Append(", "); } + tmp1531.Append("Req: "); + Req.ToString(tmp1531); } - sb.Append(')'); - return sb.ToString(); + tmp1531.Append(')'); + return tmp1531.ToString(); } } - public partial class testInsertStringRecordResult : TBase + public partial class testInsertStringRecord_result : TBase { private TSStatus _success; @@ -15046,7 +16051,7 @@ public struct Isset public bool success; } - public testInsertStringRecordResult() + public testInsertStringRecord_result() { } @@ -15099,18 +16104,18 @@ public testInsertStringRecordResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("testInsertStringRecord_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1533 = new TStruct("testInsertStringRecord_result"); + await oprot.WriteStructBeginAsync(tmp1533, cancellationToken); + var tmp1534 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1534.Name = "Success"; + tmp1534.Type = TType.Struct; + tmp1534.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1534, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -15126,7 +16131,7 @@ public testInsertStringRecordResult() public override bool Equals(object that) { - if (!(that is testInsertStringRecordResult other)) return false; + if (!(that is testInsertStringRecord_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -15144,21 +16149,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("testInsertStringRecord_result("); - int tmp516 = 0; + var tmp1535 = new StringBuilder("testInsertStringRecord_result("); + int tmp1536 = 0; if((Success != null) && __isset.success) { - if(0 < tmp516++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1536++) { tmp1535.Append(", "); } + tmp1535.Append("Success: "); + Success.ToString(tmp1535); } - sb.Append(')'); - return sb.ToString(); + tmp1535.Append(')'); + return tmp1535.ToString(); } } - public partial class testInsertRecordsArgs : TBase + public partial class testInsertRecords_args : TBase { private TSInsertRecordsReq _req; @@ -15182,7 +16187,7 @@ public struct Isset public bool req; } - public testInsertRecordsArgs() + public testInsertRecords_args() { } @@ -15235,15 +16240,15 @@ public testInsertRecordsArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("testInsertRecords_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1537 = new TStruct("testInsertRecords_args"); + await oprot.WriteStructBeginAsync(tmp1537, cancellationToken); + var tmp1538 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1538.Name = "req"; + tmp1538.Type = TType.Struct; + tmp1538.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1538, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -15258,7 +16263,7 @@ public testInsertRecordsArgs() public override bool Equals(object that) { - if (!(that is testInsertRecordsArgs other)) return false; + if (!(that is testInsertRecords_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -15276,21 +16281,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("testInsertRecords_args("); - int tmp517 = 0; + var tmp1539 = new StringBuilder("testInsertRecords_args("); + int tmp1540 = 0; if((Req != null) && __isset.req) { - if(0 < tmp517++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1540++) { tmp1539.Append(", "); } + tmp1539.Append("Req: "); + Req.ToString(tmp1539); } - sb.Append(')'); - return sb.ToString(); + tmp1539.Append(')'); + return tmp1539.ToString(); } } - public partial class testInsertRecordsResult : TBase + public partial class testInsertRecords_result : TBase { private TSStatus _success; @@ -15314,7 +16319,7 @@ public struct Isset public bool success; } - public testInsertRecordsResult() + public testInsertRecords_result() { } @@ -15367,18 +16372,18 @@ public testInsertRecordsResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("testInsertRecords_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1541 = new TStruct("testInsertRecords_result"); + await oprot.WriteStructBeginAsync(tmp1541, cancellationToken); + var tmp1542 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1542.Name = "Success"; + tmp1542.Type = TType.Struct; + tmp1542.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1542, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -15394,7 +16399,7 @@ public testInsertRecordsResult() public override bool Equals(object that) { - if (!(that is testInsertRecordsResult other)) return false; + if (!(that is testInsertRecords_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -15412,21 +16417,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("testInsertRecords_result("); - int tmp518 = 0; + var tmp1543 = new StringBuilder("testInsertRecords_result("); + int tmp1544 = 0; if((Success != null) && __isset.success) { - if(0 < tmp518++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1544++) { tmp1543.Append(", "); } + tmp1543.Append("Success: "); + Success.ToString(tmp1543); } - sb.Append(')'); - return sb.ToString(); + tmp1543.Append(')'); + return tmp1543.ToString(); } } - public partial class testInsertRecordsOfOneDeviceArgs : TBase + public partial class testInsertRecordsOfOneDevice_args : TBase { private TSInsertRecordsOfOneDeviceReq _req; @@ -15450,7 +16455,7 @@ public struct Isset public bool req; } - public testInsertRecordsOfOneDeviceArgs() + public testInsertRecordsOfOneDevice_args() { } @@ -15503,15 +16508,15 @@ public testInsertRecordsOfOneDeviceArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("testInsertRecordsOfOneDevice_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1545 = new TStruct("testInsertRecordsOfOneDevice_args"); + await oprot.WriteStructBeginAsync(tmp1545, cancellationToken); + var tmp1546 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1546.Name = "req"; + tmp1546.Type = TType.Struct; + tmp1546.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1546, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -15526,7 +16531,7 @@ public testInsertRecordsOfOneDeviceArgs() public override bool Equals(object that) { - if (!(that is testInsertRecordsOfOneDeviceArgs other)) return false; + if (!(that is testInsertRecordsOfOneDevice_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -15544,21 +16549,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("testInsertRecordsOfOneDevice_args("); - int tmp519 = 0; + var tmp1547 = new StringBuilder("testInsertRecordsOfOneDevice_args("); + int tmp1548 = 0; if((Req != null) && __isset.req) { - if(0 < tmp519++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1548++) { tmp1547.Append(", "); } + tmp1547.Append("Req: "); + Req.ToString(tmp1547); } - sb.Append(')'); - return sb.ToString(); + tmp1547.Append(')'); + return tmp1547.ToString(); } } - public partial class testInsertRecordsOfOneDeviceResult : TBase + public partial class testInsertRecordsOfOneDevice_result : TBase { private TSStatus _success; @@ -15582,7 +16587,7 @@ public struct Isset public bool success; } - public testInsertRecordsOfOneDeviceResult() + public testInsertRecordsOfOneDevice_result() { } @@ -15635,18 +16640,18 @@ public testInsertRecordsOfOneDeviceResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("testInsertRecordsOfOneDevice_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1549 = new TStruct("testInsertRecordsOfOneDevice_result"); + await oprot.WriteStructBeginAsync(tmp1549, cancellationToken); + var tmp1550 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1550.Name = "Success"; + tmp1550.Type = TType.Struct; + tmp1550.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1550, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -15662,7 +16667,7 @@ public testInsertRecordsOfOneDeviceResult() public override bool Equals(object that) { - if (!(that is testInsertRecordsOfOneDeviceResult other)) return false; + if (!(that is testInsertRecordsOfOneDevice_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -15680,21 +16685,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("testInsertRecordsOfOneDevice_result("); - int tmp520 = 0; + var tmp1551 = new StringBuilder("testInsertRecordsOfOneDevice_result("); + int tmp1552 = 0; if((Success != null) && __isset.success) { - if(0 < tmp520++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1552++) { tmp1551.Append(", "); } + tmp1551.Append("Success: "); + Success.ToString(tmp1551); } - sb.Append(')'); - return sb.ToString(); + tmp1551.Append(')'); + return tmp1551.ToString(); } } - public partial class testInsertStringRecordsArgs : TBase + public partial class testInsertStringRecords_args : TBase { private TSInsertStringRecordsReq _req; @@ -15718,7 +16723,7 @@ public struct Isset public bool req; } - public testInsertStringRecordsArgs() + public testInsertStringRecords_args() { } @@ -15771,15 +16776,15 @@ public testInsertStringRecordsArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("testInsertStringRecords_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1553 = new TStruct("testInsertStringRecords_args"); + await oprot.WriteStructBeginAsync(tmp1553, cancellationToken); + var tmp1554 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1554.Name = "req"; + tmp1554.Type = TType.Struct; + tmp1554.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1554, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -15794,7 +16799,7 @@ public testInsertStringRecordsArgs() public override bool Equals(object that) { - if (!(that is testInsertStringRecordsArgs other)) return false; + if (!(that is testInsertStringRecords_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -15812,21 +16817,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("testInsertStringRecords_args("); - int tmp521 = 0; + var tmp1555 = new StringBuilder("testInsertStringRecords_args("); + int tmp1556 = 0; if((Req != null) && __isset.req) { - if(0 < tmp521++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1556++) { tmp1555.Append(", "); } + tmp1555.Append("Req: "); + Req.ToString(tmp1555); } - sb.Append(')'); - return sb.ToString(); + tmp1555.Append(')'); + return tmp1555.ToString(); } } - public partial class testInsertStringRecordsResult : TBase + public partial class testInsertStringRecords_result : TBase { private TSStatus _success; @@ -15850,7 +16855,7 @@ public struct Isset public bool success; } - public testInsertStringRecordsResult() + public testInsertStringRecords_result() { } @@ -15903,18 +16908,18 @@ public testInsertStringRecordsResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("testInsertStringRecords_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1557 = new TStruct("testInsertStringRecords_result"); + await oprot.WriteStructBeginAsync(tmp1557, cancellationToken); + var tmp1558 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1558.Name = "Success"; + tmp1558.Type = TType.Struct; + tmp1558.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1558, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -15930,7 +16935,7 @@ public testInsertStringRecordsResult() public override bool Equals(object that) { - if (!(that is testInsertStringRecordsResult other)) return false; + if (!(that is testInsertStringRecords_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -15948,21 +16953,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("testInsertStringRecords_result("); - int tmp522 = 0; + var tmp1559 = new StringBuilder("testInsertStringRecords_result("); + int tmp1560 = 0; if((Success != null) && __isset.success) { - if(0 < tmp522++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1560++) { tmp1559.Append(", "); } + tmp1559.Append("Success: "); + Success.ToString(tmp1559); } - sb.Append(')'); - return sb.ToString(); + tmp1559.Append(')'); + return tmp1559.ToString(); } } - public partial class deleteDataArgs : TBase + public partial class deleteData_args : TBase { private TSDeleteDataReq _req; @@ -15986,7 +16991,7 @@ public struct Isset public bool req; } - public deleteDataArgs() + public deleteData_args() { } @@ -16039,15 +17044,15 @@ public deleteDataArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("deleteData_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1561 = new TStruct("deleteData_args"); + await oprot.WriteStructBeginAsync(tmp1561, cancellationToken); + var tmp1562 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1562.Name = "req"; + tmp1562.Type = TType.Struct; + tmp1562.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1562, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -16062,7 +17067,7 @@ public deleteDataArgs() public override bool Equals(object that) { - if (!(that is deleteDataArgs other)) return false; + if (!(that is deleteData_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -16080,21 +17085,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("deleteData_args("); - int tmp523 = 0; + var tmp1563 = new StringBuilder("deleteData_args("); + int tmp1564 = 0; if((Req != null) && __isset.req) { - if(0 < tmp523++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1564++) { tmp1563.Append(", "); } + tmp1563.Append("Req: "); + Req.ToString(tmp1563); } - sb.Append(')'); - return sb.ToString(); + tmp1563.Append(')'); + return tmp1563.ToString(); } } - public partial class deleteDataResult : TBase + public partial class deleteData_result : TBase { private TSStatus _success; @@ -16118,7 +17123,7 @@ public struct Isset public bool success; } - public deleteDataResult() + public deleteData_result() { } @@ -16171,18 +17176,18 @@ public deleteDataResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("deleteData_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1565 = new TStruct("deleteData_result"); + await oprot.WriteStructBeginAsync(tmp1565, cancellationToken); + var tmp1566 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1566.Name = "Success"; + tmp1566.Type = TType.Struct; + tmp1566.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1566, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -16198,7 +17203,7 @@ public deleteDataResult() public override bool Equals(object that) { - if (!(that is deleteDataResult other)) return false; + if (!(that is deleteData_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -16216,21 +17221,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("deleteData_result("); - int tmp524 = 0; + var tmp1567 = new StringBuilder("deleteData_result("); + int tmp1568 = 0; if((Success != null) && __isset.success) { - if(0 < tmp524++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1568++) { tmp1567.Append(", "); } + tmp1567.Append("Success: "); + Success.ToString(tmp1567); } - sb.Append(')'); - return sb.ToString(); + tmp1567.Append(')'); + return tmp1567.ToString(); } } - public partial class executeRawDataQueryArgs : TBase + public partial class executeRawDataQuery_args : TBase { private TSRawDataQueryReq _req; @@ -16254,7 +17259,7 @@ public struct Isset public bool req; } - public executeRawDataQueryArgs() + public executeRawDataQuery_args() { } @@ -16307,15 +17312,15 @@ public executeRawDataQueryArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeRawDataQuery_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1569 = new TStruct("executeRawDataQuery_args"); + await oprot.WriteStructBeginAsync(tmp1569, cancellationToken); + var tmp1570 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1570.Name = "req"; + tmp1570.Type = TType.Struct; + tmp1570.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1570, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -16330,7 +17335,7 @@ public executeRawDataQueryArgs() public override bool Equals(object that) { - if (!(that is executeRawDataQueryArgs other)) return false; + if (!(that is executeRawDataQuery_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -16348,21 +17353,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeRawDataQuery_args("); - int tmp525 = 0; + var tmp1571 = new StringBuilder("executeRawDataQuery_args("); + int tmp1572 = 0; if((Req != null) && __isset.req) { - if(0 < tmp525++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1572++) { tmp1571.Append(", "); } + tmp1571.Append("Req: "); + Req.ToString(tmp1571); } - sb.Append(')'); - return sb.ToString(); + tmp1571.Append(')'); + return tmp1571.ToString(); } } - public partial class executeRawDataQueryResult : TBase + public partial class executeRawDataQuery_result : TBase { private TSExecuteStatementResp _success; @@ -16386,7 +17391,7 @@ public struct Isset public bool success; } - public executeRawDataQueryResult() + public executeRawDataQuery_result() { } @@ -16439,18 +17444,18 @@ public executeRawDataQueryResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeRawDataQuery_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1573 = new TStruct("executeRawDataQuery_result"); + await oprot.WriteStructBeginAsync(tmp1573, cancellationToken); + var tmp1574 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1574.Name = "Success"; + tmp1574.Type = TType.Struct; + tmp1574.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1574, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -16466,7 +17471,7 @@ public executeRawDataQueryResult() public override bool Equals(object that) { - if (!(that is executeRawDataQueryResult other)) return false; + if (!(that is executeRawDataQuery_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -16484,21 +17489,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeRawDataQuery_result("); - int tmp526 = 0; + var tmp1575 = new StringBuilder("executeRawDataQuery_result("); + int tmp1576 = 0; if((Success != null) && __isset.success) { - if(0 < tmp526++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1576++) { tmp1575.Append(", "); } + tmp1575.Append("Success: "); + Success.ToString(tmp1575); } - sb.Append(')'); - return sb.ToString(); + tmp1575.Append(')'); + return tmp1575.ToString(); } } - public partial class executeLastDataQueryArgs : TBase + public partial class executeLastDataQuery_args : TBase { private TSLastDataQueryReq _req; @@ -16522,7 +17527,7 @@ public struct Isset public bool req; } - public executeLastDataQueryArgs() + public executeLastDataQuery_args() { } @@ -16575,15 +17580,15 @@ public executeLastDataQueryArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeLastDataQuery_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1577 = new TStruct("executeLastDataQuery_args"); + await oprot.WriteStructBeginAsync(tmp1577, cancellationToken); + var tmp1578 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1578.Name = "req"; + tmp1578.Type = TType.Struct; + tmp1578.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1578, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -16598,7 +17603,7 @@ public executeLastDataQueryArgs() public override bool Equals(object that) { - if (!(that is executeLastDataQueryArgs other)) return false; + if (!(that is executeLastDataQuery_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -16616,21 +17621,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeLastDataQuery_args("); - int tmp527 = 0; + var tmp1579 = new StringBuilder("executeLastDataQuery_args("); + int tmp1580 = 0; if((Req != null) && __isset.req) { - if(0 < tmp527++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1580++) { tmp1579.Append(", "); } + tmp1579.Append("Req: "); + Req.ToString(tmp1579); } - sb.Append(')'); - return sb.ToString(); + tmp1579.Append(')'); + return tmp1579.ToString(); } } - public partial class executeLastDataQueryResult : TBase + public partial class executeLastDataQuery_result : TBase { private TSExecuteStatementResp _success; @@ -16654,7 +17659,7 @@ public struct Isset public bool success; } - public executeLastDataQueryResult() + public executeLastDataQuery_result() { } @@ -16707,18 +17712,18 @@ public executeLastDataQueryResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeLastDataQuery_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1581 = new TStruct("executeLastDataQuery_result"); + await oprot.WriteStructBeginAsync(tmp1581, cancellationToken); + var tmp1582 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1582.Name = "Success"; + tmp1582.Type = TType.Struct; + tmp1582.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1582, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -16734,7 +17739,7 @@ public executeLastDataQueryResult() public override bool Equals(object that) { - if (!(that is executeLastDataQueryResult other)) return false; + if (!(that is executeLastDataQuery_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -16752,21 +17757,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeLastDataQuery_result("); - int tmp528 = 0; + var tmp1583 = new StringBuilder("executeLastDataQuery_result("); + int tmp1584 = 0; if((Success != null) && __isset.success) { - if(0 < tmp528++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1584++) { tmp1583.Append(", "); } + tmp1583.Append("Success: "); + Success.ToString(tmp1583); } - sb.Append(')'); - return sb.ToString(); + tmp1583.Append(')'); + return tmp1583.ToString(); } } - public partial class executeAggregationQueryArgs : TBase + public partial class executeAggregationQuery_args : TBase { private TSAggregationQueryReq _req; @@ -16790,7 +17795,7 @@ public struct Isset public bool req; } - public executeAggregationQueryArgs() + public executeAggregationQuery_args() { } @@ -16843,15 +17848,15 @@ public executeAggregationQueryArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeAggregationQuery_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1585 = new TStruct("executeAggregationQuery_args"); + await oprot.WriteStructBeginAsync(tmp1585, cancellationToken); + var tmp1586 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1586.Name = "req"; + tmp1586.Type = TType.Struct; + tmp1586.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1586, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -16866,7 +17871,7 @@ public executeAggregationQueryArgs() public override bool Equals(object that) { - if (!(that is executeAggregationQueryArgs other)) return false; + if (!(that is executeAggregationQuery_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -16884,21 +17889,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeAggregationQuery_args("); - int tmp529 = 0; + var tmp1587 = new StringBuilder("executeAggregationQuery_args("); + int tmp1588 = 0; if((Req != null) && __isset.req) { - if(0 < tmp529++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1588++) { tmp1587.Append(", "); } + tmp1587.Append("Req: "); + Req.ToString(tmp1587); } - sb.Append(')'); - return sb.ToString(); + tmp1587.Append(')'); + return tmp1587.ToString(); } } - public partial class executeAggregationQueryResult : TBase + public partial class executeAggregationQuery_result : TBase { private TSExecuteStatementResp _success; @@ -16922,7 +17927,7 @@ public struct Isset public bool success; } - public executeAggregationQueryResult() + public executeAggregationQuery_result() { } @@ -16975,18 +17980,18 @@ public executeAggregationQueryResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("executeAggregationQuery_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1589 = new TStruct("executeAggregationQuery_result"); + await oprot.WriteStructBeginAsync(tmp1589, cancellationToken); + var tmp1590 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1590.Name = "Success"; + tmp1590.Type = TType.Struct; + tmp1590.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1590, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -17002,7 +18007,7 @@ public executeAggregationQueryResult() public override bool Equals(object that) { - if (!(that is executeAggregationQueryResult other)) return false; + if (!(that is executeAggregationQuery_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -17020,21 +18025,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("executeAggregationQuery_result("); - int tmp530 = 0; + var tmp1591 = new StringBuilder("executeAggregationQuery_result("); + int tmp1592 = 0; if((Success != null) && __isset.success) { - if(0 < tmp530++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1592++) { tmp1591.Append(", "); } + tmp1591.Append("Success: "); + Success.ToString(tmp1591); } - sb.Append(')'); - return sb.ToString(); + tmp1591.Append(')'); + return tmp1591.ToString(); } } - public partial class requestStatementIdArgs : TBase + public partial class requestStatementId_args : TBase { private long _sessionId; @@ -17058,7 +18063,7 @@ public struct Isset public bool sessionId; } - public requestStatementIdArgs() + public requestStatementId_args() { } @@ -17110,15 +18115,15 @@ public requestStatementIdArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("requestStatementId_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1593 = new TStruct("requestStatementId_args"); + await oprot.WriteStructBeginAsync(tmp1593, cancellationToken); + var tmp1594 = new TField(); if(__isset.sessionId) { - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1594.Name = "sessionId"; + tmp1594.Type = TType.I64; + tmp1594.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1594, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -17133,7 +18138,7 @@ public requestStatementIdArgs() public override bool Equals(object that) { - if (!(that is requestStatementIdArgs other)) return false; + if (!(that is requestStatementId_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.sessionId == other.__isset.sessionId) && ((!__isset.sessionId) || (System.Object.Equals(SessionId, other.SessionId)))); } @@ -17151,21 +18156,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("requestStatementId_args("); - int tmp531 = 0; + var tmp1595 = new StringBuilder("requestStatementId_args("); + int tmp1596 = 0; if(__isset.sessionId) { - if(0 < tmp531++) { sb.Append(", "); } - sb.Append("SessionId: "); - SessionId.ToString(sb); + if(0 < tmp1596++) { tmp1595.Append(", "); } + tmp1595.Append("SessionId: "); + SessionId.ToString(tmp1595); } - sb.Append(')'); - return sb.ToString(); + tmp1595.Append(')'); + return tmp1595.ToString(); } } - public partial class requestStatementIdResult : TBase + public partial class requestStatementId_result : TBase { private long _success; @@ -17189,7 +18194,7 @@ public struct Isset public bool success; } - public requestStatementIdResult() + public requestStatementId_result() { } @@ -17241,16 +18246,16 @@ public requestStatementIdResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("requestStatementId_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1597 = new TStruct("requestStatementId_result"); + await oprot.WriteStructBeginAsync(tmp1597, cancellationToken); + var tmp1598 = new TField(); if(this.__isset.success) { - field.Name = "Success"; - field.Type = TType.I64; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1598.Name = "Success"; + tmp1598.Type = TType.I64; + tmp1598.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1598, cancellationToken); await oprot.WriteI64Async(Success, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -17265,7 +18270,7 @@ public requestStatementIdResult() public override bool Equals(object that) { - if (!(that is requestStatementIdResult other)) return false; + if (!(that is requestStatementId_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -17283,21 +18288,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("requestStatementId_result("); - int tmp532 = 0; + var tmp1599 = new StringBuilder("requestStatementId_result("); + int tmp1600 = 0; if(__isset.success) { - if(0 < tmp532++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1600++) { tmp1599.Append(", "); } + tmp1599.Append("Success: "); + Success.ToString(tmp1599); } - sb.Append(')'); - return sb.ToString(); + tmp1599.Append(')'); + return tmp1599.ToString(); } } - public partial class createSchemaTemplateArgs : TBase + public partial class createSchemaTemplate_args : TBase { private TSCreateSchemaTemplateReq _req; @@ -17321,7 +18326,7 @@ public struct Isset public bool req; } - public createSchemaTemplateArgs() + public createSchemaTemplate_args() { } @@ -17374,15 +18379,15 @@ public createSchemaTemplateArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("createSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1601 = new TStruct("createSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(tmp1601, cancellationToken); + var tmp1602 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1602.Name = "req"; + tmp1602.Type = TType.Struct; + tmp1602.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1602, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -17397,7 +18402,7 @@ public createSchemaTemplateArgs() public override bool Equals(object that) { - if (!(that is createSchemaTemplateArgs other)) return false; + if (!(that is createSchemaTemplate_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -17415,21 +18420,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("createSchemaTemplate_args("); - int tmp533 = 0; + var tmp1603 = new StringBuilder("createSchemaTemplate_args("); + int tmp1604 = 0; if((Req != null) && __isset.req) { - if(0 < tmp533++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1604++) { tmp1603.Append(", "); } + tmp1603.Append("Req: "); + Req.ToString(tmp1603); } - sb.Append(')'); - return sb.ToString(); + tmp1603.Append(')'); + return tmp1603.ToString(); } } - public partial class createSchemaTemplateResult : TBase + public partial class createSchemaTemplate_result : TBase { private TSStatus _success; @@ -17453,7 +18458,7 @@ public struct Isset public bool success; } - public createSchemaTemplateResult() + public createSchemaTemplate_result() { } @@ -17506,18 +18511,18 @@ public createSchemaTemplateResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("createSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1605 = new TStruct("createSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(tmp1605, cancellationToken); + var tmp1606 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1606.Name = "Success"; + tmp1606.Type = TType.Struct; + tmp1606.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1606, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -17533,7 +18538,7 @@ public createSchemaTemplateResult() public override bool Equals(object that) { - if (!(that is createSchemaTemplateResult other)) return false; + if (!(that is createSchemaTemplate_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -17551,21 +18556,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("createSchemaTemplate_result("); - int tmp534 = 0; + var tmp1607 = new StringBuilder("createSchemaTemplate_result("); + int tmp1608 = 0; if((Success != null) && __isset.success) { - if(0 < tmp534++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1608++) { tmp1607.Append(", "); } + tmp1607.Append("Success: "); + Success.ToString(tmp1607); } - sb.Append(')'); - return sb.ToString(); + tmp1607.Append(')'); + return tmp1607.ToString(); } } - public partial class appendSchemaTemplateArgs : TBase + public partial class appendSchemaTemplate_args : TBase { private TSAppendSchemaTemplateReq _req; @@ -17589,7 +18594,7 @@ public struct Isset public bool req; } - public appendSchemaTemplateArgs() + public appendSchemaTemplate_args() { } @@ -17642,15 +18647,15 @@ public appendSchemaTemplateArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("appendSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1609 = new TStruct("appendSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(tmp1609, cancellationToken); + var tmp1610 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1610.Name = "req"; + tmp1610.Type = TType.Struct; + tmp1610.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1610, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -17665,7 +18670,7 @@ public appendSchemaTemplateArgs() public override bool Equals(object that) { - if (!(that is appendSchemaTemplateArgs other)) return false; + if (!(that is appendSchemaTemplate_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -17683,21 +18688,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("appendSchemaTemplate_args("); - int tmp535 = 0; + var tmp1611 = new StringBuilder("appendSchemaTemplate_args("); + int tmp1612 = 0; if((Req != null) && __isset.req) { - if(0 < tmp535++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1612++) { tmp1611.Append(", "); } + tmp1611.Append("Req: "); + Req.ToString(tmp1611); } - sb.Append(')'); - return sb.ToString(); + tmp1611.Append(')'); + return tmp1611.ToString(); } } - public partial class appendSchemaTemplateResult : TBase + public partial class appendSchemaTemplate_result : TBase { private TSStatus _success; @@ -17721,7 +18726,7 @@ public struct Isset public bool success; } - public appendSchemaTemplateResult() + public appendSchemaTemplate_result() { } @@ -17774,18 +18779,18 @@ public appendSchemaTemplateResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("appendSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1613 = new TStruct("appendSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(tmp1613, cancellationToken); + var tmp1614 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1614.Name = "Success"; + tmp1614.Type = TType.Struct; + tmp1614.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1614, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -17801,7 +18806,7 @@ public appendSchemaTemplateResult() public override bool Equals(object that) { - if (!(that is appendSchemaTemplateResult other)) return false; + if (!(that is appendSchemaTemplate_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -17819,21 +18824,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("appendSchemaTemplate_result("); - int tmp536 = 0; + var tmp1615 = new StringBuilder("appendSchemaTemplate_result("); + int tmp1616 = 0; if((Success != null) && __isset.success) { - if(0 < tmp536++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1616++) { tmp1615.Append(", "); } + tmp1615.Append("Success: "); + Success.ToString(tmp1615); } - sb.Append(')'); - return sb.ToString(); + tmp1615.Append(')'); + return tmp1615.ToString(); } } - public partial class pruneSchemaTemplateArgs : TBase + public partial class pruneSchemaTemplate_args : TBase { private TSPruneSchemaTemplateReq _req; @@ -17857,7 +18862,7 @@ public struct Isset public bool req; } - public pruneSchemaTemplateArgs() + public pruneSchemaTemplate_args() { } @@ -17910,15 +18915,15 @@ public pruneSchemaTemplateArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("pruneSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1617 = new TStruct("pruneSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(tmp1617, cancellationToken); + var tmp1618 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1618.Name = "req"; + tmp1618.Type = TType.Struct; + tmp1618.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1618, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -17933,7 +18938,7 @@ public pruneSchemaTemplateArgs() public override bool Equals(object that) { - if (!(that is pruneSchemaTemplateArgs other)) return false; + if (!(that is pruneSchemaTemplate_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -17951,21 +18956,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("pruneSchemaTemplate_args("); - int tmp537 = 0; + var tmp1619 = new StringBuilder("pruneSchemaTemplate_args("); + int tmp1620 = 0; if((Req != null) && __isset.req) { - if(0 < tmp537++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1620++) { tmp1619.Append(", "); } + tmp1619.Append("Req: "); + Req.ToString(tmp1619); } - sb.Append(')'); - return sb.ToString(); + tmp1619.Append(')'); + return tmp1619.ToString(); } } - public partial class pruneSchemaTemplateResult : TBase + public partial class pruneSchemaTemplate_result : TBase { private TSStatus _success; @@ -17989,7 +18994,7 @@ public struct Isset public bool success; } - public pruneSchemaTemplateResult() + public pruneSchemaTemplate_result() { } @@ -18042,18 +19047,18 @@ public pruneSchemaTemplateResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("pruneSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1621 = new TStruct("pruneSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(tmp1621, cancellationToken); + var tmp1622 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1622.Name = "Success"; + tmp1622.Type = TType.Struct; + tmp1622.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1622, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -18069,7 +19074,7 @@ public pruneSchemaTemplateResult() public override bool Equals(object that) { - if (!(that is pruneSchemaTemplateResult other)) return false; + if (!(that is pruneSchemaTemplate_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -18087,21 +19092,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("pruneSchemaTemplate_result("); - int tmp538 = 0; + var tmp1623 = new StringBuilder("pruneSchemaTemplate_result("); + int tmp1624 = 0; if((Success != null) && __isset.success) { - if(0 < tmp538++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1624++) { tmp1623.Append(", "); } + tmp1623.Append("Success: "); + Success.ToString(tmp1623); } - sb.Append(')'); - return sb.ToString(); + tmp1623.Append(')'); + return tmp1623.ToString(); } } - public partial class querySchemaTemplateArgs : TBase + public partial class querySchemaTemplate_args : TBase { private TSQueryTemplateReq _req; @@ -18125,7 +19130,7 @@ public struct Isset public bool req; } - public querySchemaTemplateArgs() + public querySchemaTemplate_args() { } @@ -18178,15 +19183,15 @@ public querySchemaTemplateArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("querySchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1625 = new TStruct("querySchemaTemplate_args"); + await oprot.WriteStructBeginAsync(tmp1625, cancellationToken); + var tmp1626 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1626.Name = "req"; + tmp1626.Type = TType.Struct; + tmp1626.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1626, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -18201,7 +19206,7 @@ public querySchemaTemplateArgs() public override bool Equals(object that) { - if (!(that is querySchemaTemplateArgs other)) return false; + if (!(that is querySchemaTemplate_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -18219,21 +19224,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("querySchemaTemplate_args("); - int tmp539 = 0; + var tmp1627 = new StringBuilder("querySchemaTemplate_args("); + int tmp1628 = 0; if((Req != null) && __isset.req) { - if(0 < tmp539++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1628++) { tmp1627.Append(", "); } + tmp1627.Append("Req: "); + Req.ToString(tmp1627); } - sb.Append(')'); - return sb.ToString(); + tmp1627.Append(')'); + return tmp1627.ToString(); } } - public partial class querySchemaTemplateResult : TBase + public partial class querySchemaTemplate_result : TBase { private TSQueryTemplateResp _success; @@ -18257,7 +19262,7 @@ public struct Isset public bool success; } - public querySchemaTemplateResult() + public querySchemaTemplate_result() { } @@ -18310,18 +19315,18 @@ public querySchemaTemplateResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("querySchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1629 = new TStruct("querySchemaTemplate_result"); + await oprot.WriteStructBeginAsync(tmp1629, cancellationToken); + var tmp1630 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1630.Name = "Success"; + tmp1630.Type = TType.Struct; + tmp1630.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1630, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -18337,7 +19342,7 @@ public querySchemaTemplateResult() public override bool Equals(object that) { - if (!(that is querySchemaTemplateResult other)) return false; + if (!(that is querySchemaTemplate_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -18355,24 +19360,24 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("querySchemaTemplate_result("); - int tmp540 = 0; + var tmp1631 = new StringBuilder("querySchemaTemplate_result("); + int tmp1632 = 0; if((Success != null) && __isset.success) { - if(0 < tmp540++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1632++) { tmp1631.Append(", "); } + tmp1631.Append("Success: "); + Success.ToString(tmp1631); } - sb.Append(')'); - return sb.ToString(); + tmp1631.Append(')'); + return tmp1631.ToString(); } } - public partial class showConfigurationTemplateArgs : TBase + public partial class showConfigurationTemplate_args : TBase { - public showConfigurationTemplateArgs() + public showConfigurationTemplate_args() { } @@ -18414,8 +19419,8 @@ public showConfigurationTemplateArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("showConfigurationTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); + var tmp1633 = new TStruct("showConfigurationTemplate_args"); + await oprot.WriteStructBeginAsync(tmp1633, cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -18427,7 +19432,7 @@ public showConfigurationTemplateArgs() public override bool Equals(object that) { - if (!(that is showConfigurationTemplateArgs other)) return false; + if (!(that is showConfigurationTemplate_args other)) return false; if (ReferenceEquals(this, other)) return true; return true; } @@ -18441,14 +19446,14 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("showConfigurationTemplate_args("); - sb.Append(')'); - return sb.ToString(); + var tmp1634 = new StringBuilder("showConfigurationTemplate_args("); + tmp1634.Append(')'); + return tmp1634.ToString(); } } - public partial class showConfigurationTemplateResult : TBase + public partial class showConfigurationTemplate_result : TBase { private TShowConfigurationTemplateResp _success; @@ -18472,7 +19477,7 @@ public struct Isset public bool success; } - public showConfigurationTemplateResult() + public showConfigurationTemplate_result() { } @@ -18525,18 +19530,18 @@ public showConfigurationTemplateResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("showConfigurationTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1636 = new TStruct("showConfigurationTemplate_result"); + await oprot.WriteStructBeginAsync(tmp1636, cancellationToken); + var tmp1637 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1637.Name = "Success"; + tmp1637.Type = TType.Struct; + tmp1637.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1637, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -18552,7 +19557,7 @@ public showConfigurationTemplateResult() public override bool Equals(object that) { - if (!(that is showConfigurationTemplateResult other)) return false; + if (!(that is showConfigurationTemplate_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -18570,21 +19575,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("showConfigurationTemplate_result("); - int tmp542 = 0; + var tmp1638 = new StringBuilder("showConfigurationTemplate_result("); + int tmp1639 = 0; if((Success != null) && __isset.success) { - if(0 < tmp542++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1639++) { tmp1638.Append(", "); } + tmp1638.Append("Success: "); + Success.ToString(tmp1638); } - sb.Append(')'); - return sb.ToString(); + tmp1638.Append(')'); + return tmp1638.ToString(); } } - public partial class showConfigurationArgs : TBase + public partial class showConfiguration_args : TBase { private int _nodeId; @@ -18608,7 +19613,7 @@ public struct Isset public bool nodeId; } - public showConfigurationArgs() + public showConfiguration_args() { } @@ -18660,15 +19665,15 @@ public showConfigurationArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("showConfiguration_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1640 = new TStruct("showConfiguration_args"); + await oprot.WriteStructBeginAsync(tmp1640, cancellationToken); + var tmp1641 = new TField(); if(__isset.nodeId) { - field.Name = "nodeId"; - field.Type = TType.I32; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1641.Name = "nodeId"; + tmp1641.Type = TType.I32; + tmp1641.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1641, cancellationToken); await oprot.WriteI32Async(NodeId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -18683,7 +19688,7 @@ public showConfigurationArgs() public override bool Equals(object that) { - if (!(that is showConfigurationArgs other)) return false; + if (!(that is showConfiguration_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.nodeId == other.__isset.nodeId) && ((!__isset.nodeId) || (System.Object.Equals(NodeId, other.NodeId)))); } @@ -18701,21 +19706,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("showConfiguration_args("); - int tmp543 = 0; + var tmp1642 = new StringBuilder("showConfiguration_args("); + int tmp1643 = 0; if(__isset.nodeId) { - if(0 < tmp543++) { sb.Append(", "); } - sb.Append("NodeId: "); - NodeId.ToString(sb); + if(0 < tmp1643++) { tmp1642.Append(", "); } + tmp1642.Append("NodeId: "); + NodeId.ToString(tmp1642); } - sb.Append(')'); - return sb.ToString(); + tmp1642.Append(')'); + return tmp1642.ToString(); } } - public partial class showConfigurationResult : TBase + public partial class showConfiguration_result : TBase { private TShowConfigurationResp _success; @@ -18739,7 +19744,7 @@ public struct Isset public bool success; } - public showConfigurationResult() + public showConfiguration_result() { } @@ -18792,18 +19797,18 @@ public showConfigurationResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("showConfiguration_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1644 = new TStruct("showConfiguration_result"); + await oprot.WriteStructBeginAsync(tmp1644, cancellationToken); + var tmp1645 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1645.Name = "Success"; + tmp1645.Type = TType.Struct; + tmp1645.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1645, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -18819,7 +19824,7 @@ public showConfigurationResult() public override bool Equals(object that) { - if (!(that is showConfigurationResult other)) return false; + if (!(that is showConfiguration_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -18837,21 +19842,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("showConfiguration_result("); - int tmp544 = 0; + var tmp1646 = new StringBuilder("showConfiguration_result("); + int tmp1647 = 0; if((Success != null) && __isset.success) { - if(0 < tmp544++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1647++) { tmp1646.Append(", "); } + tmp1646.Append("Success: "); + Success.ToString(tmp1646); } - sb.Append(')'); - return sb.ToString(); + tmp1646.Append(')'); + return tmp1646.ToString(); } } - public partial class setSchemaTemplateArgs : TBase + public partial class setSchemaTemplate_args : TBase { private TSSetSchemaTemplateReq _req; @@ -18875,7 +19880,7 @@ public struct Isset public bool req; } - public setSchemaTemplateArgs() + public setSchemaTemplate_args() { } @@ -18928,15 +19933,15 @@ public setSchemaTemplateArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("setSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1648 = new TStruct("setSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(tmp1648, cancellationToken); + var tmp1649 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1649.Name = "req"; + tmp1649.Type = TType.Struct; + tmp1649.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1649, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -18951,7 +19956,7 @@ public setSchemaTemplateArgs() public override bool Equals(object that) { - if (!(that is setSchemaTemplateArgs other)) return false; + if (!(that is setSchemaTemplate_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -18969,21 +19974,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("setSchemaTemplate_args("); - int tmp545 = 0; + var tmp1650 = new StringBuilder("setSchemaTemplate_args("); + int tmp1651 = 0; if((Req != null) && __isset.req) { - if(0 < tmp545++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1651++) { tmp1650.Append(", "); } + tmp1650.Append("Req: "); + Req.ToString(tmp1650); } - sb.Append(')'); - return sb.ToString(); + tmp1650.Append(')'); + return tmp1650.ToString(); } } - public partial class setSchemaTemplateResult : TBase + public partial class setSchemaTemplate_result : TBase { private TSStatus _success; @@ -19007,7 +20012,7 @@ public struct Isset public bool success; } - public setSchemaTemplateResult() + public setSchemaTemplate_result() { } @@ -19060,18 +20065,18 @@ public setSchemaTemplateResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("setSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1652 = new TStruct("setSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(tmp1652, cancellationToken); + var tmp1653 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1653.Name = "Success"; + tmp1653.Type = TType.Struct; + tmp1653.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1653, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -19087,7 +20092,7 @@ public setSchemaTemplateResult() public override bool Equals(object that) { - if (!(that is setSchemaTemplateResult other)) return false; + if (!(that is setSchemaTemplate_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -19105,21 +20110,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("setSchemaTemplate_result("); - int tmp546 = 0; + var tmp1654 = new StringBuilder("setSchemaTemplate_result("); + int tmp1655 = 0; if((Success != null) && __isset.success) { - if(0 < tmp546++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1655++) { tmp1654.Append(", "); } + tmp1654.Append("Success: "); + Success.ToString(tmp1654); } - sb.Append(')'); - return sb.ToString(); + tmp1654.Append(')'); + return tmp1654.ToString(); } } - public partial class unsetSchemaTemplateArgs : TBase + public partial class unsetSchemaTemplate_args : TBase { private TSUnsetSchemaTemplateReq _req; @@ -19143,7 +20148,7 @@ public struct Isset public bool req; } - public unsetSchemaTemplateArgs() + public unsetSchemaTemplate_args() { } @@ -19196,15 +20201,15 @@ public unsetSchemaTemplateArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("unsetSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1656 = new TStruct("unsetSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(tmp1656, cancellationToken); + var tmp1657 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1657.Name = "req"; + tmp1657.Type = TType.Struct; + tmp1657.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1657, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -19219,7 +20224,7 @@ public unsetSchemaTemplateArgs() public override bool Equals(object that) { - if (!(that is unsetSchemaTemplateArgs other)) return false; + if (!(that is unsetSchemaTemplate_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -19237,21 +20242,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("unsetSchemaTemplate_args("); - int tmp547 = 0; + var tmp1658 = new StringBuilder("unsetSchemaTemplate_args("); + int tmp1659 = 0; if((Req != null) && __isset.req) { - if(0 < tmp547++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1659++) { tmp1658.Append(", "); } + tmp1658.Append("Req: "); + Req.ToString(tmp1658); } - sb.Append(')'); - return sb.ToString(); + tmp1658.Append(')'); + return tmp1658.ToString(); } } - public partial class unsetSchemaTemplateResult : TBase + public partial class unsetSchemaTemplate_result : TBase { private TSStatus _success; @@ -19275,7 +20280,7 @@ public struct Isset public bool success; } - public unsetSchemaTemplateResult() + public unsetSchemaTemplate_result() { } @@ -19328,18 +20333,18 @@ public unsetSchemaTemplateResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("unsetSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1660 = new TStruct("unsetSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(tmp1660, cancellationToken); + var tmp1661 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1661.Name = "Success"; + tmp1661.Type = TType.Struct; + tmp1661.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1661, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -19355,7 +20360,7 @@ public unsetSchemaTemplateResult() public override bool Equals(object that) { - if (!(that is unsetSchemaTemplateResult other)) return false; + if (!(that is unsetSchemaTemplate_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -19373,21 +20378,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("unsetSchemaTemplate_result("); - int tmp548 = 0; + var tmp1662 = new StringBuilder("unsetSchemaTemplate_result("); + int tmp1663 = 0; if((Success != null) && __isset.success) { - if(0 < tmp548++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1663++) { tmp1662.Append(", "); } + tmp1662.Append("Success: "); + Success.ToString(tmp1662); } - sb.Append(')'); - return sb.ToString(); + tmp1662.Append(')'); + return tmp1662.ToString(); } } - public partial class dropSchemaTemplateArgs : TBase + public partial class dropSchemaTemplate_args : TBase { private TSDropSchemaTemplateReq _req; @@ -19411,7 +20416,7 @@ public struct Isset public bool req; } - public dropSchemaTemplateArgs() + public dropSchemaTemplate_args() { } @@ -19464,15 +20469,15 @@ public dropSchemaTemplateArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("dropSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1664 = new TStruct("dropSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(tmp1664, cancellationToken); + var tmp1665 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1665.Name = "req"; + tmp1665.Type = TType.Struct; + tmp1665.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1665, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -19487,7 +20492,7 @@ public dropSchemaTemplateArgs() public override bool Equals(object that) { - if (!(that is dropSchemaTemplateArgs other)) return false; + if (!(that is dropSchemaTemplate_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -19505,21 +20510,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("dropSchemaTemplate_args("); - int tmp549 = 0; + var tmp1666 = new StringBuilder("dropSchemaTemplate_args("); + int tmp1667 = 0; if((Req != null) && __isset.req) { - if(0 < tmp549++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1667++) { tmp1666.Append(", "); } + tmp1666.Append("Req: "); + Req.ToString(tmp1666); } - sb.Append(')'); - return sb.ToString(); + tmp1666.Append(')'); + return tmp1666.ToString(); } } - public partial class dropSchemaTemplateResult : TBase + public partial class dropSchemaTemplate_result : TBase { private TSStatus _success; @@ -19543,7 +20548,7 @@ public struct Isset public bool success; } - public dropSchemaTemplateResult() + public dropSchemaTemplate_result() { } @@ -19596,18 +20601,18 @@ public dropSchemaTemplateResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("dropSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1668 = new TStruct("dropSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(tmp1668, cancellationToken); + var tmp1669 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1669.Name = "Success"; + tmp1669.Type = TType.Struct; + tmp1669.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1669, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -19623,7 +20628,7 @@ public dropSchemaTemplateResult() public override bool Equals(object that) { - if (!(that is dropSchemaTemplateResult other)) return false; + if (!(that is dropSchemaTemplate_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -19641,21 +20646,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("dropSchemaTemplate_result("); - int tmp550 = 0; + var tmp1670 = new StringBuilder("dropSchemaTemplate_result("); + int tmp1671 = 0; if((Success != null) && __isset.success) { - if(0 < tmp550++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1671++) { tmp1670.Append(", "); } + tmp1670.Append("Success: "); + Success.ToString(tmp1670); } - sb.Append(')'); - return sb.ToString(); + tmp1670.Append(')'); + return tmp1670.ToString(); } } - public partial class createTimeseriesUsingSchemaTemplateArgs : TBase + public partial class createTimeseriesUsingSchemaTemplate_args : TBase { private TCreateTimeseriesUsingSchemaTemplateReq _req; @@ -19679,7 +20684,7 @@ public struct Isset public bool req; } - public createTimeseriesUsingSchemaTemplateArgs() + public createTimeseriesUsingSchemaTemplate_args() { } @@ -19732,15 +20737,15 @@ public createTimeseriesUsingSchemaTemplateArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("createTimeseriesUsingSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1672 = new TStruct("createTimeseriesUsingSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(tmp1672, cancellationToken); + var tmp1673 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1673.Name = "req"; + tmp1673.Type = TType.Struct; + tmp1673.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1673, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -19755,7 +20760,7 @@ public createTimeseriesUsingSchemaTemplateArgs() public override bool Equals(object that) { - if (!(that is createTimeseriesUsingSchemaTemplateArgs other)) return false; + if (!(that is createTimeseriesUsingSchemaTemplate_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -19773,21 +20778,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("createTimeseriesUsingSchemaTemplate_args("); - int tmp551 = 0; + var tmp1674 = new StringBuilder("createTimeseriesUsingSchemaTemplate_args("); + int tmp1675 = 0; if((Req != null) && __isset.req) { - if(0 < tmp551++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1675++) { tmp1674.Append(", "); } + tmp1674.Append("Req: "); + Req.ToString(tmp1674); } - sb.Append(')'); - return sb.ToString(); + tmp1674.Append(')'); + return tmp1674.ToString(); } } - public partial class createTimeseriesUsingSchemaTemplateResult : TBase + public partial class createTimeseriesUsingSchemaTemplate_result : TBase { private TSStatus _success; @@ -19811,7 +20816,7 @@ public struct Isset public bool success; } - public createTimeseriesUsingSchemaTemplateResult() + public createTimeseriesUsingSchemaTemplate_result() { } @@ -19864,18 +20869,18 @@ public createTimeseriesUsingSchemaTemplateResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("createTimeseriesUsingSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1676 = new TStruct("createTimeseriesUsingSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(tmp1676, cancellationToken); + var tmp1677 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1677.Name = "Success"; + tmp1677.Type = TType.Struct; + tmp1677.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1677, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -19891,7 +20896,7 @@ public createTimeseriesUsingSchemaTemplateResult() public override bool Equals(object that) { - if (!(that is createTimeseriesUsingSchemaTemplateResult other)) return false; + if (!(that is createTimeseriesUsingSchemaTemplate_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -19909,21 +20914,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("createTimeseriesUsingSchemaTemplate_result("); - int tmp552 = 0; + var tmp1678 = new StringBuilder("createTimeseriesUsingSchemaTemplate_result("); + int tmp1679 = 0; if((Success != null) && __isset.success) { - if(0 < tmp552++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1679++) { tmp1678.Append(", "); } + tmp1678.Append("Success: "); + Success.ToString(tmp1678); } - sb.Append(')'); - return sb.ToString(); + tmp1678.Append(')'); + return tmp1678.ToString(); } } - public partial class handshakeArgs : TBase + public partial class handshake_args : TBase { private TSyncIdentityInfo _info; @@ -19947,7 +20952,7 @@ public struct Isset public bool info; } - public handshakeArgs() + public handshake_args() { } @@ -20000,15 +21005,15 @@ public handshakeArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("handshake_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1680 = new TStruct("handshake_args"); + await oprot.WriteStructBeginAsync(tmp1680, cancellationToken); + var tmp1681 = new TField(); if((Info != null) && __isset.info) { - field.Name = "info"; - field.Type = TType.Struct; - field.ID = -1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1681.Name = "info"; + tmp1681.Type = TType.Struct; + tmp1681.ID = -1; + await oprot.WriteFieldBeginAsync(tmp1681, cancellationToken); await Info.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -20023,7 +21028,7 @@ public handshakeArgs() public override bool Equals(object that) { - if (!(that is handshakeArgs other)) return false; + if (!(that is handshake_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.info == other.__isset.info) && ((!__isset.info) || (System.Object.Equals(Info, other.Info)))); } @@ -20041,21 +21046,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("handshake_args("); - int tmp553 = 0; + var tmp1682 = new StringBuilder("handshake_args("); + int tmp1683 = 0; if((Info != null) && __isset.info) { - if(0 < tmp553++) { sb.Append(", "); } - sb.Append("Info: "); - Info.ToString(sb); + if(0 < tmp1683++) { tmp1682.Append(", "); } + tmp1682.Append("Info: "); + Info.ToString(tmp1682); } - sb.Append(')'); - return sb.ToString(); + tmp1682.Append(')'); + return tmp1682.ToString(); } } - public partial class handshakeResult : TBase + public partial class handshake_result : TBase { private TSStatus _success; @@ -20079,7 +21084,7 @@ public struct Isset public bool success; } - public handshakeResult() + public handshake_result() { } @@ -20132,18 +21137,18 @@ public handshakeResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("handshake_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1684 = new TStruct("handshake_result"); + await oprot.WriteStructBeginAsync(tmp1684, cancellationToken); + var tmp1685 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1685.Name = "Success"; + tmp1685.Type = TType.Struct; + tmp1685.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1685, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -20159,7 +21164,7 @@ public handshakeResult() public override bool Equals(object that) { - if (!(that is handshakeResult other)) return false; + if (!(that is handshake_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -20177,21 +21182,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("handshake_result("); - int tmp554 = 0; + var tmp1686 = new StringBuilder("handshake_result("); + int tmp1687 = 0; if((Success != null) && __isset.success) { - if(0 < tmp554++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1687++) { tmp1686.Append(", "); } + tmp1686.Append("Success: "); + Success.ToString(tmp1686); } - sb.Append(')'); - return sb.ToString(); + tmp1686.Append(')'); + return tmp1686.ToString(); } } - public partial class sendPipeDataArgs : TBase + public partial class sendPipeData_args : TBase { private byte[] _buff; @@ -20215,7 +21220,7 @@ public struct Isset public bool buff; } - public sendPipeDataArgs() + public sendPipeData_args() { } @@ -20267,15 +21272,15 @@ public sendPipeDataArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("sendPipeData_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1688 = new TStruct("sendPipeData_args"); + await oprot.WriteStructBeginAsync(tmp1688, cancellationToken); + var tmp1689 = new TField(); if((Buff != null) && __isset.buff) { - field.Name = "buff"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1689.Name = "buff"; + tmp1689.Type = TType.String; + tmp1689.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1689, cancellationToken); await oprot.WriteBinaryAsync(Buff, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -20290,7 +21295,7 @@ public sendPipeDataArgs() public override bool Equals(object that) { - if (!(that is sendPipeDataArgs other)) return false; + if (!(that is sendPipeData_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.buff == other.__isset.buff) && ((!__isset.buff) || (TCollections.Equals(Buff, other.Buff)))); } @@ -20308,21 +21313,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("sendPipeData_args("); - int tmp555 = 0; + var tmp1690 = new StringBuilder("sendPipeData_args("); + int tmp1691 = 0; if((Buff != null) && __isset.buff) { - if(0 < tmp555++) { sb.Append(", "); } - sb.Append("Buff: "); - Buff.ToString(sb); + if(0 < tmp1691++) { tmp1690.Append(", "); } + tmp1690.Append("Buff: "); + Buff.ToString(tmp1690); } - sb.Append(')'); - return sb.ToString(); + tmp1690.Append(')'); + return tmp1690.ToString(); } } - public partial class sendPipeDataResult : TBase + public partial class sendPipeData_result : TBase { private TSStatus _success; @@ -20346,7 +21351,7 @@ public struct Isset public bool success; } - public sendPipeDataResult() + public sendPipeData_result() { } @@ -20399,18 +21404,18 @@ public sendPipeDataResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("sendPipeData_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1692 = new TStruct("sendPipeData_result"); + await oprot.WriteStructBeginAsync(tmp1692, cancellationToken); + var tmp1693 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1693.Name = "Success"; + tmp1693.Type = TType.Struct; + tmp1693.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1693, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -20426,7 +21431,7 @@ public sendPipeDataResult() public override bool Equals(object that) { - if (!(that is sendPipeDataResult other)) return false; + if (!(that is sendPipeData_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -20444,21 +21449,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("sendPipeData_result("); - int tmp556 = 0; + var tmp1694 = new StringBuilder("sendPipeData_result("); + int tmp1695 = 0; if((Success != null) && __isset.success) { - if(0 < tmp556++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1695++) { tmp1694.Append(", "); } + tmp1694.Append("Success: "); + Success.ToString(tmp1694); } - sb.Append(')'); - return sb.ToString(); + tmp1694.Append(')'); + return tmp1694.ToString(); } } - public partial class sendFileArgs : TBase + public partial class sendFile_args : TBase { private TSyncTransportMetaInfo _metaInfo; private byte[] _buff; @@ -20497,7 +21502,7 @@ public struct Isset public bool buff; } - public sendFileArgs() + public sendFile_args() { } @@ -20560,24 +21565,24 @@ public sendFileArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("sendFile_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1696 = new TStruct("sendFile_args"); + await oprot.WriteStructBeginAsync(tmp1696, cancellationToken); + var tmp1697 = new TField(); if((MetaInfo != null) && __isset.metaInfo) { - field.Name = "metaInfo"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1697.Name = "metaInfo"; + tmp1697.Type = TType.Struct; + tmp1697.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1697, 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); + tmp1697.Name = "buff"; + tmp1697.Type = TType.String; + tmp1697.ID = 2; + await oprot.WriteFieldBeginAsync(tmp1697, cancellationToken); await oprot.WriteBinaryAsync(Buff, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -20592,7 +21597,7 @@ public sendFileArgs() public override bool Equals(object that) { - if (!(that is sendFileArgs other)) return false; + if (!(that is sendFile_args 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)))); @@ -20615,27 +21620,27 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("sendFile_args("); - int tmp557 = 0; + var tmp1698 = new StringBuilder("sendFile_args("); + int tmp1699 = 0; if((MetaInfo != null) && __isset.metaInfo) { - if(0 < tmp557++) { sb.Append(", "); } - sb.Append("MetaInfo: "); - MetaInfo.ToString(sb); + if(0 < tmp1699++) { tmp1698.Append(", "); } + tmp1698.Append("MetaInfo: "); + MetaInfo.ToString(tmp1698); } if((Buff != null) && __isset.buff) { - if(0 < tmp557++) { sb.Append(", "); } - sb.Append("Buff: "); - Buff.ToString(sb); + if(0 < tmp1699++) { tmp1698.Append(", "); } + tmp1698.Append("Buff: "); + Buff.ToString(tmp1698); } - sb.Append(')'); - return sb.ToString(); + tmp1698.Append(')'); + return tmp1698.ToString(); } } - public partial class sendFileResult : TBase + public partial class sendFile_result : TBase { private TSStatus _success; @@ -20659,7 +21664,7 @@ public struct Isset public bool success; } - public sendFileResult() + public sendFile_result() { } @@ -20712,18 +21717,18 @@ public sendFileResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("sendFile_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1700 = new TStruct("sendFile_result"); + await oprot.WriteStructBeginAsync(tmp1700, cancellationToken); + var tmp1701 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1701.Name = "Success"; + tmp1701.Type = TType.Struct; + tmp1701.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1701, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -20739,7 +21744,7 @@ public sendFileResult() public override bool Equals(object that) { - if (!(that is sendFileResult other)) return false; + if (!(that is sendFile_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -20757,21 +21762,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("sendFile_result("); - int tmp558 = 0; + var tmp1702 = new StringBuilder("sendFile_result("); + int tmp1703 = 0; if((Success != null) && __isset.success) { - if(0 < tmp558++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1703++) { tmp1702.Append(", "); } + tmp1702.Append("Success: "); + Success.ToString(tmp1702); } - sb.Append(')'); - return sb.ToString(); + tmp1702.Append(')'); + return tmp1702.ToString(); } } - public partial class pipeTransferArgs : TBase + public partial class pipeTransfer_args : TBase { private TPipeTransferReq _req; @@ -20795,7 +21800,7 @@ public struct Isset public bool req; } - public pipeTransferArgs() + public pipeTransfer_args() { } @@ -20848,15 +21853,15 @@ public pipeTransferArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("pipeTransfer_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1704 = new TStruct("pipeTransfer_args"); + await oprot.WriteStructBeginAsync(tmp1704, cancellationToken); + var tmp1705 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = -1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1705.Name = "req"; + tmp1705.Type = TType.Struct; + tmp1705.ID = -1; + await oprot.WriteFieldBeginAsync(tmp1705, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -20871,7 +21876,7 @@ public pipeTransferArgs() public override bool Equals(object that) { - if (!(that is pipeTransferArgs other)) return false; + if (!(that is pipeTransfer_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -20889,21 +21894,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("pipeTransfer_args("); - int tmp559 = 0; + var tmp1706 = new StringBuilder("pipeTransfer_args("); + int tmp1707 = 0; if((Req != null) && __isset.req) { - if(0 < tmp559++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1707++) { tmp1706.Append(", "); } + tmp1706.Append("Req: "); + Req.ToString(tmp1706); } - sb.Append(')'); - return sb.ToString(); + tmp1706.Append(')'); + return tmp1706.ToString(); } } - public partial class pipeTransferResult : TBase + public partial class pipeTransfer_result : TBase { private TPipeTransferResp _success; @@ -20927,7 +21932,7 @@ public struct Isset public bool success; } - public pipeTransferResult() + public pipeTransfer_result() { } @@ -20980,18 +21985,18 @@ public pipeTransferResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("pipeTransfer_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1708 = new TStruct("pipeTransfer_result"); + await oprot.WriteStructBeginAsync(tmp1708, cancellationToken); + var tmp1709 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1709.Name = "Success"; + tmp1709.Type = TType.Struct; + tmp1709.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1709, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -21007,7 +22012,7 @@ public pipeTransferResult() public override bool Equals(object that) { - if (!(that is pipeTransferResult other)) return false; + if (!(that is pipeTransfer_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -21025,21 +22030,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("pipeTransfer_result("); - int tmp560 = 0; + var tmp1710 = new StringBuilder("pipeTransfer_result("); + int tmp1711 = 0; if((Success != null) && __isset.success) { - if(0 < tmp560++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1711++) { tmp1710.Append(", "); } + tmp1710.Append("Success: "); + Success.ToString(tmp1710); } - sb.Append(')'); - return sb.ToString(); + tmp1710.Append(')'); + return tmp1710.ToString(); } } - public partial class pipeSubscribeArgs : TBase + public partial class pipeSubscribe_args : TBase { private TPipeSubscribeReq _req; @@ -21063,7 +22068,7 @@ public struct Isset public bool req; } - public pipeSubscribeArgs() + public pipeSubscribe_args() { } @@ -21116,15 +22121,15 @@ public pipeSubscribeArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("pipeSubscribe_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1712 = new TStruct("pipeSubscribe_args"); + await oprot.WriteStructBeginAsync(tmp1712, cancellationToken); + var tmp1713 = new TField(); if((Req != null) && __isset.req) { - field.Name = "req"; - field.Type = TType.Struct; - field.ID = -1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1713.Name = "req"; + tmp1713.Type = TType.Struct; + tmp1713.ID = -1; + await oprot.WriteFieldBeginAsync(tmp1713, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -21139,7 +22144,7 @@ public pipeSubscribeArgs() public override bool Equals(object that) { - if (!(that is pipeSubscribeArgs other)) return false; + if (!(that is pipeSubscribe_args other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -21157,21 +22162,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("pipeSubscribe_args("); - int tmp561 = 0; + var tmp1714 = new StringBuilder("pipeSubscribe_args("); + int tmp1715 = 0; if((Req != null) && __isset.req) { - if(0 < tmp561++) { sb.Append(", "); } - sb.Append("Req: "); - Req.ToString(sb); + if(0 < tmp1715++) { tmp1714.Append(", "); } + tmp1714.Append("Req: "); + Req.ToString(tmp1714); } - sb.Append(')'); - return sb.ToString(); + tmp1714.Append(')'); + return tmp1714.ToString(); } } - public partial class pipeSubscribeResult : TBase + public partial class pipeSubscribe_result : TBase { private TPipeSubscribeResp _success; @@ -21195,7 +22200,7 @@ public struct Isset public bool success; } - public pipeSubscribeResult() + public pipeSubscribe_result() { } @@ -21248,18 +22253,18 @@ public pipeSubscribeResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("pipeSubscribe_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1716 = new TStruct("pipeSubscribe_result"); + await oprot.WriteStructBeginAsync(tmp1716, cancellationToken); + var tmp1717 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1717.Name = "Success"; + tmp1717.Type = TType.Struct; + tmp1717.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1717, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -21275,7 +22280,7 @@ public pipeSubscribeResult() public override bool Equals(object that) { - if (!(that is pipeSubscribeResult other)) return false; + if (!(that is pipeSubscribe_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -21293,24 +22298,24 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("pipeSubscribe_result("); - int tmp562 = 0; + var tmp1718 = new StringBuilder("pipeSubscribe_result("); + int tmp1719 = 0; if((Success != null) && __isset.success) { - if(0 < tmp562++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1719++) { tmp1718.Append(", "); } + tmp1718.Append("Success: "); + Success.ToString(tmp1718); } - sb.Append(')'); - return sb.ToString(); + tmp1718.Append(')'); + return tmp1718.ToString(); } } - public partial class getBackupConfigurationArgs : TBase + public partial class getBackupConfiguration_args : TBase { - public getBackupConfigurationArgs() + public getBackupConfiguration_args() { } @@ -21352,8 +22357,8 @@ public getBackupConfigurationArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("getBackupConfiguration_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); + var tmp1720 = new TStruct("getBackupConfiguration_args"); + await oprot.WriteStructBeginAsync(tmp1720, cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -21365,7 +22370,7 @@ public getBackupConfigurationArgs() public override bool Equals(object that) { - if (!(that is getBackupConfigurationArgs other)) return false; + if (!(that is getBackupConfiguration_args other)) return false; if (ReferenceEquals(this, other)) return true; return true; } @@ -21379,14 +22384,14 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("getBackupConfiguration_args("); - sb.Append(')'); - return sb.ToString(); + var tmp1721 = new StringBuilder("getBackupConfiguration_args("); + tmp1721.Append(')'); + return tmp1721.ToString(); } } - public partial class getBackupConfigurationResult : TBase + public partial class getBackupConfiguration_result : TBase { private TSBackupConfigurationResp _success; @@ -21410,7 +22415,7 @@ public struct Isset public bool success; } - public getBackupConfigurationResult() + public getBackupConfiguration_result() { } @@ -21463,18 +22468,18 @@ public getBackupConfigurationResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("getBackupConfiguration_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1723 = new TStruct("getBackupConfiguration_result"); + await oprot.WriteStructBeginAsync(tmp1723, cancellationToken); + var tmp1724 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1724.Name = "Success"; + tmp1724.Type = TType.Struct; + tmp1724.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1724, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -21490,7 +22495,7 @@ public getBackupConfigurationResult() public override bool Equals(object that) { - if (!(that is getBackupConfigurationResult other)) return false; + if (!(that is getBackupConfiguration_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -21508,24 +22513,24 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("getBackupConfiguration_result("); - int tmp564 = 0; + var tmp1725 = new StringBuilder("getBackupConfiguration_result("); + int tmp1726 = 0; if((Success != null) && __isset.success) { - if(0 < tmp564++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1726++) { tmp1725.Append(", "); } + tmp1725.Append("Success: "); + Success.ToString(tmp1725); } - sb.Append(')'); - return sb.ToString(); + tmp1725.Append(')'); + return tmp1725.ToString(); } } - public partial class fetchAllConnectionsInfoArgs : TBase + public partial class fetchAllConnectionsInfo_args : TBase { - public fetchAllConnectionsInfoArgs() + public fetchAllConnectionsInfo_args() { } @@ -21567,8 +22572,8 @@ public fetchAllConnectionsInfoArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("fetchAllConnectionsInfo_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); + var tmp1727 = new TStruct("fetchAllConnectionsInfo_args"); + await oprot.WriteStructBeginAsync(tmp1727, cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -21580,7 +22585,7 @@ public fetchAllConnectionsInfoArgs() public override bool Equals(object that) { - if (!(that is fetchAllConnectionsInfoArgs other)) return false; + if (!(that is fetchAllConnectionsInfo_args other)) return false; if (ReferenceEquals(this, other)) return true; return true; } @@ -21594,14 +22599,14 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("fetchAllConnectionsInfo_args("); - sb.Append(')'); - return sb.ToString(); + var tmp1728 = new StringBuilder("fetchAllConnectionsInfo_args("); + tmp1728.Append(')'); + return tmp1728.ToString(); } } - public partial class fetchAllConnectionsInfoResult : TBase + public partial class fetchAllConnectionsInfo_result : TBase { private TSConnectionInfoResp _success; @@ -21625,7 +22630,7 @@ public struct Isset public bool success; } - public fetchAllConnectionsInfoResult() + public fetchAllConnectionsInfo_result() { } @@ -21678,18 +22683,18 @@ public fetchAllConnectionsInfoResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("fetchAllConnectionsInfo_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1730 = new TStruct("fetchAllConnectionsInfo_result"); + await oprot.WriteStructBeginAsync(tmp1730, cancellationToken); + var tmp1731 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1731.Name = "Success"; + tmp1731.Type = TType.Struct; + tmp1731.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1731, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -21705,7 +22710,7 @@ public fetchAllConnectionsInfoResult() public override bool Equals(object that) { - if (!(that is fetchAllConnectionsInfoResult other)) return false; + if (!(that is fetchAllConnectionsInfo_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -21723,24 +22728,24 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("fetchAllConnectionsInfo_result("); - int tmp566 = 0; + var tmp1732 = new StringBuilder("fetchAllConnectionsInfo_result("); + int tmp1733 = 0; if((Success != null) && __isset.success) { - if(0 < tmp566++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1733++) { tmp1732.Append(", "); } + tmp1732.Append("Success: "); + Success.ToString(tmp1732); } - sb.Append(')'); - return sb.ToString(); + tmp1732.Append(')'); + return tmp1732.ToString(); } } - public partial class testConnectionEmptyRPCArgs : TBase + public partial class testConnectionEmptyRPC_args : TBase { - public testConnectionEmptyRPCArgs() + public testConnectionEmptyRPC_args() { } @@ -21782,8 +22787,8 @@ public testConnectionEmptyRPCArgs() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("testConnectionEmptyRPC_args"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); + var tmp1734 = new TStruct("testConnectionEmptyRPC_args"); + await oprot.WriteStructBeginAsync(tmp1734, cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -21795,7 +22800,7 @@ public testConnectionEmptyRPCArgs() public override bool Equals(object that) { - if (!(that is testConnectionEmptyRPCArgs other)) return false; + if (!(that is testConnectionEmptyRPC_args other)) return false; if (ReferenceEquals(this, other)) return true; return true; } @@ -21809,14 +22814,14 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("testConnectionEmptyRPC_args("); - sb.Append(')'); - return sb.ToString(); + var tmp1735 = new StringBuilder("testConnectionEmptyRPC_args("); + tmp1735.Append(')'); + return tmp1735.ToString(); } } - public partial class testConnectionEmptyRPCResult : TBase + public partial class testConnectionEmptyRPC_result : TBase { private TSStatus _success; @@ -21840,7 +22845,7 @@ public struct Isset public bool success; } - public testConnectionEmptyRPCResult() + public testConnectionEmptyRPC_result() { } @@ -21893,18 +22898,18 @@ public testConnectionEmptyRPCResult() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("testConnectionEmptyRPC_result"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp1737 = new TStruct("testConnectionEmptyRPC_result"); + await oprot.WriteStructBeginAsync(tmp1737, cancellationToken); + var tmp1738 = new TField(); if(this.__isset.success) { if (Success != null) { - field.Name = "Success"; - field.Type = TType.Struct; - field.ID = 0; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1738.Name = "Success"; + tmp1738.Type = TType.Struct; + tmp1738.ID = 0; + await oprot.WriteFieldBeginAsync(tmp1738, cancellationToken); await Success.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -21920,7 +22925,7 @@ public testConnectionEmptyRPCResult() public override bool Equals(object that) { - if (!(that is testConnectionEmptyRPCResult other)) return false; + if (!(that is testConnectionEmptyRPC_result other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -21938,16 +22943,16 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("testConnectionEmptyRPC_result("); - int tmp568 = 0; + var tmp1739 = new StringBuilder("testConnectionEmptyRPC_result("); + int tmp1740 = 0; if((Success != null) && __isset.success) { - if(0 < tmp568++) { sb.Append(", "); } - sb.Append("Success: "); - Success.ToString(sb); + if(0 < tmp1740++) { tmp1739.Append(", "); } + tmp1739.Append("Success: "); + Success.ToString(tmp1739); } - sb.Append(')'); - return sb.ToString(); + tmp1739.Append(')'); + return tmp1739.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/Model.cs b/src/Apache.IoTDB/Rpc/Generated/Model.cs index dfb0315..2338d69 100644 --- a/src/Apache.IoTDB/Rpc/Generated/Model.cs +++ b/src/Apache.IoTDB/Rpc/Generated/Model.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,6 +7,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum Model { diff --git a/src/Apache.IoTDB/Rpc/Generated/ServerProperties.cs b/src/Apache.IoTDB/Rpc/Generated/ServerProperties.cs index dcfe488..82b8263 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class ServerProperties : TBase @@ -165,13 +166,13 @@ public ServerProperties(string version, List supportedTimeAggregationOpe if (field.Type == TType.List) { { - TList _list374 = await iprot.ReadListBeginAsync(cancellationToken); - SupportedTimeAggregationOperations = new List(_list374.Count); - for(int _i375 = 0; _i375 < _list374.Count; ++_i375) + TList _list487 = await iprot.ReadListBeginAsync(cancellationToken); + SupportedTimeAggregationOperations = new List(_list487.Count); + for(int _i488 = 0; _i488 < _list487.Count; ++_i488) { - string _elem376; - _elem376 = await iprot.ReadStringAsync(cancellationToken); - SupportedTimeAggregationOperations.Add(_elem376); + string _elem489; + _elem489 = await iprot.ReadStringAsync(cancellationToken); + SupportedTimeAggregationOperations.Add(_elem489); } await iprot.ReadListEndAsync(cancellationToken); } @@ -276,29 +277,29 @@ public ServerProperties(string version, List supportedTimeAggregationOpe oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("ServerProperties"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp490 = new TStruct("ServerProperties"); + await oprot.WriteStructBeginAsync(tmp490, cancellationToken); + var tmp491 = new TField(); if((Version != null)) { - field.Name = "version"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp491.Name = "version"; + tmp491.Type = TType.String; + tmp491.ID = 1; + await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); await oprot.WriteStringAsync(Version, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((SupportedTimeAggregationOperations != null)) { - field.Name = "supportedTimeAggregationOperations"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp491.Name = "supportedTimeAggregationOperations"; + tmp491.Type = TType.List; + tmp491.ID = 2; + await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, SupportedTimeAggregationOperations.Count), cancellationToken); - foreach (string _iter377 in SupportedTimeAggregationOperations) + foreach (string _iter492 in SupportedTimeAggregationOperations) { - await oprot.WriteStringAsync(_iter377, cancellationToken); + await oprot.WriteStringAsync(_iter492, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -306,55 +307,55 @@ public ServerProperties(string version, List supportedTimeAggregationOpe } if((TimestampPrecision != null)) { - field.Name = "timestampPrecision"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp491.Name = "timestampPrecision"; + tmp491.Type = TType.String; + tmp491.ID = 3; + await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); await oprot.WriteStringAsync(TimestampPrecision, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.maxConcurrentClientNum) { - field.Name = "maxConcurrentClientNum"; - field.Type = TType.I32; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp491.Name = "maxConcurrentClientNum"; + tmp491.Type = TType.I32; + tmp491.ID = 4; + await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); await oprot.WriteI32Async(MaxConcurrentClientNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.thriftMaxFrameSize) { - field.Name = "thriftMaxFrameSize"; - field.Type = TType.I32; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp491.Name = "thriftMaxFrameSize"; + tmp491.Type = TType.I32; + tmp491.ID = 5; + await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); await oprot.WriteI32Async(ThriftMaxFrameSize, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.isReadOnly) { - field.Name = "isReadOnly"; - field.Type = TType.Bool; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp491.Name = "isReadOnly"; + tmp491.Type = TType.Bool; + tmp491.ID = 6; + await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); await oprot.WriteBoolAsync(IsReadOnly, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((BuildInfo != null) && __isset.buildInfo) { - field.Name = "buildInfo"; - field.Type = TType.String; - field.ID = 7; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp491.Name = "buildInfo"; + tmp491.Type = TType.String; + tmp491.ID = 7; + await oprot.WriteFieldBeginAsync(tmp491, 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); + tmp491.Name = "logo"; + tmp491.Type = TType.String; + tmp491.ID = 8; + await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); await oprot.WriteStringAsync(Logo, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -422,49 +423,49 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("ServerProperties("); + var tmp493 = new StringBuilder("ServerProperties("); if((Version != null)) { - sb.Append(", Version: "); - Version.ToString(sb); + tmp493.Append(", Version: "); + Version.ToString(tmp493); } if((SupportedTimeAggregationOperations != null)) { - sb.Append(", SupportedTimeAggregationOperations: "); - SupportedTimeAggregationOperations.ToString(sb); + tmp493.Append(", SupportedTimeAggregationOperations: "); + SupportedTimeAggregationOperations.ToString(tmp493); } if((TimestampPrecision != null)) { - sb.Append(", TimestampPrecision: "); - TimestampPrecision.ToString(sb); + tmp493.Append(", TimestampPrecision: "); + TimestampPrecision.ToString(tmp493); } if(__isset.maxConcurrentClientNum) { - sb.Append(", MaxConcurrentClientNum: "); - MaxConcurrentClientNum.ToString(sb); + tmp493.Append(", MaxConcurrentClientNum: "); + MaxConcurrentClientNum.ToString(tmp493); } if(__isset.thriftMaxFrameSize) { - sb.Append(", ThriftMaxFrameSize: "); - ThriftMaxFrameSize.ToString(sb); + tmp493.Append(", ThriftMaxFrameSize: "); + ThriftMaxFrameSize.ToString(tmp493); } if(__isset.isReadOnly) { - sb.Append(", IsReadOnly: "); - IsReadOnly.ToString(sb); + tmp493.Append(", IsReadOnly: "); + IsReadOnly.ToString(tmp493); } if((BuildInfo != null) && __isset.buildInfo) { - sb.Append(", BuildInfo: "); - BuildInfo.ToString(sb); + tmp493.Append(", BuildInfo: "); + BuildInfo.ToString(tmp493); } if((Logo != null) && __isset.logo) { - sb.Append(", Logo: "); - Logo.ToString(sb); + tmp493.Append(", Logo: "); + Logo.ToString(tmp493); } - sb.Append(')'); - return sb.ToString(); + tmp493.Append(')'); + return tmp493.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TAINodeConfiguration.cs b/src/Apache.IoTDB/Rpc/Generated/TAINodeConfiguration.cs index bc17548..0a1c99a 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TAINodeConfiguration.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TAINodeConfiguration.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TAINodeConfiguration : TBase @@ -118,24 +119,24 @@ public TAINodeConfiguration(TAINodeLocation location, TNodeResource resource) : oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TAINodeConfiguration"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp52 = new TStruct("TAINodeConfiguration"); + await oprot.WriteStructBeginAsync(tmp52, cancellationToken); + var tmp53 = new TField(); if((Location != null)) { - field.Name = "location"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp53.Name = "location"; + tmp53.Type = TType.Struct; + tmp53.ID = 1; + await oprot.WriteFieldBeginAsync(tmp53, 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); + tmp53.Name = "resource"; + tmp53.Type = TType.Struct; + tmp53.ID = 2; + await oprot.WriteFieldBeginAsync(tmp53, cancellationToken); await Resource.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -173,19 +174,19 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TAINodeConfiguration("); + var tmp54 = new StringBuilder("TAINodeConfiguration("); if((Location != null)) { - sb.Append(", Location: "); - Location.ToString(sb); + tmp54.Append(", Location: "); + Location.ToString(tmp54); } if((Resource != null)) { - sb.Append(", Resource: "); - Resource.ToString(sb); + tmp54.Append(", Resource: "); + Resource.ToString(tmp54); } - sb.Append(')'); - return sb.ToString(); + tmp54.Append(')'); + return tmp54.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TAINodeLocation.cs b/src/Apache.IoTDB/Rpc/Generated/TAINodeLocation.cs index d090f57..cc2d242 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TAINodeLocation.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TAINodeLocation.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TAINodeLocation : TBase @@ -117,21 +118,21 @@ public TAINodeLocation(int aiNodeId, TEndPoint internalEndPoint) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TAINodeLocation"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "aiNodeId"; - field.Type = TType.I32; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp44 = new TStruct("TAINodeLocation"); + await oprot.WriteStructBeginAsync(tmp44, cancellationToken); + var tmp45 = new TField(); + tmp45.Name = "aiNodeId"; + tmp45.Type = TType.I32; + tmp45.ID = 1; + await oprot.WriteFieldBeginAsync(tmp45, cancellationToken); await oprot.WriteI32Async(AiNodeId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if((InternalEndPoint != null)) { - field.Name = "internalEndPoint"; - field.Type = TType.Struct; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp45.Name = "internalEndPoint"; + tmp45.Type = TType.Struct; + tmp45.ID = 2; + await oprot.WriteFieldBeginAsync(tmp45, cancellationToken); await InternalEndPoint.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -166,16 +167,16 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TAINodeLocation("); - sb.Append(", AiNodeId: "); - AiNodeId.ToString(sb); + var tmp46 = new StringBuilder("TAINodeLocation("); + tmp46.Append(", AiNodeId: "); + AiNodeId.ToString(tmp46); if((InternalEndPoint != null)) { - sb.Append(", InternalEndPoint: "); - InternalEndPoint.ToString(sb); + tmp46.Append(", InternalEndPoint: "); + InternalEndPoint.ToString(tmp46); } - sb.Append(')'); - return sb.ToString(); + tmp46.Append(')'); + return tmp46.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TAggregationType.cs b/src/Apache.IoTDB/Rpc/Generated/TAggregationType.cs index b2af6d7..850cd1c 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TAggregationType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TAggregationType.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,6 +7,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum TAggregationType { @@ -39,4 +40,7 @@ public enum TAggregationType LAST_BY = 26, MIN = 27, MAX = 28, + COUNT_ALL = 29, + APPROX_COUNT_DISTINCT = 30, + APPROX_MOST_FREQUENT = 31, } diff --git a/src/Apache.IoTDB/Rpc/Generated/TConfigNodeLocation.cs b/src/Apache.IoTDB/Rpc/Generated/TConfigNodeLocation.cs index f43a427..53a77e7 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TConfigNodeLocation : TBase @@ -137,30 +138,30 @@ public TConfigNodeLocation(int configNodeId, TEndPoint internalEndPoint, TEndPoi oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TConfigNodeLocation"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "configNodeId"; - field.Type = TType.I32; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp36 = new TStruct("TConfigNodeLocation"); + await oprot.WriteStructBeginAsync(tmp36, cancellationToken); + var tmp37 = new TField(); + tmp37.Name = "configNodeId"; + tmp37.Type = TType.I32; + tmp37.ID = 1; + await oprot.WriteFieldBeginAsync(tmp37, 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); + tmp37.Name = "internalEndPoint"; + tmp37.Type = TType.Struct; + tmp37.ID = 2; + await oprot.WriteFieldBeginAsync(tmp37, 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); + tmp37.Name = "consensusEndPoint"; + tmp37.Type = TType.Struct; + tmp37.ID = 3; + await oprot.WriteFieldBeginAsync(tmp37, cancellationToken); await ConsensusEndPoint.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -200,21 +201,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TConfigNodeLocation("); - sb.Append(", ConfigNodeId: "); - ConfigNodeId.ToString(sb); + var tmp38 = new StringBuilder("TConfigNodeLocation("); + tmp38.Append(", ConfigNodeId: "); + ConfigNodeId.ToString(tmp38); if((InternalEndPoint != null)) { - sb.Append(", InternalEndPoint: "); - InternalEndPoint.ToString(sb); + tmp38.Append(", InternalEndPoint: "); + InternalEndPoint.ToString(tmp38); } if((ConsensusEndPoint != null)) { - sb.Append(", ConsensusEndPoint: "); - ConsensusEndPoint.ToString(sb); + tmp38.Append(", ConsensusEndPoint: "); + ConsensusEndPoint.ToString(tmp38); } - sb.Append(')'); - return sb.ToString(); + tmp38.Append(')'); + return tmp38.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupId.cs b/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupId.cs index 34492a9..b02529e 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TConsensusGroupId : TBase @@ -120,19 +121,19 @@ public TConsensusGroupId(TConsensusGroupType type, int id) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TConsensusGroupId"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "type"; - field.Type = TType.I32; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp12 = new TStruct("TConsensusGroupId"); + await oprot.WriteStructBeginAsync(tmp12, cancellationToken); + var tmp13 = new TField(); + tmp13.Name = "type"; + tmp13.Type = TType.I32; + tmp13.ID = 1; + await oprot.WriteFieldBeginAsync(tmp13, cancellationToken); await oprot.WriteI32Async((int)Type, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "id"; - field.Type = TType.I32; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp13.Name = "id"; + tmp13.Type = TType.I32; + tmp13.ID = 2; + await oprot.WriteFieldBeginAsync(tmp13, cancellationToken); await oprot.WriteI32Async(Id, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -163,13 +164,13 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TConsensusGroupId("); - sb.Append(", Type: "); - Type.ToString(sb); - sb.Append(", Id: "); - Id.ToString(sb); - sb.Append(')'); - return sb.ToString(); + var tmp14 = new StringBuilder("TConsensusGroupId("); + tmp14.Append(", Type: "); + Type.ToString(tmp14); + tmp14.Append(", Id: "); + Id.ToString(tmp14); + tmp14.Append(')'); + return tmp14.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupType.cs b/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupType.cs index c4f3c78..6adeab4 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupType.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,6 +7,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum TConsensusGroupType { diff --git a/src/Apache.IoTDB/Rpc/Generated/TCreateTimeseriesUsingSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TCreateTimeseriesUsingSchemaTemplateReq.cs index c5b2d41..a175c48 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TCreateTimeseriesUsingSchemaTemplateReq : TBase @@ -80,13 +81,13 @@ public TCreateTimeseriesUsingSchemaTemplateReq(long sessionId, List devi if (field.Type == TType.List) { { - TList _list407 = await iprot.ReadListBeginAsync(cancellationToken); - DevicePathList = new List(_list407.Count); - for(int _i408 = 0; _i408 < _list407.Count; ++_i408) + TList _list547 = await iprot.ReadListBeginAsync(cancellationToken); + DevicePathList = new List(_list547.Count); + for(int _i548 = 0; _i548 < _list547.Count; ++_i548) { - string _elem409; - _elem409 = await iprot.ReadStringAsync(cancellationToken); - DevicePathList.Add(_elem409); + string _elem549; + _elem549 = await iprot.ReadStringAsync(cancellationToken); + DevicePathList.Add(_elem549); } await iprot.ReadListEndAsync(cancellationToken); } @@ -126,26 +127,26 @@ public TCreateTimeseriesUsingSchemaTemplateReq(long sessionId, List devi 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); + var tmp550 = new TStruct("TCreateTimeseriesUsingSchemaTemplateReq"); + await oprot.WriteStructBeginAsync(tmp550, cancellationToken); + var tmp551 = new TField(); + tmp551.Name = "sessionId"; + tmp551.Type = TType.I64; + tmp551.ID = 1; + await oprot.WriteFieldBeginAsync(tmp551, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if((DevicePathList != null)) { - field.Name = "devicePathList"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp551.Name = "devicePathList"; + tmp551.Type = TType.List; + tmp551.ID = 2; + await oprot.WriteFieldBeginAsync(tmp551, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, DevicePathList.Count), cancellationToken); - foreach (string _iter410 in DevicePathList) + foreach (string _iter552 in DevicePathList) { - await oprot.WriteStringAsync(_iter410, cancellationToken); + await oprot.WriteStringAsync(_iter552, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -182,16 +183,16 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TCreateTimeseriesUsingSchemaTemplateReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp553 = new StringBuilder("TCreateTimeseriesUsingSchemaTemplateReq("); + tmp553.Append(", SessionId: "); + SessionId.ToString(tmp553); if((DevicePathList != null)) { - sb.Append(", DevicePathList: "); - DevicePathList.ToString(sb); + tmp553.Append(", DevicePathList: "); + DevicePathList.ToString(tmp553); } - sb.Append(')'); - return sb.ToString(); + tmp553.Append(')'); + return tmp553.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TDataNodeConfiguration.cs b/src/Apache.IoTDB/Rpc/Generated/TDataNodeConfiguration.cs index e56db6c..a542f90 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TDataNodeConfiguration : TBase @@ -118,24 +119,24 @@ public TDataNodeConfiguration(TDataNodeLocation location, TNodeResource resource oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TDataNodeConfiguration"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp48 = new TStruct("TDataNodeConfiguration"); + await oprot.WriteStructBeginAsync(tmp48, cancellationToken); + var tmp49 = new TField(); if((Location != null)) { - field.Name = "location"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp49.Name = "location"; + tmp49.Type = TType.Struct; + tmp49.ID = 1; + await oprot.WriteFieldBeginAsync(tmp49, 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); + tmp49.Name = "resource"; + tmp49.Type = TType.Struct; + tmp49.ID = 2; + await oprot.WriteFieldBeginAsync(tmp49, cancellationToken); await Resource.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -173,19 +174,19 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TDataNodeConfiguration("); + var tmp50 = new StringBuilder("TDataNodeConfiguration("); if((Location != null)) { - sb.Append(", Location: "); - Location.ToString(sb); + tmp50.Append(", Location: "); + Location.ToString(tmp50); } if((Resource != null)) { - sb.Append(", Resource: "); - Resource.ToString(sb); + tmp50.Append(", Resource: "); + Resource.ToString(tmp50); } - sb.Append(')'); - return sb.ToString(); + tmp50.Append(')'); + return tmp50.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TDataNodeLocation.cs b/src/Apache.IoTDB/Rpc/Generated/TDataNodeLocation.cs index 303f0b6..32d53e3 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TDataNodeLocation : TBase @@ -197,57 +198,57 @@ public TDataNodeLocation(int dataNodeId, TEndPoint clientRpcEndPoint, TEndPoint oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TDataNodeLocation"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "dataNodeId"; - field.Type = TType.I32; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp40 = new TStruct("TDataNodeLocation"); + await oprot.WriteStructBeginAsync(tmp40, cancellationToken); + var tmp41 = new TField(); + tmp41.Name = "dataNodeId"; + tmp41.Type = TType.I32; + tmp41.ID = 1; + await oprot.WriteFieldBeginAsync(tmp41, 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); + tmp41.Name = "clientRpcEndPoint"; + tmp41.Type = TType.Struct; + tmp41.ID = 2; + await oprot.WriteFieldBeginAsync(tmp41, 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); + tmp41.Name = "internalEndPoint"; + tmp41.Type = TType.Struct; + tmp41.ID = 3; + await oprot.WriteFieldBeginAsync(tmp41, 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); + tmp41.Name = "mPPDataExchangeEndPoint"; + tmp41.Type = TType.Struct; + tmp41.ID = 4; + await oprot.WriteFieldBeginAsync(tmp41, 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); + tmp41.Name = "dataRegionConsensusEndPoint"; + tmp41.Type = TType.Struct; + tmp41.ID = 5; + await oprot.WriteFieldBeginAsync(tmp41, 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); + tmp41.Name = "schemaRegionConsensusEndPoint"; + tmp41.Type = TType.Struct; + tmp41.ID = 6; + await oprot.WriteFieldBeginAsync(tmp41, cancellationToken); await SchemaRegionConsensusEndPoint.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -302,36 +303,36 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TDataNodeLocation("); - sb.Append(", DataNodeId: "); - DataNodeId.ToString(sb); + var tmp42 = new StringBuilder("TDataNodeLocation("); + tmp42.Append(", DataNodeId: "); + DataNodeId.ToString(tmp42); if((ClientRpcEndPoint != null)) { - sb.Append(", ClientRpcEndPoint: "); - ClientRpcEndPoint.ToString(sb); + tmp42.Append(", ClientRpcEndPoint: "); + ClientRpcEndPoint.ToString(tmp42); } if((InternalEndPoint != null)) { - sb.Append(", InternalEndPoint: "); - InternalEndPoint.ToString(sb); + tmp42.Append(", InternalEndPoint: "); + InternalEndPoint.ToString(tmp42); } if((MPPDataExchangeEndPoint != null)) { - sb.Append(", MPPDataExchangeEndPoint: "); - MPPDataExchangeEndPoint.ToString(sb); + tmp42.Append(", MPPDataExchangeEndPoint: "); + MPPDataExchangeEndPoint.ToString(tmp42); } if((DataRegionConsensusEndPoint != null)) { - sb.Append(", DataRegionConsensusEndPoint: "); - DataRegionConsensusEndPoint.ToString(sb); + tmp42.Append(", DataRegionConsensusEndPoint: "); + DataRegionConsensusEndPoint.ToString(tmp42); } if((SchemaRegionConsensusEndPoint != null)) { - sb.Append(", SchemaRegionConsensusEndPoint: "); - SchemaRegionConsensusEndPoint.ToString(sb); + tmp42.Append(", SchemaRegionConsensusEndPoint: "); + SchemaRegionConsensusEndPoint.ToString(tmp42); } - sb.Append(')'); - return sb.ToString(); + tmp42.Append(')'); + return tmp42.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TEndPoint.cs b/src/Apache.IoTDB/Rpc/Generated/TEndPoint.cs index db66a12..b057267 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TEndPoint : TBase @@ -116,22 +117,22 @@ public TEndPoint(string ip, int port) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TEndPoint"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp0 = new TStruct("TEndPoint"); + await oprot.WriteStructBeginAsync(tmp0, cancellationToken); + var tmp1 = new TField(); if((Ip != null)) { - field.Name = "ip"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1.Name = "ip"; + tmp1.Type = TType.String; + tmp1.ID = 1; + await oprot.WriteFieldBeginAsync(tmp1, cancellationToken); await oprot.WriteStringAsync(Ip, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - field.Name = "port"; - field.Type = TType.I32; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp1.Name = "port"; + tmp1.Type = TType.I32; + tmp1.ID = 2; + await oprot.WriteFieldBeginAsync(tmp1, cancellationToken); await oprot.WriteI32Async(Port, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -165,16 +166,16 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TEndPoint("); + var tmp2 = new StringBuilder("TEndPoint("); if((Ip != null)) { - sb.Append(", Ip: "); - Ip.ToString(sb); + tmp2.Append(", Ip: "); + Ip.ToString(tmp2); } - sb.Append(", Port: "); - Port.ToString(sb); - sb.Append(')'); - return sb.ToString(); + tmp2.Append(", Port: "); + Port.ToString(tmp2); + tmp2.Append(')'); + return tmp2.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TFile.cs b/src/Apache.IoTDB/Rpc/Generated/TFile.cs index 1ff51fc..662bb31 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TFile : TBase @@ -116,24 +117,24 @@ public TFile(string fileName, byte[] file) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TFile"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp105 = new TStruct("TFile"); + await oprot.WriteStructBeginAsync(tmp105, cancellationToken); + var tmp106 = new TField(); if((FileName != null)) { - field.Name = "fileName"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp106.Name = "fileName"; + tmp106.Type = TType.String; + tmp106.ID = 1; + await oprot.WriteFieldBeginAsync(tmp106, 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); + tmp106.Name = "file"; + tmp106.Type = TType.String; + tmp106.ID = 2; + await oprot.WriteFieldBeginAsync(tmp106, cancellationToken); await oprot.WriteBinaryAsync(File, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -171,19 +172,19 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TFile("); + var tmp107 = new StringBuilder("TFile("); if((FileName != null)) { - sb.Append(", FileName: "); - FileName.ToString(sb); + tmp107.Append(", FileName: "); + FileName.ToString(tmp107); } if((File != null)) { - sb.Append(", File: "); - File.ToString(sb); + tmp107.Append(", File: "); + File.ToString(tmp107); } - sb.Append(')'); - return sb.ToString(); + tmp107.Append(')'); + return tmp107.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs b/src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs index 6337dce..f5cd30e 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TFilesResp : TBase @@ -81,14 +82,14 @@ public TFilesResp(TSStatus status, List files) : this() if (field.Type == TType.List) { { - TList _list48 = await iprot.ReadListBeginAsync(cancellationToken); - Files = new List(_list48.Count); - for(int _i49 = 0; _i49 < _list48.Count; ++_i49) + TList _list109 = await iprot.ReadListBeginAsync(cancellationToken); + Files = new List(_list109.Count); + for(int _i110 = 0; _i110 < _list109.Count; ++_i110) { - TFile _elem50; - _elem50 = new TFile(); - await _elem50.ReadAsync(iprot, cancellationToken); - Files.Add(_elem50); + TFile _elem111; + _elem111 = new TFile(); + await _elem111.ReadAsync(iprot, cancellationToken); + Files.Add(_elem111); } await iprot.ReadListEndAsync(cancellationToken); } @@ -128,29 +129,29 @@ public TFilesResp(TSStatus status, List files) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TFilesResp"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp112 = new TStruct("TFilesResp"); + await oprot.WriteStructBeginAsync(tmp112, cancellationToken); + var tmp113 = new TField(); if((Status != null)) { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp113.Name = "status"; + tmp113.Type = TType.Struct; + tmp113.ID = 1; + await oprot.WriteFieldBeginAsync(tmp113, cancellationToken); await Status.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((Files != null)) { - field.Name = "files"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp113.Name = "files"; + tmp113.Type = TType.List; + tmp113.ID = 2; + await oprot.WriteFieldBeginAsync(tmp113, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, Files.Count), cancellationToken); - foreach (TFile _iter51 in Files) + foreach (TFile _iter114 in Files) { - await _iter51.WriteAsync(oprot, cancellationToken); + await _iter114.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -190,19 +191,19 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TFilesResp("); + var tmp115 = new StringBuilder("TFilesResp("); if((Status != null)) { - sb.Append(", Status: "); - Status.ToString(sb); + tmp115.Append(", Status: "); + Status.ToString(tmp115); } if((Files != null)) { - sb.Append(", Files: "); - Files.ToString(sb); + tmp115.Append(", Files: "); + Files.ToString(tmp115); } - sb.Append(')'); - return sb.ToString(); + tmp115.Append(')'); + return tmp115.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs b/src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs index 79860a3..052fa54 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,12 +27,14 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TFlushReq : TBase { private string _isSeq; private List _storageGroups; + private List _regionIds; public string IsSeq { @@ -60,12 +62,26 @@ public List StorageGroups } } + public List RegionIds + { + get + { + return _regionIds; + } + set + { + __isset.regionIds = true; + this._regionIds = value; + } + } + public Isset __isset; public struct Isset { public bool isSeq; public bool storageGroups; + public bool regionIds; } public TFlushReq() @@ -103,13 +119,33 @@ public TFlushReq() if (field.Type == TType.List) { { - TList _list20 = await iprot.ReadListBeginAsync(cancellationToken); - StorageGroups = new List(_list20.Count); - for(int _i21 = 0; _i21 < _list20.Count; ++_i21) + TList _list56 = await iprot.ReadListBeginAsync(cancellationToken); + StorageGroups = new List(_list56.Count); + for(int _i57 = 0; _i57 < _list56.Count; ++_i57) + { + string _elem58; + _elem58 = await iprot.ReadStringAsync(cancellationToken); + StorageGroups.Add(_elem58); + } + await iprot.ReadListEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.List) + { + { + TList _list59 = await iprot.ReadListBeginAsync(cancellationToken); + RegionIds = new List(_list59.Count); + for(int _i60 = 0; _i60 < _list59.Count; ++_i60) { - string _elem22; - _elem22 = await iprot.ReadStringAsync(cancellationToken); - StorageGroups.Add(_elem22); + string _elem61; + _elem61 = await iprot.ReadStringAsync(cancellationToken); + RegionIds.Add(_elem61); } await iprot.ReadListEndAsync(cancellationToken); } @@ -140,29 +176,45 @@ public TFlushReq() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TFlushReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp62 = new TStruct("TFlushReq"); + await oprot.WriteStructBeginAsync(tmp62, cancellationToken); + var tmp63 = new TField(); if((IsSeq != null) && __isset.isSeq) { - field.Name = "isSeq"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp63.Name = "isSeq"; + tmp63.Type = TType.String; + tmp63.ID = 1; + await oprot.WriteFieldBeginAsync(tmp63, cancellationToken); await oprot.WriteStringAsync(IsSeq, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((StorageGroups != null) && __isset.storageGroups) { - field.Name = "storageGroups"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp63.Name = "storageGroups"; + tmp63.Type = TType.List; + tmp63.ID = 2; + await oprot.WriteFieldBeginAsync(tmp63, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, StorageGroups.Count), cancellationToken); - foreach (string _iter23 in StorageGroups) + foreach (string _iter64 in StorageGroups) { - await oprot.WriteStringAsync(_iter23, cancellationToken); + await oprot.WriteStringAsync(_iter64, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((RegionIds != null) && __isset.regionIds) + { + tmp63.Name = "regionIds"; + tmp63.Type = TType.List; + tmp63.ID = 3; + await oprot.WriteFieldBeginAsync(tmp63, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.String, RegionIds.Count), cancellationToken); + foreach (string _iter65 in RegionIds) + { + await oprot.WriteStringAsync(_iter65, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -182,7 +234,8 @@ public override bool Equals(object that) 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)))); + && ((__isset.storageGroups == other.__isset.storageGroups) && ((!__isset.storageGroups) || (TCollections.Equals(StorageGroups, other.StorageGroups)))) + && ((__isset.regionIds == other.__isset.regionIds) && ((!__isset.regionIds) || (TCollections.Equals(RegionIds, other.RegionIds)))); } public override int GetHashCode() { @@ -196,28 +249,38 @@ public override int GetHashCode() { { hashcode = (hashcode * 397) + TCollections.GetHashCode(StorageGroups); } + if((RegionIds != null) && __isset.regionIds) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(RegionIds); + } } return hashcode; } public override string ToString() { - var sb = new StringBuilder("TFlushReq("); - int tmp24 = 0; + var tmp66 = new StringBuilder("TFlushReq("); + int tmp67 = 0; if((IsSeq != null) && __isset.isSeq) { - if(0 < tmp24++) { sb.Append(", "); } - sb.Append("IsSeq: "); - IsSeq.ToString(sb); + if(0 < tmp67++) { tmp66.Append(", "); } + tmp66.Append("IsSeq: "); + IsSeq.ToString(tmp66); } if((StorageGroups != null) && __isset.storageGroups) { - if(0 < tmp24++) { sb.Append(", "); } - sb.Append("StorageGroups: "); - StorageGroups.ToString(sb); + if(0 < tmp67++) { tmp66.Append(", "); } + tmp66.Append("StorageGroups: "); + StorageGroups.ToString(tmp66); + } + if((RegionIds != null) && __isset.regionIds) + { + if(0 < tmp67++) { tmp66.Append(", "); } + tmp66.Append("RegionIds: "); + RegionIds.ToString(tmp66); } - sb.Append(')'); - return sb.ToString(); + tmp66.Append(')'); + return tmp66.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TLicense.cs b/src/Apache.IoTDB/Rpc/Generated/TLicense.cs index 173ddf7..53b9e14 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TLicense : TBase @@ -230,55 +231,55 @@ public TLicense(long licenseIssueTimestamp, long expireTimestamp, short dataNode 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); + var tmp146 = new TStruct("TLicense"); + await oprot.WriteStructBeginAsync(tmp146, cancellationToken); + var tmp147 = new TField(); + tmp147.Name = "licenseIssueTimestamp"; + tmp147.Type = TType.I64; + tmp147.ID = 1; + await oprot.WriteFieldBeginAsync(tmp147, 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); + tmp147.Name = "expireTimestamp"; + tmp147.Type = TType.I64; + tmp147.ID = 2; + await oprot.WriteFieldBeginAsync(tmp147, 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); + tmp147.Name = "dataNodeNumLimit"; + tmp147.Type = TType.I16; + tmp147.ID = 4; + await oprot.WriteFieldBeginAsync(tmp147, 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); + tmp147.Name = "cpuCoreNumLimit"; + tmp147.Type = TType.I32; + tmp147.ID = 5; + await oprot.WriteFieldBeginAsync(tmp147, 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); + tmp147.Name = "deviceNumLimit"; + tmp147.Type = TType.I64; + tmp147.ID = 6; + await oprot.WriteFieldBeginAsync(tmp147, 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); + tmp147.Name = "sensorNumLimit"; + tmp147.Type = TType.I64; + tmp147.ID = 7; + await oprot.WriteFieldBeginAsync(tmp147, 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); + tmp147.Name = "disconnectionFromActiveNodeTimeLimit"; + tmp147.Type = TType.I64; + tmp147.ID = 8; + await oprot.WriteFieldBeginAsync(tmp147, 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); + tmp147.Name = "mlNodeNumLimit"; + tmp147.Type = TType.I16; + tmp147.ID = 9; + await oprot.WriteFieldBeginAsync(tmp147, cancellationToken); await oprot.WriteI16Async(MlNodeNumLimit, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -321,25 +322,25 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TLicense("); - sb.Append(", LicenseIssueTimestamp: "); - LicenseIssueTimestamp.ToString(sb); - sb.Append(", ExpireTimestamp: "); - ExpireTimestamp.ToString(sb); - sb.Append(", DataNodeNumLimit: "); - DataNodeNumLimit.ToString(sb); - sb.Append(", CpuCoreNumLimit: "); - CpuCoreNumLimit.ToString(sb); - sb.Append(", DeviceNumLimit: "); - DeviceNumLimit.ToString(sb); - sb.Append(", SensorNumLimit: "); - SensorNumLimit.ToString(sb); - sb.Append(", DisconnectionFromActiveNodeTimeLimit: "); - DisconnectionFromActiveNodeTimeLimit.ToString(sb); - sb.Append(", MlNodeNumLimit: "); - MlNodeNumLimit.ToString(sb); - sb.Append(')'); - return sb.ToString(); + var tmp148 = new StringBuilder("TLicense("); + tmp148.Append(", LicenseIssueTimestamp: "); + LicenseIssueTimestamp.ToString(tmp148); + tmp148.Append(", ExpireTimestamp: "); + ExpireTimestamp.ToString(tmp148); + tmp148.Append(", DataNodeNumLimit: "); + DataNodeNumLimit.ToString(tmp148); + tmp148.Append(", CpuCoreNumLimit: "); + CpuCoreNumLimit.ToString(tmp148); + tmp148.Append(", DeviceNumLimit: "); + DeviceNumLimit.ToString(tmp148); + tmp148.Append(", SensorNumLimit: "); + SensorNumLimit.ToString(tmp148); + tmp148.Append(", DisconnectionFromActiveNodeTimeLimit: "); + DisconnectionFromActiveNodeTimeLimit.ToString(tmp148); + tmp148.Append(", MlNodeNumLimit: "); + MlNodeNumLimit.ToString(tmp148); + tmp148.Append(')'); + return tmp148.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TLoadSample.cs b/src/Apache.IoTDB/Rpc/Generated/TLoadSample.cs index d4248b9..32ab35c 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TLoadSample.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TLoadSample.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TLoadSample : TBase @@ -154,31 +155,31 @@ public TLoadSample(double cpuUsageRate, double memoryUsageRate, double diskUsage oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TLoadSample"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "cpuUsageRate"; - field.Type = TType.Double; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp150 = new TStruct("TLoadSample"); + await oprot.WriteStructBeginAsync(tmp150, cancellationToken); + var tmp151 = new TField(); + tmp151.Name = "cpuUsageRate"; + tmp151.Type = TType.Double; + tmp151.ID = 1; + await oprot.WriteFieldBeginAsync(tmp151, cancellationToken); await oprot.WriteDoubleAsync(CpuUsageRate, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "memoryUsageRate"; - field.Type = TType.Double; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp151.Name = "memoryUsageRate"; + tmp151.Type = TType.Double; + tmp151.ID = 2; + await oprot.WriteFieldBeginAsync(tmp151, cancellationToken); await oprot.WriteDoubleAsync(MemoryUsageRate, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "diskUsageRate"; - field.Type = TType.Double; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp151.Name = "diskUsageRate"; + tmp151.Type = TType.Double; + tmp151.ID = 3; + await oprot.WriteFieldBeginAsync(tmp151, cancellationToken); await oprot.WriteDoubleAsync(DiskUsageRate, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "freeDiskSpace"; - field.Type = TType.Double; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp151.Name = "freeDiskSpace"; + tmp151.Type = TType.Double; + tmp151.ID = 4; + await oprot.WriteFieldBeginAsync(tmp151, cancellationToken); await oprot.WriteDoubleAsync(FreeDiskSpace, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -213,17 +214,17 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TLoadSample("); - sb.Append(", CpuUsageRate: "); - CpuUsageRate.ToString(sb); - sb.Append(", MemoryUsageRate: "); - MemoryUsageRate.ToString(sb); - sb.Append(", DiskUsageRate: "); - DiskUsageRate.ToString(sb); - sb.Append(", FreeDiskSpace: "); - FreeDiskSpace.ToString(sb); - sb.Append(')'); - return sb.ToString(); + var tmp152 = new StringBuilder("TLoadSample("); + tmp152.Append(", CpuUsageRate: "); + CpuUsageRate.ToString(tmp152); + tmp152.Append(", MemoryUsageRate: "); + MemoryUsageRate.ToString(tmp152); + tmp152.Append(", DiskUsageRate: "); + DiskUsageRate.ToString(tmp152); + tmp152.Append(", FreeDiskSpace: "); + FreeDiskSpace.ToString(tmp152); + tmp152.Append(')'); + return tmp152.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TNodeLocations.cs b/src/Apache.IoTDB/Rpc/Generated/TNodeLocations.cs index a00dd53..4505649 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TNodeLocations : TBase @@ -93,14 +94,14 @@ public TNodeLocations() if (field.Type == TType.List) { { - TList _list77 = await iprot.ReadListBeginAsync(cancellationToken); - ConfigNodeLocations = new List(_list77.Count); - for(int _i78 = 0; _i78 < _list77.Count; ++_i78) + TList _list174 = await iprot.ReadListBeginAsync(cancellationToken); + ConfigNodeLocations = new List(_list174.Count); + for(int _i175 = 0; _i175 < _list174.Count; ++_i175) { - TConfigNodeLocation _elem79; - _elem79 = new TConfigNodeLocation(); - await _elem79.ReadAsync(iprot, cancellationToken); - ConfigNodeLocations.Add(_elem79); + TConfigNodeLocation _elem176; + _elem176 = new TConfigNodeLocation(); + await _elem176.ReadAsync(iprot, cancellationToken); + ConfigNodeLocations.Add(_elem176); } await iprot.ReadListEndAsync(cancellationToken); } @@ -114,14 +115,14 @@ public TNodeLocations() if (field.Type == TType.List) { { - TList _list80 = await iprot.ReadListBeginAsync(cancellationToken); - DataNodeLocations = new List(_list80.Count); - for(int _i81 = 0; _i81 < _list80.Count; ++_i81) + TList _list177 = await iprot.ReadListBeginAsync(cancellationToken); + DataNodeLocations = new List(_list177.Count); + for(int _i178 = 0; _i178 < _list177.Count; ++_i178) { - TDataNodeLocation _elem82; - _elem82 = new TDataNodeLocation(); - await _elem82.ReadAsync(iprot, cancellationToken); - DataNodeLocations.Add(_elem82); + TDataNodeLocation _elem179; + _elem179 = new TDataNodeLocation(); + await _elem179.ReadAsync(iprot, cancellationToken); + DataNodeLocations.Add(_elem179); } await iprot.ReadListEndAsync(cancellationToken); } @@ -152,20 +153,20 @@ public TNodeLocations() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TNodeLocations"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp180 = new TStruct("TNodeLocations"); + await oprot.WriteStructBeginAsync(tmp180, cancellationToken); + var tmp181 = new TField(); if((ConfigNodeLocations != null) && __isset.configNodeLocations) { - field.Name = "configNodeLocations"; - field.Type = TType.List; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp181.Name = "configNodeLocations"; + tmp181.Type = TType.List; + tmp181.ID = 1; + await oprot.WriteFieldBeginAsync(tmp181, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, ConfigNodeLocations.Count), cancellationToken); - foreach (TConfigNodeLocation _iter83 in ConfigNodeLocations) + foreach (TConfigNodeLocation _iter182 in ConfigNodeLocations) { - await _iter83.WriteAsync(oprot, cancellationToken); + await _iter182.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -173,15 +174,15 @@ public TNodeLocations() } if((DataNodeLocations != null) && __isset.dataNodeLocations) { - field.Name = "dataNodeLocations"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp181.Name = "dataNodeLocations"; + tmp181.Type = TType.List; + tmp181.ID = 2; + await oprot.WriteFieldBeginAsync(tmp181, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, DataNodeLocations.Count), cancellationToken); - foreach (TDataNodeLocation _iter84 in DataNodeLocations) + foreach (TDataNodeLocation _iter183 in DataNodeLocations) { - await _iter84.WriteAsync(oprot, cancellationToken); + await _iter183.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -221,22 +222,22 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TNodeLocations("); - int tmp85 = 0; + var tmp184 = new StringBuilder("TNodeLocations("); + int tmp185 = 0; if((ConfigNodeLocations != null) && __isset.configNodeLocations) { - if(0 < tmp85++) { sb.Append(", "); } - sb.Append("ConfigNodeLocations: "); - ConfigNodeLocations.ToString(sb); + if(0 < tmp185++) { tmp184.Append(", "); } + tmp184.Append("ConfigNodeLocations: "); + ConfigNodeLocations.ToString(tmp184); } if((DataNodeLocations != null) && __isset.dataNodeLocations) { - if(0 < tmp85++) { sb.Append(", "); } - sb.Append("DataNodeLocations: "); - DataNodeLocations.ToString(sb); + if(0 < tmp185++) { tmp184.Append(", "); } + tmp184.Append("DataNodeLocations: "); + DataNodeLocations.ToString(tmp184); } - sb.Append(')'); - return sb.ToString(); + tmp184.Append(')'); + return tmp184.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TNodeResource.cs b/src/Apache.IoTDB/Rpc/Generated/TNodeResource.cs index 3df3303..437e2ad 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TNodeResource : TBase @@ -116,19 +117,19 @@ public TNodeResource(int cpuCoreNum, long maxMemory) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TNodeResource"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "cpuCoreNum"; - field.Type = TType.I32; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp32 = new TStruct("TNodeResource"); + await oprot.WriteStructBeginAsync(tmp32, cancellationToken); + var tmp33 = new TField(); + tmp33.Name = "cpuCoreNum"; + tmp33.Type = TType.I32; + tmp33.ID = 1; + await oprot.WriteFieldBeginAsync(tmp33, cancellationToken); await oprot.WriteI32Async(CpuCoreNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "maxMemory"; - field.Type = TType.I64; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp33.Name = "maxMemory"; + tmp33.Type = TType.I64; + tmp33.ID = 2; + await oprot.WriteFieldBeginAsync(tmp33, cancellationToken); await oprot.WriteI64Async(MaxMemory, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -159,13 +160,13 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TNodeResource("); - sb.Append(", CpuCoreNum: "); - CpuCoreNum.ToString(sb); - sb.Append(", MaxMemory: "); - MaxMemory.ToString(sb); - sb.Append(')'); - return sb.ToString(); + var tmp34 = new StringBuilder("TNodeResource("); + tmp34.Append(", CpuCoreNum: "); + CpuCoreNum.ToString(tmp34); + tmp34.Append(", MaxMemory: "); + MaxMemory.ToString(tmp34); + tmp34.Append(')'); + return tmp34.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeReq.cs b/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeReq.cs index bf1e167..b9f539f 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TPipeSubscribeReq : TBase @@ -147,27 +148,27 @@ public TPipeSubscribeReq(sbyte version, short type) : this() 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); + var tmp571 = new TStruct("TPipeSubscribeReq"); + await oprot.WriteStructBeginAsync(tmp571, cancellationToken); + var tmp572 = new TField(); + tmp572.Name = "version"; + tmp572.Type = TType.Byte; + tmp572.ID = 1; + await oprot.WriteFieldBeginAsync(tmp572, 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); + tmp572.Name = "type"; + tmp572.Type = TType.I16; + tmp572.ID = 2; + await oprot.WriteFieldBeginAsync(tmp572, 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); + tmp572.Name = "body"; + tmp572.Type = TType.String; + tmp572.ID = 3; + await oprot.WriteFieldBeginAsync(tmp572, cancellationToken); await oprot.WriteBinaryAsync(Body, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -204,18 +205,18 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TPipeSubscribeReq("); - sb.Append(", Version: "); - Version.ToString(sb); - sb.Append(", Type: "); - Type.ToString(sb); + var tmp573 = new StringBuilder("TPipeSubscribeReq("); + tmp573.Append(", Version: "); + Version.ToString(tmp573); + tmp573.Append(", Type: "); + Type.ToString(tmp573); if((Body != null) && __isset.body) { - sb.Append(", Body: "); - Body.ToString(sb); + tmp573.Append(", Body: "); + Body.ToString(tmp573); } - sb.Append(')'); - return sb.ToString(); + tmp573.Append(')'); + return tmp573.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeResp.cs b/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeResp.cs index e44ac85..d7e8282 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TPipeSubscribeResp : TBase @@ -128,13 +129,13 @@ public TPipeSubscribeResp(TSStatus status, sbyte version, short type) : this() if (field.Type == TType.List) { { - TList _list417 = await iprot.ReadListBeginAsync(cancellationToken); - Body = new List(_list417.Count); - for(int _i418 = 0; _i418 < _list417.Count; ++_i418) + TList _list575 = await iprot.ReadListBeginAsync(cancellationToken); + Body = new List(_list575.Count); + for(int _i576 = 0; _i576 < _list575.Count; ++_i576) { - byte[] _elem419; - _elem419 = await iprot.ReadBinaryAsync(cancellationToken); - Body.Add(_elem419); + byte[] _elem577; + _elem577 = await iprot.ReadBinaryAsync(cancellationToken); + Body.Add(_elem577); } await iprot.ReadListEndAsync(cancellationToken); } @@ -177,41 +178,41 @@ public TPipeSubscribeResp(TSStatus status, sbyte version, short type) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TPipeSubscribeResp"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp578 = new TStruct("TPipeSubscribeResp"); + await oprot.WriteStructBeginAsync(tmp578, cancellationToken); + var tmp579 = new TField(); if((Status != null)) { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp579.Name = "status"; + tmp579.Type = TType.Struct; + tmp579.ID = 1; + await oprot.WriteFieldBeginAsync(tmp579, 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); + tmp579.Name = "version"; + tmp579.Type = TType.Byte; + tmp579.ID = 2; + await oprot.WriteFieldBeginAsync(tmp579, 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); + tmp579.Name = "type"; + tmp579.Type = TType.I16; + tmp579.ID = 3; + await oprot.WriteFieldBeginAsync(tmp579, 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); + tmp579.Name = "body"; + tmp579.Type = TType.List; + tmp579.ID = 4; + await oprot.WriteFieldBeginAsync(tmp579, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Body.Count), cancellationToken); - foreach (byte[] _iter420 in Body) + foreach (byte[] _iter580 in Body) { - await oprot.WriteBinaryAsync(_iter420, cancellationToken); + await oprot.WriteBinaryAsync(_iter580, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -255,23 +256,23 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TPipeSubscribeResp("); + var tmp581 = new StringBuilder("TPipeSubscribeResp("); if((Status != null)) { - sb.Append(", Status: "); - Status.ToString(sb); + tmp581.Append(", Status: "); + Status.ToString(tmp581); } - sb.Append(", Version: "); - Version.ToString(sb); - sb.Append(", Type: "); - Type.ToString(sb); + tmp581.Append(", Version: "); + Version.ToString(tmp581); + tmp581.Append(", Type: "); + Type.ToString(tmp581); if((Body != null) && __isset.body) { - sb.Append(", Body: "); - Body.ToString(sb); + tmp581.Append(", Body: "); + Body.ToString(tmp581); } - sb.Append(')'); - return sb.ToString(); + tmp581.Append(')'); + return tmp581.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TPipeTransferReq.cs b/src/Apache.IoTDB/Rpc/Generated/TPipeTransferReq.cs index dc854d7..cb5f888 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TPipeTransferReq : TBase @@ -135,27 +136,27 @@ public TPipeTransferReq(sbyte version, short type, byte[] body) : this() 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); + var tmp563 = new TStruct("TPipeTransferReq"); + await oprot.WriteStructBeginAsync(tmp563, cancellationToken); + var tmp564 = new TField(); + tmp564.Name = "version"; + tmp564.Type = TType.Byte; + tmp564.ID = 1; + await oprot.WriteFieldBeginAsync(tmp564, 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); + tmp564.Name = "type"; + tmp564.Type = TType.I16; + tmp564.ID = 2; + await oprot.WriteFieldBeginAsync(tmp564, cancellationToken); await oprot.WriteI16Async(Type, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if((Body != null)) { - field.Name = "body"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp564.Name = "body"; + tmp564.Type = TType.String; + tmp564.ID = 3; + await oprot.WriteFieldBeginAsync(tmp564, cancellationToken); await oprot.WriteBinaryAsync(Body, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -192,18 +193,18 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TPipeTransferReq("); - sb.Append(", Version: "); - Version.ToString(sb); - sb.Append(", Type: "); - Type.ToString(sb); + var tmp565 = new StringBuilder("TPipeTransferReq("); + tmp565.Append(", Version: "); + Version.ToString(tmp565); + tmp565.Append(", Type: "); + Type.ToString(tmp565); if((Body != null)) { - sb.Append(", Body: "); - Body.ToString(sb); + tmp565.Append(", Body: "); + Body.ToString(tmp565); } - sb.Append(')'); - return sb.ToString(); + tmp565.Append(')'); + return tmp565.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TPipeTransferResp.cs b/src/Apache.IoTDB/Rpc/Generated/TPipeTransferResp.cs index faaa628..8edda47 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TPipeTransferResp : TBase @@ -129,24 +130,24 @@ public TPipeTransferResp(TSStatus status) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TPipeTransferResp"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp567 = new TStruct("TPipeTransferResp"); + await oprot.WriteStructBeginAsync(tmp567, cancellationToken); + var tmp568 = new TField(); if((Status != null)) { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp568.Name = "status"; + tmp568.Type = TType.Struct; + tmp568.ID = 1; + await oprot.WriteFieldBeginAsync(tmp568, 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); + tmp568.Name = "body"; + tmp568.Type = TType.String; + tmp568.ID = 2; + await oprot.WriteFieldBeginAsync(tmp568, cancellationToken); await oprot.WriteBinaryAsync(Body, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -184,19 +185,19 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TPipeTransferResp("); + var tmp569 = new StringBuilder("TPipeTransferResp("); if((Status != null)) { - sb.Append(", Status: "); - Status.ToString(sb); + tmp569.Append(", Status: "); + Status.ToString(tmp569); } if((Body != null) && __isset.body) { - sb.Append(", Body: "); - Body.ToString(sb); + tmp569.Append(", Body: "); + Body.ToString(tmp569); } - sb.Append(')'); - return sb.ToString(); + tmp569.Append(')'); + return tmp569.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TRegionMaintainTaskStatus.cs b/src/Apache.IoTDB/Rpc/Generated/TRegionMaintainTaskStatus.cs index e0904fb..9488a23 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TRegionMaintainTaskStatus.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TRegionMaintainTaskStatus.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,6 +7,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum TRegionMaintainTaskStatus { diff --git a/src/Apache.IoTDB/Rpc/Generated/TRegionMigrateFailedType.cs b/src/Apache.IoTDB/Rpc/Generated/TRegionMigrateFailedType.cs index 1306ac5..4c2d362 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TRegionMigrateFailedType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TRegionMigrateFailedType.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,6 +7,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum TRegionMigrateFailedType { diff --git a/src/Apache.IoTDB/Rpc/Generated/TRegionReplicaSet.cs b/src/Apache.IoTDB/Rpc/Generated/TRegionReplicaSet.cs index d745048..b9e35ed 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TRegionReplicaSet : TBase @@ -81,14 +82,14 @@ public TRegionReplicaSet(TConsensusGroupId regionId, List dat if (field.Type == TType.List) { { - TList _list9 = await iprot.ReadListBeginAsync(cancellationToken); - DataNodeLocations = new List(_list9.Count); - for(int _i10 = 0; _i10 < _list9.Count; ++_i10) + TList _list24 = await iprot.ReadListBeginAsync(cancellationToken); + DataNodeLocations = new List(_list24.Count); + for(int _i25 = 0; _i25 < _list24.Count; ++_i25) { - TDataNodeLocation _elem11; - _elem11 = new TDataNodeLocation(); - await _elem11.ReadAsync(iprot, cancellationToken); - DataNodeLocations.Add(_elem11); + TDataNodeLocation _elem26; + _elem26 = new TDataNodeLocation(); + await _elem26.ReadAsync(iprot, cancellationToken); + DataNodeLocations.Add(_elem26); } await iprot.ReadListEndAsync(cancellationToken); } @@ -128,29 +129,29 @@ public TRegionReplicaSet(TConsensusGroupId regionId, List dat oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TRegionReplicaSet"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp27 = new TStruct("TRegionReplicaSet"); + await oprot.WriteStructBeginAsync(tmp27, cancellationToken); + var tmp28 = new TField(); if((RegionId != null)) { - field.Name = "regionId"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp28.Name = "regionId"; + tmp28.Type = TType.Struct; + tmp28.ID = 1; + await oprot.WriteFieldBeginAsync(tmp28, cancellationToken); await RegionId.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((DataNodeLocations != null)) { - field.Name = "dataNodeLocations"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp28.Name = "dataNodeLocations"; + tmp28.Type = TType.List; + tmp28.ID = 2; + await oprot.WriteFieldBeginAsync(tmp28, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, DataNodeLocations.Count), cancellationToken); - foreach (TDataNodeLocation _iter12 in DataNodeLocations) + foreach (TDataNodeLocation _iter29 in DataNodeLocations) { - await _iter12.WriteAsync(oprot, cancellationToken); + await _iter29.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -190,19 +191,19 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TRegionReplicaSet("); + var tmp30 = new StringBuilder("TRegionReplicaSet("); if((RegionId != null)) { - sb.Append(", RegionId: "); - RegionId.ToString(sb); + tmp30.Append(", RegionId: "); + RegionId.ToString(tmp30); } if((DataNodeLocations != null)) { - sb.Append(", DataNodeLocations: "); - DataNodeLocations.ToString(sb); + tmp30.Append(", DataNodeLocations: "); + DataNodeLocations.ToString(tmp30); } - sb.Append(')'); - return sb.ToString(); + tmp30.Append(')'); + return tmp30.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSAggregationQueryReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSAggregationQueryReq.cs index c6b14e0..34f6907 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSAggregationQueryReq : TBase @@ -210,13 +211,13 @@ public TSAggregationQueryReq(long sessionId, long statementId, List path if (field.Type == TType.List) { { - TList _list316 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list316.Count); - for(int _i317 = 0; _i317 < _list316.Count; ++_i317) + TList _list420 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list420.Count); + for(int _i421 = 0; _i421 < _list420.Count; ++_i421) { - string _elem318; - _elem318 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem318); + string _elem422; + _elem422 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem422); } await iprot.ReadListEndAsync(cancellationToken); } @@ -231,13 +232,13 @@ public TSAggregationQueryReq(long sessionId, long statementId, List path if (field.Type == TType.List) { { - TList _list319 = await iprot.ReadListBeginAsync(cancellationToken); - Aggregations = new List(_list319.Count); - for(int _i320 = 0; _i320 < _list319.Count; ++_i320) + TList _list423 = await iprot.ReadListBeginAsync(cancellationToken); + Aggregations = new List(_list423.Count); + for(int _i424 = 0; _i424 < _list423.Count; ++_i424) { - TAggregationType _elem321; - _elem321 = (TAggregationType)await iprot.ReadI32Async(cancellationToken); - Aggregations.Add(_elem321); + TAggregationType _elem425; + _elem425 = (TAggregationType)await iprot.ReadI32Async(cancellationToken); + Aggregations.Add(_elem425); } await iprot.ReadListEndAsync(cancellationToken); } @@ -355,32 +356,32 @@ public TSAggregationQueryReq(long sessionId, long statementId, List path 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); + var tmp426 = new TStruct("TSAggregationQueryReq"); + await oprot.WriteStructBeginAsync(tmp426, cancellationToken); + var tmp427 = new TField(); + tmp427.Name = "sessionId"; + tmp427.Type = TType.I64; + tmp427.ID = 1; + await oprot.WriteFieldBeginAsync(tmp427, 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); + tmp427.Name = "statementId"; + tmp427.Type = TType.I64; + tmp427.ID = 2; + await oprot.WriteFieldBeginAsync(tmp427, cancellationToken); await oprot.WriteI64Async(StatementId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if((Paths != null)) { - field.Name = "paths"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp427.Name = "paths"; + tmp427.Type = TType.List; + tmp427.ID = 3; + await oprot.WriteFieldBeginAsync(tmp427, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter322 in Paths) + foreach (string _iter428 in Paths) { - await oprot.WriteStringAsync(_iter322, cancellationToken); + await oprot.WriteStringAsync(_iter428, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -388,15 +389,15 @@ public TSAggregationQueryReq(long sessionId, long statementId, List path } if((Aggregations != null)) { - field.Name = "aggregations"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp427.Name = "aggregations"; + tmp427.Type = TType.List; + tmp427.ID = 4; + await oprot.WriteFieldBeginAsync(tmp427, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, Aggregations.Count), cancellationToken); - foreach (TAggregationType _iter323 in Aggregations) + foreach (TAggregationType _iter429 in Aggregations) { - await oprot.WriteI32Async((int)_iter323, cancellationToken); + await oprot.WriteI32Async((int)_iter429, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -404,64 +405,64 @@ public TSAggregationQueryReq(long sessionId, long statementId, List path } if(__isset.startTime) { - field.Name = "startTime"; - field.Type = TType.I64; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp427.Name = "startTime"; + tmp427.Type = TType.I64; + tmp427.ID = 5; + await oprot.WriteFieldBeginAsync(tmp427, 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); + tmp427.Name = "endTime"; + tmp427.Type = TType.I64; + tmp427.ID = 6; + await oprot.WriteFieldBeginAsync(tmp427, 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); + tmp427.Name = "interval"; + tmp427.Type = TType.I64; + tmp427.ID = 7; + await oprot.WriteFieldBeginAsync(tmp427, 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); + tmp427.Name = "slidingStep"; + tmp427.Type = TType.I64; + tmp427.ID = 8; + await oprot.WriteFieldBeginAsync(tmp427, 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); + tmp427.Name = "fetchSize"; + tmp427.Type = TType.I32; + tmp427.ID = 9; + await oprot.WriteFieldBeginAsync(tmp427, 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); + tmp427.Name = "timeout"; + tmp427.Type = TType.I64; + tmp427.ID = 10; + await oprot.WriteFieldBeginAsync(tmp427, 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); + tmp427.Name = "legalPathNodes"; + tmp427.Type = TType.Bool; + tmp427.ID = 11; + await oprot.WriteFieldBeginAsync(tmp427, cancellationToken); await oprot.WriteBoolAsync(LegalPathNodes, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -538,58 +539,58 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSAggregationQueryReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); - sb.Append(", StatementId: "); - StatementId.ToString(sb); + var tmp430 = new StringBuilder("TSAggregationQueryReq("); + tmp430.Append(", SessionId: "); + SessionId.ToString(tmp430); + tmp430.Append(", StatementId: "); + StatementId.ToString(tmp430); if((Paths != null)) { - sb.Append(", Paths: "); - Paths.ToString(sb); + tmp430.Append(", Paths: "); + Paths.ToString(tmp430); } if((Aggregations != null)) { - sb.Append(", Aggregations: "); - Aggregations.ToString(sb); + tmp430.Append(", Aggregations: "); + Aggregations.ToString(tmp430); } if(__isset.startTime) { - sb.Append(", StartTime: "); - StartTime.ToString(sb); + tmp430.Append(", StartTime: "); + StartTime.ToString(tmp430); } if(__isset.endTime) { - sb.Append(", EndTime: "); - EndTime.ToString(sb); + tmp430.Append(", EndTime: "); + EndTime.ToString(tmp430); } if(__isset.interval) { - sb.Append(", Interval: "); - Interval.ToString(sb); + tmp430.Append(", Interval: "); + Interval.ToString(tmp430); } if(__isset.slidingStep) { - sb.Append(", SlidingStep: "); - SlidingStep.ToString(sb); + tmp430.Append(", SlidingStep: "); + SlidingStep.ToString(tmp430); } if(__isset.fetchSize) { - sb.Append(", FetchSize: "); - FetchSize.ToString(sb); + tmp430.Append(", FetchSize: "); + FetchSize.ToString(tmp430); } if(__isset.timeout) { - sb.Append(", Timeout: "); - Timeout.ToString(sb); + tmp430.Append(", Timeout: "); + Timeout.ToString(tmp430); } if(__isset.legalPathNodes) { - sb.Append(", LegalPathNodes: "); - LegalPathNodes.ToString(sb); + tmp430.Append(", LegalPathNodes: "); + LegalPathNodes.ToString(tmp430); } - sb.Append(')'); - return sb.ToString(); + tmp430.Append(')'); + return tmp430.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSAppendSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSAppendSchemaTemplateReq.cs index 8fac227..6a5ac19 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSAppendSchemaTemplateReq : TBase @@ -122,13 +123,13 @@ public TSAppendSchemaTemplateReq(long sessionId, string name, bool isAligned, Li if (field.Type == TType.List) { { - TList _list381 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list381.Count); - for(int _i382 = 0; _i382 < _list381.Count; ++_i382) + TList _list503 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list503.Count); + for(int _i504 = 0; _i504 < _list503.Count; ++_i504) { - string _elem383; - _elem383 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem383); + string _elem505; + _elem505 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem505); } await iprot.ReadListEndAsync(cancellationToken); } @@ -143,13 +144,13 @@ public TSAppendSchemaTemplateReq(long sessionId, string name, bool isAligned, Li if (field.Type == TType.List) { { - TList _list384 = await iprot.ReadListBeginAsync(cancellationToken); - DataTypes = new List(_list384.Count); - for(int _i385 = 0; _i385 < _list384.Count; ++_i385) + TList _list506 = await iprot.ReadListBeginAsync(cancellationToken); + DataTypes = new List(_list506.Count); + for(int _i507 = 0; _i507 < _list506.Count; ++_i507) { - int _elem386; - _elem386 = await iprot.ReadI32Async(cancellationToken); - DataTypes.Add(_elem386); + int _elem508; + _elem508 = await iprot.ReadI32Async(cancellationToken); + DataTypes.Add(_elem508); } await iprot.ReadListEndAsync(cancellationToken); } @@ -164,13 +165,13 @@ public TSAppendSchemaTemplateReq(long sessionId, string name, bool isAligned, Li if (field.Type == TType.List) { { - TList _list387 = await iprot.ReadListBeginAsync(cancellationToken); - Encodings = new List(_list387.Count); - for(int _i388 = 0; _i388 < _list387.Count; ++_i388) + TList _list509 = await iprot.ReadListBeginAsync(cancellationToken); + Encodings = new List(_list509.Count); + for(int _i510 = 0; _i510 < _list509.Count; ++_i510) { - int _elem389; - _elem389 = await iprot.ReadI32Async(cancellationToken); - Encodings.Add(_elem389); + int _elem511; + _elem511 = await iprot.ReadI32Async(cancellationToken); + Encodings.Add(_elem511); } await iprot.ReadListEndAsync(cancellationToken); } @@ -185,13 +186,13 @@ public TSAppendSchemaTemplateReq(long sessionId, string name, bool isAligned, Li if (field.Type == TType.List) { { - TList _list390 = await iprot.ReadListBeginAsync(cancellationToken); - Compressors = new List(_list390.Count); - for(int _i391 = 0; _i391 < _list390.Count; ++_i391) + TList _list512 = await iprot.ReadListBeginAsync(cancellationToken); + Compressors = new List(_list512.Count); + for(int _i513 = 0; _i513 < _list512.Count; ++_i513) { - int _elem392; - _elem392 = await iprot.ReadI32Async(cancellationToken); - Compressors.Add(_elem392); + int _elem514; + _elem514 = await iprot.ReadI32Async(cancellationToken); + Compressors.Add(_elem514); } await iprot.ReadListEndAsync(cancellationToken); } @@ -251,41 +252,41 @@ public TSAppendSchemaTemplateReq(long sessionId, string name, bool isAligned, Li oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSAppendSchemaTemplateReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp515 = new TStruct("TSAppendSchemaTemplateReq"); + await oprot.WriteStructBeginAsync(tmp515, cancellationToken); + var tmp516 = new TField(); + tmp516.Name = "sessionId"; + tmp516.Type = TType.I64; + tmp516.ID = 1; + await oprot.WriteFieldBeginAsync(tmp516, 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); + tmp516.Name = "name"; + tmp516.Type = TType.String; + tmp516.ID = 2; + await oprot.WriteFieldBeginAsync(tmp516, 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); + tmp516.Name = "isAligned"; + tmp516.Type = TType.Bool; + tmp516.ID = 3; + await oprot.WriteFieldBeginAsync(tmp516, 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); + tmp516.Name = "measurements"; + tmp516.Type = TType.List; + tmp516.ID = 4; + await oprot.WriteFieldBeginAsync(tmp516, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter393 in Measurements) + foreach (string _iter517 in Measurements) { - await oprot.WriteStringAsync(_iter393, cancellationToken); + await oprot.WriteStringAsync(_iter517, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -293,15 +294,15 @@ public TSAppendSchemaTemplateReq(long sessionId, string name, bool isAligned, Li } if((DataTypes != null)) { - field.Name = "dataTypes"; - field.Type = TType.List; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp516.Name = "dataTypes"; + tmp516.Type = TType.List; + tmp516.ID = 5; + await oprot.WriteFieldBeginAsync(tmp516, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, DataTypes.Count), cancellationToken); - foreach (int _iter394 in DataTypes) + foreach (int _iter518 in DataTypes) { - await oprot.WriteI32Async(_iter394, cancellationToken); + await oprot.WriteI32Async(_iter518, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -309,15 +310,15 @@ public TSAppendSchemaTemplateReq(long sessionId, string name, bool isAligned, Li } if((Encodings != null)) { - field.Name = "encodings"; - field.Type = TType.List; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp516.Name = "encodings"; + tmp516.Type = TType.List; + tmp516.ID = 6; + await oprot.WriteFieldBeginAsync(tmp516, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, Encodings.Count), cancellationToken); - foreach (int _iter395 in Encodings) + foreach (int _iter519 in Encodings) { - await oprot.WriteI32Async(_iter395, cancellationToken); + await oprot.WriteI32Async(_iter519, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -325,15 +326,15 @@ public TSAppendSchemaTemplateReq(long sessionId, string name, bool isAligned, Li } if((Compressors != null)) { - field.Name = "compressors"; - field.Type = TType.List; - field.ID = 7; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp516.Name = "compressors"; + tmp516.Type = TType.List; + tmp516.ID = 7; + await oprot.WriteFieldBeginAsync(tmp516, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, Compressors.Count), cancellationToken); - foreach (int _iter396 in Compressors) + foreach (int _iter520 in Compressors) { - await oprot.WriteI32Async(_iter396, cancellationToken); + await oprot.WriteI32Async(_iter520, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -392,38 +393,38 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSAppendSchemaTemplateReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp521 = new StringBuilder("TSAppendSchemaTemplateReq("); + tmp521.Append(", SessionId: "); + SessionId.ToString(tmp521); if((Name != null)) { - sb.Append(", Name: "); - Name.ToString(sb); + tmp521.Append(", Name: "); + Name.ToString(tmp521); } - sb.Append(", IsAligned: "); - IsAligned.ToString(sb); + tmp521.Append(", IsAligned: "); + IsAligned.ToString(tmp521); if((Measurements != null)) { - sb.Append(", Measurements: "); - Measurements.ToString(sb); + tmp521.Append(", Measurements: "); + Measurements.ToString(tmp521); } if((DataTypes != null)) { - sb.Append(", DataTypes: "); - DataTypes.ToString(sb); + tmp521.Append(", DataTypes: "); + DataTypes.ToString(tmp521); } if((Encodings != null)) { - sb.Append(", Encodings: "); - Encodings.ToString(sb); + tmp521.Append(", Encodings: "); + Encodings.ToString(tmp521); } if((Compressors != null)) { - sb.Append(", Compressors: "); - Compressors.ToString(sb); + tmp521.Append(", Compressors: "); + Compressors.ToString(tmp521); } - sb.Append(')'); - return sb.ToString(); + tmp521.Append(')'); + return tmp521.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSBackupConfigurationResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSBackupConfigurationResp.cs index 5cdb21f..c520311 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSBackupConfigurationResp : TBase @@ -179,42 +180,42 @@ public TSBackupConfigurationResp(TSStatus status) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSBackupConfigurationResp"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp583 = new TStruct("TSBackupConfigurationResp"); + await oprot.WriteStructBeginAsync(tmp583, cancellationToken); + var tmp584 = new TField(); if((Status != null)) { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp584.Name = "status"; + tmp584.Type = TType.Struct; + tmp584.ID = 1; + await oprot.WriteFieldBeginAsync(tmp584, cancellationToken); await Status.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.enableOperationSync) { - field.Name = "enableOperationSync"; - field.Type = TType.Bool; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp584.Name = "enableOperationSync"; + tmp584.Type = TType.Bool; + tmp584.ID = 2; + await oprot.WriteFieldBeginAsync(tmp584, cancellationToken); await oprot.WriteBoolAsync(EnableOperationSync, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((SecondaryAddress != null) && __isset.secondaryAddress) { - field.Name = "secondaryAddress"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp584.Name = "secondaryAddress"; + tmp584.Type = TType.String; + tmp584.ID = 3; + await oprot.WriteFieldBeginAsync(tmp584, cancellationToken); await oprot.WriteStringAsync(SecondaryAddress, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.secondaryPort) { - field.Name = "secondaryPort"; - field.Type = TType.I32; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp584.Name = "secondaryPort"; + tmp584.Type = TType.I32; + tmp584.ID = 4; + await oprot.WriteFieldBeginAsync(tmp584, cancellationToken); await oprot.WriteI32Async(SecondaryPort, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -262,29 +263,29 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSBackupConfigurationResp("); + var tmp585 = new StringBuilder("TSBackupConfigurationResp("); if((Status != null)) { - sb.Append(", Status: "); - Status.ToString(sb); + tmp585.Append(", Status: "); + Status.ToString(tmp585); } if(__isset.enableOperationSync) { - sb.Append(", EnableOperationSync: "); - EnableOperationSync.ToString(sb); + tmp585.Append(", EnableOperationSync: "); + EnableOperationSync.ToString(tmp585); } if((SecondaryAddress != null) && __isset.secondaryAddress) { - sb.Append(", SecondaryAddress: "); - SecondaryAddress.ToString(sb); + tmp585.Append(", SecondaryAddress: "); + SecondaryAddress.ToString(tmp585); } if(__isset.secondaryPort) { - sb.Append(", SecondaryPort: "); - SecondaryPort.ToString(sb); + tmp585.Append(", SecondaryPort: "); + SecondaryPort.ToString(tmp585); } - sb.Append(')'); - return sb.ToString(); + tmp585.Append(')'); + return tmp585.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCancelOperationReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCancelOperationReq.cs index 6cd4f4a..5343aa4 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSCancelOperationReq : TBase @@ -116,19 +117,19 @@ public TSCancelOperationReq(long sessionId, long queryId) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSCancelOperationReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp107 = new TStruct("TSCancelOperationReq"); + await oprot.WriteStructBeginAsync(tmp107, cancellationToken); + var tmp108 = new TField(); + tmp108.Name = "sessionId"; + tmp108.Type = TType.I64; + tmp108.ID = 1; + await oprot.WriteFieldBeginAsync(tmp108, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "queryId"; - field.Type = TType.I64; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp108.Name = "queryId"; + tmp108.Type = TType.I64; + tmp108.ID = 2; + await oprot.WriteFieldBeginAsync(tmp108, cancellationToken); await oprot.WriteI64Async(QueryId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -159,13 +160,13 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSCancelOperationReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); - sb.Append(", QueryId: "); - QueryId.ToString(sb); - sb.Append(')'); - return sb.ToString(); + var tmp109 = new StringBuilder("TSCancelOperationReq("); + tmp109.Append(", SessionId: "); + SessionId.ToString(tmp109); + tmp109.Append(", QueryId: "); + QueryId.ToString(tmp109); + tmp109.Append(')'); + return tmp109.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCloseOperationReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCloseOperationReq.cs index c574d80..054811d 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSCloseOperationReq : TBase @@ -153,30 +154,30 @@ public TSCloseOperationReq(long sessionId) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSCloseOperationReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp111 = new TStruct("TSCloseOperationReq"); + await oprot.WriteStructBeginAsync(tmp111, cancellationToken); + var tmp112 = new TField(); + tmp112.Name = "sessionId"; + tmp112.Type = TType.I64; + tmp112.ID = 1; + await oprot.WriteFieldBeginAsync(tmp112, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if(__isset.queryId) { - field.Name = "queryId"; - field.Type = TType.I64; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp112.Name = "queryId"; + tmp112.Type = TType.I64; + tmp112.ID = 2; + await oprot.WriteFieldBeginAsync(tmp112, cancellationToken); await oprot.WriteI64Async(QueryId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.statementId) { - field.Name = "statementId"; - field.Type = TType.I64; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp112.Name = "statementId"; + tmp112.Type = TType.I64; + tmp112.ID = 3; + await oprot.WriteFieldBeginAsync(tmp112, cancellationToken); await oprot.WriteI64Async(StatementId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -216,21 +217,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSCloseOperationReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp113 = new StringBuilder("TSCloseOperationReq("); + tmp113.Append(", SessionId: "); + SessionId.ToString(tmp113); if(__isset.queryId) { - sb.Append(", QueryId: "); - QueryId.ToString(sb); + tmp113.Append(", QueryId: "); + QueryId.ToString(tmp113); } if(__isset.statementId) { - sb.Append(", StatementId: "); - StatementId.ToString(sb); + tmp113.Append(", StatementId: "); + StatementId.ToString(tmp113); } - sb.Append(')'); - return sb.ToString(); + tmp113.Append(')'); + return tmp113.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCloseSessionReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCloseSessionReq.cs index e0c3a44..ff1c2c5 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSCloseSessionReq : TBase @@ -97,13 +98,13 @@ public TSCloseSessionReq(long sessionId) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSCloseSessionReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp87 = new TStruct("TSCloseSessionReq"); + await oprot.WriteStructBeginAsync(tmp87, cancellationToken); + var tmp88 = new TField(); + tmp88.Name = "sessionId"; + tmp88.Type = TType.I64; + tmp88.ID = 1; + await oprot.WriteFieldBeginAsync(tmp88, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -132,11 +133,11 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSCloseSessionReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); - sb.Append(')'); - return sb.ToString(); + var tmp89 = new StringBuilder("TSCloseSessionReq("); + tmp89.Append(", SessionId: "); + SessionId.ToString(tmp89); + tmp89.Append(')'); + return tmp89.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfo.cs b/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfo.cs index 95c1a2e..2ec28b0 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSConnectionInfo : TBase @@ -158,37 +159,37 @@ public TSConnectionInfo(string userName, long logInTime, string connectionId, TS oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSConnectionInfo"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp587 = new TStruct("TSConnectionInfo"); + await oprot.WriteStructBeginAsync(tmp587, cancellationToken); + var tmp588 = new TField(); if((UserName != null)) { - field.Name = "userName"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp588.Name = "userName"; + tmp588.Type = TType.String; + tmp588.ID = 1; + await oprot.WriteFieldBeginAsync(tmp588, 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); + tmp588.Name = "logInTime"; + tmp588.Type = TType.I64; + tmp588.ID = 2; + await oprot.WriteFieldBeginAsync(tmp588, 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); + tmp588.Name = "connectionId"; + tmp588.Type = TType.String; + tmp588.ID = 3; + await oprot.WriteFieldBeginAsync(tmp588, cancellationToken); await oprot.WriteStringAsync(ConnectionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - field.Name = "type"; - field.Type = TType.I32; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp588.Name = "type"; + tmp588.Type = TType.I32; + tmp588.ID = 4; + await oprot.WriteFieldBeginAsync(tmp588, cancellationToken); await oprot.WriteI32Async((int)Type, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -229,23 +230,23 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSConnectionInfo("); + var tmp589 = new StringBuilder("TSConnectionInfo("); if((UserName != null)) { - sb.Append(", UserName: "); - UserName.ToString(sb); + tmp589.Append(", UserName: "); + UserName.ToString(tmp589); } - sb.Append(", LogInTime: "); - LogInTime.ToString(sb); + tmp589.Append(", LogInTime: "); + LogInTime.ToString(tmp589); if((ConnectionId != null)) { - sb.Append(", ConnectionId: "); - ConnectionId.ToString(sb); + tmp589.Append(", ConnectionId: "); + ConnectionId.ToString(tmp589); } - sb.Append(", Type: "); - Type.ToString(sb); - sb.Append(')'); - return sb.ToString(); + tmp589.Append(", Type: "); + Type.ToString(tmp589); + tmp589.Append(')'); + return tmp589.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfoResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSConnectionInfoResp.cs index 4e5869f..c79957e 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSConnectionInfoResp : TBase @@ -65,14 +66,14 @@ public TSConnectionInfoResp(List connectionInfoList) : this() if (field.Type == TType.List) { { - TList _list424 = await iprot.ReadListBeginAsync(cancellationToken); - ConnectionInfoList = new List(_list424.Count); - for(int _i425 = 0; _i425 < _list424.Count; ++_i425) + TList _list591 = await iprot.ReadListBeginAsync(cancellationToken); + ConnectionInfoList = new List(_list591.Count); + for(int _i592 = 0; _i592 < _list591.Count; ++_i592) { - TSConnectionInfo _elem426; - _elem426 = new TSConnectionInfo(); - await _elem426.ReadAsync(iprot, cancellationToken); - ConnectionInfoList.Add(_elem426); + TSConnectionInfo _elem593; + _elem593 = new TSConnectionInfo(); + await _elem593.ReadAsync(iprot, cancellationToken); + ConnectionInfoList.Add(_elem593); } await iprot.ReadListEndAsync(cancellationToken); } @@ -108,20 +109,20 @@ public TSConnectionInfoResp(List connectionInfoList) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSConnectionInfoResp"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp594 = new TStruct("TSConnectionInfoResp"); + await oprot.WriteStructBeginAsync(tmp594, cancellationToken); + var tmp595 = new TField(); if((ConnectionInfoList != null)) { - field.Name = "connectionInfoList"; - field.Type = TType.List; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp595.Name = "connectionInfoList"; + tmp595.Type = TType.List; + tmp595.ID = 1; + await oprot.WriteFieldBeginAsync(tmp595, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, ConnectionInfoList.Count), cancellationToken); - foreach (TSConnectionInfo _iter427 in ConnectionInfoList) + foreach (TSConnectionInfo _iter596 in ConnectionInfoList) { - await _iter427.WriteAsync(oprot, cancellationToken); + await _iter596.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -156,14 +157,14 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSConnectionInfoResp("); + var tmp597 = new StringBuilder("TSConnectionInfoResp("); if((ConnectionInfoList != null)) { - sb.Append(", ConnectionInfoList: "); - ConnectionInfoList.ToString(sb); + tmp597.Append(", ConnectionInfoList: "); + ConnectionInfoList.ToString(tmp597); } - sb.Append(')'); - return sb.ToString(); + tmp597.Append(')'); + return tmp597.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSConnectionType.cs b/src/Apache.IoTDB/Rpc/Generated/TSConnectionType.cs index 0e5435a..ea5238b 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSConnectionType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSConnectionType.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,6 +7,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum TSConnectionType { diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCreateAlignedTimeseriesReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCreateAlignedTimeseriesReq.cs index 94a9316..97a5be1 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSCreateAlignedTimeseriesReq : TBase @@ -158,13 +159,13 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List(_list262.Count); - for(int _i263 = 0; _i263 < _list262.Count; ++_i263) + TList _list346 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list346.Count); + for(int _i347 = 0; _i347 < _list346.Count; ++_i347) { - string _elem264; - _elem264 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem264); + string _elem348; + _elem348 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem348); } await iprot.ReadListEndAsync(cancellationToken); } @@ -179,13 +180,13 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List(_list265.Count); - for(int _i266 = 0; _i266 < _list265.Count; ++_i266) + TList _list349 = await iprot.ReadListBeginAsync(cancellationToken); + DataTypes = new List(_list349.Count); + for(int _i350 = 0; _i350 < _list349.Count; ++_i350) { - int _elem267; - _elem267 = await iprot.ReadI32Async(cancellationToken); - DataTypes.Add(_elem267); + int _elem351; + _elem351 = await iprot.ReadI32Async(cancellationToken); + DataTypes.Add(_elem351); } await iprot.ReadListEndAsync(cancellationToken); } @@ -200,13 +201,13 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List(_list268.Count); - for(int _i269 = 0; _i269 < _list268.Count; ++_i269) + TList _list352 = await iprot.ReadListBeginAsync(cancellationToken); + Encodings = new List(_list352.Count); + for(int _i353 = 0; _i353 < _list352.Count; ++_i353) { - int _elem270; - _elem270 = await iprot.ReadI32Async(cancellationToken); - Encodings.Add(_elem270); + int _elem354; + _elem354 = await iprot.ReadI32Async(cancellationToken); + Encodings.Add(_elem354); } await iprot.ReadListEndAsync(cancellationToken); } @@ -221,13 +222,13 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List(_list271.Count); - for(int _i272 = 0; _i272 < _list271.Count; ++_i272) + TList _list355 = await iprot.ReadListBeginAsync(cancellationToken); + Compressors = new List(_list355.Count); + for(int _i356 = 0; _i356 < _list355.Count; ++_i356) { - int _elem273; - _elem273 = await iprot.ReadI32Async(cancellationToken); - Compressors.Add(_elem273); + int _elem357; + _elem357 = await iprot.ReadI32Async(cancellationToken); + Compressors.Add(_elem357); } await iprot.ReadListEndAsync(cancellationToken); } @@ -242,13 +243,13 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List(_list274.Count); - for(int _i275 = 0; _i275 < _list274.Count; ++_i275) + TList _list358 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementAlias = new List(_list358.Count); + for(int _i359 = 0; _i359 < _list358.Count; ++_i359) { - string _elem276; - _elem276 = await iprot.ReadStringAsync(cancellationToken); - MeasurementAlias.Add(_elem276); + string _elem360; + _elem360 = await iprot.ReadStringAsync(cancellationToken); + MeasurementAlias.Add(_elem360); } await iprot.ReadListEndAsync(cancellationToken); } @@ -262,25 +263,25 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List>(_list277.Count); - for(int _i278 = 0; _i278 < _list277.Count; ++_i278) + TList _list361 = await iprot.ReadListBeginAsync(cancellationToken); + TagsList = new List>(_list361.Count); + for(int _i362 = 0; _i362 < _list361.Count; ++_i362) { - Dictionary _elem279; + Dictionary _elem363; { - TMap _map280 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem279 = new Dictionary(_map280.Count); - for(int _i281 = 0; _i281 < _map280.Count; ++_i281) + TMap _map364 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem363 = new Dictionary(_map364.Count); + for(int _i365 = 0; _i365 < _map364.Count; ++_i365) { - string _key282; - string _val283; - _key282 = await iprot.ReadStringAsync(cancellationToken); - _val283 = await iprot.ReadStringAsync(cancellationToken); - _elem279[_key282] = _val283; + string _key366; + string _val367; + _key366 = await iprot.ReadStringAsync(cancellationToken); + _val367 = await iprot.ReadStringAsync(cancellationToken); + _elem363[_key366] = _val367; } await iprot.ReadMapEndAsync(cancellationToken); } - TagsList.Add(_elem279); + TagsList.Add(_elem363); } await iprot.ReadListEndAsync(cancellationToken); } @@ -294,25 +295,25 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List>(_list284.Count); - for(int _i285 = 0; _i285 < _list284.Count; ++_i285) + TList _list368 = await iprot.ReadListBeginAsync(cancellationToken); + AttributesList = new List>(_list368.Count); + for(int _i369 = 0; _i369 < _list368.Count; ++_i369) { - Dictionary _elem286; + Dictionary _elem370; { - TMap _map287 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem286 = new Dictionary(_map287.Count); - for(int _i288 = 0; _i288 < _map287.Count; ++_i288) + TMap _map371 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem370 = new Dictionary(_map371.Count); + for(int _i372 = 0; _i372 < _map371.Count; ++_i372) { - string _key289; - string _val290; - _key289 = await iprot.ReadStringAsync(cancellationToken); - _val290 = await iprot.ReadStringAsync(cancellationToken); - _elem286[_key289] = _val290; + string _key373; + string _val374; + _key373 = await iprot.ReadStringAsync(cancellationToken); + _val374 = await iprot.ReadStringAsync(cancellationToken); + _elem370[_key373] = _val374; } await iprot.ReadMapEndAsync(cancellationToken); } - AttributesList.Add(_elem286); + AttributesList.Add(_elem370); } await iprot.ReadListEndAsync(cancellationToken); } @@ -367,35 +368,35 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List _iter296 in TagsList) + foreach (Dictionary _iter382 in TagsList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter296.Count), cancellationToken); - foreach (string _iter297 in _iter296.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter382.Count), cancellationToken); + foreach (string _iter383 in _iter382.Keys) { - await oprot.WriteStringAsync(_iter297, cancellationToken); - await oprot.WriteStringAsync(_iter296[_iter297], cancellationToken); + await oprot.WriteStringAsync(_iter383, cancellationToken); + await oprot.WriteStringAsync(_iter382[_iter383], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -491,20 +492,20 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List _iter298 in AttributesList) + foreach (Dictionary _iter384 in AttributesList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter298.Count), cancellationToken); - foreach (string _iter299 in _iter298.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter384.Count), cancellationToken); + foreach (string _iter385 in _iter384.Keys) { - await oprot.WriteStringAsync(_iter299, cancellationToken); - await oprot.WriteStringAsync(_iter298[_iter299], cancellationToken); + await oprot.WriteStringAsync(_iter385, cancellationToken); + await oprot.WriteStringAsync(_iter384[_iter385], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -579,51 +580,51 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSCreateAlignedTimeseriesReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp386 = new StringBuilder("TSCreateAlignedTimeseriesReq("); + tmp386.Append(", SessionId: "); + SessionId.ToString(tmp386); if((PrefixPath != null)) { - sb.Append(", PrefixPath: "); - PrefixPath.ToString(sb); + tmp386.Append(", PrefixPath: "); + PrefixPath.ToString(tmp386); } if((Measurements != null)) { - sb.Append(", Measurements: "); - Measurements.ToString(sb); + tmp386.Append(", Measurements: "); + Measurements.ToString(tmp386); } if((DataTypes != null)) { - sb.Append(", DataTypes: "); - DataTypes.ToString(sb); + tmp386.Append(", DataTypes: "); + DataTypes.ToString(tmp386); } if((Encodings != null)) { - sb.Append(", Encodings: "); - Encodings.ToString(sb); + tmp386.Append(", Encodings: "); + Encodings.ToString(tmp386); } if((Compressors != null)) { - sb.Append(", Compressors: "); - Compressors.ToString(sb); + tmp386.Append(", Compressors: "); + Compressors.ToString(tmp386); } if((MeasurementAlias != null) && __isset.measurementAlias) { - sb.Append(", MeasurementAlias: "); - MeasurementAlias.ToString(sb); + tmp386.Append(", MeasurementAlias: "); + MeasurementAlias.ToString(tmp386); } if((TagsList != null) && __isset.tagsList) { - sb.Append(", TagsList: "); - TagsList.ToString(sb); + tmp386.Append(", TagsList: "); + TagsList.ToString(tmp386); } if((AttributesList != null) && __isset.attributesList) { - sb.Append(", AttributesList: "); - AttributesList.ToString(sb); + tmp386.Append(", AttributesList: "); + AttributesList.ToString(tmp386); } - sb.Append(')'); - return sb.ToString(); + tmp386.Append(')'); + return tmp386.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCreateMultiTimeseriesReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCreateMultiTimeseriesReq.cs index c917a7e..1bcb468 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSCreateMultiTimeseriesReq : TBase @@ -158,13 +159,13 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List if (field.Type == TType.List) { { - TList _list326 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list326.Count); - for(int _i327 = 0; _i327 < _list326.Count; ++_i327) + TList _list436 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list436.Count); + for(int _i437 = 0; _i437 < _list436.Count; ++_i437) { - string _elem328; - _elem328 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem328); + string _elem438; + _elem438 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem438); } await iprot.ReadListEndAsync(cancellationToken); } @@ -179,13 +180,13 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List if (field.Type == TType.List) { { - TList _list329 = await iprot.ReadListBeginAsync(cancellationToken); - DataTypes = new List(_list329.Count); - for(int _i330 = 0; _i330 < _list329.Count; ++_i330) + TList _list439 = await iprot.ReadListBeginAsync(cancellationToken); + DataTypes = new List(_list439.Count); + for(int _i440 = 0; _i440 < _list439.Count; ++_i440) { - int _elem331; - _elem331 = await iprot.ReadI32Async(cancellationToken); - DataTypes.Add(_elem331); + int _elem441; + _elem441 = await iprot.ReadI32Async(cancellationToken); + DataTypes.Add(_elem441); } await iprot.ReadListEndAsync(cancellationToken); } @@ -200,13 +201,13 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List if (field.Type == TType.List) { { - TList _list332 = await iprot.ReadListBeginAsync(cancellationToken); - Encodings = new List(_list332.Count); - for(int _i333 = 0; _i333 < _list332.Count; ++_i333) + TList _list442 = await iprot.ReadListBeginAsync(cancellationToken); + Encodings = new List(_list442.Count); + for(int _i443 = 0; _i443 < _list442.Count; ++_i443) { - int _elem334; - _elem334 = await iprot.ReadI32Async(cancellationToken); - Encodings.Add(_elem334); + int _elem444; + _elem444 = await iprot.ReadI32Async(cancellationToken); + Encodings.Add(_elem444); } await iprot.ReadListEndAsync(cancellationToken); } @@ -221,13 +222,13 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List if (field.Type == TType.List) { { - TList _list335 = await iprot.ReadListBeginAsync(cancellationToken); - Compressors = new List(_list335.Count); - for(int _i336 = 0; _i336 < _list335.Count; ++_i336) + TList _list445 = await iprot.ReadListBeginAsync(cancellationToken); + Compressors = new List(_list445.Count); + for(int _i446 = 0; _i446 < _list445.Count; ++_i446) { - int _elem337; - _elem337 = await iprot.ReadI32Async(cancellationToken); - Compressors.Add(_elem337); + int _elem447; + _elem447 = await iprot.ReadI32Async(cancellationToken); + Compressors.Add(_elem447); } await iprot.ReadListEndAsync(cancellationToken); } @@ -242,25 +243,25 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List if (field.Type == TType.List) { { - TList _list338 = await iprot.ReadListBeginAsync(cancellationToken); - PropsList = new List>(_list338.Count); - for(int _i339 = 0; _i339 < _list338.Count; ++_i339) + TList _list448 = await iprot.ReadListBeginAsync(cancellationToken); + PropsList = new List>(_list448.Count); + for(int _i449 = 0; _i449 < _list448.Count; ++_i449) { - Dictionary _elem340; + Dictionary _elem450; { - TMap _map341 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem340 = new Dictionary(_map341.Count); - for(int _i342 = 0; _i342 < _map341.Count; ++_i342) + TMap _map451 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem450 = new Dictionary(_map451.Count); + for(int _i452 = 0; _i452 < _map451.Count; ++_i452) { - string _key343; - string _val344; - _key343 = await iprot.ReadStringAsync(cancellationToken); - _val344 = await iprot.ReadStringAsync(cancellationToken); - _elem340[_key343] = _val344; + string _key453; + string _val454; + _key453 = await iprot.ReadStringAsync(cancellationToken); + _val454 = await iprot.ReadStringAsync(cancellationToken); + _elem450[_key453] = _val454; } await iprot.ReadMapEndAsync(cancellationToken); } - PropsList.Add(_elem340); + PropsList.Add(_elem450); } await iprot.ReadListEndAsync(cancellationToken); } @@ -274,25 +275,25 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List if (field.Type == TType.List) { { - TList _list345 = await iprot.ReadListBeginAsync(cancellationToken); - TagsList = new List>(_list345.Count); - for(int _i346 = 0; _i346 < _list345.Count; ++_i346) + TList _list455 = await iprot.ReadListBeginAsync(cancellationToken); + TagsList = new List>(_list455.Count); + for(int _i456 = 0; _i456 < _list455.Count; ++_i456) { - Dictionary _elem347; + Dictionary _elem457; { - TMap _map348 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem347 = new Dictionary(_map348.Count); - for(int _i349 = 0; _i349 < _map348.Count; ++_i349) + TMap _map458 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem457 = new Dictionary(_map458.Count); + for(int _i459 = 0; _i459 < _map458.Count; ++_i459) { - string _key350; - string _val351; - _key350 = await iprot.ReadStringAsync(cancellationToken); - _val351 = await iprot.ReadStringAsync(cancellationToken); - _elem347[_key350] = _val351; + string _key460; + string _val461; + _key460 = await iprot.ReadStringAsync(cancellationToken); + _val461 = await iprot.ReadStringAsync(cancellationToken); + _elem457[_key460] = _val461; } await iprot.ReadMapEndAsync(cancellationToken); } - TagsList.Add(_elem347); + TagsList.Add(_elem457); } await iprot.ReadListEndAsync(cancellationToken); } @@ -306,25 +307,25 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List if (field.Type == TType.List) { { - TList _list352 = await iprot.ReadListBeginAsync(cancellationToken); - AttributesList = new List>(_list352.Count); - for(int _i353 = 0; _i353 < _list352.Count; ++_i353) + TList _list462 = await iprot.ReadListBeginAsync(cancellationToken); + AttributesList = new List>(_list462.Count); + for(int _i463 = 0; _i463 < _list462.Count; ++_i463) { - Dictionary _elem354; + Dictionary _elem464; { - TMap _map355 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem354 = new Dictionary(_map355.Count); - for(int _i356 = 0; _i356 < _map355.Count; ++_i356) + TMap _map465 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem464 = new Dictionary(_map465.Count); + for(int _i466 = 0; _i466 < _map465.Count; ++_i466) { - string _key357; - string _val358; - _key357 = await iprot.ReadStringAsync(cancellationToken); - _val358 = await iprot.ReadStringAsync(cancellationToken); - _elem354[_key357] = _val358; + string _key467; + string _val468; + _key467 = await iprot.ReadStringAsync(cancellationToken); + _val468 = await iprot.ReadStringAsync(cancellationToken); + _elem464[_key467] = _val468; } await iprot.ReadMapEndAsync(cancellationToken); } - AttributesList.Add(_elem354); + AttributesList.Add(_elem464); } await iprot.ReadListEndAsync(cancellationToken); } @@ -338,13 +339,13 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List if (field.Type == TType.List) { { - TList _list359 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementAliasList = new List(_list359.Count); - for(int _i360 = 0; _i360 < _list359.Count; ++_i360) + TList _list469 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementAliasList = new List(_list469.Count); + for(int _i470 = 0; _i470 < _list469.Count; ++_i470) { - string _elem361; - _elem361 = await iprot.ReadStringAsync(cancellationToken); - MeasurementAliasList.Add(_elem361); + string _elem471; + _elem471 = await iprot.ReadStringAsync(cancellationToken); + MeasurementAliasList.Add(_elem471); } await iprot.ReadListEndAsync(cancellationToken); } @@ -395,26 +396,26 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSCreateMultiTimeseriesReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp472 = new TStruct("TSCreateMultiTimeseriesReq"); + await oprot.WriteStructBeginAsync(tmp472, cancellationToken); + var tmp473 = new TField(); + tmp473.Name = "sessionId"; + tmp473.Type = TType.I64; + tmp473.ID = 1; + await oprot.WriteFieldBeginAsync(tmp473, 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); + tmp473.Name = "paths"; + tmp473.Type = TType.List; + tmp473.ID = 2; + await oprot.WriteFieldBeginAsync(tmp473, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter362 in Paths) + foreach (string _iter474 in Paths) { - await oprot.WriteStringAsync(_iter362, cancellationToken); + await oprot.WriteStringAsync(_iter474, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -422,15 +423,15 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List } if((DataTypes != null)) { - field.Name = "dataTypes"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp473.Name = "dataTypes"; + tmp473.Type = TType.List; + tmp473.ID = 3; + await oprot.WriteFieldBeginAsync(tmp473, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, DataTypes.Count), cancellationToken); - foreach (int _iter363 in DataTypes) + foreach (int _iter475 in DataTypes) { - await oprot.WriteI32Async(_iter363, cancellationToken); + await oprot.WriteI32Async(_iter475, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -438,15 +439,15 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List } if((Encodings != null)) { - field.Name = "encodings"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp473.Name = "encodings"; + tmp473.Type = TType.List; + tmp473.ID = 4; + await oprot.WriteFieldBeginAsync(tmp473, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, Encodings.Count), cancellationToken); - foreach (int _iter364 in Encodings) + foreach (int _iter476 in Encodings) { - await oprot.WriteI32Async(_iter364, cancellationToken); + await oprot.WriteI32Async(_iter476, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -454,15 +455,15 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List } if((Compressors != null)) { - field.Name = "compressors"; - field.Type = TType.List; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp473.Name = "compressors"; + tmp473.Type = TType.List; + tmp473.ID = 5; + await oprot.WriteFieldBeginAsync(tmp473, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, Compressors.Count), cancellationToken); - foreach (int _iter365 in Compressors) + foreach (int _iter477 in Compressors) { - await oprot.WriteI32Async(_iter365, cancellationToken); + await oprot.WriteI32Async(_iter477, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -470,20 +471,20 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List } if((PropsList != null) && __isset.propsList) { - field.Name = "propsList"; - field.Type = TType.List; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp473.Name = "propsList"; + tmp473.Type = TType.List; + tmp473.ID = 6; + await oprot.WriteFieldBeginAsync(tmp473, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, PropsList.Count), cancellationToken); - foreach (Dictionary _iter366 in PropsList) + foreach (Dictionary _iter478 in PropsList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter366.Count), cancellationToken); - foreach (string _iter367 in _iter366.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter478.Count), cancellationToken); + foreach (string _iter479 in _iter478.Keys) { - await oprot.WriteStringAsync(_iter367, cancellationToken); - await oprot.WriteStringAsync(_iter366[_iter367], cancellationToken); + await oprot.WriteStringAsync(_iter479, cancellationToken); + await oprot.WriteStringAsync(_iter478[_iter479], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -494,20 +495,20 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List } if((TagsList != null) && __isset.tagsList) { - field.Name = "tagsList"; - field.Type = TType.List; - field.ID = 7; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp473.Name = "tagsList"; + tmp473.Type = TType.List; + tmp473.ID = 7; + await oprot.WriteFieldBeginAsync(tmp473, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, TagsList.Count), cancellationToken); - foreach (Dictionary _iter368 in TagsList) + foreach (Dictionary _iter480 in TagsList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter368.Count), cancellationToken); - foreach (string _iter369 in _iter368.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter480.Count), cancellationToken); + foreach (string _iter481 in _iter480.Keys) { - await oprot.WriteStringAsync(_iter369, cancellationToken); - await oprot.WriteStringAsync(_iter368[_iter369], cancellationToken); + await oprot.WriteStringAsync(_iter481, cancellationToken); + await oprot.WriteStringAsync(_iter480[_iter481], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -518,20 +519,20 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List } if((AttributesList != null) && __isset.attributesList) { - field.Name = "attributesList"; - field.Type = TType.List; - field.ID = 8; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp473.Name = "attributesList"; + tmp473.Type = TType.List; + tmp473.ID = 8; + await oprot.WriteFieldBeginAsync(tmp473, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, AttributesList.Count), cancellationToken); - foreach (Dictionary _iter370 in AttributesList) + foreach (Dictionary _iter482 in AttributesList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter370.Count), cancellationToken); - foreach (string _iter371 in _iter370.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter482.Count), cancellationToken); + foreach (string _iter483 in _iter482.Keys) { - await oprot.WriteStringAsync(_iter371, cancellationToken); - await oprot.WriteStringAsync(_iter370[_iter371], cancellationToken); + await oprot.WriteStringAsync(_iter483, cancellationToken); + await oprot.WriteStringAsync(_iter482[_iter483], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -542,15 +543,15 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List } if((MeasurementAliasList != null) && __isset.measurementAliasList) { - field.Name = "measurementAliasList"; - field.Type = TType.List; - field.ID = 9; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp473.Name = "measurementAliasList"; + tmp473.Type = TType.List; + tmp473.ID = 9; + await oprot.WriteFieldBeginAsync(tmp473, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, MeasurementAliasList.Count), cancellationToken); - foreach (string _iter372 in MeasurementAliasList) + foreach (string _iter484 in MeasurementAliasList) { - await oprot.WriteStringAsync(_iter372, cancellationToken); + await oprot.WriteStringAsync(_iter484, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -622,51 +623,51 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSCreateMultiTimeseriesReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp485 = new StringBuilder("TSCreateMultiTimeseriesReq("); + tmp485.Append(", SessionId: "); + SessionId.ToString(tmp485); if((Paths != null)) { - sb.Append(", Paths: "); - Paths.ToString(sb); + tmp485.Append(", Paths: "); + Paths.ToString(tmp485); } if((DataTypes != null)) { - sb.Append(", DataTypes: "); - DataTypes.ToString(sb); + tmp485.Append(", DataTypes: "); + DataTypes.ToString(tmp485); } if((Encodings != null)) { - sb.Append(", Encodings: "); - Encodings.ToString(sb); + tmp485.Append(", Encodings: "); + Encodings.ToString(tmp485); } if((Compressors != null)) { - sb.Append(", Compressors: "); - Compressors.ToString(sb); + tmp485.Append(", Compressors: "); + Compressors.ToString(tmp485); } if((PropsList != null) && __isset.propsList) { - sb.Append(", PropsList: "); - PropsList.ToString(sb); + tmp485.Append(", PropsList: "); + PropsList.ToString(tmp485); } if((TagsList != null) && __isset.tagsList) { - sb.Append(", TagsList: "); - TagsList.ToString(sb); + tmp485.Append(", TagsList: "); + TagsList.ToString(tmp485); } if((AttributesList != null) && __isset.attributesList) { - sb.Append(", AttributesList: "); - AttributesList.ToString(sb); + tmp485.Append(", AttributesList: "); + AttributesList.ToString(tmp485); } if((MeasurementAliasList != null) && __isset.measurementAliasList) { - sb.Append(", MeasurementAliasList: "); - MeasurementAliasList.ToString(sb); + tmp485.Append(", MeasurementAliasList: "); + MeasurementAliasList.ToString(tmp485); } - sb.Append(')'); - return sb.ToString(); + tmp485.Append(')'); + return tmp485.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCreateSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCreateSchemaTemplateReq.cs index 8167de9..b1a285e 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSCreateSchemaTemplateReq : TBase @@ -135,30 +136,30 @@ public TSCreateSchemaTemplateReq(long sessionId, string name, byte[] serializedT oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSCreateSchemaTemplateReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp499 = new TStruct("TSCreateSchemaTemplateReq"); + await oprot.WriteStructBeginAsync(tmp499, cancellationToken); + var tmp500 = new TField(); + tmp500.Name = "sessionId"; + tmp500.Type = TType.I64; + tmp500.ID = 1; + await oprot.WriteFieldBeginAsync(tmp500, 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); + tmp500.Name = "name"; + tmp500.Type = TType.String; + tmp500.ID = 2; + await oprot.WriteFieldBeginAsync(tmp500, 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); + tmp500.Name = "serializedTemplate"; + tmp500.Type = TType.String; + tmp500.ID = 3; + await oprot.WriteFieldBeginAsync(tmp500, cancellationToken); await oprot.WriteBinaryAsync(SerializedTemplate, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -198,21 +199,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSCreateSchemaTemplateReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp501 = new StringBuilder("TSCreateSchemaTemplateReq("); + tmp501.Append(", SessionId: "); + SessionId.ToString(tmp501); if((Name != null)) { - sb.Append(", Name: "); - Name.ToString(sb); + tmp501.Append(", Name: "); + Name.ToString(tmp501); } if((SerializedTemplate != null)) { - sb.Append(", SerializedTemplate: "); - SerializedTemplate.ToString(sb); + tmp501.Append(", SerializedTemplate: "); + SerializedTemplate.ToString(tmp501); } - sb.Append(')'); - return sb.ToString(); + tmp501.Append(')'); + return tmp501.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCreateTimeseriesReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCreateTimeseriesReq.cs index 5dedcfd..2c463d5 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSCreateTimeseriesReq : TBase @@ -202,15 +203,15 @@ public TSCreateTimeseriesReq(long sessionId, string path, int dataType, int enco if (field.Type == TType.Map) { { - TMap _map246 = await iprot.ReadMapBeginAsync(cancellationToken); - Props = new Dictionary(_map246.Count); - for(int _i247 = 0; _i247 < _map246.Count; ++_i247) + TMap _map327 = await iprot.ReadMapBeginAsync(cancellationToken); + Props = new Dictionary(_map327.Count); + for(int _i328 = 0; _i328 < _map327.Count; ++_i328) { - string _key248; - string _val249; - _key248 = await iprot.ReadStringAsync(cancellationToken); - _val249 = await iprot.ReadStringAsync(cancellationToken); - Props[_key248] = _val249; + string _key329; + string _val330; + _key329 = await iprot.ReadStringAsync(cancellationToken); + _val330 = await iprot.ReadStringAsync(cancellationToken); + Props[_key329] = _val330; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -224,15 +225,15 @@ public TSCreateTimeseriesReq(long sessionId, string path, int dataType, int enco if (field.Type == TType.Map) { { - TMap _map250 = await iprot.ReadMapBeginAsync(cancellationToken); - Tags = new Dictionary(_map250.Count); - for(int _i251 = 0; _i251 < _map250.Count; ++_i251) + TMap _map331 = await iprot.ReadMapBeginAsync(cancellationToken); + Tags = new Dictionary(_map331.Count); + for(int _i332 = 0; _i332 < _map331.Count; ++_i332) { - string _key252; - string _val253; - _key252 = await iprot.ReadStringAsync(cancellationToken); - _val253 = await iprot.ReadStringAsync(cancellationToken); - Tags[_key252] = _val253; + string _key333; + string _val334; + _key333 = await iprot.ReadStringAsync(cancellationToken); + _val334 = await iprot.ReadStringAsync(cancellationToken); + Tags[_key333] = _val334; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -246,15 +247,15 @@ public TSCreateTimeseriesReq(long sessionId, string path, int dataType, int enco if (field.Type == TType.Map) { { - TMap _map254 = await iprot.ReadMapBeginAsync(cancellationToken); - Attributes = new Dictionary(_map254.Count); - for(int _i255 = 0; _i255 < _map254.Count; ++_i255) + TMap _map335 = await iprot.ReadMapBeginAsync(cancellationToken); + Attributes = new Dictionary(_map335.Count); + for(int _i336 = 0; _i336 < _map335.Count; ++_i336) { - string _key256; - string _val257; - _key256 = await iprot.ReadStringAsync(cancellationToken); - _val257 = await iprot.ReadStringAsync(cancellationToken); - Attributes[_key256] = _val257; + string _key337; + string _val338; + _key337 = await iprot.ReadStringAsync(cancellationToken); + _val338 = await iprot.ReadStringAsync(cancellationToken); + Attributes[_key337] = _val338; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -315,54 +316,54 @@ public TSCreateTimeseriesReq(long sessionId, string path, int dataType, int enco oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSCreateTimeseriesReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp339 = new TStruct("TSCreateTimeseriesReq"); + await oprot.WriteStructBeginAsync(tmp339, cancellationToken); + var tmp340 = new TField(); + tmp340.Name = "sessionId"; + tmp340.Type = TType.I64; + tmp340.ID = 1; + await oprot.WriteFieldBeginAsync(tmp340, 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); + tmp340.Name = "path"; + tmp340.Type = TType.String; + tmp340.ID = 2; + await oprot.WriteFieldBeginAsync(tmp340, cancellationToken); await oprot.WriteStringAsync(Path, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - field.Name = "dataType"; - field.Type = TType.I32; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp340.Name = "dataType"; + tmp340.Type = TType.I32; + tmp340.ID = 3; + await oprot.WriteFieldBeginAsync(tmp340, cancellationToken); await oprot.WriteI32Async(DataType, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "encoding"; - field.Type = TType.I32; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp340.Name = "encoding"; + tmp340.Type = TType.I32; + tmp340.ID = 4; + await oprot.WriteFieldBeginAsync(tmp340, cancellationToken); await oprot.WriteI32Async(Encoding, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "compressor"; - field.Type = TType.I32; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp340.Name = "compressor"; + tmp340.Type = TType.I32; + tmp340.ID = 5; + await oprot.WriteFieldBeginAsync(tmp340, cancellationToken); await oprot.WriteI32Async(Compressor, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if((Props != null) && __isset.props) { - field.Name = "props"; - field.Type = TType.Map; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp340.Name = "props"; + tmp340.Type = TType.Map; + tmp340.ID = 6; + await oprot.WriteFieldBeginAsync(tmp340, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Props.Count), cancellationToken); - foreach (string _iter258 in Props.Keys) + foreach (string _iter341 in Props.Keys) { - await oprot.WriteStringAsync(_iter258, cancellationToken); - await oprot.WriteStringAsync(Props[_iter258], cancellationToken); + await oprot.WriteStringAsync(_iter341, cancellationToken); + await oprot.WriteStringAsync(Props[_iter341], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -370,16 +371,16 @@ public TSCreateTimeseriesReq(long sessionId, string path, int dataType, int enco } if((Tags != null) && __isset.tags) { - field.Name = "tags"; - field.Type = TType.Map; - field.ID = 7; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp340.Name = "tags"; + tmp340.Type = TType.Map; + tmp340.ID = 7; + await oprot.WriteFieldBeginAsync(tmp340, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Tags.Count), cancellationToken); - foreach (string _iter259 in Tags.Keys) + foreach (string _iter342 in Tags.Keys) { - await oprot.WriteStringAsync(_iter259, cancellationToken); - await oprot.WriteStringAsync(Tags[_iter259], cancellationToken); + await oprot.WriteStringAsync(_iter342, cancellationToken); + await oprot.WriteStringAsync(Tags[_iter342], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -387,16 +388,16 @@ public TSCreateTimeseriesReq(long sessionId, string path, int dataType, int enco } if((Attributes != null) && __isset.attributes) { - field.Name = "attributes"; - field.Type = TType.Map; - field.ID = 8; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp340.Name = "attributes"; + tmp340.Type = TType.Map; + tmp340.ID = 8; + await oprot.WriteFieldBeginAsync(tmp340, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Attributes.Count), cancellationToken); - foreach (string _iter260 in Attributes.Keys) + foreach (string _iter343 in Attributes.Keys) { - await oprot.WriteStringAsync(_iter260, cancellationToken); - await oprot.WriteStringAsync(Attributes[_iter260], cancellationToken); + await oprot.WriteStringAsync(_iter343, cancellationToken); + await oprot.WriteStringAsync(Attributes[_iter343], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -404,10 +405,10 @@ public TSCreateTimeseriesReq(long sessionId, string path, int dataType, int enco } if((MeasurementAlias != null) && __isset.measurementAlias) { - field.Name = "measurementAlias"; - field.Type = TType.String; - field.ID = 9; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp340.Name = "measurementAlias"; + tmp340.Type = TType.String; + tmp340.ID = 9; + await oprot.WriteFieldBeginAsync(tmp340, cancellationToken); await oprot.WriteStringAsync(MeasurementAlias, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -468,42 +469,42 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSCreateTimeseriesReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp344 = new StringBuilder("TSCreateTimeseriesReq("); + tmp344.Append(", SessionId: "); + SessionId.ToString(tmp344); if((Path != null)) { - sb.Append(", Path: "); - Path.ToString(sb); + tmp344.Append(", Path: "); + Path.ToString(tmp344); } - sb.Append(", DataType: "); - DataType.ToString(sb); - sb.Append(", Encoding: "); - Encoding.ToString(sb); - sb.Append(", Compressor: "); - Compressor.ToString(sb); + tmp344.Append(", DataType: "); + DataType.ToString(tmp344); + tmp344.Append(", Encoding: "); + Encoding.ToString(tmp344); + tmp344.Append(", Compressor: "); + Compressor.ToString(tmp344); if((Props != null) && __isset.props) { - sb.Append(", Props: "); - Props.ToString(sb); + tmp344.Append(", Props: "); + Props.ToString(tmp344); } if((Tags != null) && __isset.tags) { - sb.Append(", Tags: "); - Tags.ToString(sb); + tmp344.Append(", Tags: "); + Tags.ToString(tmp344); } if((Attributes != null) && __isset.attributes) { - sb.Append(", Attributes: "); - Attributes.ToString(sb); + tmp344.Append(", Attributes: "); + Attributes.ToString(tmp344); } if((MeasurementAlias != null) && __isset.measurementAlias) { - sb.Append(", MeasurementAlias: "); - MeasurementAlias.ToString(sb); + tmp344.Append(", MeasurementAlias: "); + MeasurementAlias.ToString(tmp344); } - sb.Append(')'); - return sb.ToString(); + tmp344.Append(')'); + return tmp344.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSDeleteDataReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSDeleteDataReq.cs index 249c98c..038d2a0 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSDeleteDataReq : TBase @@ -88,13 +89,13 @@ public TSDeleteDataReq(long sessionId, List paths, long startTime, long if (field.Type == TType.List) { { - TList _list241 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list241.Count); - for(int _i242 = 0; _i242 < _list241.Count; ++_i242) + TList _list319 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list319.Count); + for(int _i320 = 0; _i320 < _list319.Count; ++_i320) { - string _elem243; - _elem243 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem243); + string _elem321; + _elem321 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem321); } await iprot.ReadListEndAsync(cancellationToken); } @@ -164,41 +165,41 @@ public TSDeleteDataReq(long sessionId, List paths, long startTime, long oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSDeleteDataReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp322 = new TStruct("TSDeleteDataReq"); + await oprot.WriteStructBeginAsync(tmp322, cancellationToken); + var tmp323 = new TField(); + tmp323.Name = "sessionId"; + tmp323.Type = TType.I64; + tmp323.ID = 1; + await oprot.WriteFieldBeginAsync(tmp323, 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); + tmp323.Name = "paths"; + tmp323.Type = TType.List; + tmp323.ID = 2; + await oprot.WriteFieldBeginAsync(tmp323, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter244 in Paths) + foreach (string _iter324 in Paths) { - await oprot.WriteStringAsync(_iter244, cancellationToken); + await oprot.WriteStringAsync(_iter324, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - field.Name = "startTime"; - field.Type = TType.I64; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp323.Name = "startTime"; + tmp323.Type = TType.I64; + tmp323.ID = 3; + await oprot.WriteFieldBeginAsync(tmp323, cancellationToken); await oprot.WriteI64Async(StartTime, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "endTime"; - field.Type = TType.I64; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp323.Name = "endTime"; + tmp323.Type = TType.I64; + tmp323.ID = 4; + await oprot.WriteFieldBeginAsync(tmp323, cancellationToken); await oprot.WriteI64Async(EndTime, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -236,20 +237,20 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSDeleteDataReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp325 = new StringBuilder("TSDeleteDataReq("); + tmp325.Append(", SessionId: "); + SessionId.ToString(tmp325); if((Paths != null)) { - sb.Append(", Paths: "); - Paths.ToString(sb); + tmp325.Append(", Paths: "); + Paths.ToString(tmp325); } - sb.Append(", StartTime: "); - StartTime.ToString(sb); - sb.Append(", EndTime: "); - EndTime.ToString(sb); - sb.Append(')'); - return sb.ToString(); + tmp325.Append(", StartTime: "); + StartTime.ToString(tmp325); + tmp325.Append(", EndTime: "); + EndTime.ToString(tmp325); + tmp325.Append(')'); + return tmp325.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSDropSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSDropSchemaTemplateReq.cs index 8454585..8638eb5 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSDropSchemaTemplateReq : TBase @@ -116,21 +117,21 @@ public TSDropSchemaTemplateReq(long sessionId, string templateName) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSDropSchemaTemplateReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp543 = new TStruct("TSDropSchemaTemplateReq"); + await oprot.WriteStructBeginAsync(tmp543, cancellationToken); + var tmp544 = new TField(); + tmp544.Name = "sessionId"; + tmp544.Type = TType.I64; + tmp544.ID = 1; + await oprot.WriteFieldBeginAsync(tmp544, 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); + tmp544.Name = "templateName"; + tmp544.Type = TType.String; + tmp544.ID = 2; + await oprot.WriteFieldBeginAsync(tmp544, cancellationToken); await oprot.WriteStringAsync(TemplateName, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -165,16 +166,16 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSDropSchemaTemplateReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp545 = new StringBuilder("TSDropSchemaTemplateReq("); + tmp545.Append(", SessionId: "); + SessionId.ToString(tmp545); if((TemplateName != null)) { - sb.Append(", TemplateName: "); - TemplateName.ToString(sb); + tmp545.Append(", TemplateName: "); + TemplateName.ToString(tmp545); } - sb.Append(')'); - return sb.ToString(); + tmp545.Append(')'); + return tmp545.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSExecuteBatchStatementReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSExecuteBatchStatementReq.cs index 9d4a1fe..414cf41 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSExecuteBatchStatementReq : TBase @@ -80,13 +81,13 @@ public TSExecuteBatchStatementReq(long sessionId, List statements) : thi if (field.Type == TType.List) { { - TList _list71 = await iprot.ReadListBeginAsync(cancellationToken); - Statements = new List(_list71.Count); - for(int _i72 = 0; _i72 < _list71.Count; ++_i72) + TList _list95 = await iprot.ReadListBeginAsync(cancellationToken); + Statements = new List(_list95.Count); + for(int _i96 = 0; _i96 < _list95.Count; ++_i96) { - string _elem73; - _elem73 = await iprot.ReadStringAsync(cancellationToken); - Statements.Add(_elem73); + string _elem97; + _elem97 = await iprot.ReadStringAsync(cancellationToken); + Statements.Add(_elem97); } await iprot.ReadListEndAsync(cancellationToken); } @@ -126,26 +127,26 @@ public TSExecuteBatchStatementReq(long sessionId, List statements) : thi oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSExecuteBatchStatementReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp98 = new TStruct("TSExecuteBatchStatementReq"); + await oprot.WriteStructBeginAsync(tmp98, cancellationToken); + var tmp99 = new TField(); + tmp99.Name = "sessionId"; + tmp99.Type = TType.I64; + tmp99.ID = 1; + await oprot.WriteFieldBeginAsync(tmp99, 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); + tmp99.Name = "statements"; + tmp99.Type = TType.List; + tmp99.ID = 2; + await oprot.WriteFieldBeginAsync(tmp99, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Statements.Count), cancellationToken); - foreach (string _iter74 in Statements) + foreach (string _iter100 in Statements) { - await oprot.WriteStringAsync(_iter74, cancellationToken); + await oprot.WriteStringAsync(_iter100, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -182,16 +183,16 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSExecuteBatchStatementReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp101 = new StringBuilder("TSExecuteBatchStatementReq("); + tmp101.Append(", SessionId: "); + SessionId.ToString(tmp101); if((Statements != null)) { - sb.Append(", Statements: "); - Statements.ToString(sb); + tmp101.Append(", Statements: "); + Statements.ToString(tmp101); } - sb.Append(')'); - return sb.ToString(); + tmp101.Append(')'); + return tmp101.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementReq.cs index c626b3e..4f46e46 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSExecuteStatementReq : TBase @@ -241,63 +242,63 @@ public TSExecuteStatementReq(long sessionId, string statement, long statementId) oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSExecuteStatementReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp91 = new TStruct("TSExecuteStatementReq"); + await oprot.WriteStructBeginAsync(tmp91, cancellationToken); + var tmp92 = new TField(); + tmp92.Name = "sessionId"; + tmp92.Type = TType.I64; + tmp92.ID = 1; + await oprot.WriteFieldBeginAsync(tmp92, 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); + tmp92.Name = "statement"; + tmp92.Type = TType.String; + tmp92.ID = 2; + await oprot.WriteFieldBeginAsync(tmp92, 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); + tmp92.Name = "statementId"; + tmp92.Type = TType.I64; + tmp92.ID = 3; + await oprot.WriteFieldBeginAsync(tmp92, cancellationToken); await oprot.WriteI64Async(StatementId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if(__isset.fetchSize) { - field.Name = "fetchSize"; - field.Type = TType.I32; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp92.Name = "fetchSize"; + tmp92.Type = TType.I32; + tmp92.ID = 4; + await oprot.WriteFieldBeginAsync(tmp92, cancellationToken); await oprot.WriteI32Async(FetchSize, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.timeout) { - field.Name = "timeout"; - field.Type = TType.I64; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp92.Name = "timeout"; + tmp92.Type = TType.I64; + tmp92.ID = 5; + await oprot.WriteFieldBeginAsync(tmp92, cancellationToken); await oprot.WriteI64Async(Timeout, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.enableRedirectQuery) { - field.Name = "enableRedirectQuery"; - field.Type = TType.Bool; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp92.Name = "enableRedirectQuery"; + tmp92.Type = TType.Bool; + tmp92.ID = 6; + await oprot.WriteFieldBeginAsync(tmp92, cancellationToken); await oprot.WriteBoolAsync(EnableRedirectQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.jdbcQuery) { - field.Name = "jdbcQuery"; - field.Type = TType.Bool; - field.ID = 7; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp92.Name = "jdbcQuery"; + tmp92.Type = TType.Bool; + tmp92.ID = 7; + await oprot.WriteFieldBeginAsync(tmp92, cancellationToken); await oprot.WriteBoolAsync(JdbcQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -354,38 +355,38 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSExecuteStatementReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp93 = new StringBuilder("TSExecuteStatementReq("); + tmp93.Append(", SessionId: "); + SessionId.ToString(tmp93); if((Statement != null)) { - sb.Append(", Statement: "); - Statement.ToString(sb); + tmp93.Append(", Statement: "); + Statement.ToString(tmp93); } - sb.Append(", StatementId: "); - StatementId.ToString(sb); + tmp93.Append(", StatementId: "); + StatementId.ToString(tmp93); if(__isset.fetchSize) { - sb.Append(", FetchSize: "); - FetchSize.ToString(sb); + tmp93.Append(", FetchSize: "); + FetchSize.ToString(tmp93); } if(__isset.timeout) { - sb.Append(", Timeout: "); - Timeout.ToString(sb); + tmp93.Append(", Timeout: "); + Timeout.ToString(tmp93); } if(__isset.enableRedirectQuery) { - sb.Append(", EnableRedirectQuery: "); - EnableRedirectQuery.ToString(sb); + tmp93.Append(", EnableRedirectQuery: "); + EnableRedirectQuery.ToString(tmp93); } if(__isset.jdbcQuery) { - sb.Append(", JdbcQuery: "); - JdbcQuery.ToString(sb); + tmp93.Append(", JdbcQuery: "); + JdbcQuery.ToString(tmp93); } - sb.Append(')'); - return sb.ToString(); + tmp93.Append(')'); + return tmp93.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementResp.cs index 74a5042..96fbeb9 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSExecuteStatementResp : TBase @@ -333,13 +334,13 @@ public TSExecuteStatementResp(TSStatus status) : this() if (field.Type == TType.List) { { - TList _list27 = await iprot.ReadListBeginAsync(cancellationToken); - Columns = new List(_list27.Count); - for(int _i28 = 0; _i28 < _list27.Count; ++_i28) + TList _list36 = await iprot.ReadListBeginAsync(cancellationToken); + Columns = new List(_list36.Count); + for(int _i37 = 0; _i37 < _list36.Count; ++_i37) { - string _elem29; - _elem29 = await iprot.ReadStringAsync(cancellationToken); - Columns.Add(_elem29); + string _elem38; + _elem38 = await iprot.ReadStringAsync(cancellationToken); + Columns.Add(_elem38); } await iprot.ReadListEndAsync(cancellationToken); } @@ -373,13 +374,13 @@ public TSExecuteStatementResp(TSStatus status) : this() if (field.Type == TType.List) { { - TList _list30 = await iprot.ReadListBeginAsync(cancellationToken); - DataTypeList = new List(_list30.Count); - for(int _i31 = 0; _i31 < _list30.Count; ++_i31) + TList _list39 = await iprot.ReadListBeginAsync(cancellationToken); + DataTypeList = new List(_list39.Count); + for(int _i40 = 0; _i40 < _list39.Count; ++_i40) { - string _elem32; - _elem32 = await iprot.ReadStringAsync(cancellationToken); - DataTypeList.Add(_elem32); + string _elem41; + _elem41 = await iprot.ReadStringAsync(cancellationToken); + DataTypeList.Add(_elem41); } await iprot.ReadListEndAsync(cancellationToken); } @@ -415,15 +416,15 @@ public TSExecuteStatementResp(TSStatus status) : this() if (field.Type == TType.Map) { { - TMap _map33 = await iprot.ReadMapBeginAsync(cancellationToken); - ColumnNameIndexMap = new Dictionary(_map33.Count); - for(int _i34 = 0; _i34 < _map33.Count; ++_i34) + TMap _map42 = await iprot.ReadMapBeginAsync(cancellationToken); + ColumnNameIndexMap = new Dictionary(_map42.Count); + for(int _i43 = 0; _i43 < _map42.Count; ++_i43) { - string _key35; - int _val36; - _key35 = await iprot.ReadStringAsync(cancellationToken); - _val36 = await iprot.ReadI32Async(cancellationToken); - ColumnNameIndexMap[_key35] = _val36; + string _key44; + int _val45; + _key44 = await iprot.ReadStringAsync(cancellationToken); + _val45 = await iprot.ReadI32Async(cancellationToken); + ColumnNameIndexMap[_key44] = _val45; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -437,13 +438,13 @@ public TSExecuteStatementResp(TSStatus status) : this() if (field.Type == TType.List) { { - TList _list37 = await iprot.ReadListBeginAsync(cancellationToken); - SgColumns = new List(_list37.Count); - for(int _i38 = 0; _i38 < _list37.Count; ++_i38) + TList _list46 = await iprot.ReadListBeginAsync(cancellationToken); + SgColumns = new List(_list46.Count); + for(int _i47 = 0; _i47 < _list46.Count; ++_i47) { - string _elem39; - _elem39 = await iprot.ReadStringAsync(cancellationToken); - SgColumns.Add(_elem39); + string _elem48; + _elem48 = await iprot.ReadStringAsync(cancellationToken); + SgColumns.Add(_elem48); } await iprot.ReadListEndAsync(cancellationToken); } @@ -457,13 +458,13 @@ public TSExecuteStatementResp(TSStatus status) : this() if (field.Type == TType.List) { { - TList _list40 = await iprot.ReadListBeginAsync(cancellationToken); - AliasColumns = new List(_list40.Count); - for(int _i41 = 0; _i41 < _list40.Count; ++_i41) + TList _list49 = await iprot.ReadListBeginAsync(cancellationToken); + AliasColumns = new List(_list49.Count); + for(int _i50 = 0; _i50 < _list49.Count; ++_i50) { - sbyte _elem42; - _elem42 = await iprot.ReadByteAsync(cancellationToken); - AliasColumns.Add(_elem42); + sbyte _elem51; + _elem51 = await iprot.ReadByteAsync(cancellationToken); + AliasColumns.Add(_elem51); } await iprot.ReadListEndAsync(cancellationToken); } @@ -488,13 +489,13 @@ public TSExecuteStatementResp(TSStatus status) : this() if (field.Type == TType.List) { { - TList _list43 = await iprot.ReadListBeginAsync(cancellationToken); - QueryResult = new List(_list43.Count); - for(int _i44 = 0; _i44 < _list43.Count; ++_i44) + TList _list52 = await iprot.ReadListBeginAsync(cancellationToken); + QueryResult = new List(_list52.Count); + for(int _i53 = 0; _i53 < _list52.Count; ++_i53) { - byte[] _elem45; - _elem45 = await iprot.ReadBinaryAsync(cancellationToken); - QueryResult.Add(_elem45); + byte[] _elem54; + _elem54 = await iprot.ReadBinaryAsync(cancellationToken); + QueryResult.Add(_elem54); } await iprot.ReadListEndAsync(cancellationToken); } @@ -538,13 +539,13 @@ public TSExecuteStatementResp(TSStatus status) : this() if (field.Type == TType.List) { { - TList _list46 = await iprot.ReadListBeginAsync(cancellationToken); - ColumnIndex2TsBlockColumnIndexList = new List(_list46.Count); - for(int _i47 = 0; _i47 < _list46.Count; ++_i47) + TList _list55 = await iprot.ReadListBeginAsync(cancellationToken); + ColumnIndex2TsBlockColumnIndexList = new List(_list55.Count); + for(int _i56 = 0; _i56 < _list55.Count; ++_i56) { - int _elem48; - _elem48 = await iprot.ReadI32Async(cancellationToken); - ColumnIndex2TsBlockColumnIndexList.Add(_elem48); + int _elem57; + _elem57 = await iprot.ReadI32Async(cancellationToken); + ColumnIndex2TsBlockColumnIndexList.Add(_elem57); } await iprot.ReadListEndAsync(cancellationToken); } @@ -579,38 +580,38 @@ public TSExecuteStatementResp(TSStatus status) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSExecuteStatementResp"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp58 = new TStruct("TSExecuteStatementResp"); + await oprot.WriteStructBeginAsync(tmp58, cancellationToken); + var tmp59 = new TField(); if((Status != null)) { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp59.Name = "status"; + tmp59.Type = TType.Struct; + tmp59.ID = 1; + await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); await Status.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.queryId) { - field.Name = "queryId"; - field.Type = TType.I64; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp59.Name = "queryId"; + tmp59.Type = TType.I64; + tmp59.ID = 2; + await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); await oprot.WriteI64Async(QueryId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((Columns != null) && __isset.columns) { - field.Name = "columns"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp59.Name = "columns"; + tmp59.Type = TType.List; + tmp59.ID = 3; + await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Columns.Count), cancellationToken); - foreach (string _iter49 in Columns) + foreach (string _iter60 in Columns) { - await oprot.WriteStringAsync(_iter49, cancellationToken); + await oprot.WriteStringAsync(_iter60, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -618,33 +619,33 @@ public TSExecuteStatementResp(TSStatus status) : this() } if((OperationType != null) && __isset.operationType) { - field.Name = "operationType"; - field.Type = TType.String; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp59.Name = "operationType"; + tmp59.Type = TType.String; + tmp59.ID = 4; + await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); await oprot.WriteStringAsync(OperationType, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.ignoreTimeStamp) { - field.Name = "ignoreTimeStamp"; - field.Type = TType.Bool; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp59.Name = "ignoreTimeStamp"; + tmp59.Type = TType.Bool; + tmp59.ID = 5; + await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); await oprot.WriteBoolAsync(IgnoreTimeStamp, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((DataTypeList != null) && __isset.dataTypeList) { - field.Name = "dataTypeList"; - field.Type = TType.List; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp59.Name = "dataTypeList"; + tmp59.Type = TType.List; + tmp59.ID = 6; + await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, DataTypeList.Count), cancellationToken); - foreach (string _iter50 in DataTypeList) + foreach (string _iter61 in DataTypeList) { - await oprot.WriteStringAsync(_iter50, cancellationToken); + await oprot.WriteStringAsync(_iter61, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -652,34 +653,34 @@ public TSExecuteStatementResp(TSStatus status) : this() } if((QueryDataSet != null) && __isset.queryDataSet) { - field.Name = "queryDataSet"; - field.Type = TType.Struct; - field.ID = 7; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp59.Name = "queryDataSet"; + tmp59.Type = TType.Struct; + tmp59.ID = 7; + await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); await QueryDataSet.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) { - field.Name = "nonAlignQueryDataSet"; - field.Type = TType.Struct; - field.ID = 8; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp59.Name = "nonAlignQueryDataSet"; + tmp59.Type = TType.Struct; + tmp59.ID = 8; + await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); await NonAlignQueryDataSet.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((ColumnNameIndexMap != null) && __isset.columnNameIndexMap) { - field.Name = "columnNameIndexMap"; - field.Type = TType.Map; - field.ID = 9; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp59.Name = "columnNameIndexMap"; + tmp59.Type = TType.Map; + tmp59.ID = 9; + await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.I32, ColumnNameIndexMap.Count), cancellationToken); - foreach (string _iter51 in ColumnNameIndexMap.Keys) + foreach (string _iter62 in ColumnNameIndexMap.Keys) { - await oprot.WriteStringAsync(_iter51, cancellationToken); - await oprot.WriteI32Async(ColumnNameIndexMap[_iter51], cancellationToken); + await oprot.WriteStringAsync(_iter62, cancellationToken); + await oprot.WriteI32Async(ColumnNameIndexMap[_iter62], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -687,15 +688,15 @@ public TSExecuteStatementResp(TSStatus status) : this() } if((SgColumns != null) && __isset.sgColumns) { - field.Name = "sgColumns"; - field.Type = TType.List; - field.ID = 10; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp59.Name = "sgColumns"; + tmp59.Type = TType.List; + tmp59.ID = 10; + await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, SgColumns.Count), cancellationToken); - foreach (string _iter52 in SgColumns) + foreach (string _iter63 in SgColumns) { - await oprot.WriteStringAsync(_iter52, cancellationToken); + await oprot.WriteStringAsync(_iter63, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -703,15 +704,15 @@ public TSExecuteStatementResp(TSStatus status) : this() } if((AliasColumns != null) && __isset.aliasColumns) { - field.Name = "aliasColumns"; - field.Type = TType.List; - field.ID = 11; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp59.Name = "aliasColumns"; + tmp59.Type = TType.List; + tmp59.ID = 11; + await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Byte, AliasColumns.Count), cancellationToken); - foreach (sbyte _iter53 in AliasColumns) + foreach (sbyte _iter64 in AliasColumns) { - await oprot.WriteByteAsync(_iter53, cancellationToken); + await oprot.WriteByteAsync(_iter64, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -719,24 +720,24 @@ public TSExecuteStatementResp(TSStatus status) : this() } if((TracingInfo != null) && __isset.tracingInfo) { - field.Name = "tracingInfo"; - field.Type = TType.Struct; - field.ID = 12; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp59.Name = "tracingInfo"; + tmp59.Type = TType.Struct; + tmp59.ID = 12; + await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); await TracingInfo.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((QueryResult != null) && __isset.queryResult) { - field.Name = "queryResult"; - field.Type = TType.List; - field.ID = 13; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp59.Name = "queryResult"; + tmp59.Type = TType.List; + tmp59.ID = 13; + await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, QueryResult.Count), cancellationToken); - foreach (byte[] _iter54 in QueryResult) + foreach (byte[] _iter65 in QueryResult) { - await oprot.WriteBinaryAsync(_iter54, cancellationToken); + await oprot.WriteBinaryAsync(_iter65, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -744,42 +745,42 @@ public TSExecuteStatementResp(TSStatus status) : this() } if(__isset.moreData) { - field.Name = "moreData"; - field.Type = TType.Bool; - field.ID = 14; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp59.Name = "moreData"; + tmp59.Type = TType.Bool; + tmp59.ID = 14; + await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); await oprot.WriteBoolAsync(MoreData, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((Database != null) && __isset.database) { - field.Name = "database"; - field.Type = TType.String; - field.ID = 15; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp59.Name = "database"; + tmp59.Type = TType.String; + tmp59.ID = 15; + await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); await oprot.WriteStringAsync(Database, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.tableModel) { - field.Name = "tableModel"; - field.Type = TType.Bool; - field.ID = 16; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp59.Name = "tableModel"; + tmp59.Type = TType.Bool; + tmp59.ID = 16; + await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); await oprot.WriteBoolAsync(TableModel, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((ColumnIndex2TsBlockColumnIndexList != null) && __isset.columnIndex2TsBlockColumnIndexList) { - field.Name = "columnIndex2TsBlockColumnIndexList"; - field.Type = TType.List; - field.ID = 17; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp59.Name = "columnIndex2TsBlockColumnIndexList"; + tmp59.Type = TType.List; + tmp59.ID = 17; + await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, ColumnIndex2TsBlockColumnIndexList.Count), cancellationToken); - foreach (int _iter55 in ColumnIndex2TsBlockColumnIndexList) + foreach (int _iter66 in ColumnIndex2TsBlockColumnIndexList) { - await oprot.WriteI32Async(_iter55, cancellationToken); + await oprot.WriteI32Async(_iter66, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -894,94 +895,94 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSExecuteStatementResp("); + var tmp67 = new StringBuilder("TSExecuteStatementResp("); if((Status != null)) { - sb.Append(", Status: "); - Status.ToString(sb); + tmp67.Append(", Status: "); + Status.ToString(tmp67); } if(__isset.queryId) { - sb.Append(", QueryId: "); - QueryId.ToString(sb); + tmp67.Append(", QueryId: "); + QueryId.ToString(tmp67); } if((Columns != null) && __isset.columns) { - sb.Append(", Columns: "); - Columns.ToString(sb); + tmp67.Append(", Columns: "); + Columns.ToString(tmp67); } if((OperationType != null) && __isset.operationType) { - sb.Append(", OperationType: "); - OperationType.ToString(sb); + tmp67.Append(", OperationType: "); + OperationType.ToString(tmp67); } if(__isset.ignoreTimeStamp) { - sb.Append(", IgnoreTimeStamp: "); - IgnoreTimeStamp.ToString(sb); + tmp67.Append(", IgnoreTimeStamp: "); + IgnoreTimeStamp.ToString(tmp67); } if((DataTypeList != null) && __isset.dataTypeList) { - sb.Append(", DataTypeList: "); - DataTypeList.ToString(sb); + tmp67.Append(", DataTypeList: "); + DataTypeList.ToString(tmp67); } if((QueryDataSet != null) && __isset.queryDataSet) { - sb.Append(", QueryDataSet: "); - QueryDataSet.ToString(sb); + tmp67.Append(", QueryDataSet: "); + QueryDataSet.ToString(tmp67); } if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) { - sb.Append(", NonAlignQueryDataSet: "); - NonAlignQueryDataSet.ToString(sb); + tmp67.Append(", NonAlignQueryDataSet: "); + NonAlignQueryDataSet.ToString(tmp67); } if((ColumnNameIndexMap != null) && __isset.columnNameIndexMap) { - sb.Append(", ColumnNameIndexMap: "); - ColumnNameIndexMap.ToString(sb); + tmp67.Append(", ColumnNameIndexMap: "); + ColumnNameIndexMap.ToString(tmp67); } if((SgColumns != null) && __isset.sgColumns) { - sb.Append(", SgColumns: "); - SgColumns.ToString(sb); + tmp67.Append(", SgColumns: "); + SgColumns.ToString(tmp67); } if((AliasColumns != null) && __isset.aliasColumns) { - sb.Append(", AliasColumns: "); - AliasColumns.ToString(sb); + tmp67.Append(", AliasColumns: "); + AliasColumns.ToString(tmp67); } if((TracingInfo != null) && __isset.tracingInfo) { - sb.Append(", TracingInfo: "); - TracingInfo.ToString(sb); + tmp67.Append(", TracingInfo: "); + TracingInfo.ToString(tmp67); } if((QueryResult != null) && __isset.queryResult) { - sb.Append(", QueryResult: "); - QueryResult.ToString(sb); + tmp67.Append(", QueryResult: "); + QueryResult.ToString(tmp67); } if(__isset.moreData) { - sb.Append(", MoreData: "); - MoreData.ToString(sb); + tmp67.Append(", MoreData: "); + MoreData.ToString(tmp67); } if((Database != null) && __isset.database) { - sb.Append(", Database: "); - Database.ToString(sb); + tmp67.Append(", Database: "); + Database.ToString(tmp67); } if(__isset.tableModel) { - sb.Append(", TableModel: "); - TableModel.ToString(sb); + tmp67.Append(", TableModel: "); + TableModel.ToString(tmp67); } if((ColumnIndex2TsBlockColumnIndexList != null) && __isset.columnIndex2TsBlockColumnIndexList) { - sb.Append(", ColumnIndex2TsBlockColumnIndexList: "); - ColumnIndex2TsBlockColumnIndexList.ToString(sb); + tmp67.Append(", ColumnIndex2TsBlockColumnIndexList: "); + ColumnIndex2TsBlockColumnIndexList.ToString(tmp67); } - sb.Append(')'); - return sb.ToString(); + tmp67.Append(')'); + return tmp67.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOneDeviceReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOneDeviceReq.cs index 3ae1472..8d43e16 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSFastLastDataQueryForOneDeviceReq : TBase @@ -195,13 +196,13 @@ public TSFastLastDataQueryForOneDeviceReq(long sessionId, string db, string devi if (field.Type == TType.List) { { - TList _list311 = await iprot.ReadListBeginAsync(cancellationToken); - Sensors = new List(_list311.Count); - for(int _i312 = 0; _i312 < _list311.Count; ++_i312) + TList _list412 = await iprot.ReadListBeginAsync(cancellationToken); + Sensors = new List(_list412.Count); + for(int _i413 = 0; _i413 < _list412.Count; ++_i413) { - string _elem313; - _elem313 = await iprot.ReadStringAsync(cancellationToken); - Sensors.Add(_elem313); + string _elem414; + _elem414 = await iprot.ReadStringAsync(cancellationToken); + Sensors.Add(_elem414); } await iprot.ReadListEndAsync(cancellationToken); } @@ -314,44 +315,44 @@ public TSFastLastDataQueryForOneDeviceReq(long sessionId, string db, string devi 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); + var tmp415 = new TStruct("TSFastLastDataQueryForOneDeviceReq"); + await oprot.WriteStructBeginAsync(tmp415, cancellationToken); + var tmp416 = new TField(); + tmp416.Name = "sessionId"; + tmp416.Type = TType.I64; + tmp416.ID = 1; + await oprot.WriteFieldBeginAsync(tmp416, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if((Db != null)) { - field.Name = "db"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp416.Name = "db"; + tmp416.Type = TType.String; + tmp416.ID = 2; + await oprot.WriteFieldBeginAsync(tmp416, cancellationToken); await oprot.WriteStringAsync(Db, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((DeviceId != null)) { - field.Name = "deviceId"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp416.Name = "deviceId"; + tmp416.Type = TType.String; + tmp416.ID = 3; + await oprot.WriteFieldBeginAsync(tmp416, 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); + tmp416.Name = "sensors"; + tmp416.Type = TType.List; + tmp416.ID = 4; + await oprot.WriteFieldBeginAsync(tmp416, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Sensors.Count), cancellationToken); - foreach (string _iter314 in Sensors) + foreach (string _iter417 in Sensors) { - await oprot.WriteStringAsync(_iter314, cancellationToken); + await oprot.WriteStringAsync(_iter417, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -359,52 +360,52 @@ public TSFastLastDataQueryForOneDeviceReq(long sessionId, string db, string devi } if(__isset.fetchSize) { - field.Name = "fetchSize"; - field.Type = TType.I32; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp416.Name = "fetchSize"; + tmp416.Type = TType.I32; + tmp416.ID = 5; + await oprot.WriteFieldBeginAsync(tmp416, 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); + tmp416.Name = "statementId"; + tmp416.Type = TType.I64; + tmp416.ID = 6; + await oprot.WriteFieldBeginAsync(tmp416, 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); + tmp416.Name = "enableRedirectQuery"; + tmp416.Type = TType.Bool; + tmp416.ID = 7; + await oprot.WriteFieldBeginAsync(tmp416, 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); + tmp416.Name = "jdbcQuery"; + tmp416.Type = TType.Bool; + tmp416.ID = 8; + await oprot.WriteFieldBeginAsync(tmp416, 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); + tmp416.Name = "timeout"; + tmp416.Type = TType.I64; + tmp416.ID = 9; + await oprot.WriteFieldBeginAsync(tmp416, 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); + tmp416.Name = "legalPathNodes"; + tmp416.Type = TType.Bool; + tmp416.ID = 10; + await oprot.WriteFieldBeginAsync(tmp416, cancellationToken); await oprot.WriteBoolAsync(LegalPathNodes, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -476,53 +477,53 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSFastLastDataQueryForOneDeviceReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp418 = new StringBuilder("TSFastLastDataQueryForOneDeviceReq("); + tmp418.Append(", SessionId: "); + SessionId.ToString(tmp418); if((Db != null)) { - sb.Append(", Db: "); - Db.ToString(sb); + tmp418.Append(", Db: "); + Db.ToString(tmp418); } if((DeviceId != null)) { - sb.Append(", DeviceId: "); - DeviceId.ToString(sb); + tmp418.Append(", DeviceId: "); + DeviceId.ToString(tmp418); } if((Sensors != null)) { - sb.Append(", Sensors: "); - Sensors.ToString(sb); + tmp418.Append(", Sensors: "); + Sensors.ToString(tmp418); } if(__isset.fetchSize) { - sb.Append(", FetchSize: "); - FetchSize.ToString(sb); + tmp418.Append(", FetchSize: "); + FetchSize.ToString(tmp418); } - sb.Append(", StatementId: "); - StatementId.ToString(sb); + tmp418.Append(", StatementId: "); + StatementId.ToString(tmp418); if(__isset.enableRedirectQuery) { - sb.Append(", EnableRedirectQuery: "); - EnableRedirectQuery.ToString(sb); + tmp418.Append(", EnableRedirectQuery: "); + EnableRedirectQuery.ToString(tmp418); } if(__isset.jdbcQuery) { - sb.Append(", JdbcQuery: "); - JdbcQuery.ToString(sb); + tmp418.Append(", JdbcQuery: "); + JdbcQuery.ToString(tmp418); } if(__isset.timeout) { - sb.Append(", Timeout: "); - Timeout.ToString(sb); + tmp418.Append(", Timeout: "); + Timeout.ToString(tmp418); } if(__isset.legalPathNodes) { - sb.Append(", LegalPathNodes: "); - LegalPathNodes.ToString(sb); + tmp418.Append(", LegalPathNodes: "); + LegalPathNodes.ToString(tmp418); } - sb.Append(')'); - return sb.ToString(); + tmp418.Append(')'); + return tmp418.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOnePrefixPathReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOnePrefixPathReq.cs new file mode 100644 index 0000000..afefca3 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOnePrefixPathReq.cs @@ -0,0 +1,409 @@ +/** + * Autogenerated by Thrift Compiler (0.15.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.Linq; +using System.Threading; +using System.Threading.Tasks; +using Microsoft.Extensions.Logging; +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; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + + +public partial class TSFastLastDataQueryForOnePrefixPathReq : TBase +{ + private int _fetchSize; + private bool _enableRedirectQuery; + private bool _jdbcQuery; + private long _timeout; + + public long SessionId { get; set; } + + public List Prefixes { 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 Isset __isset; + public struct Isset + { + public bool fetchSize; + public bool enableRedirectQuery; + public bool jdbcQuery; + public bool timeout; + } + + public TSFastLastDataQueryForOnePrefixPathReq() + { + } + + public TSFastLastDataQueryForOnePrefixPathReq(long sessionId, List prefixes, long statementId) : this() + { + this.SessionId = sessionId; + this.Prefixes = prefixes; + this.StatementId = statementId; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_sessionId = false; + bool isset_prefixes = 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.List) + { + { + TList _list404 = await iprot.ReadListBeginAsync(cancellationToken); + Prefixes = new List(_list404.Count); + for(int _i405 = 0; _i405 < _list404.Count; ++_i405) + { + string _elem406; + _elem406 = await iprot.ReadStringAsync(cancellationToken); + Prefixes.Add(_elem406); + } + await iprot.ReadListEndAsync(cancellationToken); + } + isset_prefixes = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + FetchSize = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I64) + { + StatementId = await iprot.ReadI64Async(cancellationToken); + isset_statementId = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.Bool) + { + EnableRedirectQuery = await iprot.ReadBoolAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.Bool) + { + JdbcQuery = await iprot.ReadBoolAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + 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_prefixes) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + if (!isset_statementId) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp407 = new TStruct("TSFastLastDataQueryForOnePrefixPathReq"); + await oprot.WriteStructBeginAsync(tmp407, cancellationToken); + var tmp408 = new TField(); + tmp408.Name = "sessionId"; + tmp408.Type = TType.I64; + tmp408.ID = 1; + await oprot.WriteFieldBeginAsync(tmp408, cancellationToken); + await oprot.WriteI64Async(SessionId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + if((Prefixes != null)) + { + tmp408.Name = "prefixes"; + tmp408.Type = TType.List; + tmp408.ID = 2; + await oprot.WriteFieldBeginAsync(tmp408, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.String, Prefixes.Count), cancellationToken); + foreach (string _iter409 in Prefixes) + { + await oprot.WriteStringAsync(_iter409, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.fetchSize) + { + tmp408.Name = "fetchSize"; + tmp408.Type = TType.I32; + tmp408.ID = 3; + await oprot.WriteFieldBeginAsync(tmp408, cancellationToken); + await oprot.WriteI32Async(FetchSize, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + tmp408.Name = "statementId"; + tmp408.Type = TType.I64; + tmp408.ID = 4; + await oprot.WriteFieldBeginAsync(tmp408, cancellationToken); + await oprot.WriteI64Async(StatementId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + if(__isset.enableRedirectQuery) + { + tmp408.Name = "enableRedirectQuery"; + tmp408.Type = TType.Bool; + tmp408.ID = 5; + await oprot.WriteFieldBeginAsync(tmp408, cancellationToken); + await oprot.WriteBoolAsync(EnableRedirectQuery, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.jdbcQuery) + { + tmp408.Name = "jdbcQuery"; + tmp408.Type = TType.Bool; + tmp408.ID = 6; + await oprot.WriteFieldBeginAsync(tmp408, cancellationToken); + await oprot.WriteBoolAsync(JdbcQuery, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.timeout) + { + tmp408.Name = "timeout"; + tmp408.Type = TType.I64; + tmp408.ID = 7; + await oprot.WriteFieldBeginAsync(tmp408, 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) + { + if (!(that is TSFastLastDataQueryForOnePrefixPathReq other)) return false; + if (ReferenceEquals(this, other)) return true; + return System.Object.Equals(SessionId, other.SessionId) + && TCollections.Equals(Prefixes, other.Prefixes) + && ((__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)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + hashcode = (hashcode * 397) + SessionId.GetHashCode(); + if((Prefixes != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Prefixes); + } + 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(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp410 = new StringBuilder("TSFastLastDataQueryForOnePrefixPathReq("); + tmp410.Append(", SessionId: "); + SessionId.ToString(tmp410); + if((Prefixes != null)) + { + tmp410.Append(", Prefixes: "); + Prefixes.ToString(tmp410); + } + if(__isset.fetchSize) + { + tmp410.Append(", FetchSize: "); + FetchSize.ToString(tmp410); + } + tmp410.Append(", StatementId: "); + StatementId.ToString(tmp410); + if(__isset.enableRedirectQuery) + { + tmp410.Append(", EnableRedirectQuery: "); + EnableRedirectQuery.ToString(tmp410); + } + if(__isset.jdbcQuery) + { + tmp410.Append(", JdbcQuery: "); + JdbcQuery.ToString(tmp410); + } + if(__isset.timeout) + { + tmp410.Append(", Timeout: "); + Timeout.ToString(tmp410); + } + tmp410.Append(')'); + return tmp410.ToString(); + } +} + diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataReq.cs index 630fab7..f4483f4 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSFetchMetadataReq : TBase @@ -147,30 +148,30 @@ public TSFetchMetadataReq(long sessionId, string type) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSFetchMetadataReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp135 = new TStruct("TSFetchMetadataReq"); + await oprot.WriteStructBeginAsync(tmp135, cancellationToken); + var tmp136 = new TField(); + tmp136.Name = "sessionId"; + tmp136.Type = TType.I64; + tmp136.ID = 1; + await oprot.WriteFieldBeginAsync(tmp136, 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); + tmp136.Name = "type"; + tmp136.Type = TType.String; + tmp136.ID = 2; + await oprot.WriteFieldBeginAsync(tmp136, cancellationToken); await oprot.WriteStringAsync(Type, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((ColumnPath != null) && __isset.columnPath) { - field.Name = "columnPath"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp136.Name = "columnPath"; + tmp136.Type = TType.String; + tmp136.ID = 3; + await oprot.WriteFieldBeginAsync(tmp136, cancellationToken); await oprot.WriteStringAsync(ColumnPath, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -210,21 +211,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSFetchMetadataReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp137 = new StringBuilder("TSFetchMetadataReq("); + tmp137.Append(", SessionId: "); + SessionId.ToString(tmp137); if((Type != null)) { - sb.Append(", Type: "); - Type.ToString(sb); + tmp137.Append(", Type: "); + Type.ToString(tmp137); } if((ColumnPath != null) && __isset.columnPath) { - sb.Append(", ColumnPath: "); - ColumnPath.ToString(sb); + tmp137.Append(", ColumnPath: "); + ColumnPath.ToString(tmp137); } - sb.Append(')'); - return sb.ToString(); + tmp137.Append(')'); + return tmp137.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataResp.cs index edf27ec..732b4b1 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSFetchMetadataResp : TBase @@ -138,13 +139,13 @@ public TSFetchMetadataResp(TSStatus status) : this() if (field.Type == TType.List) { { - TList _list85 = await iprot.ReadListBeginAsync(cancellationToken); - ColumnsList = new List(_list85.Count); - for(int _i86 = 0; _i86 < _list85.Count; ++_i86) + TList _list127 = await iprot.ReadListBeginAsync(cancellationToken); + ColumnsList = new List(_list127.Count); + for(int _i128 = 0; _i128 < _list127.Count; ++_i128) { - string _elem87; - _elem87 = await iprot.ReadStringAsync(cancellationToken); - ColumnsList.Add(_elem87); + string _elem129; + _elem129 = await iprot.ReadStringAsync(cancellationToken); + ColumnsList.Add(_elem129); } await iprot.ReadListEndAsync(cancellationToken); } @@ -189,38 +190,38 @@ public TSFetchMetadataResp(TSStatus status) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSFetchMetadataResp"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp130 = new TStruct("TSFetchMetadataResp"); + await oprot.WriteStructBeginAsync(tmp130, cancellationToken); + var tmp131 = new TField(); if((Status != null)) { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp131.Name = "status"; + tmp131.Type = TType.Struct; + tmp131.ID = 1; + await oprot.WriteFieldBeginAsync(tmp131, cancellationToken); await Status.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((MetadataInJson != null) && __isset.metadataInJson) { - field.Name = "metadataInJson"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp131.Name = "metadataInJson"; + tmp131.Type = TType.String; + tmp131.ID = 2; + await oprot.WriteFieldBeginAsync(tmp131, cancellationToken); await oprot.WriteStringAsync(MetadataInJson, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((ColumnsList != null) && __isset.columnsList) { - field.Name = "columnsList"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp131.Name = "columnsList"; + tmp131.Type = TType.List; + tmp131.ID = 3; + await oprot.WriteFieldBeginAsync(tmp131, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, ColumnsList.Count), cancellationToken); - foreach (string _iter88 in ColumnsList) + foreach (string _iter132 in ColumnsList) { - await oprot.WriteStringAsync(_iter88, cancellationToken); + await oprot.WriteStringAsync(_iter132, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -228,10 +229,10 @@ public TSFetchMetadataResp(TSStatus status) : this() } if((DataType != null) && __isset.dataType) { - field.Name = "dataType"; - field.Type = TType.String; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp131.Name = "dataType"; + tmp131.Type = TType.String; + tmp131.ID = 4; + await oprot.WriteFieldBeginAsync(tmp131, cancellationToken); await oprot.WriteStringAsync(DataType, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -279,29 +280,29 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSFetchMetadataResp("); + var tmp133 = new StringBuilder("TSFetchMetadataResp("); if((Status != null)) { - sb.Append(", Status: "); - Status.ToString(sb); + tmp133.Append(", Status: "); + Status.ToString(tmp133); } if((MetadataInJson != null) && __isset.metadataInJson) { - sb.Append(", MetadataInJson: "); - MetadataInJson.ToString(sb); + tmp133.Append(", MetadataInJson: "); + MetadataInJson.ToString(tmp133); } if((ColumnsList != null) && __isset.columnsList) { - sb.Append(", ColumnsList: "); - ColumnsList.ToString(sb); + tmp133.Append(", ColumnsList: "); + ColumnsList.ToString(tmp133); } if((DataType != null) && __isset.dataType) { - sb.Append(", DataType: "); - DataType.ToString(sb); + tmp133.Append(", DataType: "); + DataType.ToString(tmp133); } - sb.Append(')'); - return sb.ToString(); + tmp133.Append(')'); + return tmp133.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsReq.cs index 828f47d..e442e71 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,11 +27,13 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSFetchResultsReq : TBase { private long _timeout; + private long _statementId; public long SessionId { get; set; } @@ -56,11 +58,25 @@ public long Timeout } } + public long StatementId + { + get + { + return _statementId; + } + set + { + __isset.statementId = true; + this._statementId = value; + } + } + public Isset __isset; public struct Isset { public bool timeout; + public bool statementId; } public TSFetchResultsReq() @@ -163,6 +179,16 @@ public TSFetchResultsReq(long sessionId, string statement, int fetchSize, long q await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; + case 7: + if (field.Type == TType.I64) + { + StatementId = await iprot.ReadI64Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); break; @@ -204,51 +230,60 @@ public TSFetchResultsReq(long sessionId, string statement, int fetchSize, long q oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSFetchResultsReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp115 = new TStruct("TSFetchResultsReq"); + await oprot.WriteStructBeginAsync(tmp115, cancellationToken); + var tmp116 = new TField(); + tmp116.Name = "sessionId"; + tmp116.Type = TType.I64; + tmp116.ID = 1; + await oprot.WriteFieldBeginAsync(tmp116, 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); + tmp116.Name = "statement"; + tmp116.Type = TType.String; + tmp116.ID = 2; + await oprot.WriteFieldBeginAsync(tmp116, cancellationToken); await oprot.WriteStringAsync(Statement, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - field.Name = "fetchSize"; - field.Type = TType.I32; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp116.Name = "fetchSize"; + tmp116.Type = TType.I32; + tmp116.ID = 3; + await oprot.WriteFieldBeginAsync(tmp116, cancellationToken); await oprot.WriteI32Async(FetchSize, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "queryId"; - field.Type = TType.I64; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp116.Name = "queryId"; + tmp116.Type = TType.I64; + tmp116.ID = 4; + await oprot.WriteFieldBeginAsync(tmp116, cancellationToken); await oprot.WriteI64Async(QueryId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "isAlign"; - field.Type = TType.Bool; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp116.Name = "isAlign"; + tmp116.Type = TType.Bool; + tmp116.ID = 5; + await oprot.WriteFieldBeginAsync(tmp116, cancellationToken); await oprot.WriteBoolAsync(IsAlign, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if(__isset.timeout) { - field.Name = "timeout"; - field.Type = TType.I64; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp116.Name = "timeout"; + tmp116.Type = TType.I64; + tmp116.ID = 6; + await oprot.WriteFieldBeginAsync(tmp116, cancellationToken); await oprot.WriteI64Async(Timeout, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + if(__isset.statementId) + { + tmp116.Name = "statementId"; + tmp116.Type = TType.I64; + tmp116.ID = 7; + await oprot.WriteFieldBeginAsync(tmp116, cancellationToken); + await oprot.WriteI64Async(StatementId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -267,7 +302,8 @@ public override bool Equals(object that) && System.Object.Equals(FetchSize, other.FetchSize) && System.Object.Equals(QueryId, other.QueryId) && System.Object.Equals(IsAlign, other.IsAlign) - && ((__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.statementId == other.__isset.statementId) && ((!__isset.statementId) || (System.Object.Equals(StatementId, other.StatementId)))); } public override int GetHashCode() { @@ -285,33 +321,42 @@ public override int GetHashCode() { { hashcode = (hashcode * 397) + Timeout.GetHashCode(); } + if(__isset.statementId) + { + hashcode = (hashcode * 397) + StatementId.GetHashCode(); + } } return hashcode; } public override string ToString() { - var sb = new StringBuilder("TSFetchResultsReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp117 = new StringBuilder("TSFetchResultsReq("); + tmp117.Append(", SessionId: "); + SessionId.ToString(tmp117); if((Statement != null)) { - sb.Append(", Statement: "); - Statement.ToString(sb); + tmp117.Append(", Statement: "); + Statement.ToString(tmp117); } - sb.Append(", FetchSize: "); - FetchSize.ToString(sb); - sb.Append(", QueryId: "); - QueryId.ToString(sb); - sb.Append(", IsAlign: "); - IsAlign.ToString(sb); + tmp117.Append(", FetchSize: "); + FetchSize.ToString(tmp117); + tmp117.Append(", QueryId: "); + QueryId.ToString(tmp117); + tmp117.Append(", IsAlign: "); + IsAlign.ToString(tmp117); if(__isset.timeout) { - sb.Append(", Timeout: "); - Timeout.ToString(sb); + tmp117.Append(", Timeout: "); + Timeout.ToString(tmp117); + } + if(__isset.statementId) + { + tmp117.Append(", StatementId: "); + StatementId.ToString(tmp117); } - sb.Append(')'); - return sb.ToString(); + tmp117.Append(')'); + return tmp117.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsResp.cs index 687a230..57d4166 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSFetchResultsResp : TBase @@ -195,13 +196,13 @@ public TSFetchResultsResp(TSStatus status, bool hasResultSet, bool isAlign) : th if (field.Type == TType.List) { { - TList _list80 = await iprot.ReadListBeginAsync(cancellationToken); - QueryResult = new List(_list80.Count); - for(int _i81 = 0; _i81 < _list80.Count; ++_i81) + TList _list119 = await iprot.ReadListBeginAsync(cancellationToken); + QueryResult = new List(_list119.Count); + for(int _i120 = 0; _i120 < _list119.Count; ++_i120) { - byte[] _elem82; - _elem82 = await iprot.ReadBinaryAsync(cancellationToken); - QueryResult.Add(_elem82); + byte[] _elem121; + _elem121 = await iprot.ReadBinaryAsync(cancellationToken); + QueryResult.Add(_elem121); } await iprot.ReadListEndAsync(cancellationToken); } @@ -254,59 +255,59 @@ public TSFetchResultsResp(TSStatus status, bool hasResultSet, bool isAlign) : th oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSFetchResultsResp"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp122 = new TStruct("TSFetchResultsResp"); + await oprot.WriteStructBeginAsync(tmp122, cancellationToken); + var tmp123 = new TField(); if((Status != null)) { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp123.Name = "status"; + tmp123.Type = TType.Struct; + tmp123.ID = 1; + await oprot.WriteFieldBeginAsync(tmp123, cancellationToken); await Status.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - field.Name = "hasResultSet"; - field.Type = TType.Bool; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp123.Name = "hasResultSet"; + tmp123.Type = TType.Bool; + tmp123.ID = 2; + await oprot.WriteFieldBeginAsync(tmp123, cancellationToken); await oprot.WriteBoolAsync(HasResultSet, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "isAlign"; - field.Type = TType.Bool; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp123.Name = "isAlign"; + tmp123.Type = TType.Bool; + tmp123.ID = 3; + await oprot.WriteFieldBeginAsync(tmp123, cancellationToken); await oprot.WriteBoolAsync(IsAlign, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if((QueryDataSet != null) && __isset.queryDataSet) { - field.Name = "queryDataSet"; - field.Type = TType.Struct; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp123.Name = "queryDataSet"; + tmp123.Type = TType.Struct; + tmp123.ID = 4; + await oprot.WriteFieldBeginAsync(tmp123, cancellationToken); await QueryDataSet.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) { - field.Name = "nonAlignQueryDataSet"; - field.Type = TType.Struct; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp123.Name = "nonAlignQueryDataSet"; + tmp123.Type = TType.Struct; + tmp123.ID = 5; + await oprot.WriteFieldBeginAsync(tmp123, cancellationToken); await NonAlignQueryDataSet.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((QueryResult != null) && __isset.queryResult) { - field.Name = "queryResult"; - field.Type = TType.List; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp123.Name = "queryResult"; + tmp123.Type = TType.List; + tmp123.ID = 6; + await oprot.WriteFieldBeginAsync(tmp123, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, QueryResult.Count), cancellationToken); - foreach (byte[] _iter83 in QueryResult) + foreach (byte[] _iter124 in QueryResult) { - await oprot.WriteBinaryAsync(_iter83, cancellationToken); + await oprot.WriteBinaryAsync(_iter124, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -314,10 +315,10 @@ public TSFetchResultsResp(TSStatus status, bool hasResultSet, bool isAlign) : th } if(__isset.moreData) { - field.Name = "moreData"; - field.Type = TType.Bool; - field.ID = 7; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp123.Name = "moreData"; + tmp123.Type = TType.Bool; + tmp123.ID = 7; + await oprot.WriteFieldBeginAsync(tmp123, cancellationToken); await oprot.WriteBoolAsync(MoreData, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -374,38 +375,38 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSFetchResultsResp("); + var tmp125 = new StringBuilder("TSFetchResultsResp("); if((Status != null)) { - sb.Append(", Status: "); - Status.ToString(sb); + tmp125.Append(", Status: "); + Status.ToString(tmp125); } - sb.Append(", HasResultSet: "); - HasResultSet.ToString(sb); - sb.Append(", IsAlign: "); - IsAlign.ToString(sb); + tmp125.Append(", HasResultSet: "); + HasResultSet.ToString(tmp125); + tmp125.Append(", IsAlign: "); + IsAlign.ToString(tmp125); if((QueryDataSet != null) && __isset.queryDataSet) { - sb.Append(", QueryDataSet: "); - QueryDataSet.ToString(sb); + tmp125.Append(", QueryDataSet: "); + QueryDataSet.ToString(tmp125); } if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) { - sb.Append(", NonAlignQueryDataSet: "); - NonAlignQueryDataSet.ToString(sb); + tmp125.Append(", NonAlignQueryDataSet: "); + NonAlignQueryDataSet.ToString(tmp125); } if((QueryResult != null) && __isset.queryResult) { - sb.Append(", QueryResult: "); - QueryResult.ToString(sb); + tmp125.Append(", QueryResult: "); + QueryResult.ToString(tmp125); } if(__isset.moreData) { - sb.Append(", MoreData: "); - MoreData.ToString(sb); + tmp125.Append(", MoreData: "); + MoreData.ToString(tmp125); } - sb.Append(')'); - return sb.ToString(); + tmp125.Append(')'); + return tmp125.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSGetOperationStatusReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSGetOperationStatusReq.cs index 7369e01..b3464ff 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSGetOperationStatusReq : TBase @@ -116,19 +117,19 @@ public TSGetOperationStatusReq(long sessionId, long queryId) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSGetOperationStatusReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp103 = new TStruct("TSGetOperationStatusReq"); + await oprot.WriteStructBeginAsync(tmp103, cancellationToken); + var tmp104 = new TField(); + tmp104.Name = "sessionId"; + tmp104.Type = TType.I64; + tmp104.ID = 1; + await oprot.WriteFieldBeginAsync(tmp104, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "queryId"; - field.Type = TType.I64; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp104.Name = "queryId"; + tmp104.Type = TType.I64; + tmp104.ID = 2; + await oprot.WriteFieldBeginAsync(tmp104, cancellationToken); await oprot.WriteI64Async(QueryId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -159,13 +160,13 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSGetOperationStatusReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); - sb.Append(", QueryId: "); - QueryId.ToString(sb); - sb.Append(')'); - return sb.ToString(); + var tmp105 = new StringBuilder("TSGetOperationStatusReq("); + tmp105.Append(", SessionId: "); + SessionId.ToString(tmp105); + tmp105.Append(", QueryId: "); + QueryId.ToString(tmp105); + tmp105.Append(')'); + return tmp105.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSGetTimeZoneResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSGetTimeZoneResp.cs index e10c613..8cba7f6 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSGetTimeZoneResp : TBase @@ -117,24 +118,24 @@ public TSGetTimeZoneResp(TSStatus status, string timeZone) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSGetTimeZoneResp"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp139 = new TStruct("TSGetTimeZoneResp"); + await oprot.WriteStructBeginAsync(tmp139, cancellationToken); + var tmp140 = new TField(); if((Status != null)) { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp140.Name = "status"; + tmp140.Type = TType.Struct; + tmp140.ID = 1; + await oprot.WriteFieldBeginAsync(tmp140, 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); + tmp140.Name = "timeZone"; + tmp140.Type = TType.String; + tmp140.ID = 2; + await oprot.WriteFieldBeginAsync(tmp140, cancellationToken); await oprot.WriteStringAsync(TimeZone, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -172,19 +173,19 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSGetTimeZoneResp("); + var tmp141 = new StringBuilder("TSGetTimeZoneResp("); if((Status != null)) { - sb.Append(", Status: "); - Status.ToString(sb); + tmp141.Append(", Status: "); + Status.ToString(tmp141); } if((TimeZone != null)) { - sb.Append(", TimeZone: "); - TimeZone.ToString(sb); + tmp141.Append(", TimeZone: "); + TimeZone.ToString(tmp141); } - sb.Append(')'); - return sb.ToString(); + tmp141.Append(')'); + return tmp141.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSGroupByQueryIntervalReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSGroupByQueryIntervalReq.cs index 5f43094..cef01a9 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSGroupByQueryIntervalReq : TBase @@ -37,6 +38,7 @@ public partial class TSGroupByQueryIntervalReq : TBase private long _interval; private int _fetchSize; private long _timeout; + private bool _isAligned; public long SessionId { get; set; } @@ -132,6 +134,19 @@ public long Timeout } } + public bool IsAligned + { + get + { + return _isAligned; + } + set + { + __isset.isAligned = true; + this._isAligned = value; + } + } + public Isset __isset; public struct Isset @@ -142,6 +157,7 @@ public struct Isset public bool interval; public bool fetchSize; public bool timeout; + public bool isAligned; } public TSGroupByQueryIntervalReq() @@ -307,6 +323,16 @@ public TSGroupByQueryIntervalReq(long sessionId, long statementId, string device await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; + case 13: + if (field.Type == TType.Bool) + { + IsAligned = await iprot.ReadBoolAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); break; @@ -352,105 +378,114 @@ public TSGroupByQueryIntervalReq(long sessionId, long statementId, string device 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); + var tmp432 = new TStruct("TSGroupByQueryIntervalReq"); + await oprot.WriteStructBeginAsync(tmp432, cancellationToken); + var tmp433 = new TField(); + tmp433.Name = "sessionId"; + tmp433.Type = TType.I64; + tmp433.ID = 1; + await oprot.WriteFieldBeginAsync(tmp433, 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); + tmp433.Name = "statementId"; + tmp433.Type = TType.I64; + tmp433.ID = 2; + await oprot.WriteFieldBeginAsync(tmp433, cancellationToken); await oprot.WriteI64Async(StatementId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if((Device != null)) { - field.Name = "device"; - field.Type = TType.String; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp433.Name = "device"; + tmp433.Type = TType.String; + tmp433.ID = 3; + await oprot.WriteFieldBeginAsync(tmp433, 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); + tmp433.Name = "measurement"; + tmp433.Type = TType.String; + tmp433.ID = 4; + await oprot.WriteFieldBeginAsync(tmp433, 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); + tmp433.Name = "dataType"; + tmp433.Type = TType.I32; + tmp433.ID = 5; + await oprot.WriteFieldBeginAsync(tmp433, 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); + tmp433.Name = "aggregationType"; + tmp433.Type = TType.I32; + tmp433.ID = 6; + await oprot.WriteFieldBeginAsync(tmp433, 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); + tmp433.Name = "database"; + tmp433.Type = TType.String; + tmp433.ID = 7; + await oprot.WriteFieldBeginAsync(tmp433, 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); + tmp433.Name = "startTime"; + tmp433.Type = TType.I64; + tmp433.ID = 8; + await oprot.WriteFieldBeginAsync(tmp433, 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); + tmp433.Name = "endTime"; + tmp433.Type = TType.I64; + tmp433.ID = 9; + await oprot.WriteFieldBeginAsync(tmp433, 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); + tmp433.Name = "interval"; + tmp433.Type = TType.I64; + tmp433.ID = 10; + await oprot.WriteFieldBeginAsync(tmp433, 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); + tmp433.Name = "fetchSize"; + tmp433.Type = TType.I32; + tmp433.ID = 11; + await oprot.WriteFieldBeginAsync(tmp433, 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); + tmp433.Name = "timeout"; + tmp433.Type = TType.I64; + tmp433.ID = 12; + await oprot.WriteFieldBeginAsync(tmp433, cancellationToken); await oprot.WriteI64Async(Timeout, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } + if(__isset.isAligned) + { + tmp433.Name = "isAligned"; + tmp433.Type = TType.Bool; + tmp433.ID = 13; + await oprot.WriteFieldBeginAsync(tmp433, cancellationToken); + await oprot.WriteBoolAsync(IsAligned, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -475,7 +510,8 @@ public override bool Equals(object that) && ((__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)))); + && ((__isset.timeout == other.__isset.timeout) && ((!__isset.timeout) || (System.Object.Equals(Timeout, other.Timeout)))) + && ((__isset.isAligned == other.__isset.isAligned) && ((!__isset.isAligned) || (System.Object.Equals(IsAligned, other.IsAligned)))); } public override int GetHashCode() { @@ -517,63 +553,72 @@ public override int GetHashCode() { { hashcode = (hashcode * 397) + Timeout.GetHashCode(); } + if(__isset.isAligned) + { + hashcode = (hashcode * 397) + IsAligned.GetHashCode(); + } } return hashcode; } public override string ToString() { - var sb = new StringBuilder("TSGroupByQueryIntervalReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); - sb.Append(", StatementId: "); - StatementId.ToString(sb); + var tmp434 = new StringBuilder("TSGroupByQueryIntervalReq("); + tmp434.Append(", SessionId: "); + SessionId.ToString(tmp434); + tmp434.Append(", StatementId: "); + StatementId.ToString(tmp434); if((Device != null)) { - sb.Append(", Device: "); - Device.ToString(sb); + tmp434.Append(", Device: "); + Device.ToString(tmp434); } if((Measurement != null)) { - sb.Append(", Measurement: "); - Measurement.ToString(sb); + tmp434.Append(", Measurement: "); + Measurement.ToString(tmp434); } - sb.Append(", DataType: "); - DataType.ToString(sb); - sb.Append(", AggregationType: "); - AggregationType.ToString(sb); + tmp434.Append(", DataType: "); + DataType.ToString(tmp434); + tmp434.Append(", AggregationType: "); + AggregationType.ToString(tmp434); if((Database != null) && __isset.database) { - sb.Append(", Database: "); - Database.ToString(sb); + tmp434.Append(", Database: "); + Database.ToString(tmp434); } if(__isset.startTime) { - sb.Append(", StartTime: "); - StartTime.ToString(sb); + tmp434.Append(", StartTime: "); + StartTime.ToString(tmp434); } if(__isset.endTime) { - sb.Append(", EndTime: "); - EndTime.ToString(sb); + tmp434.Append(", EndTime: "); + EndTime.ToString(tmp434); } if(__isset.interval) { - sb.Append(", Interval: "); - Interval.ToString(sb); + tmp434.Append(", Interval: "); + Interval.ToString(tmp434); } if(__isset.fetchSize) { - sb.Append(", FetchSize: "); - FetchSize.ToString(sb); + tmp434.Append(", FetchSize: "); + FetchSize.ToString(tmp434); } if(__isset.timeout) { - sb.Append(", Timeout: "); - Timeout.ToString(sb); + tmp434.Append(", Timeout: "); + Timeout.ToString(tmp434); + } + if(__isset.isAligned) + { + tmp434.Append(", IsAligned: "); + IsAligned.ToString(tmp434); } - sb.Append(')'); - return sb.ToString(); + tmp434.Append(')'); + return tmp434.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordReq.cs index 4ac99eb..45c00bc 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSInsertRecordReq : TBase @@ -154,13 +155,13 @@ public TSInsertRecordReq(long sessionId, string prefixPath, List measure if (field.Type == TType.List) { { - TList _list93 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list93.Count); - for(int _i94 = 0; _i94 < _list93.Count; ++_i94) + TList _list147 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list147.Count); + for(int _i148 = 0; _i148 < _list147.Count; ++_i148) { - string _elem95; - _elem95 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem95); + string _elem149; + _elem149 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem149); } await iprot.ReadListEndAsync(cancellationToken); } @@ -217,13 +218,13 @@ public TSInsertRecordReq(long sessionId, string prefixPath, List measure if (field.Type == TType.List) { { - TList _list96 = await iprot.ReadListBeginAsync(cancellationToken); - ColumnCategoryies = new List(_list96.Count); - for(int _i97 = 0; _i97 < _list96.Count; ++_i97) + TList _list150 = await iprot.ReadListBeginAsync(cancellationToken); + ColumnCategoryies = new List(_list150.Count); + for(int _i151 = 0; _i151 < _list150.Count; ++_i151) { - sbyte _elem98; - _elem98 = await iprot.ReadByteAsync(cancellationToken); - ColumnCategoryies.Add(_elem98); + sbyte _elem152; + _elem152 = await iprot.ReadByteAsync(cancellationToken); + ColumnCategoryies.Add(_elem152); } await iprot.ReadListEndAsync(cancellationToken); } @@ -274,35 +275,35 @@ public TSInsertRecordReq(long sessionId, string prefixPath, List measure oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSInsertRecordReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp153 = new TStruct("TSInsertRecordReq"); + await oprot.WriteStructBeginAsync(tmp153, cancellationToken); + var tmp154 = new TField(); + tmp154.Name = "sessionId"; + tmp154.Type = TType.I64; + tmp154.ID = 1; + await oprot.WriteFieldBeginAsync(tmp154, 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); + tmp154.Name = "prefixPath"; + tmp154.Type = TType.String; + tmp154.ID = 2; + await oprot.WriteFieldBeginAsync(tmp154, 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); + tmp154.Name = "measurements"; + tmp154.Type = TType.List; + tmp154.ID = 3; + await oprot.WriteFieldBeginAsync(tmp154, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter99 in Measurements) + foreach (string _iter155 in Measurements) { - await oprot.WriteStringAsync(_iter99, cancellationToken); + await oprot.WriteStringAsync(_iter155, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -310,48 +311,48 @@ public TSInsertRecordReq(long sessionId, string prefixPath, List measure } if((Values != null)) { - field.Name = "values"; - field.Type = TType.String; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp154.Name = "values"; + tmp154.Type = TType.String; + tmp154.ID = 4; + await oprot.WriteFieldBeginAsync(tmp154, 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); + tmp154.Name = "timestamp"; + tmp154.Type = TType.I64; + tmp154.ID = 5; + await oprot.WriteFieldBeginAsync(tmp154, cancellationToken); await oprot.WriteI64Async(Timestamp, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if(__isset.isAligned) { - field.Name = "isAligned"; - field.Type = TType.Bool; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp154.Name = "isAligned"; + tmp154.Type = TType.Bool; + tmp154.ID = 6; + await oprot.WriteFieldBeginAsync(tmp154, cancellationToken); await oprot.WriteBoolAsync(IsAligned, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.isWriteToTable) { - field.Name = "isWriteToTable"; - field.Type = TType.Bool; - field.ID = 7; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp154.Name = "isWriteToTable"; + tmp154.Type = TType.Bool; + tmp154.ID = 7; + await oprot.WriteFieldBeginAsync(tmp154, cancellationToken); await oprot.WriteBoolAsync(IsWriteToTable, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((ColumnCategoryies != null) && __isset.columnCategoryies) { - field.Name = "columnCategoryies"; - field.Type = TType.List; - field.ID = 8; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp154.Name = "columnCategoryies"; + tmp154.Type = TType.List; + tmp154.ID = 8; + await oprot.WriteFieldBeginAsync(tmp154, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Byte, ColumnCategoryies.Count), cancellationToken); - foreach (sbyte _iter100 in ColumnCategoryies) + foreach (sbyte _iter156 in ColumnCategoryies) { - await oprot.WriteByteAsync(_iter100, cancellationToken); + await oprot.WriteByteAsync(_iter156, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -415,43 +416,43 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSInsertRecordReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp157 = new StringBuilder("TSInsertRecordReq("); + tmp157.Append(", SessionId: "); + SessionId.ToString(tmp157); if((PrefixPath != null)) { - sb.Append(", PrefixPath: "); - PrefixPath.ToString(sb); + tmp157.Append(", PrefixPath: "); + PrefixPath.ToString(tmp157); } if((Measurements != null)) { - sb.Append(", Measurements: "); - Measurements.ToString(sb); + tmp157.Append(", Measurements: "); + Measurements.ToString(tmp157); } if((Values != null)) { - sb.Append(", Values: "); - Values.ToString(sb); + tmp157.Append(", Values: "); + Values.ToString(tmp157); } - sb.Append(", Timestamp: "); - Timestamp.ToString(sb); + tmp157.Append(", Timestamp: "); + Timestamp.ToString(tmp157); if(__isset.isAligned) { - sb.Append(", IsAligned: "); - IsAligned.ToString(sb); + tmp157.Append(", IsAligned: "); + IsAligned.ToString(tmp157); } if(__isset.isWriteToTable) { - sb.Append(", IsWriteToTable: "); - IsWriteToTable.ToString(sb); + tmp157.Append(", IsWriteToTable: "); + IsWriteToTable.ToString(tmp157); } if((ColumnCategoryies != null) && __isset.columnCategoryies) { - sb.Append(", ColumnCategoryies: "); - ColumnCategoryies.ToString(sb); + tmp157.Append(", ColumnCategoryies: "); + ColumnCategoryies.ToString(tmp157); } - sb.Append(')'); - return sb.ToString(); + tmp157.Append(')'); + return tmp157.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsOfOneDeviceReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsOfOneDeviceReq.cs index 9633c5a..6080f82 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSInsertRecordsOfOneDeviceReq : TBase @@ -124,23 +125,23 @@ public TSInsertRecordsOfOneDeviceReq(long sessionId, string prefixPath, List>(_list178.Count); - for(int _i179 = 0; _i179 < _list178.Count; ++_i179) + TList _list247 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list247.Count); + for(int _i248 = 0; _i248 < _list247.Count; ++_i248) { - List _elem180; + List _elem249; { - TList _list181 = await iprot.ReadListBeginAsync(cancellationToken); - _elem180 = new List(_list181.Count); - for(int _i182 = 0; _i182 < _list181.Count; ++_i182) + TList _list250 = await iprot.ReadListBeginAsync(cancellationToken); + _elem249 = new List(_list250.Count); + for(int _i251 = 0; _i251 < _list250.Count; ++_i251) { - string _elem183; - _elem183 = await iprot.ReadStringAsync(cancellationToken); - _elem180.Add(_elem183); + string _elem252; + _elem252 = await iprot.ReadStringAsync(cancellationToken); + _elem249.Add(_elem252); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem180); + MeasurementsList.Add(_elem249); } await iprot.ReadListEndAsync(cancellationToken); } @@ -155,13 +156,13 @@ public TSInsertRecordsOfOneDeviceReq(long sessionId, string prefixPath, List(_list184.Count); - for(int _i185 = 0; _i185 < _list184.Count; ++_i185) + TList _list253 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List(_list253.Count); + for(int _i254 = 0; _i254 < _list253.Count; ++_i254) { - byte[] _elem186; - _elem186 = await iprot.ReadBinaryAsync(cancellationToken); - ValuesList.Add(_elem186); + byte[] _elem255; + _elem255 = await iprot.ReadBinaryAsync(cancellationToken); + ValuesList.Add(_elem255); } await iprot.ReadListEndAsync(cancellationToken); } @@ -176,13 +177,13 @@ public TSInsertRecordsOfOneDeviceReq(long sessionId, string prefixPath, List(_list187.Count); - for(int _i188 = 0; _i188 < _list187.Count; ++_i188) + TList _list256 = await iprot.ReadListBeginAsync(cancellationToken); + Timestamps = new List(_list256.Count); + for(int _i257 = 0; _i257 < _list256.Count; ++_i257) { - long _elem189; - _elem189 = await iprot.ReadI64Async(cancellationToken); - Timestamps.Add(_elem189); + long _elem258; + _elem258 = await iprot.ReadI64Async(cancellationToken); + Timestamps.Add(_elem258); } await iprot.ReadListEndAsync(cancellationToken); } @@ -244,39 +245,39 @@ public TSInsertRecordsOfOneDeviceReq(long sessionId, string prefixPath, List _iter190 in MeasurementsList) + foreach (List _iter261 in MeasurementsList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter190.Count), cancellationToken); - foreach (string _iter191 in _iter190) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter261.Count), cancellationToken); + foreach (string _iter262 in _iter261) { - await oprot.WriteStringAsync(_iter191, cancellationToken); + await oprot.WriteStringAsync(_iter262, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -287,15 +288,15 @@ public TSInsertRecordsOfOneDeviceReq(long sessionId, string prefixPath, List prefixPaths, List(_list157.Count); - for(int _i158 = 0; _i158 < _list157.Count; ++_i158) + TList _list223 = await iprot.ReadListBeginAsync(cancellationToken); + PrefixPaths = new List(_list223.Count); + for(int _i224 = 0; _i224 < _list223.Count; ++_i224) { - string _elem159; - _elem159 = await iprot.ReadStringAsync(cancellationToken); - PrefixPaths.Add(_elem159); + string _elem225; + _elem225 = await iprot.ReadStringAsync(cancellationToken); + PrefixPaths.Add(_elem225); } await iprot.ReadListEndAsync(cancellationToken); } @@ -134,23 +135,23 @@ public TSInsertRecordsReq(long sessionId, List prefixPaths, List>(_list160.Count); - for(int _i161 = 0; _i161 < _list160.Count; ++_i161) + TList _list226 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list226.Count); + for(int _i227 = 0; _i227 < _list226.Count; ++_i227) { - List _elem162; + List _elem228; { - TList _list163 = await iprot.ReadListBeginAsync(cancellationToken); - _elem162 = new List(_list163.Count); - for(int _i164 = 0; _i164 < _list163.Count; ++_i164) + TList _list229 = await iprot.ReadListBeginAsync(cancellationToken); + _elem228 = new List(_list229.Count); + for(int _i230 = 0; _i230 < _list229.Count; ++_i230) { - string _elem165; - _elem165 = await iprot.ReadStringAsync(cancellationToken); - _elem162.Add(_elem165); + string _elem231; + _elem231 = await iprot.ReadStringAsync(cancellationToken); + _elem228.Add(_elem231); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem162); + MeasurementsList.Add(_elem228); } await iprot.ReadListEndAsync(cancellationToken); } @@ -165,13 +166,13 @@ public TSInsertRecordsReq(long sessionId, List prefixPaths, List(_list166.Count); - for(int _i167 = 0; _i167 < _list166.Count; ++_i167) + TList _list232 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List(_list232.Count); + for(int _i233 = 0; _i233 < _list232.Count; ++_i233) { - byte[] _elem168; - _elem168 = await iprot.ReadBinaryAsync(cancellationToken); - ValuesList.Add(_elem168); + byte[] _elem234; + _elem234 = await iprot.ReadBinaryAsync(cancellationToken); + ValuesList.Add(_elem234); } await iprot.ReadListEndAsync(cancellationToken); } @@ -186,13 +187,13 @@ public TSInsertRecordsReq(long sessionId, List prefixPaths, List(_list169.Count); - for(int _i170 = 0; _i170 < _list169.Count; ++_i170) + TList _list235 = await iprot.ReadListBeginAsync(cancellationToken); + Timestamps = new List(_list235.Count); + for(int _i236 = 0; _i236 < _list235.Count; ++_i236) { - long _elem171; - _elem171 = await iprot.ReadI64Async(cancellationToken); - Timestamps.Add(_elem171); + long _elem237; + _elem237 = await iprot.ReadI64Async(cancellationToken); + Timestamps.Add(_elem237); } await iprot.ReadListEndAsync(cancellationToken); } @@ -254,26 +255,26 @@ public TSInsertRecordsReq(long sessionId, List prefixPaths, List prefixPaths, List _iter173 in MeasurementsList) + foreach (List _iter241 in MeasurementsList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter173.Count), cancellationToken); - foreach (string _iter174 in _iter173) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter241.Count), cancellationToken); + foreach (string _iter242 in _iter241) { - await oprot.WriteStringAsync(_iter174, cancellationToken); + await oprot.WriteStringAsync(_iter242, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -304,15 +305,15 @@ public TSInsertRecordsReq(long sessionId, List prefixPaths, List prefixPaths, List prefixPaths, List m if (field.Type == TType.List) { { - TList _list102 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list102.Count); - for(int _i103 = 0; _i103 < _list102.Count; ++_i103) + TList _list159 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list159.Count); + for(int _i160 = 0; _i160 < _list159.Count; ++_i160) { - string _elem104; - _elem104 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem104); + string _elem161; + _elem161 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem161); } await iprot.ReadListEndAsync(cancellationToken); } @@ -160,13 +161,13 @@ public TSInsertStringRecordReq(long sessionId, string prefixPath, List m if (field.Type == TType.List) { { - TList _list105 = await iprot.ReadListBeginAsync(cancellationToken); - Values = new List(_list105.Count); - for(int _i106 = 0; _i106 < _list105.Count; ++_i106) + TList _list162 = await iprot.ReadListBeginAsync(cancellationToken); + Values = new List(_list162.Count); + for(int _i163 = 0; _i163 < _list162.Count; ++_i163) { - string _elem107; - _elem107 = await iprot.ReadStringAsync(cancellationToken); - Values.Add(_elem107); + string _elem164; + _elem164 = await iprot.ReadStringAsync(cancellationToken); + Values.Add(_elem164); } await iprot.ReadListEndAsync(cancellationToken); } @@ -249,35 +250,35 @@ public TSInsertStringRecordReq(long sessionId, string prefixPath, List m oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSInsertStringRecordReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp165 = new TStruct("TSInsertStringRecordReq"); + await oprot.WriteStructBeginAsync(tmp165, cancellationToken); + var tmp166 = new TField(); + tmp166.Name = "sessionId"; + tmp166.Type = TType.I64; + tmp166.ID = 1; + await oprot.WriteFieldBeginAsync(tmp166, 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); + tmp166.Name = "prefixPath"; + tmp166.Type = TType.String; + tmp166.ID = 2; + await oprot.WriteFieldBeginAsync(tmp166, 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); + tmp166.Name = "measurements"; + tmp166.Type = TType.List; + tmp166.ID = 3; + await oprot.WriteFieldBeginAsync(tmp166, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter108 in Measurements) + foreach (string _iter167 in Measurements) { - await oprot.WriteStringAsync(_iter108, cancellationToken); + await oprot.WriteStringAsync(_iter167, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -285,41 +286,41 @@ public TSInsertStringRecordReq(long sessionId, string prefixPath, List m } if((Values != null)) { - field.Name = "values"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp166.Name = "values"; + tmp166.Type = TType.List; + tmp166.ID = 4; + await oprot.WriteFieldBeginAsync(tmp166, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Values.Count), cancellationToken); - foreach (string _iter109 in Values) + foreach (string _iter168 in Values) { - await oprot.WriteStringAsync(_iter109, cancellationToken); + await oprot.WriteStringAsync(_iter168, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - field.Name = "timestamp"; - field.Type = TType.I64; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp166.Name = "timestamp"; + tmp166.Type = TType.I64; + tmp166.ID = 5; + await oprot.WriteFieldBeginAsync(tmp166, cancellationToken); await oprot.WriteI64Async(Timestamp, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if(__isset.isAligned) { - field.Name = "isAligned"; - field.Type = TType.Bool; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp166.Name = "isAligned"; + tmp166.Type = TType.Bool; + tmp166.ID = 6; + await oprot.WriteFieldBeginAsync(tmp166, cancellationToken); await oprot.WriteBoolAsync(IsAligned, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.timeout) { - field.Name = "timeout"; - field.Type = TType.I64; - field.ID = 7; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp166.Name = "timeout"; + tmp166.Type = TType.I64; + tmp166.ID = 7; + await oprot.WriteFieldBeginAsync(tmp166, cancellationToken); await oprot.WriteI64Async(Timeout, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -376,38 +377,38 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSInsertStringRecordReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp169 = new StringBuilder("TSInsertStringRecordReq("); + tmp169.Append(", SessionId: "); + SessionId.ToString(tmp169); if((PrefixPath != null)) { - sb.Append(", PrefixPath: "); - PrefixPath.ToString(sb); + tmp169.Append(", PrefixPath: "); + PrefixPath.ToString(tmp169); } if((Measurements != null)) { - sb.Append(", Measurements: "); - Measurements.ToString(sb); + tmp169.Append(", Measurements: "); + Measurements.ToString(tmp169); } if((Values != null)) { - sb.Append(", Values: "); - Values.ToString(sb); + tmp169.Append(", Values: "); + Values.ToString(tmp169); } - sb.Append(", Timestamp: "); - Timestamp.ToString(sb); + tmp169.Append(", Timestamp: "); + Timestamp.ToString(tmp169); if(__isset.isAligned) { - sb.Append(", IsAligned: "); - IsAligned.ToString(sb); + tmp169.Append(", IsAligned: "); + IsAligned.ToString(tmp169); } if(__isset.timeout) { - sb.Append(", Timeout: "); - Timeout.ToString(sb); + tmp169.Append(", Timeout: "); + Timeout.ToString(tmp169); } - sb.Append(')'); - return sb.ToString(); + tmp169.Append(')'); + return tmp169.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsOfOneDeviceReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsOfOneDeviceReq.cs index 76e5443..9788639 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSInsertStringRecordsOfOneDeviceReq : TBase @@ -124,23 +125,23 @@ public TSInsertStringRecordsOfOneDeviceReq(long sessionId, string prefixPath, Li if (field.Type == TType.List) { { - TList _list195 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementsList = new List>(_list195.Count); - for(int _i196 = 0; _i196 < _list195.Count; ++_i196) + TList _list267 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list267.Count); + for(int _i268 = 0; _i268 < _list267.Count; ++_i268) { - List _elem197; + List _elem269; { - TList _list198 = await iprot.ReadListBeginAsync(cancellationToken); - _elem197 = new List(_list198.Count); - for(int _i199 = 0; _i199 < _list198.Count; ++_i199) + TList _list270 = await iprot.ReadListBeginAsync(cancellationToken); + _elem269 = new List(_list270.Count); + for(int _i271 = 0; _i271 < _list270.Count; ++_i271) { - string _elem200; - _elem200 = await iprot.ReadStringAsync(cancellationToken); - _elem197.Add(_elem200); + string _elem272; + _elem272 = await iprot.ReadStringAsync(cancellationToken); + _elem269.Add(_elem272); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem197); + MeasurementsList.Add(_elem269); } await iprot.ReadListEndAsync(cancellationToken); } @@ -155,23 +156,23 @@ public TSInsertStringRecordsOfOneDeviceReq(long sessionId, string prefixPath, Li if (field.Type == TType.List) { { - TList _list201 = await iprot.ReadListBeginAsync(cancellationToken); - ValuesList = new List>(_list201.Count); - for(int _i202 = 0; _i202 < _list201.Count; ++_i202) + TList _list273 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List>(_list273.Count); + for(int _i274 = 0; _i274 < _list273.Count; ++_i274) { - List _elem203; + List _elem275; { - TList _list204 = await iprot.ReadListBeginAsync(cancellationToken); - _elem203 = new List(_list204.Count); - for(int _i205 = 0; _i205 < _list204.Count; ++_i205) + TList _list276 = await iprot.ReadListBeginAsync(cancellationToken); + _elem275 = new List(_list276.Count); + for(int _i277 = 0; _i277 < _list276.Count; ++_i277) { - string _elem206; - _elem206 = await iprot.ReadStringAsync(cancellationToken); - _elem203.Add(_elem206); + string _elem278; + _elem278 = await iprot.ReadStringAsync(cancellationToken); + _elem275.Add(_elem278); } await iprot.ReadListEndAsync(cancellationToken); } - ValuesList.Add(_elem203); + ValuesList.Add(_elem275); } await iprot.ReadListEndAsync(cancellationToken); } @@ -186,13 +187,13 @@ public TSInsertStringRecordsOfOneDeviceReq(long sessionId, string prefixPath, Li if (field.Type == TType.List) { { - TList _list207 = await iprot.ReadListBeginAsync(cancellationToken); - Timestamps = new List(_list207.Count); - for(int _i208 = 0; _i208 < _list207.Count; ++_i208) + TList _list279 = await iprot.ReadListBeginAsync(cancellationToken); + Timestamps = new List(_list279.Count); + for(int _i280 = 0; _i280 < _list279.Count; ++_i280) { - long _elem209; - _elem209 = await iprot.ReadI64Async(cancellationToken); - Timestamps.Add(_elem209); + long _elem281; + _elem281 = await iprot.ReadI64Async(cancellationToken); + Timestamps.Add(_elem281); } await iprot.ReadListEndAsync(cancellationToken); } @@ -254,39 +255,39 @@ public TSInsertStringRecordsOfOneDeviceReq(long sessionId, string prefixPath, Li oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSInsertStringRecordsOfOneDeviceReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp282 = new TStruct("TSInsertStringRecordsOfOneDeviceReq"); + await oprot.WriteStructBeginAsync(tmp282, cancellationToken); + var tmp283 = new TField(); + tmp283.Name = "sessionId"; + tmp283.Type = TType.I64; + tmp283.ID = 1; + await oprot.WriteFieldBeginAsync(tmp283, 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); + tmp283.Name = "prefixPath"; + tmp283.Type = TType.String; + tmp283.ID = 2; + await oprot.WriteFieldBeginAsync(tmp283, 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); + tmp283.Name = "measurementsList"; + tmp283.Type = TType.List; + tmp283.ID = 3; + await oprot.WriteFieldBeginAsync(tmp283, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.List, MeasurementsList.Count), cancellationToken); - foreach (List _iter210 in MeasurementsList) + foreach (List _iter284 in MeasurementsList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter210.Count), cancellationToken); - foreach (string _iter211 in _iter210) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter284.Count), cancellationToken); + foreach (string _iter285 in _iter284) { - await oprot.WriteStringAsync(_iter211, cancellationToken); + await oprot.WriteStringAsync(_iter285, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -297,19 +298,19 @@ public TSInsertStringRecordsOfOneDeviceReq(long sessionId, string prefixPath, Li } if((ValuesList != null)) { - field.Name = "valuesList"; - field.Type = TType.List; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp283.Name = "valuesList"; + tmp283.Type = TType.List; + tmp283.ID = 4; + await oprot.WriteFieldBeginAsync(tmp283, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.List, ValuesList.Count), cancellationToken); - foreach (List _iter212 in ValuesList) + foreach (List _iter286 in ValuesList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter212.Count), cancellationToken); - foreach (string _iter213 in _iter212) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter286.Count), cancellationToken); + foreach (string _iter287 in _iter286) { - await oprot.WriteStringAsync(_iter213, cancellationToken); + await oprot.WriteStringAsync(_iter287, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -320,15 +321,15 @@ public TSInsertStringRecordsOfOneDeviceReq(long sessionId, string prefixPath, Li } if((Timestamps != null)) { - field.Name = "timestamps"; - field.Type = TType.List; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp283.Name = "timestamps"; + tmp283.Type = TType.List; + tmp283.ID = 5; + await oprot.WriteFieldBeginAsync(tmp283, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I64, Timestamps.Count), cancellationToken); - foreach (long _iter214 in Timestamps) + foreach (long _iter288 in Timestamps) { - await oprot.WriteI64Async(_iter214, cancellationToken); + await oprot.WriteI64Async(_iter288, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -336,10 +337,10 @@ public TSInsertStringRecordsOfOneDeviceReq(long sessionId, string prefixPath, Li } if(__isset.isAligned) { - field.Name = "isAligned"; - field.Type = TType.Bool; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp283.Name = "isAligned"; + tmp283.Type = TType.Bool; + tmp283.ID = 6; + await oprot.WriteFieldBeginAsync(tmp283, cancellationToken); await oprot.WriteBoolAsync(IsAligned, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -394,36 +395,36 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSInsertStringRecordsOfOneDeviceReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp289 = new StringBuilder("TSInsertStringRecordsOfOneDeviceReq("); + tmp289.Append(", SessionId: "); + SessionId.ToString(tmp289); if((PrefixPath != null)) { - sb.Append(", PrefixPath: "); - PrefixPath.ToString(sb); + tmp289.Append(", PrefixPath: "); + PrefixPath.ToString(tmp289); } if((MeasurementsList != null)) { - sb.Append(", MeasurementsList: "); - MeasurementsList.ToString(sb); + tmp289.Append(", MeasurementsList: "); + MeasurementsList.ToString(tmp289); } if((ValuesList != null)) { - sb.Append(", ValuesList: "); - ValuesList.ToString(sb); + tmp289.Append(", ValuesList: "); + ValuesList.ToString(tmp289); } if((Timestamps != null)) { - sb.Append(", Timestamps: "); - Timestamps.ToString(sb); + tmp289.Append(", Timestamps: "); + Timestamps.ToString(tmp289); } if(__isset.isAligned) { - sb.Append(", IsAligned: "); - IsAligned.ToString(sb); + tmp289.Append(", IsAligned: "); + IsAligned.ToString(tmp289); } - sb.Append(')'); - return sb.ToString(); + tmp289.Append(')'); + return tmp289.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsReq.cs index 1fca025..60dcb0f 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSInsertStringRecordsReq : TBase @@ -113,13 +114,13 @@ public TSInsertStringRecordsReq(long sessionId, List prefixPaths, List(_list216.Count); - for(int _i217 = 0; _i217 < _list216.Count; ++_i217) + TList _list291 = await iprot.ReadListBeginAsync(cancellationToken); + PrefixPaths = new List(_list291.Count); + for(int _i292 = 0; _i292 < _list291.Count; ++_i292) { - string _elem218; - _elem218 = await iprot.ReadStringAsync(cancellationToken); - PrefixPaths.Add(_elem218); + string _elem293; + _elem293 = await iprot.ReadStringAsync(cancellationToken); + PrefixPaths.Add(_elem293); } await iprot.ReadListEndAsync(cancellationToken); } @@ -134,23 +135,23 @@ public TSInsertStringRecordsReq(long sessionId, List prefixPaths, List>(_list219.Count); - for(int _i220 = 0; _i220 < _list219.Count; ++_i220) + TList _list294 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list294.Count); + for(int _i295 = 0; _i295 < _list294.Count; ++_i295) { - List _elem221; + List _elem296; { - TList _list222 = await iprot.ReadListBeginAsync(cancellationToken); - _elem221 = new List(_list222.Count); - for(int _i223 = 0; _i223 < _list222.Count; ++_i223) + TList _list297 = await iprot.ReadListBeginAsync(cancellationToken); + _elem296 = new List(_list297.Count); + for(int _i298 = 0; _i298 < _list297.Count; ++_i298) { - string _elem224; - _elem224 = await iprot.ReadStringAsync(cancellationToken); - _elem221.Add(_elem224); + string _elem299; + _elem299 = await iprot.ReadStringAsync(cancellationToken); + _elem296.Add(_elem299); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem221); + MeasurementsList.Add(_elem296); } await iprot.ReadListEndAsync(cancellationToken); } @@ -165,23 +166,23 @@ public TSInsertStringRecordsReq(long sessionId, List prefixPaths, List>(_list225.Count); - for(int _i226 = 0; _i226 < _list225.Count; ++_i226) + TList _list300 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List>(_list300.Count); + for(int _i301 = 0; _i301 < _list300.Count; ++_i301) { - List _elem227; + List _elem302; { - TList _list228 = await iprot.ReadListBeginAsync(cancellationToken); - _elem227 = new List(_list228.Count); - for(int _i229 = 0; _i229 < _list228.Count; ++_i229) + TList _list303 = await iprot.ReadListBeginAsync(cancellationToken); + _elem302 = new List(_list303.Count); + for(int _i304 = 0; _i304 < _list303.Count; ++_i304) { - string _elem230; - _elem230 = await iprot.ReadStringAsync(cancellationToken); - _elem227.Add(_elem230); + string _elem305; + _elem305 = await iprot.ReadStringAsync(cancellationToken); + _elem302.Add(_elem305); } await iprot.ReadListEndAsync(cancellationToken); } - ValuesList.Add(_elem227); + ValuesList.Add(_elem302); } await iprot.ReadListEndAsync(cancellationToken); } @@ -196,13 +197,13 @@ public TSInsertStringRecordsReq(long sessionId, List prefixPaths, List(_list231.Count); - for(int _i232 = 0; _i232 < _list231.Count; ++_i232) + TList _list306 = await iprot.ReadListBeginAsync(cancellationToken); + Timestamps = new List(_list306.Count); + for(int _i307 = 0; _i307 < _list306.Count; ++_i307) { - long _elem233; - _elem233 = await iprot.ReadI64Async(cancellationToken); - Timestamps.Add(_elem233); + long _elem308; + _elem308 = await iprot.ReadI64Async(cancellationToken); + Timestamps.Add(_elem308); } await iprot.ReadListEndAsync(cancellationToken); } @@ -264,26 +265,26 @@ public TSInsertStringRecordsReq(long sessionId, List prefixPaths, List prefixPaths, List _iter235 in MeasurementsList) + foreach (List _iter312 in MeasurementsList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter235.Count), cancellationToken); - foreach (string _iter236 in _iter235) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter312.Count), cancellationToken); + foreach (string _iter313 in _iter312) { - await oprot.WriteStringAsync(_iter236, cancellationToken); + await oprot.WriteStringAsync(_iter313, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -314,19 +315,19 @@ public TSInsertStringRecordsReq(long sessionId, List prefixPaths, List _iter237 in ValuesList) + foreach (List _iter314 in ValuesList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter237.Count), cancellationToken); - foreach (string _iter238 in _iter237) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter314.Count), cancellationToken); + foreach (string _iter315 in _iter314) { - await oprot.WriteStringAsync(_iter238, cancellationToken); + await oprot.WriteStringAsync(_iter315, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -337,15 +338,15 @@ public TSInsertStringRecordsReq(long sessionId, List prefixPaths, List prefixPaths, List measure if (field.Type == TType.List) { { - TList _list111 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list111.Count); - for(int _i112 = 0; _i112 < _list111.Count; ++_i112) + TList _list171 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list171.Count); + for(int _i172 = 0; _i172 < _list171.Count; ++_i172) { - string _elem113; - _elem113 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem113); + string _elem173; + _elem173 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem173); } await iprot.ReadListEndAsync(cancellationToken); } @@ -205,13 +206,13 @@ public TSInsertTabletReq(long sessionId, string prefixPath, List measure if (field.Type == TType.List) { { - TList _list114 = await iprot.ReadListBeginAsync(cancellationToken); - Types = new List(_list114.Count); - for(int _i115 = 0; _i115 < _list114.Count; ++_i115) + TList _list174 = await iprot.ReadListBeginAsync(cancellationToken); + Types = new List(_list174.Count); + for(int _i175 = 0; _i175 < _list174.Count; ++_i175) { - int _elem116; - _elem116 = await iprot.ReadI32Async(cancellationToken); - Types.Add(_elem116); + int _elem176; + _elem176 = await iprot.ReadI32Async(cancellationToken); + Types.Add(_elem176); } await iprot.ReadListEndAsync(cancellationToken); } @@ -257,13 +258,13 @@ public TSInsertTabletReq(long sessionId, string prefixPath, List measure if (field.Type == TType.List) { { - TList _list117 = await iprot.ReadListBeginAsync(cancellationToken); - ColumnCategories = new List(_list117.Count); - for(int _i118 = 0; _i118 < _list117.Count; ++_i118) + TList _list177 = await iprot.ReadListBeginAsync(cancellationToken); + ColumnCategories = new List(_list177.Count); + for(int _i178 = 0; _i178 < _list177.Count; ++_i178) { - sbyte _elem119; - _elem119 = await iprot.ReadByteAsync(cancellationToken); - ColumnCategories.Add(_elem119); + sbyte _elem179; + _elem179 = await iprot.ReadByteAsync(cancellationToken); + ColumnCategories.Add(_elem179); } await iprot.ReadListEndAsync(cancellationToken); } @@ -322,35 +323,35 @@ public TSInsertTabletReq(long sessionId, string prefixPath, List measure oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSInsertTabletReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp180 = new TStruct("TSInsertTabletReq"); + await oprot.WriteStructBeginAsync(tmp180, cancellationToken); + var tmp181 = new TField(); + tmp181.Name = "sessionId"; + tmp181.Type = TType.I64; + tmp181.ID = 1; + await oprot.WriteFieldBeginAsync(tmp181, 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); + tmp181.Name = "prefixPath"; + tmp181.Type = TType.String; + tmp181.ID = 2; + await oprot.WriteFieldBeginAsync(tmp181, 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); + tmp181.Name = "measurements"; + tmp181.Type = TType.List; + tmp181.ID = 3; + await oprot.WriteFieldBeginAsync(tmp181, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter120 in Measurements) + foreach (string _iter182 in Measurements) { - await oprot.WriteStringAsync(_iter120, cancellationToken); + await oprot.WriteStringAsync(_iter182, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -358,73 +359,73 @@ public TSInsertTabletReq(long sessionId, string prefixPath, List measure } if((Values != null)) { - field.Name = "values"; - field.Type = TType.String; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp181.Name = "values"; + tmp181.Type = TType.String; + tmp181.ID = 4; + await oprot.WriteFieldBeginAsync(tmp181, 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); + tmp181.Name = "timestamps"; + tmp181.Type = TType.String; + tmp181.ID = 5; + await oprot.WriteFieldBeginAsync(tmp181, 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); + tmp181.Name = "types"; + tmp181.Type = TType.List; + tmp181.ID = 6; + await oprot.WriteFieldBeginAsync(tmp181, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, Types.Count), cancellationToken); - foreach (int _iter121 in Types) + foreach (int _iter183 in Types) { - await oprot.WriteI32Async(_iter121, cancellationToken); + await oprot.WriteI32Async(_iter183, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - field.Name = "size"; - field.Type = TType.I32; - field.ID = 7; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp181.Name = "size"; + tmp181.Type = TType.I32; + tmp181.ID = 7; + await oprot.WriteFieldBeginAsync(tmp181, cancellationToken); await oprot.WriteI32Async(Size, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if(__isset.isAligned) { - field.Name = "isAligned"; - field.Type = TType.Bool; - field.ID = 8; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp181.Name = "isAligned"; + tmp181.Type = TType.Bool; + tmp181.ID = 8; + await oprot.WriteFieldBeginAsync(tmp181, cancellationToken); await oprot.WriteBoolAsync(IsAligned, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.writeToTable) { - field.Name = "writeToTable"; - field.Type = TType.Bool; - field.ID = 9; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp181.Name = "writeToTable"; + tmp181.Type = TType.Bool; + tmp181.ID = 9; + await oprot.WriteFieldBeginAsync(tmp181, cancellationToken); await oprot.WriteBoolAsync(WriteToTable, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((ColumnCategories != null) && __isset.columnCategories) { - field.Name = "columnCategories"; - field.Type = TType.List; - field.ID = 10; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp181.Name = "columnCategories"; + tmp181.Type = TType.List; + tmp181.ID = 10; + await oprot.WriteFieldBeginAsync(tmp181, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Byte, ColumnCategories.Count), cancellationToken); - foreach (sbyte _iter122 in ColumnCategories) + foreach (sbyte _iter184 in ColumnCategories) { - await oprot.WriteByteAsync(_iter122, cancellationToken); + await oprot.WriteByteAsync(_iter184, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -498,53 +499,53 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSInsertTabletReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp185 = new StringBuilder("TSInsertTabletReq("); + tmp185.Append(", SessionId: "); + SessionId.ToString(tmp185); if((PrefixPath != null)) { - sb.Append(", PrefixPath: "); - PrefixPath.ToString(sb); + tmp185.Append(", PrefixPath: "); + PrefixPath.ToString(tmp185); } if((Measurements != null)) { - sb.Append(", Measurements: "); - Measurements.ToString(sb); + tmp185.Append(", Measurements: "); + Measurements.ToString(tmp185); } if((Values != null)) { - sb.Append(", Values: "); - Values.ToString(sb); + tmp185.Append(", Values: "); + Values.ToString(tmp185); } if((Timestamps != null)) { - sb.Append(", Timestamps: "); - Timestamps.ToString(sb); + tmp185.Append(", Timestamps: "); + Timestamps.ToString(tmp185); } if((Types != null)) { - sb.Append(", Types: "); - Types.ToString(sb); + tmp185.Append(", Types: "); + Types.ToString(tmp185); } - sb.Append(", Size: "); - Size.ToString(sb); + tmp185.Append(", Size: "); + Size.ToString(tmp185); if(__isset.isAligned) { - sb.Append(", IsAligned: "); - IsAligned.ToString(sb); + tmp185.Append(", IsAligned: "); + IsAligned.ToString(tmp185); } if(__isset.writeToTable) { - sb.Append(", WriteToTable: "); - WriteToTable.ToString(sb); + tmp185.Append(", WriteToTable: "); + WriteToTable.ToString(tmp185); } if((ColumnCategories != null) && __isset.columnCategories) { - sb.Append(", ColumnCategories: "); - ColumnCategories.ToString(sb); + tmp185.Append(", ColumnCategories: "); + ColumnCategories.ToString(tmp185); } - sb.Append(')'); - return sb.ToString(); + tmp185.Append(')'); + return tmp185.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletsReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletsReq.cs index 4673f35..499a5db 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSInsertTabletsReq : TBase @@ -121,13 +122,13 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List(_list124.Count); - for(int _i125 = 0; _i125 < _list124.Count; ++_i125) + TList _list187 = await iprot.ReadListBeginAsync(cancellationToken); + PrefixPaths = new List(_list187.Count); + for(int _i188 = 0; _i188 < _list187.Count; ++_i188) { - string _elem126; - _elem126 = await iprot.ReadStringAsync(cancellationToken); - PrefixPaths.Add(_elem126); + string _elem189; + _elem189 = await iprot.ReadStringAsync(cancellationToken); + PrefixPaths.Add(_elem189); } await iprot.ReadListEndAsync(cancellationToken); } @@ -142,23 +143,23 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List>(_list127.Count); - for(int _i128 = 0; _i128 < _list127.Count; ++_i128) + TList _list190 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list190.Count); + for(int _i191 = 0; _i191 < _list190.Count; ++_i191) { - List _elem129; + List _elem192; { - TList _list130 = await iprot.ReadListBeginAsync(cancellationToken); - _elem129 = new List(_list130.Count); - for(int _i131 = 0; _i131 < _list130.Count; ++_i131) + TList _list193 = await iprot.ReadListBeginAsync(cancellationToken); + _elem192 = new List(_list193.Count); + for(int _i194 = 0; _i194 < _list193.Count; ++_i194) { - string _elem132; - _elem132 = await iprot.ReadStringAsync(cancellationToken); - _elem129.Add(_elem132); + string _elem195; + _elem195 = await iprot.ReadStringAsync(cancellationToken); + _elem192.Add(_elem195); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem129); + MeasurementsList.Add(_elem192); } await iprot.ReadListEndAsync(cancellationToken); } @@ -173,13 +174,13 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List(_list133.Count); - for(int _i134 = 0; _i134 < _list133.Count; ++_i134) + TList _list196 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List(_list196.Count); + for(int _i197 = 0; _i197 < _list196.Count; ++_i197) { - byte[] _elem135; - _elem135 = await iprot.ReadBinaryAsync(cancellationToken); - ValuesList.Add(_elem135); + byte[] _elem198; + _elem198 = await iprot.ReadBinaryAsync(cancellationToken); + ValuesList.Add(_elem198); } await iprot.ReadListEndAsync(cancellationToken); } @@ -194,13 +195,13 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List(_list136.Count); - for(int _i137 = 0; _i137 < _list136.Count; ++_i137) + TList _list199 = await iprot.ReadListBeginAsync(cancellationToken); + TimestampsList = new List(_list199.Count); + for(int _i200 = 0; _i200 < _list199.Count; ++_i200) { - byte[] _elem138; - _elem138 = await iprot.ReadBinaryAsync(cancellationToken); - TimestampsList.Add(_elem138); + byte[] _elem201; + _elem201 = await iprot.ReadBinaryAsync(cancellationToken); + TimestampsList.Add(_elem201); } await iprot.ReadListEndAsync(cancellationToken); } @@ -215,23 +216,23 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List>(_list139.Count); - for(int _i140 = 0; _i140 < _list139.Count; ++_i140) + TList _list202 = await iprot.ReadListBeginAsync(cancellationToken); + TypesList = new List>(_list202.Count); + for(int _i203 = 0; _i203 < _list202.Count; ++_i203) { - List _elem141; + List _elem204; { - TList _list142 = await iprot.ReadListBeginAsync(cancellationToken); - _elem141 = new List(_list142.Count); - for(int _i143 = 0; _i143 < _list142.Count; ++_i143) + TList _list205 = await iprot.ReadListBeginAsync(cancellationToken); + _elem204 = new List(_list205.Count); + for(int _i206 = 0; _i206 < _list205.Count; ++_i206) { - int _elem144; - _elem144 = await iprot.ReadI32Async(cancellationToken); - _elem141.Add(_elem144); + int _elem207; + _elem207 = await iprot.ReadI32Async(cancellationToken); + _elem204.Add(_elem207); } await iprot.ReadListEndAsync(cancellationToken); } - TypesList.Add(_elem141); + TypesList.Add(_elem204); } await iprot.ReadListEndAsync(cancellationToken); } @@ -246,13 +247,13 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List(_list145.Count); - for(int _i146 = 0; _i146 < _list145.Count; ++_i146) + TList _list208 = await iprot.ReadListBeginAsync(cancellationToken); + SizeList = new List(_list208.Count); + for(int _i209 = 0; _i209 < _list208.Count; ++_i209) { - int _elem147; - _elem147 = await iprot.ReadI32Async(cancellationToken); - SizeList.Add(_elem147); + int _elem210; + _elem210 = await iprot.ReadI32Async(cancellationToken); + SizeList.Add(_elem210); } await iprot.ReadListEndAsync(cancellationToken); } @@ -322,26 +323,26 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List prefixPaths, List _iter149 in MeasurementsList) + foreach (List _iter214 in MeasurementsList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter149.Count), cancellationToken); - foreach (string _iter150 in _iter149) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter214.Count), cancellationToken); + foreach (string _iter215 in _iter214) { - await oprot.WriteStringAsync(_iter150, cancellationToken); + await oprot.WriteStringAsync(_iter215, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -372,15 +373,15 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List prefixPaths, List prefixPaths, List _iter153 in TypesList) + foreach (List _iter218 in TypesList) { { - await oprot.WriteListBeginAsync(new TList(TType.I32, _iter153.Count), cancellationToken); - foreach (int _iter154 in _iter153) + await oprot.WriteListBeginAsync(new TList(TType.I32, _iter218.Count), cancellationToken); + foreach (int _iter219 in _iter218) { - await oprot.WriteI32Async(_iter154, cancellationToken); + await oprot.WriteI32Async(_iter219, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -427,15 +428,15 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List prefixPaths, List paths, long time, long st if (field.Type == TType.List) { { - TList _list306 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list306.Count); - for(int _i307 = 0; _i307 < _list306.Count; ++_i307) + TList _list396 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list396.Count); + for(int _i397 = 0; _i397 < _list396.Count; ++_i397) { - string _elem308; - _elem308 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem308); + string _elem398; + _elem398 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem398); } await iprot.ReadListEndAsync(cancellationToken); } @@ -295,26 +296,26 @@ public TSLastDataQueryReq(long sessionId, List paths, long time, long st oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSLastDataQueryReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp399 = new TStruct("TSLastDataQueryReq"); + await oprot.WriteStructBeginAsync(tmp399, cancellationToken); + var tmp400 = new TField(); + tmp400.Name = "sessionId"; + tmp400.Type = TType.I64; + tmp400.ID = 1; + await oprot.WriteFieldBeginAsync(tmp400, 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); + tmp400.Name = "paths"; + tmp400.Type = TType.List; + tmp400.ID = 2; + await oprot.WriteFieldBeginAsync(tmp400, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter309 in Paths) + foreach (string _iter401 in Paths) { - await oprot.WriteStringAsync(_iter309, cancellationToken); + await oprot.WriteStringAsync(_iter401, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -322,58 +323,58 @@ public TSLastDataQueryReq(long sessionId, List paths, long time, long st } if(__isset.fetchSize) { - field.Name = "fetchSize"; - field.Type = TType.I32; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp400.Name = "fetchSize"; + tmp400.Type = TType.I32; + tmp400.ID = 3; + await oprot.WriteFieldBeginAsync(tmp400, cancellationToken); await oprot.WriteI32Async(FetchSize, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - field.Name = "time"; - field.Type = TType.I64; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp400.Name = "time"; + tmp400.Type = TType.I64; + tmp400.ID = 4; + await oprot.WriteFieldBeginAsync(tmp400, cancellationToken); await oprot.WriteI64Async(Time, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "statementId"; - field.Type = TType.I64; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp400.Name = "statementId"; + tmp400.Type = TType.I64; + tmp400.ID = 5; + await oprot.WriteFieldBeginAsync(tmp400, cancellationToken); await oprot.WriteI64Async(StatementId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if(__isset.enableRedirectQuery) { - field.Name = "enableRedirectQuery"; - field.Type = TType.Bool; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp400.Name = "enableRedirectQuery"; + tmp400.Type = TType.Bool; + tmp400.ID = 6; + await oprot.WriteFieldBeginAsync(tmp400, cancellationToken); await oprot.WriteBoolAsync(EnableRedirectQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.jdbcQuery) { - field.Name = "jdbcQuery"; - field.Type = TType.Bool; - field.ID = 7; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp400.Name = "jdbcQuery"; + tmp400.Type = TType.Bool; + tmp400.ID = 7; + await oprot.WriteFieldBeginAsync(tmp400, cancellationToken); await oprot.WriteBoolAsync(JdbcQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.timeout) { - field.Name = "timeout"; - field.Type = TType.I64; - field.ID = 8; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp400.Name = "timeout"; + tmp400.Type = TType.I64; + tmp400.ID = 8; + await oprot.WriteFieldBeginAsync(tmp400, cancellationToken); 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); + tmp400.Name = "legalPathNodes"; + tmp400.Type = TType.Bool; + tmp400.ID = 9; + await oprot.WriteFieldBeginAsync(tmp400, cancellationToken); await oprot.WriteBoolAsync(LegalPathNodes, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -437,45 +438,45 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSLastDataQueryReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp402 = new StringBuilder("TSLastDataQueryReq("); + tmp402.Append(", SessionId: "); + SessionId.ToString(tmp402); if((Paths != null)) { - sb.Append(", Paths: "); - Paths.ToString(sb); + tmp402.Append(", Paths: "); + Paths.ToString(tmp402); } if(__isset.fetchSize) { - sb.Append(", FetchSize: "); - FetchSize.ToString(sb); + tmp402.Append(", FetchSize: "); + FetchSize.ToString(tmp402); } - sb.Append(", Time: "); - Time.ToString(sb); - sb.Append(", StatementId: "); - StatementId.ToString(sb); + tmp402.Append(", Time: "); + Time.ToString(tmp402); + tmp402.Append(", StatementId: "); + StatementId.ToString(tmp402); if(__isset.enableRedirectQuery) { - sb.Append(", EnableRedirectQuery: "); - EnableRedirectQuery.ToString(sb); + tmp402.Append(", EnableRedirectQuery: "); + EnableRedirectQuery.ToString(tmp402); } if(__isset.jdbcQuery) { - sb.Append(", JdbcQuery: "); - JdbcQuery.ToString(sb); + tmp402.Append(", JdbcQuery: "); + JdbcQuery.ToString(tmp402); } if(__isset.timeout) { - sb.Append(", Timeout: "); - Timeout.ToString(sb); + tmp402.Append(", Timeout: "); + Timeout.ToString(tmp402); } if(__isset.legalPathNodes) { - sb.Append(", LegalPathNodes: "); - LegalPathNodes.ToString(sb); + tmp402.Append(", LegalPathNodes: "); + LegalPathNodes.ToString(tmp402); } - sb.Append(')'); - return sb.ToString(); + tmp402.Append(')'); + return tmp402.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionReq.cs index f39b75a..3f118a2 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSOpenSessionReq : TBase @@ -157,15 +158,15 @@ public TSOpenSessionReq(TSProtocolVersion client_protocol, string zoneId, string if (field.Type == TType.Map) { { - TMap _map63 = await iprot.ReadMapBeginAsync(cancellationToken); - Configuration = new Dictionary(_map63.Count); - for(int _i64 = 0; _i64 < _map63.Count; ++_i64) + TMap _map78 = await iprot.ReadMapBeginAsync(cancellationToken); + Configuration = new Dictionary(_map78.Count); + for(int _i79 = 0; _i79 < _map78.Count; ++_i79) { - string _key65; - string _val66; - _key65 = await iprot.ReadStringAsync(cancellationToken); - _val66 = await iprot.ReadStringAsync(cancellationToken); - Configuration[_key65] = _val66; + string _key80; + string _val81; + _key80 = await iprot.ReadStringAsync(cancellationToken); + _val81 = await iprot.ReadStringAsync(cancellationToken); + Configuration[_key80] = _val81; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -208,54 +209,54 @@ public TSOpenSessionReq(TSProtocolVersion client_protocol, string zoneId, string oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSOpenSessionReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "client_protocol"; - field.Type = TType.I32; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp82 = new TStruct("TSOpenSessionReq"); + await oprot.WriteStructBeginAsync(tmp82, cancellationToken); + var tmp83 = new TField(); + tmp83.Name = "client_protocol"; + tmp83.Type = TType.I32; + tmp83.ID = 1; + await oprot.WriteFieldBeginAsync(tmp83, 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); + tmp83.Name = "zoneId"; + tmp83.Type = TType.String; + tmp83.ID = 2; + await oprot.WriteFieldBeginAsync(tmp83, 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); + tmp83.Name = "username"; + tmp83.Type = TType.String; + tmp83.ID = 3; + await oprot.WriteFieldBeginAsync(tmp83, cancellationToken); await oprot.WriteStringAsync(Username, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((Password != null) && __isset.password) { - field.Name = "password"; - field.Type = TType.String; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp83.Name = "password"; + tmp83.Type = TType.String; + tmp83.ID = 4; + await oprot.WriteFieldBeginAsync(tmp83, cancellationToken); await oprot.WriteStringAsync(Password, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((Configuration != null) && __isset.configuration) { - field.Name = "configuration"; - field.Type = TType.Map; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp83.Name = "configuration"; + tmp83.Type = TType.Map; + tmp83.ID = 5; + await oprot.WriteFieldBeginAsync(tmp83, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Configuration.Count), cancellationToken); - foreach (string _iter67 in Configuration.Keys) + foreach (string _iter84 in Configuration.Keys) { - await oprot.WriteStringAsync(_iter67, cancellationToken); - await oprot.WriteStringAsync(Configuration[_iter67], cancellationToken); + await oprot.WriteStringAsync(_iter84, cancellationToken); + await oprot.WriteStringAsync(Configuration[_iter84], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -307,31 +308,31 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSOpenSessionReq("); - sb.Append(", Client_protocol: "); - Client_protocol.ToString(sb); + var tmp85 = new StringBuilder("TSOpenSessionReq("); + tmp85.Append(", Client_protocol: "); + Client_protocol.ToString(tmp85); if((ZoneId != null)) { - sb.Append(", ZoneId: "); - ZoneId.ToString(sb); + tmp85.Append(", ZoneId: "); + ZoneId.ToString(tmp85); } if((Username != null)) { - sb.Append(", Username: "); - Username.ToString(sb); + tmp85.Append(", Username: "); + Username.ToString(tmp85); } if((Password != null) && __isset.password) { - sb.Append(", Password: "); - Password.ToString(sb); + tmp85.Append(", Password: "); + Password.ToString(tmp85); } if((Configuration != null) && __isset.configuration) { - sb.Append(", Configuration: "); - Configuration.ToString(sb); + tmp85.Append(", Configuration: "); + Configuration.ToString(tmp85); } - sb.Append(')'); - return sb.ToString(); + tmp85.Append(')'); + return tmp85.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionResp.cs index 759bdea..89e407d 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSOpenSessionResp : TBase @@ -143,15 +144,15 @@ public TSOpenSessionResp(TSStatus status, TSProtocolVersion serverProtocolVersio if (field.Type == TType.Map) { { - TMap _map57 = await iprot.ReadMapBeginAsync(cancellationToken); - Configuration = new Dictionary(_map57.Count); - for(int _i58 = 0; _i58 < _map57.Count; ++_i58) + TMap _map69 = await iprot.ReadMapBeginAsync(cancellationToken); + Configuration = new Dictionary(_map69.Count); + for(int _i70 = 0; _i70 < _map69.Count; ++_i70) { - string _key59; - string _val60; - _key59 = await iprot.ReadStringAsync(cancellationToken); - _val60 = await iprot.ReadStringAsync(cancellationToken); - Configuration[_key59] = _val60; + string _key71; + string _val72; + _key71 = await iprot.ReadStringAsync(cancellationToken); + _val72 = await iprot.ReadStringAsync(cancellationToken); + Configuration[_key71] = _val72; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -190,45 +191,45 @@ public TSOpenSessionResp(TSStatus status, TSProtocolVersion serverProtocolVersio oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSOpenSessionResp"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp73 = new TStruct("TSOpenSessionResp"); + await oprot.WriteStructBeginAsync(tmp73, cancellationToken); + var tmp74 = new TField(); if((Status != null)) { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp74.Name = "status"; + tmp74.Type = TType.Struct; + tmp74.ID = 1; + await oprot.WriteFieldBeginAsync(tmp74, 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); + tmp74.Name = "serverProtocolVersion"; + tmp74.Type = TType.I32; + tmp74.ID = 2; + await oprot.WriteFieldBeginAsync(tmp74, cancellationToken); await oprot.WriteI32Async((int)ServerProtocolVersion, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if(__isset.sessionId) { - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp74.Name = "sessionId"; + tmp74.Type = TType.I64; + tmp74.ID = 3; + await oprot.WriteFieldBeginAsync(tmp74, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((Configuration != null) && __isset.configuration) { - field.Name = "configuration"; - field.Type = TType.Map; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp74.Name = "configuration"; + tmp74.Type = TType.Map; + tmp74.ID = 4; + await oprot.WriteFieldBeginAsync(tmp74, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Configuration.Count), cancellationToken); - foreach (string _iter61 in Configuration.Keys) + foreach (string _iter75 in Configuration.Keys) { - await oprot.WriteStringAsync(_iter61, cancellationToken); - await oprot.WriteStringAsync(Configuration[_iter61], cancellationToken); + await oprot.WriteStringAsync(_iter75, cancellationToken); + await oprot.WriteStringAsync(Configuration[_iter75], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -275,26 +276,26 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSOpenSessionResp("); + var tmp76 = new StringBuilder("TSOpenSessionResp("); if((Status != null)) { - sb.Append(", Status: "); - Status.ToString(sb); + tmp76.Append(", Status: "); + Status.ToString(tmp76); } - sb.Append(", ServerProtocolVersion: "); - ServerProtocolVersion.ToString(sb); + tmp76.Append(", ServerProtocolVersion: "); + ServerProtocolVersion.ToString(tmp76); if(__isset.sessionId) { - sb.Append(", SessionId: "); - SessionId.ToString(sb); + tmp76.Append(", SessionId: "); + SessionId.ToString(tmp76); } if((Configuration != null) && __isset.configuration) { - sb.Append(", Configuration: "); - Configuration.ToString(sb); + tmp76.Append(", Configuration: "); + Configuration.ToString(tmp76); } - sb.Append(')'); - return sb.ToString(); + tmp76.Append(')'); + return tmp76.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSProtocolVersion.cs b/src/Apache.IoTDB/Rpc/Generated/TSProtocolVersion.cs index c243719..8f4b02f 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSProtocolVersion.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSProtocolVersion.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,6 +7,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum TSProtocolVersion { diff --git a/src/Apache.IoTDB/Rpc/Generated/TSPruneSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSPruneSchemaTemplateReq.cs index d377c88..1836160 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSPruneSchemaTemplateReq : TBase @@ -135,30 +136,30 @@ public TSPruneSchemaTemplateReq(long sessionId, string name, string path) : this oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSPruneSchemaTemplateReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp523 = new TStruct("TSPruneSchemaTemplateReq"); + await oprot.WriteStructBeginAsync(tmp523, cancellationToken); + var tmp524 = new TField(); + tmp524.Name = "sessionId"; + tmp524.Type = TType.I64; + tmp524.ID = 1; + await oprot.WriteFieldBeginAsync(tmp524, 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); + tmp524.Name = "name"; + tmp524.Type = TType.String; + tmp524.ID = 2; + await oprot.WriteFieldBeginAsync(tmp524, 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); + tmp524.Name = "path"; + tmp524.Type = TType.String; + tmp524.ID = 3; + await oprot.WriteFieldBeginAsync(tmp524, cancellationToken); await oprot.WriteStringAsync(Path, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -198,21 +199,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSPruneSchemaTemplateReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp525 = new StringBuilder("TSPruneSchemaTemplateReq("); + tmp525.Append(", SessionId: "); + SessionId.ToString(tmp525); if((Name != null)) { - sb.Append(", Name: "); - Name.ToString(sb); + tmp525.Append(", Name: "); + Name.ToString(tmp525); } if((Path != null)) { - sb.Append(", Path: "); - Path.ToString(sb); + tmp525.Append(", Path: "); + Path.ToString(tmp525); } - sb.Append(')'); - return sb.ToString(); + tmp525.Append(')'); + return tmp525.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSQueryDataSet.cs b/src/Apache.IoTDB/Rpc/Generated/TSQueryDataSet.cs index 4927f17..6a63b95 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSQueryDataSet : TBase @@ -155,29 +156,29 @@ public TSQueryDataSet(byte[] time, List valueList, List bitmapLi oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSQueryDataSet"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp6 = new TStruct("TSQueryDataSet"); + await oprot.WriteStructBeginAsync(tmp6, cancellationToken); + var tmp7 = new TField(); if((Time != null)) { - field.Name = "time"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp7.Name = "time"; + tmp7.Type = TType.String; + tmp7.ID = 1; + await oprot.WriteFieldBeginAsync(tmp7, cancellationToken); await oprot.WriteBinaryAsync(Time, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((ValueList != null)) { - field.Name = "valueList"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp7.Name = "valueList"; + tmp7.Type = TType.List; + tmp7.ID = 2; + await oprot.WriteFieldBeginAsync(tmp7, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, ValueList.Count), cancellationToken); - foreach (byte[] _iter6 in ValueList) + foreach (byte[] _iter8 in ValueList) { - await oprot.WriteBinaryAsync(_iter6, cancellationToken); + await oprot.WriteBinaryAsync(_iter8, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -185,15 +186,15 @@ public TSQueryDataSet(byte[] time, List valueList, List bitmapLi } if((BitmapList != null)) { - field.Name = "bitmapList"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp7.Name = "bitmapList"; + tmp7.Type = TType.List; + tmp7.ID = 3; + await oprot.WriteFieldBeginAsync(tmp7, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, BitmapList.Count), cancellationToken); - foreach (byte[] _iter7 in BitmapList) + foreach (byte[] _iter9 in BitmapList) { - await oprot.WriteBinaryAsync(_iter7, cancellationToken); + await oprot.WriteBinaryAsync(_iter9, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -238,24 +239,24 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSQueryDataSet("); + var tmp10 = new StringBuilder("TSQueryDataSet("); if((Time != null)) { - sb.Append(", Time: "); - Time.ToString(sb); + tmp10.Append(", Time: "); + Time.ToString(tmp10); } if((ValueList != null)) { - sb.Append(", ValueList: "); - ValueList.ToString(sb); + tmp10.Append(", ValueList: "); + ValueList.ToString(tmp10); } if((BitmapList != null)) { - sb.Append(", BitmapList: "); - BitmapList.ToString(sb); + tmp10.Append(", BitmapList: "); + BitmapList.ToString(tmp10); } - sb.Append(')'); - return sb.ToString(); + tmp10.Append(')'); + return tmp10.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSQueryNonAlignDataSet.cs b/src/Apache.IoTDB/Rpc/Generated/TSQueryNonAlignDataSet.cs index 73fac7c..767aef0 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSQueryNonAlignDataSet : TBase @@ -69,13 +70,13 @@ public TSQueryNonAlignDataSet(List timeList, List valueList) : t if (field.Type == TType.List) { { - TList _list9 = await iprot.ReadListBeginAsync(cancellationToken); - TimeList = new List(_list9.Count); - for(int _i10 = 0; _i10 < _list9.Count; ++_i10) + TList _list12 = await iprot.ReadListBeginAsync(cancellationToken); + TimeList = new List(_list12.Count); + for(int _i13 = 0; _i13 < _list12.Count; ++_i13) { - byte[] _elem11; - _elem11 = await iprot.ReadBinaryAsync(cancellationToken); - TimeList.Add(_elem11); + byte[] _elem14; + _elem14 = await iprot.ReadBinaryAsync(cancellationToken); + TimeList.Add(_elem14); } await iprot.ReadListEndAsync(cancellationToken); } @@ -90,13 +91,13 @@ public TSQueryNonAlignDataSet(List timeList, List valueList) : t if (field.Type == TType.List) { { - TList _list12 = await iprot.ReadListBeginAsync(cancellationToken); - ValueList = new List(_list12.Count); - for(int _i13 = 0; _i13 < _list12.Count; ++_i13) + TList _list15 = await iprot.ReadListBeginAsync(cancellationToken); + ValueList = new List(_list15.Count); + for(int _i16 = 0; _i16 < _list15.Count; ++_i16) { - byte[] _elem14; - _elem14 = await iprot.ReadBinaryAsync(cancellationToken); - ValueList.Add(_elem14); + byte[] _elem17; + _elem17 = await iprot.ReadBinaryAsync(cancellationToken); + ValueList.Add(_elem17); } await iprot.ReadListEndAsync(cancellationToken); } @@ -136,20 +137,20 @@ public TSQueryNonAlignDataSet(List timeList, List valueList) : t oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSQueryNonAlignDataSet"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp18 = new TStruct("TSQueryNonAlignDataSet"); + await oprot.WriteStructBeginAsync(tmp18, cancellationToken); + var tmp19 = new TField(); if((TimeList != null)) { - field.Name = "timeList"; - field.Type = TType.List; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp19.Name = "timeList"; + tmp19.Type = TType.List; + tmp19.ID = 1; + await oprot.WriteFieldBeginAsync(tmp19, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, TimeList.Count), cancellationToken); - foreach (byte[] _iter15 in TimeList) + foreach (byte[] _iter20 in TimeList) { - await oprot.WriteBinaryAsync(_iter15, cancellationToken); + await oprot.WriteBinaryAsync(_iter20, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -157,15 +158,15 @@ public TSQueryNonAlignDataSet(List timeList, List valueList) : t } if((ValueList != null)) { - field.Name = "valueList"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp19.Name = "valueList"; + tmp19.Type = TType.List; + tmp19.ID = 2; + await oprot.WriteFieldBeginAsync(tmp19, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, ValueList.Count), cancellationToken); - foreach (byte[] _iter16 in ValueList) + foreach (byte[] _iter21 in ValueList) { - await oprot.WriteBinaryAsync(_iter16, cancellationToken); + await oprot.WriteBinaryAsync(_iter21, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -205,19 +206,19 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSQueryNonAlignDataSet("); + var tmp22 = new StringBuilder("TSQueryNonAlignDataSet("); if((TimeList != null)) { - sb.Append(", TimeList: "); - TimeList.ToString(sb); + tmp22.Append(", TimeList: "); + TimeList.ToString(tmp22); } if((ValueList != null)) { - sb.Append(", ValueList: "); - ValueList.ToString(sb); + tmp22.Append(", ValueList: "); + ValueList.ToString(tmp22); } - sb.Append(')'); - return sb.ToString(); + tmp22.Append(')'); + return tmp22.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateReq.cs index 5073c0e..0a98938 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSQueryTemplateReq : TBase @@ -166,36 +167,36 @@ public TSQueryTemplateReq(long sessionId, string name, int queryType) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSQueryTemplateReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp527 = new TStruct("TSQueryTemplateReq"); + await oprot.WriteStructBeginAsync(tmp527, cancellationToken); + var tmp528 = new TField(); + tmp528.Name = "sessionId"; + tmp528.Type = TType.I64; + tmp528.ID = 1; + await oprot.WriteFieldBeginAsync(tmp528, 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); + tmp528.Name = "name"; + tmp528.Type = TType.String; + tmp528.ID = 2; + await oprot.WriteFieldBeginAsync(tmp528, 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); + tmp528.Name = "queryType"; + tmp528.Type = TType.I32; + tmp528.ID = 3; + await oprot.WriteFieldBeginAsync(tmp528, cancellationToken); await oprot.WriteI32Async(QueryType, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if((Measurement != null) && __isset.measurement) { - field.Name = "measurement"; - field.Type = TType.String; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp528.Name = "measurement"; + tmp528.Type = TType.String; + tmp528.ID = 4; + await oprot.WriteFieldBeginAsync(tmp528, cancellationToken); await oprot.WriteStringAsync(Measurement, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -237,23 +238,23 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSQueryTemplateReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp529 = new StringBuilder("TSQueryTemplateReq("); + tmp529.Append(", SessionId: "); + SessionId.ToString(tmp529); if((Name != null)) { - sb.Append(", Name: "); - Name.ToString(sb); + tmp529.Append(", Name: "); + Name.ToString(tmp529); } - sb.Append(", QueryType: "); - QueryType.ToString(sb); + tmp529.Append(", QueryType: "); + QueryType.ToString(tmp529); if((Measurement != null) && __isset.measurement) { - sb.Append(", Measurement: "); - Measurement.ToString(sb); + tmp529.Append(", Measurement: "); + Measurement.ToString(tmp529); } - sb.Append(')'); - return sb.ToString(); + tmp529.Append(')'); + return tmp529.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateResp.cs index f7d1c78..c0b0ebd 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSQueryTemplateResp : TBase @@ -163,13 +164,13 @@ public TSQueryTemplateResp(TSStatus status, int queryType) : this() if (field.Type == TType.List) { { - TList _list400 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list400.Count); - for(int _i401 = 0; _i401 < _list400.Count; ++_i401) + TList _list531 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list531.Count); + for(int _i532 = 0; _i532 < _list531.Count; ++_i532) { - string _elem402; - _elem402 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem402); + string _elem533; + _elem533 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem533); } await iprot.ReadListEndAsync(cancellationToken); } @@ -208,53 +209,53 @@ public TSQueryTemplateResp(TSStatus status, int queryType) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSQueryTemplateResp"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp534 = new TStruct("TSQueryTemplateResp"); + await oprot.WriteStructBeginAsync(tmp534, cancellationToken); + var tmp535 = new TField(); if((Status != null)) { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp535.Name = "status"; + tmp535.Type = TType.Struct; + tmp535.ID = 1; + await oprot.WriteFieldBeginAsync(tmp535, 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); + tmp535.Name = "queryType"; + tmp535.Type = TType.I32; + tmp535.ID = 2; + await oprot.WriteFieldBeginAsync(tmp535, cancellationToken); await oprot.WriteI32Async(QueryType, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if(__isset.result) { - field.Name = "result"; - field.Type = TType.Bool; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp535.Name = "result"; + tmp535.Type = TType.Bool; + tmp535.ID = 3; + await oprot.WriteFieldBeginAsync(tmp535, cancellationToken); await oprot.WriteBoolAsync(Result, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.count) { - field.Name = "count"; - field.Type = TType.I32; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp535.Name = "count"; + tmp535.Type = TType.I32; + tmp535.ID = 4; + await oprot.WriteFieldBeginAsync(tmp535, cancellationToken); await oprot.WriteI32Async(Count, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((Measurements != null) && __isset.measurements) { - field.Name = "measurements"; - field.Type = TType.List; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp535.Name = "measurements"; + tmp535.Type = TType.List; + tmp535.ID = 5; + await oprot.WriteFieldBeginAsync(tmp535, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter403 in Measurements) + foreach (string _iter536 in Measurements) { - await oprot.WriteStringAsync(_iter403, cancellationToken); + await oprot.WriteStringAsync(_iter536, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -306,31 +307,31 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSQueryTemplateResp("); + var tmp537 = new StringBuilder("TSQueryTemplateResp("); if((Status != null)) { - sb.Append(", Status: "); - Status.ToString(sb); + tmp537.Append(", Status: "); + Status.ToString(tmp537); } - sb.Append(", QueryType: "); - QueryType.ToString(sb); + tmp537.Append(", QueryType: "); + QueryType.ToString(tmp537); if(__isset.result) { - sb.Append(", Result: "); - Result.ToString(sb); + tmp537.Append(", Result: "); + Result.ToString(tmp537); } if(__isset.count) { - sb.Append(", Count: "); - Count.ToString(sb); + tmp537.Append(", Count: "); + Count.ToString(tmp537); } if((Measurements != null) && __isset.measurements) { - sb.Append(", Measurements: "); - Measurements.ToString(sb); + tmp537.Append(", Measurements: "); + Measurements.ToString(tmp537); } - sb.Append(')'); - return sb.ToString(); + tmp537.Append(')'); + return tmp537.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSRawDataQueryReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSRawDataQueryReq.cs index df69c53..1f5060a 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSRawDataQueryReq : TBase @@ -173,13 +174,13 @@ public TSRawDataQueryReq(long sessionId, List paths, long startTime, lon if (field.Type == TType.List) { { - TList _list301 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list301.Count); - for(int _i302 = 0; _i302 < _list301.Count; ++_i302) + TList _list388 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list388.Count); + for(int _i389 = 0; _i389 < _list388.Count; ++_i389) { - string _elem303; - _elem303 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem303); + string _elem390; + _elem390 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem390); } await iprot.ReadListEndAsync(cancellationToken); } @@ -314,26 +315,26 @@ public TSRawDataQueryReq(long sessionId, List paths, long startTime, lon oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSRawDataQueryReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp391 = new TStruct("TSRawDataQueryReq"); + await oprot.WriteStructBeginAsync(tmp391, cancellationToken); + var tmp392 = new TField(); + tmp392.Name = "sessionId"; + tmp392.Type = TType.I64; + tmp392.ID = 1; + await oprot.WriteFieldBeginAsync(tmp392, 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); + tmp392.Name = "paths"; + tmp392.Type = TType.List; + tmp392.ID = 2; + await oprot.WriteFieldBeginAsync(tmp392, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter304 in Paths) + foreach (string _iter393 in Paths) { - await oprot.WriteStringAsync(_iter304, cancellationToken); + await oprot.WriteStringAsync(_iter393, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -341,64 +342,64 @@ public TSRawDataQueryReq(long sessionId, List paths, long startTime, lon } if(__isset.fetchSize) { - field.Name = "fetchSize"; - field.Type = TType.I32; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp392.Name = "fetchSize"; + tmp392.Type = TType.I32; + tmp392.ID = 3; + await oprot.WriteFieldBeginAsync(tmp392, cancellationToken); await oprot.WriteI32Async(FetchSize, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - field.Name = "startTime"; - field.Type = TType.I64; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp392.Name = "startTime"; + tmp392.Type = TType.I64; + tmp392.ID = 4; + await oprot.WriteFieldBeginAsync(tmp392, cancellationToken); await oprot.WriteI64Async(StartTime, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "endTime"; - field.Type = TType.I64; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp392.Name = "endTime"; + tmp392.Type = TType.I64; + tmp392.ID = 5; + await oprot.WriteFieldBeginAsync(tmp392, cancellationToken); await oprot.WriteI64Async(EndTime, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - field.Name = "statementId"; - field.Type = TType.I64; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp392.Name = "statementId"; + tmp392.Type = TType.I64; + tmp392.ID = 6; + await oprot.WriteFieldBeginAsync(tmp392, 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); + tmp392.Name = "enableRedirectQuery"; + tmp392.Type = TType.Bool; + tmp392.ID = 7; + await oprot.WriteFieldBeginAsync(tmp392, 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); + tmp392.Name = "jdbcQuery"; + tmp392.Type = TType.Bool; + tmp392.ID = 8; + await oprot.WriteFieldBeginAsync(tmp392, 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); + tmp392.Name = "timeout"; + tmp392.Type = TType.I64; + tmp392.ID = 9; + await oprot.WriteFieldBeginAsync(tmp392, 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); + tmp392.Name = "legalPathNodes"; + tmp392.Type = TType.Bool; + tmp392.ID = 10; + await oprot.WriteFieldBeginAsync(tmp392, cancellationToken); await oprot.WriteBoolAsync(LegalPathNodes, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -464,47 +465,47 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSRawDataQueryReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp394 = new StringBuilder("TSRawDataQueryReq("); + tmp394.Append(", SessionId: "); + SessionId.ToString(tmp394); if((Paths != null)) { - sb.Append(", Paths: "); - Paths.ToString(sb); + tmp394.Append(", Paths: "); + Paths.ToString(tmp394); } if(__isset.fetchSize) { - sb.Append(", FetchSize: "); - FetchSize.ToString(sb); + tmp394.Append(", FetchSize: "); + FetchSize.ToString(tmp394); } - sb.Append(", StartTime: "); - StartTime.ToString(sb); - sb.Append(", EndTime: "); - EndTime.ToString(sb); - sb.Append(", StatementId: "); - StatementId.ToString(sb); + tmp394.Append(", StartTime: "); + StartTime.ToString(tmp394); + tmp394.Append(", EndTime: "); + EndTime.ToString(tmp394); + tmp394.Append(", StatementId: "); + StatementId.ToString(tmp394); if(__isset.enableRedirectQuery) { - sb.Append(", EnableRedirectQuery: "); - EnableRedirectQuery.ToString(sb); + tmp394.Append(", EnableRedirectQuery: "); + EnableRedirectQuery.ToString(tmp394); } if(__isset.jdbcQuery) { - sb.Append(", JdbcQuery: "); - JdbcQuery.ToString(sb); + tmp394.Append(", JdbcQuery: "); + JdbcQuery.ToString(tmp394); } if(__isset.timeout) { - sb.Append(", Timeout: "); - Timeout.ToString(sb); + tmp394.Append(", Timeout: "); + Timeout.ToString(tmp394); } if(__isset.legalPathNodes) { - sb.Append(", LegalPathNodes: "); - LegalPathNodes.ToString(sb); + tmp394.Append(", LegalPathNodes: "); + LegalPathNodes.ToString(tmp394); } - sb.Append(')'); - return sb.ToString(); + tmp394.Append(')'); + return tmp394.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSSetSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSSetSchemaTemplateReq.cs index 7d7e213..433c14a 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSSetSchemaTemplateReq : TBase @@ -135,30 +136,30 @@ public TSSetSchemaTemplateReq(long sessionId, string templateName, string prefix oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSSetSchemaTemplateReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp495 = new TStruct("TSSetSchemaTemplateReq"); + await oprot.WriteStructBeginAsync(tmp495, cancellationToken); + var tmp496 = new TField(); + tmp496.Name = "sessionId"; + tmp496.Type = TType.I64; + tmp496.ID = 1; + await oprot.WriteFieldBeginAsync(tmp496, 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); + tmp496.Name = "templateName"; + tmp496.Type = TType.String; + tmp496.ID = 2; + await oprot.WriteFieldBeginAsync(tmp496, 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); + tmp496.Name = "prefixPath"; + tmp496.Type = TType.String; + tmp496.ID = 3; + await oprot.WriteFieldBeginAsync(tmp496, cancellationToken); await oprot.WriteStringAsync(PrefixPath, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -198,21 +199,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSSetSchemaTemplateReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp497 = new StringBuilder("TSSetSchemaTemplateReq("); + tmp497.Append(", SessionId: "); + SessionId.ToString(tmp497); if((TemplateName != null)) { - sb.Append(", TemplateName: "); - TemplateName.ToString(sb); + tmp497.Append(", TemplateName: "); + TemplateName.ToString(tmp497); } if((PrefixPath != null)) { - sb.Append(", PrefixPath: "); - PrefixPath.ToString(sb); + tmp497.Append(", PrefixPath: "); + PrefixPath.ToString(tmp497); } - sb.Append(')'); - return sb.ToString(); + tmp497.Append(')'); + return tmp497.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSSetTimeZoneReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSSetTimeZoneReq.cs index f9f2d84..199f400 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSSetTimeZoneReq : TBase @@ -116,21 +117,21 @@ public TSSetTimeZoneReq(long sessionId, string timeZone) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSSetTimeZoneReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp143 = new TStruct("TSSetTimeZoneReq"); + await oprot.WriteStructBeginAsync(tmp143, cancellationToken); + var tmp144 = new TField(); + tmp144.Name = "sessionId"; + tmp144.Type = TType.I64; + tmp144.ID = 1; + await oprot.WriteFieldBeginAsync(tmp144, 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); + tmp144.Name = "timeZone"; + tmp144.Type = TType.String; + tmp144.ID = 2; + await oprot.WriteFieldBeginAsync(tmp144, cancellationToken); await oprot.WriteStringAsync(TimeZone, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -165,16 +166,16 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSSetTimeZoneReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp145 = new StringBuilder("TSSetTimeZoneReq("); + tmp145.Append(", SessionId: "); + SessionId.ToString(tmp145); if((TimeZone != null)) { - sb.Append(", TimeZone: "); - TimeZone.ToString(sb); + tmp145.Append(", TimeZone: "); + TimeZone.ToString(tmp145); } - sb.Append(')'); - return sb.ToString(); + tmp145.Append(')'); + return tmp145.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSStatus.cs b/src/Apache.IoTDB/Rpc/Generated/TSStatus.cs index 3575330..f52db8e 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSStatus : TBase @@ -152,14 +153,14 @@ public TSStatus(int code) : this() if (field.Type == TType.List) { { - TList _list1 = await iprot.ReadListBeginAsync(cancellationToken); - SubStatus = new List(_list1.Count); - for(int _i2 = 0; _i2 < _list1.Count; ++_i2) + TList _list4 = await iprot.ReadListBeginAsync(cancellationToken); + SubStatus = new List(_list4.Count); + for(int _i5 = 0; _i5 < _list4.Count; ++_i5) { - TSStatus _elem3; - _elem3 = new TSStatus(); - await _elem3.ReadAsync(iprot, cancellationToken); - SubStatus.Add(_elem3); + TSStatus _elem6; + _elem6 = new TSStatus(); + await _elem6.ReadAsync(iprot, cancellationToken); + SubStatus.Add(_elem6); } await iprot.ReadListEndAsync(cancellationToken); } @@ -215,35 +216,35 @@ public TSStatus(int code) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSStatus"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "code"; - field.Type = TType.I32; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp7 = new TStruct("TSStatus"); + await oprot.WriteStructBeginAsync(tmp7, cancellationToken); + var tmp8 = new TField(); + tmp8.Name = "code"; + tmp8.Type = TType.I32; + tmp8.ID = 1; + await oprot.WriteFieldBeginAsync(tmp8, cancellationToken); await oprot.WriteI32Async(Code, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if((Message != null) && __isset.message) { - field.Name = "message"; - field.Type = TType.String; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp8.Name = "message"; + tmp8.Type = TType.String; + tmp8.ID = 2; + await oprot.WriteFieldBeginAsync(tmp8, cancellationToken); await oprot.WriteStringAsync(Message, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((SubStatus != null) && __isset.subStatus) { - field.Name = "subStatus"; - field.Type = TType.List; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp8.Name = "subStatus"; + tmp8.Type = TType.List; + tmp8.ID = 3; + await oprot.WriteFieldBeginAsync(tmp8, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, SubStatus.Count), cancellationToken); - foreach (TSStatus _iter4 in SubStatus) + foreach (TSStatus _iter9 in SubStatus) { - await _iter4.WriteAsync(oprot, cancellationToken); + await _iter9.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -251,19 +252,19 @@ public TSStatus(int code) : this() } if((RedirectNode != null) && __isset.redirectNode) { - field.Name = "redirectNode"; - field.Type = TType.Struct; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp8.Name = "redirectNode"; + tmp8.Type = TType.Struct; + tmp8.ID = 4; + await oprot.WriteFieldBeginAsync(tmp8, cancellationToken); 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); + tmp8.Name = "needRetry"; + tmp8.Type = TType.Bool; + tmp8.ID = 5; + await oprot.WriteFieldBeginAsync(tmp8, cancellationToken); await oprot.WriteBoolAsync(NeedRetry, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -313,31 +314,31 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSStatus("); - sb.Append(", Code: "); - Code.ToString(sb); + var tmp10 = new StringBuilder("TSStatus("); + tmp10.Append(", Code: "); + Code.ToString(tmp10); if((Message != null) && __isset.message) { - sb.Append(", Message: "); - Message.ToString(sb); + tmp10.Append(", Message: "); + Message.ToString(tmp10); } if((SubStatus != null) && __isset.subStatus) { - sb.Append(", SubStatus: "); - SubStatus.ToString(sb); + tmp10.Append(", SubStatus: "); + SubStatus.ToString(tmp10); } if((RedirectNode != null) && __isset.redirectNode) { - sb.Append(", RedirectNode: "); - RedirectNode.ToString(sb); + tmp10.Append(", RedirectNode: "); + RedirectNode.ToString(tmp10); } if(__isset.needRetry) { - sb.Append(", NeedRetry: "); - NeedRetry.ToString(sb); + tmp10.Append(", NeedRetry: "); + NeedRetry.ToString(tmp10); } - sb.Append(')'); - return sb.ToString(); + tmp10.Append(')'); + return tmp10.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSTracingInfo.cs b/src/Apache.IoTDB/Rpc/Generated/TSTracingInfo.cs index a5029a9..8b729dd 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSTracingInfo : TBase @@ -210,13 +211,13 @@ public TSTracingInfo(List activityList, List elapsedTimeList) : th if (field.Type == TType.List) { { - TList _list18 = await iprot.ReadListBeginAsync(cancellationToken); - ActivityList = new List(_list18.Count); - for(int _i19 = 0; _i19 < _list18.Count; ++_i19) + TList _list24 = await iprot.ReadListBeginAsync(cancellationToken); + ActivityList = new List(_list24.Count); + for(int _i25 = 0; _i25 < _list24.Count; ++_i25) { - string _elem20; - _elem20 = await iprot.ReadStringAsync(cancellationToken); - ActivityList.Add(_elem20); + string _elem26; + _elem26 = await iprot.ReadStringAsync(cancellationToken); + ActivityList.Add(_elem26); } await iprot.ReadListEndAsync(cancellationToken); } @@ -231,13 +232,13 @@ public TSTracingInfo(List activityList, List elapsedTimeList) : th if (field.Type == TType.List) { { - TList _list21 = await iprot.ReadListBeginAsync(cancellationToken); - ElapsedTimeList = new List(_list21.Count); - for(int _i22 = 0; _i22 < _list21.Count; ++_i22) + TList _list27 = await iprot.ReadListBeginAsync(cancellationToken); + ElapsedTimeList = new List(_list27.Count); + for(int _i28 = 0; _i28 < _list27.Count; ++_i28) { - long _elem23; - _elem23 = await iprot.ReadI64Async(cancellationToken); - ElapsedTimeList.Add(_elem23); + long _elem29; + _elem29 = await iprot.ReadI64Async(cancellationToken); + ElapsedTimeList.Add(_elem29); } await iprot.ReadListEndAsync(cancellationToken); } @@ -367,20 +368,20 @@ public TSTracingInfo(List activityList, List elapsedTimeList) : th oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSTracingInfo"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp30 = new TStruct("TSTracingInfo"); + await oprot.WriteStructBeginAsync(tmp30, cancellationToken); + var tmp31 = new TField(); if((ActivityList != null)) { - field.Name = "activityList"; - field.Type = TType.List; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp31.Name = "activityList"; + tmp31.Type = TType.List; + tmp31.ID = 1; + await oprot.WriteFieldBeginAsync(tmp31, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, ActivityList.Count), cancellationToken); - foreach (string _iter24 in ActivityList) + foreach (string _iter32 in ActivityList) { - await oprot.WriteStringAsync(_iter24, cancellationToken); + await oprot.WriteStringAsync(_iter32, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -388,15 +389,15 @@ public TSTracingInfo(List activityList, List elapsedTimeList) : th } if((ElapsedTimeList != null)) { - field.Name = "elapsedTimeList"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp31.Name = "elapsedTimeList"; + tmp31.Type = TType.List; + tmp31.ID = 2; + await oprot.WriteFieldBeginAsync(tmp31, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I64, ElapsedTimeList.Count), cancellationToken); - foreach (long _iter25 in ElapsedTimeList) + foreach (long _iter33 in ElapsedTimeList) { - await oprot.WriteI64Async(_iter25, cancellationToken); + await oprot.WriteI64Async(_iter33, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -404,82 +405,82 @@ public TSTracingInfo(List activityList, List elapsedTimeList) : th } if(__isset.seriesPathNum) { - field.Name = "seriesPathNum"; - field.Type = TType.I32; - field.ID = 3; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp31.Name = "seriesPathNum"; + tmp31.Type = TType.I32; + tmp31.ID = 3; + await oprot.WriteFieldBeginAsync(tmp31, cancellationToken); await oprot.WriteI32Async(SeriesPathNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.seqFileNum) { - field.Name = "seqFileNum"; - field.Type = TType.I32; - field.ID = 4; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp31.Name = "seqFileNum"; + tmp31.Type = TType.I32; + tmp31.ID = 4; + await oprot.WriteFieldBeginAsync(tmp31, cancellationToken); await oprot.WriteI32Async(SeqFileNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.unSeqFileNum) { - field.Name = "unSeqFileNum"; - field.Type = TType.I32; - field.ID = 5; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp31.Name = "unSeqFileNum"; + tmp31.Type = TType.I32; + tmp31.ID = 5; + await oprot.WriteFieldBeginAsync(tmp31, cancellationToken); await oprot.WriteI32Async(UnSeqFileNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.sequenceChunkNum) { - field.Name = "sequenceChunkNum"; - field.Type = TType.I32; - field.ID = 6; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp31.Name = "sequenceChunkNum"; + tmp31.Type = TType.I32; + tmp31.ID = 6; + await oprot.WriteFieldBeginAsync(tmp31, cancellationToken); await oprot.WriteI32Async(SequenceChunkNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.sequenceChunkPointNum) { - field.Name = "sequenceChunkPointNum"; - field.Type = TType.I64; - field.ID = 7; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp31.Name = "sequenceChunkPointNum"; + tmp31.Type = TType.I64; + tmp31.ID = 7; + await oprot.WriteFieldBeginAsync(tmp31, cancellationToken); await oprot.WriteI64Async(SequenceChunkPointNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.unsequenceChunkNum) { - field.Name = "unsequenceChunkNum"; - field.Type = TType.I32; - field.ID = 8; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp31.Name = "unsequenceChunkNum"; + tmp31.Type = TType.I32; + tmp31.ID = 8; + await oprot.WriteFieldBeginAsync(tmp31, cancellationToken); await oprot.WriteI32Async(UnsequenceChunkNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.unsequenceChunkPointNum) { - field.Name = "unsequenceChunkPointNum"; - field.Type = TType.I64; - field.ID = 9; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp31.Name = "unsequenceChunkPointNum"; + tmp31.Type = TType.I64; + tmp31.ID = 9; + await oprot.WriteFieldBeginAsync(tmp31, cancellationToken); await oprot.WriteI64Async(UnsequenceChunkPointNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.totalPageNum) { - field.Name = "totalPageNum"; - field.Type = TType.I32; - field.ID = 10; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp31.Name = "totalPageNum"; + tmp31.Type = TType.I32; + tmp31.ID = 10; + await oprot.WriteFieldBeginAsync(tmp31, cancellationToken); await oprot.WriteI32Async(TotalPageNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.overlappedPageNum) { - field.Name = "overlappedPageNum"; - field.Type = TType.I32; - field.ID = 11; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp31.Name = "overlappedPageNum"; + tmp31.Type = TType.I32; + tmp31.ID = 11; + await oprot.WriteFieldBeginAsync(tmp31, cancellationToken); await oprot.WriteI32Async(OverlappedPageNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -562,64 +563,64 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSTracingInfo("); + var tmp34 = new StringBuilder("TSTracingInfo("); if((ActivityList != null)) { - sb.Append(", ActivityList: "); - ActivityList.ToString(sb); + tmp34.Append(", ActivityList: "); + ActivityList.ToString(tmp34); } if((ElapsedTimeList != null)) { - sb.Append(", ElapsedTimeList: "); - ElapsedTimeList.ToString(sb); + tmp34.Append(", ElapsedTimeList: "); + ElapsedTimeList.ToString(tmp34); } if(__isset.seriesPathNum) { - sb.Append(", SeriesPathNum: "); - SeriesPathNum.ToString(sb); + tmp34.Append(", SeriesPathNum: "); + SeriesPathNum.ToString(tmp34); } if(__isset.seqFileNum) { - sb.Append(", SeqFileNum: "); - SeqFileNum.ToString(sb); + tmp34.Append(", SeqFileNum: "); + SeqFileNum.ToString(tmp34); } if(__isset.unSeqFileNum) { - sb.Append(", UnSeqFileNum: "); - UnSeqFileNum.ToString(sb); + tmp34.Append(", UnSeqFileNum: "); + UnSeqFileNum.ToString(tmp34); } if(__isset.sequenceChunkNum) { - sb.Append(", SequenceChunkNum: "); - SequenceChunkNum.ToString(sb); + tmp34.Append(", SequenceChunkNum: "); + SequenceChunkNum.ToString(tmp34); } if(__isset.sequenceChunkPointNum) { - sb.Append(", SequenceChunkPointNum: "); - SequenceChunkPointNum.ToString(sb); + tmp34.Append(", SequenceChunkPointNum: "); + SequenceChunkPointNum.ToString(tmp34); } if(__isset.unsequenceChunkNum) { - sb.Append(", UnsequenceChunkNum: "); - UnsequenceChunkNum.ToString(sb); + tmp34.Append(", UnsequenceChunkNum: "); + UnsequenceChunkNum.ToString(tmp34); } if(__isset.unsequenceChunkPointNum) { - sb.Append(", UnsequenceChunkPointNum: "); - UnsequenceChunkPointNum.ToString(sb); + tmp34.Append(", UnsequenceChunkPointNum: "); + UnsequenceChunkPointNum.ToString(tmp34); } if(__isset.totalPageNum) { - sb.Append(", TotalPageNum: "); - TotalPageNum.ToString(sb); + tmp34.Append(", TotalPageNum: "); + TotalPageNum.ToString(tmp34); } if(__isset.overlappedPageNum) { - sb.Append(", OverlappedPageNum: "); - OverlappedPageNum.ToString(sb); + tmp34.Append(", OverlappedPageNum: "); + OverlappedPageNum.ToString(tmp34); } - sb.Append(')'); - return sb.ToString(); + tmp34.Append(')'); + return tmp34.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSUnsetSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSUnsetSchemaTemplateReq.cs index 7aa04f4..ece6424 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSUnsetSchemaTemplateReq : TBase @@ -135,30 +136,30 @@ public TSUnsetSchemaTemplateReq(long sessionId, string prefixPath, string templa oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSUnsetSchemaTemplateReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "sessionId"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp539 = new TStruct("TSUnsetSchemaTemplateReq"); + await oprot.WriteStructBeginAsync(tmp539, cancellationToken); + var tmp540 = new TField(); + tmp540.Name = "sessionId"; + tmp540.Type = TType.I64; + tmp540.ID = 1; + await oprot.WriteFieldBeginAsync(tmp540, 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); + tmp540.Name = "prefixPath"; + tmp540.Type = TType.String; + tmp540.ID = 2; + await oprot.WriteFieldBeginAsync(tmp540, 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); + tmp540.Name = "templateName"; + tmp540.Type = TType.String; + tmp540.ID = 3; + await oprot.WriteFieldBeginAsync(tmp540, cancellationToken); await oprot.WriteStringAsync(TemplateName, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -198,21 +199,21 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSUnsetSchemaTemplateReq("); - sb.Append(", SessionId: "); - SessionId.ToString(sb); + var tmp541 = new StringBuilder("TSUnsetSchemaTemplateReq("); + tmp541.Append(", SessionId: "); + SessionId.ToString(tmp541); if((PrefixPath != null)) { - sb.Append(", PrefixPath: "); - PrefixPath.ToString(sb); + tmp541.Append(", PrefixPath: "); + PrefixPath.ToString(tmp541); } if((TemplateName != null)) { - sb.Append(", TemplateName: "); - TemplateName.ToString(sb); + tmp541.Append(", TemplateName: "); + TemplateName.ToString(tmp541); } - sb.Append(')'); - return sb.ToString(); + tmp541.Append(')'); + return tmp541.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs b/src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs index 1cc55f7..2ff205d 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSchemaNode : TBase @@ -116,22 +117,22 @@ public TSchemaNode(string nodeName, sbyte nodeType) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSchemaNode"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp76 = new TStruct("TSchemaNode"); + await oprot.WriteStructBeginAsync(tmp76, cancellationToken); + var tmp77 = new TField(); if((NodeName != null)) { - field.Name = "nodeName"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp77.Name = "nodeName"; + tmp77.Type = TType.String; + tmp77.ID = 1; + await oprot.WriteFieldBeginAsync(tmp77, cancellationToken); await oprot.WriteStringAsync(NodeName, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - field.Name = "nodeType"; - field.Type = TType.Byte; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp77.Name = "nodeType"; + tmp77.Type = TType.Byte; + tmp77.ID = 2; + await oprot.WriteFieldBeginAsync(tmp77, cancellationToken); await oprot.WriteByteAsync(NodeType, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -165,16 +166,16 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSchemaNode("); + var tmp78 = new StringBuilder("TSchemaNode("); if((NodeName != null)) { - sb.Append(", NodeName: "); - NodeName.ToString(sb); + tmp78.Append(", NodeName: "); + NodeName.ToString(tmp78); } - sb.Append(", NodeType: "); - NodeType.ToString(sb); - sb.Append(')'); - return sb.ToString(); + tmp78.Append(", NodeType: "); + NodeType.ToString(tmp78); + tmp78.Append(')'); + return tmp78.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSender.cs b/src/Apache.IoTDB/Rpc/Generated/TSender.cs index c530a44..f712999 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSender : TBase @@ -132,24 +133,24 @@ public TSender() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSender"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp158 = new TStruct("TSender"); + await oprot.WriteStructBeginAsync(tmp158, cancellationToken); + var tmp159 = new TField(); if((DataNodeLocation != null) && __isset.dataNodeLocation) { - field.Name = "dataNodeLocation"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp159.Name = "dataNodeLocation"; + tmp159.Type = TType.Struct; + tmp159.ID = 1; + await oprot.WriteFieldBeginAsync(tmp159, 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); + tmp159.Name = "configNodeLocation"; + tmp159.Type = TType.Struct; + tmp159.ID = 2; + await oprot.WriteFieldBeginAsync(tmp159, cancellationToken); await ConfigNodeLocation.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -187,22 +188,22 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSender("); - int tmp70 = 0; + var tmp160 = new StringBuilder("TSender("); + int tmp161 = 0; if((DataNodeLocation != null) && __isset.dataNodeLocation) { - if(0 < tmp70++) { sb.Append(", "); } - sb.Append("DataNodeLocation: "); - DataNodeLocation.ToString(sb); + if(0 < tmp161++) { tmp160.Append(", "); } + tmp160.Append("DataNodeLocation: "); + DataNodeLocation.ToString(tmp160); } if((ConfigNodeLocation != null) && __isset.configNodeLocation) { - if(0 < tmp70++) { sb.Append(", "); } - sb.Append("ConfigNodeLocation: "); - ConfigNodeLocation.ToString(sb); + if(0 < tmp161++) { tmp160.Append(", "); } + tmp160.Append("ConfigNodeLocation: "); + ConfigNodeLocation.ToString(tmp160); } - sb.Append(')'); - return sb.ToString(); + tmp160.Append(')'); + return tmp160.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSeriesPartitionSlot.cs b/src/Apache.IoTDB/Rpc/Generated/TSeriesPartitionSlot.cs index 3f14d2b..8d91fdf 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSeriesPartitionSlot : TBase @@ -97,13 +98,13 @@ public TSeriesPartitionSlot(int slotId) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSeriesPartitionSlot"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "slotId"; - field.Type = TType.I32; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp16 = new TStruct("TSeriesPartitionSlot"); + await oprot.WriteStructBeginAsync(tmp16, cancellationToken); + var tmp17 = new TField(); + tmp17.Name = "slotId"; + tmp17.Type = TType.I32; + tmp17.ID = 1; + await oprot.WriteFieldBeginAsync(tmp17, cancellationToken); await oprot.WriteI32Async(SlotId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -132,11 +133,11 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSeriesPartitionSlot("); - sb.Append(", SlotId: "); - SlotId.ToString(sb); - sb.Append(')'); - return sb.ToString(); + var tmp18 = new StringBuilder("TSeriesPartitionSlot("); + tmp18.Append(", SlotId: "); + SlotId.ToString(tmp18); + tmp18.Append(')'); + return tmp18.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TServiceProvider.cs b/src/Apache.IoTDB/Rpc/Generated/TServiceProvider.cs index 3480593..67eb6bb 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TServiceProvider : TBase @@ -40,14 +41,17 @@ public partial class TServiceProvider : TBase /// public TServiceType ServiceType { get; set; } + public int NodeId { get; set; } + public TServiceProvider() { } - public TServiceProvider(TEndPoint endPoint, TServiceType serviceType) : this() + public TServiceProvider(TEndPoint endPoint, TServiceType serviceType, int nodeId) : this() { this.EndPoint = endPoint; this.ServiceType = serviceType; + this.NodeId = nodeId; } public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) @@ -57,6 +61,7 @@ public TServiceProvider(TEndPoint endPoint, TServiceType serviceType) : this() { bool isset_endPoint = false; bool isset_serviceType = false; + bool isset_nodeId = false; TField field; await iprot.ReadStructBeginAsync(cancellationToken); while (true) @@ -92,6 +97,17 @@ public TServiceProvider(TEndPoint endPoint, TServiceType serviceType) : this() await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; + case 3: + 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; @@ -109,6 +125,10 @@ public TServiceProvider(TEndPoint endPoint, TServiceType serviceType) : this() { throw new TProtocolException(TProtocolException.INVALID_DATA); } + if (!isset_nodeId) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } } finally { @@ -121,24 +141,30 @@ public TServiceProvider(TEndPoint endPoint, TServiceType serviceType) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TServiceProvider"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp154 = new TStruct("TServiceProvider"); + await oprot.WriteStructBeginAsync(tmp154, cancellationToken); + var tmp155 = new TField(); if((EndPoint != null)) { - field.Name = "endPoint"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp155.Name = "endPoint"; + tmp155.Type = TType.Struct; + tmp155.ID = 1; + await oprot.WriteFieldBeginAsync(tmp155, 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); + tmp155.Name = "serviceType"; + tmp155.Type = TType.I32; + tmp155.ID = 2; + await oprot.WriteFieldBeginAsync(tmp155, cancellationToken); await oprot.WriteI32Async((int)ServiceType, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); + tmp155.Name = "nodeId"; + tmp155.Type = TType.I32; + tmp155.ID = 3; + await oprot.WriteFieldBeginAsync(tmp155, cancellationToken); + await oprot.WriteI32Async(NodeId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -153,7 +179,8 @@ public override bool Equals(object that) 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); + && System.Object.Equals(ServiceType, other.ServiceType) + && System.Object.Equals(NodeId, other.NodeId); } public override int GetHashCode() { @@ -164,22 +191,25 @@ public override int GetHashCode() { hashcode = (hashcode * 397) + EndPoint.GetHashCode(); } hashcode = (hashcode * 397) + ServiceType.GetHashCode(); + hashcode = (hashcode * 397) + NodeId.GetHashCode(); } return hashcode; } public override string ToString() { - var sb = new StringBuilder("TServiceProvider("); + var tmp156 = new StringBuilder("TServiceProvider("); if((EndPoint != null)) { - sb.Append(", EndPoint: "); - EndPoint.ToString(sb); + tmp156.Append(", EndPoint: "); + EndPoint.ToString(tmp156); } - sb.Append(", ServiceType: "); - ServiceType.ToString(sb); - sb.Append(')'); - return sb.ToString(); + tmp156.Append(", ServiceType: "); + ServiceType.ToString(tmp156); + tmp156.Append(", NodeId: "); + NodeId.ToString(tmp156); + tmp156.Append(')'); + return tmp156.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TServiceType.cs b/src/Apache.IoTDB/Rpc/Generated/TServiceType.cs index 757c67a..ba27d73 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TServiceType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TServiceType.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,6 +7,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum TServiceType { diff --git a/src/Apache.IoTDB/Rpc/Generated/TSetConfigurationReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSetConfigurationReq.cs index a152b1c..473d259 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSetConfigurationReq : TBase @@ -69,15 +70,15 @@ public TSetConfigurationReq(Dictionary configs, int nodeId) : th if (field.Type == TType.Map) { { - TMap _map31 = await iprot.ReadMapBeginAsync(cancellationToken); - Configs = new Dictionary(_map31.Count); - for(int _i32 = 0; _i32 < _map31.Count; ++_i32) + TMap _map80 = await iprot.ReadMapBeginAsync(cancellationToken); + Configs = new Dictionary(_map80.Count); + for(int _i81 = 0; _i81 < _map80.Count; ++_i81) { - string _key33; - string _val34; - _key33 = await iprot.ReadStringAsync(cancellationToken); - _val34 = await iprot.ReadStringAsync(cancellationToken); - Configs[_key33] = _val34; + string _key82; + string _val83; + _key82 = await iprot.ReadStringAsync(cancellationToken); + _val83 = await iprot.ReadStringAsync(cancellationToken); + Configs[_key82] = _val83; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -128,30 +129,30 @@ public TSetConfigurationReq(Dictionary configs, int nodeId) : th oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSetConfigurationReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp84 = new TStruct("TSetConfigurationReq"); + await oprot.WriteStructBeginAsync(tmp84, cancellationToken); + var tmp85 = new TField(); if((Configs != null)) { - field.Name = "configs"; - field.Type = TType.Map; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp85.Name = "configs"; + tmp85.Type = TType.Map; + tmp85.ID = 1; + await oprot.WriteFieldBeginAsync(tmp85, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Configs.Count), cancellationToken); - foreach (string _iter35 in Configs.Keys) + foreach (string _iter86 in Configs.Keys) { - await oprot.WriteStringAsync(_iter35, cancellationToken); - await oprot.WriteStringAsync(Configs[_iter35], cancellationToken); + await oprot.WriteStringAsync(_iter86, cancellationToken); + await oprot.WriteStringAsync(Configs[_iter86], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - field.Name = "nodeId"; - field.Type = TType.I32; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp85.Name = "nodeId"; + tmp85.Type = TType.I32; + tmp85.ID = 2; + await oprot.WriteFieldBeginAsync(tmp85, cancellationToken); await oprot.WriteI32Async(NodeId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -185,16 +186,16 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSetConfigurationReq("); + var tmp87 = new StringBuilder("TSetConfigurationReq("); if((Configs != null)) { - sb.Append(", Configs: "); - Configs.ToString(sb); + tmp87.Append(", Configs: "); + Configs.ToString(tmp87); } - sb.Append(", NodeId: "); - NodeId.ToString(sb); - sb.Append(')'); - return sb.ToString(); + tmp87.Append(", NodeId: "); + NodeId.ToString(tmp87); + tmp87.Append(')'); + return tmp87.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSetSpaceQuotaReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSetSpaceQuotaReq.cs index e9a23e9..c701e77 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSetSpaceQuotaReq : TBase @@ -69,13 +70,13 @@ public TSetSpaceQuotaReq(List database, TSpaceQuota spaceLimit) : this() if (field.Type == TType.List) { { - TList _list61 = await iprot.ReadListBeginAsync(cancellationToken); - Database = new List(_list61.Count); - for(int _i62 = 0; _i62 < _list61.Count; ++_i62) + TList _list134 = await iprot.ReadListBeginAsync(cancellationToken); + Database = new List(_list134.Count); + for(int _i135 = 0; _i135 < _list134.Count; ++_i135) { - string _elem63; - _elem63 = await iprot.ReadStringAsync(cancellationToken); - Database.Add(_elem63); + string _elem136; + _elem136 = await iprot.ReadStringAsync(cancellationToken); + Database.Add(_elem136); } await iprot.ReadListEndAsync(cancellationToken); } @@ -127,20 +128,20 @@ public TSetSpaceQuotaReq(List database, TSpaceQuota spaceLimit) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSetSpaceQuotaReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp137 = new TStruct("TSetSpaceQuotaReq"); + await oprot.WriteStructBeginAsync(tmp137, cancellationToken); + var tmp138 = new TField(); if((Database != null)) { - field.Name = "database"; - field.Type = TType.List; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp138.Name = "database"; + tmp138.Type = TType.List; + tmp138.ID = 1; + await oprot.WriteFieldBeginAsync(tmp138, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Database.Count), cancellationToken); - foreach (string _iter64 in Database) + foreach (string _iter139 in Database) { - await oprot.WriteStringAsync(_iter64, cancellationToken); + await oprot.WriteStringAsync(_iter139, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -148,10 +149,10 @@ public TSetSpaceQuotaReq(List database, TSpaceQuota spaceLimit) : this() } if((SpaceLimit != null)) { - field.Name = "spaceLimit"; - field.Type = TType.Struct; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp138.Name = "spaceLimit"; + tmp138.Type = TType.Struct; + tmp138.ID = 2; + await oprot.WriteFieldBeginAsync(tmp138, cancellationToken); await SpaceLimit.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -189,19 +190,19 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSetSpaceQuotaReq("); + var tmp140 = new StringBuilder("TSetSpaceQuotaReq("); if((Database != null)) { - sb.Append(", Database: "); - Database.ToString(sb); + tmp140.Append(", Database: "); + Database.ToString(tmp140); } if((SpaceLimit != null)) { - sb.Append(", SpaceLimit: "); - SpaceLimit.ToString(sb); + tmp140.Append(", SpaceLimit: "); + SpaceLimit.ToString(tmp140); } - sb.Append(')'); - return sb.ToString(); + tmp140.Append(')'); + return tmp140.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSetTTLReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSetTTLReq.cs index b2ad1ae..29abc18 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSetTTLReq : TBase @@ -73,13 +74,13 @@ public TSetTTLReq(List pathPattern, long TTL, bool isDataBase) : this() if (field.Type == TType.List) { { - TList _list37 = await iprot.ReadListBeginAsync(cancellationToken); - PathPattern = new List(_list37.Count); - for(int _i38 = 0; _i38 < _list37.Count; ++_i38) + TList _list89 = await iprot.ReadListBeginAsync(cancellationToken); + PathPattern = new List(_list89.Count); + for(int _i90 = 0; _i90 < _list89.Count; ++_i90) { - string _elem39; - _elem39 = await iprot.ReadStringAsync(cancellationToken); - PathPattern.Add(_elem39); + string _elem91; + _elem91 = await iprot.ReadStringAsync(cancellationToken); + PathPattern.Add(_elem91); } await iprot.ReadListEndAsync(cancellationToken); } @@ -145,35 +146,35 @@ public TSetTTLReq(List pathPattern, long TTL, bool isDataBase) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSetTTLReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp92 = new TStruct("TSetTTLReq"); + await oprot.WriteStructBeginAsync(tmp92, cancellationToken); + var tmp93 = new TField(); if((PathPattern != null)) { - field.Name = "pathPattern"; - field.Type = TType.List; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp93.Name = "pathPattern"; + tmp93.Type = TType.List; + tmp93.ID = 1; + await oprot.WriteFieldBeginAsync(tmp93, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, PathPattern.Count), cancellationToken); - foreach (string _iter40 in PathPattern) + foreach (string _iter94 in PathPattern) { - await oprot.WriteStringAsync(_iter40, cancellationToken); + await oprot.WriteStringAsync(_iter94, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - field.Name = "TTL"; - field.Type = TType.I64; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp93.Name = "TTL"; + tmp93.Type = TType.I64; + tmp93.ID = 2; + await oprot.WriteFieldBeginAsync(tmp93, 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); + tmp93.Name = "isDataBase"; + tmp93.Type = TType.Bool; + tmp93.ID = 3; + await oprot.WriteFieldBeginAsync(tmp93, cancellationToken); await oprot.WriteBoolAsync(IsDataBase, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -209,18 +210,18 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSetTTLReq("); + var tmp95 = new StringBuilder("TSetTTLReq("); if((PathPattern != null)) { - sb.Append(", PathPattern: "); - PathPattern.ToString(sb); + tmp95.Append(", PathPattern: "); + PathPattern.ToString(tmp95); } - sb.Append(", TTL: "); - TTL.ToString(sb); - sb.Append(", IsDataBase: "); - IsDataBase.ToString(sb); - sb.Append(')'); - return sb.ToString(); + tmp95.Append(", TTL: "); + TTL.ToString(tmp95); + tmp95.Append(", IsDataBase: "); + IsDataBase.ToString(tmp95); + tmp95.Append(')'); + return tmp95.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSetThrottleQuotaReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSetThrottleQuotaReq.cs index 651db17..21ad2d6 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSetThrottleQuotaReq : TBase @@ -117,24 +118,24 @@ public TSetThrottleQuotaReq(string userName, TThrottleQuota throttleQuota) : thi oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSetThrottleQuotaReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp142 = new TStruct("TSetThrottleQuotaReq"); + await oprot.WriteStructBeginAsync(tmp142, cancellationToken); + var tmp143 = new TField(); if((UserName != null)) { - field.Name = "userName"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp143.Name = "userName"; + tmp143.Type = TType.String; + tmp143.ID = 1; + await oprot.WriteFieldBeginAsync(tmp143, 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); + tmp143.Name = "throttleQuota"; + tmp143.Type = TType.Struct; + tmp143.ID = 2; + await oprot.WriteFieldBeginAsync(tmp143, cancellationToken); await ThrottleQuota.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -172,19 +173,19 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSetThrottleQuotaReq("); + var tmp144 = new StringBuilder("TSetThrottleQuotaReq("); if((UserName != null)) { - sb.Append(", UserName: "); - UserName.ToString(sb); + tmp144.Append(", UserName: "); + UserName.ToString(tmp144); } if((ThrottleQuota != null)) { - sb.Append(", ThrottleQuota: "); - ThrottleQuota.ToString(sb); + tmp144.Append(", ThrottleQuota: "); + ThrottleQuota.ToString(tmp144); } - sb.Append(')'); - return sb.ToString(); + tmp144.Append(')'); + return tmp144.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs index f2d9138..32852ec 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSettleReq : TBase @@ -65,13 +66,13 @@ public TSettleReq(List paths) : this() if (field.Type == TType.List) { { - TList _list25 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list25.Count); - for(int _i26 = 0; _i26 < _list25.Count; ++_i26) + TList _list68 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list68.Count); + for(int _i69 = 0; _i69 < _list68.Count; ++_i69) { - string _elem27; - _elem27 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem27); + string _elem70; + _elem70 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem70); } await iprot.ReadListEndAsync(cancellationToken); } @@ -107,20 +108,20 @@ public TSettleReq(List paths) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSettleReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp71 = new TStruct("TSettleReq"); + await oprot.WriteStructBeginAsync(tmp71, cancellationToken); + var tmp72 = new TField(); if((Paths != null)) { - field.Name = "paths"; - field.Type = TType.List; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp72.Name = "paths"; + tmp72.Type = TType.List; + tmp72.ID = 1; + await oprot.WriteFieldBeginAsync(tmp72, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Paths.Count), cancellationToken); - foreach (string _iter28 in Paths) + foreach (string _iter73 in Paths) { - await oprot.WriteStringAsync(_iter28, cancellationToken); + await oprot.WriteStringAsync(_iter73, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -155,14 +156,14 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSettleReq("); + var tmp74 = new StringBuilder("TSettleReq("); if((Paths != null)) { - sb.Append(", Paths: "); - Paths.ToString(sb); + tmp74.Append(", Paths: "); + Paths.ToString(tmp74); } - sb.Append(')'); - return sb.ToString(); + tmp74.Append(')'); + return tmp74.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationResp.cs b/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationResp.cs index 0fa4bb9..56031aa 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TShowConfigurationResp : TBase @@ -117,24 +118,24 @@ public TShowConfigurationResp(TSStatus status, string content) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TShowConfigurationResp"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp190 = new TStruct("TShowConfigurationResp"); + await oprot.WriteStructBeginAsync(tmp190, cancellationToken); + var tmp191 = new TField(); if((Status != null)) { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp191.Name = "status"; + tmp191.Type = TType.Struct; + tmp191.ID = 1; + await oprot.WriteFieldBeginAsync(tmp191, 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); + tmp191.Name = "content"; + tmp191.Type = TType.String; + tmp191.ID = 2; + await oprot.WriteFieldBeginAsync(tmp191, cancellationToken); await oprot.WriteStringAsync(Content, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -172,19 +173,19 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TShowConfigurationResp("); + var tmp192 = new StringBuilder("TShowConfigurationResp("); if((Status != null)) { - sb.Append(", Status: "); - Status.ToString(sb); + tmp192.Append(", Status: "); + Status.ToString(tmp192); } if((Content != null)) { - sb.Append(", Content: "); - Content.ToString(sb); + tmp192.Append(", Content: "); + Content.ToString(tmp192); } - sb.Append(')'); - return sb.ToString(); + tmp192.Append(')'); + return tmp192.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationTemplateResp.cs b/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationTemplateResp.cs index 79ab277..69d8946 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TShowConfigurationTemplateResp : TBase @@ -117,24 +118,24 @@ public TShowConfigurationTemplateResp(TSStatus status, string content) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TShowConfigurationTemplateResp"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp186 = new TStruct("TShowConfigurationTemplateResp"); + await oprot.WriteStructBeginAsync(tmp186, cancellationToken); + var tmp187 = new TField(); if((Status != null)) { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp187.Name = "status"; + tmp187.Type = TType.Struct; + tmp187.ID = 1; + await oprot.WriteFieldBeginAsync(tmp187, 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); + tmp187.Name = "content"; + tmp187.Type = TType.String; + tmp187.ID = 2; + await oprot.WriteFieldBeginAsync(tmp187, cancellationToken); await oprot.WriteStringAsync(Content, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -172,19 +173,19 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TShowConfigurationTemplateResp("); + var tmp188 = new StringBuilder("TShowConfigurationTemplateResp("); if((Status != null)) { - sb.Append(", Status: "); - Status.ToString(sb); + tmp188.Append(", Status: "); + Status.ToString(tmp188); } if((Content != null)) { - sb.Append(", Content: "); - Content.ToString(sb); + tmp188.Append(", Content: "); + Content.ToString(tmp188); } - sb.Append(')'); - return sb.ToString(); + tmp188.Append(')'); + return tmp188.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs b/src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs index d99929a..8272bbb 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TShowTTLReq : TBase @@ -65,13 +66,13 @@ public TShowTTLReq(List pathPattern) : this() if (field.Type == TType.List) { { - TList _list42 = await iprot.ReadListBeginAsync(cancellationToken); - PathPattern = new List(_list42.Count); - for(int _i43 = 0; _i43 < _list42.Count; ++_i43) + TList _list97 = await iprot.ReadListBeginAsync(cancellationToken); + PathPattern = new List(_list97.Count); + for(int _i98 = 0; _i98 < _list97.Count; ++_i98) { - string _elem44; - _elem44 = await iprot.ReadStringAsync(cancellationToken); - PathPattern.Add(_elem44); + string _elem99; + _elem99 = await iprot.ReadStringAsync(cancellationToken); + PathPattern.Add(_elem99); } await iprot.ReadListEndAsync(cancellationToken); } @@ -107,20 +108,20 @@ public TShowTTLReq(List pathPattern) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TShowTTLReq"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp100 = new TStruct("TShowTTLReq"); + await oprot.WriteStructBeginAsync(tmp100, cancellationToken); + var tmp101 = new TField(); if((PathPattern != null)) { - field.Name = "pathPattern"; - field.Type = TType.List; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp101.Name = "pathPattern"; + tmp101.Type = TType.List; + tmp101.ID = 1; + await oprot.WriteFieldBeginAsync(tmp101, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, PathPattern.Count), cancellationToken); - foreach (string _iter45 in PathPattern) + foreach (string _iter102 in PathPattern) { - await oprot.WriteStringAsync(_iter45, cancellationToken); + await oprot.WriteStringAsync(_iter102, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -155,14 +156,14 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TShowTTLReq("); + var tmp103 = new StringBuilder("TShowTTLReq("); if((PathPattern != null)) { - sb.Append(", PathPattern: "); - PathPattern.ToString(sb); + tmp103.Append(", PathPattern: "); + PathPattern.ToString(tmp103); } - sb.Append(')'); - return sb.ToString(); + tmp103.Append(')'); + return tmp103.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs b/src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs index 4f48520..dec5b73 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSpaceQuota : TBase @@ -155,33 +156,33 @@ public TSpaceQuota() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSpaceQuota"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp117 = new TStruct("TSpaceQuota"); + await oprot.WriteStructBeginAsync(tmp117, cancellationToken); + var tmp118 = new TField(); if(__isset.diskSize) { - field.Name = "diskSize"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp118.Name = "diskSize"; + tmp118.Type = TType.I64; + tmp118.ID = 1; + await oprot.WriteFieldBeginAsync(tmp118, 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); + tmp118.Name = "deviceNum"; + tmp118.Type = TType.I64; + tmp118.ID = 2; + await oprot.WriteFieldBeginAsync(tmp118, 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); + tmp118.Name = "timeserieNum"; + tmp118.Type = TType.I64; + tmp118.ID = 3; + await oprot.WriteFieldBeginAsync(tmp118, cancellationToken); await oprot.WriteI64Async(TimeserieNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -224,28 +225,28 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSpaceQuota("); - int tmp53 = 0; + var tmp119 = new StringBuilder("TSpaceQuota("); + int tmp120 = 0; if(__isset.diskSize) { - if(0 < tmp53++) { sb.Append(", "); } - sb.Append("DiskSize: "); - DiskSize.ToString(sb); + if(0 < tmp120++) { tmp119.Append(", "); } + tmp119.Append("DiskSize: "); + DiskSize.ToString(tmp119); } if(__isset.deviceNum) { - if(0 < tmp53++) { sb.Append(", "); } - sb.Append("DeviceNum: "); - DeviceNum.ToString(sb); + if(0 < tmp120++) { tmp119.Append(", "); } + tmp119.Append("DeviceNum: "); + DeviceNum.ToString(tmp119); } if(__isset.timeserieNum) { - if(0 < tmp53++) { sb.Append(", "); } - sb.Append("TimeserieNum: "); - TimeserieNum.ToString(sb); + if(0 < tmp120++) { tmp119.Append(", "); } + tmp119.Append("TimeserieNum: "); + TimeserieNum.ToString(tmp119); } - sb.Append(')'); - return sb.ToString(); + tmp119.Append(')'); + return tmp119.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSyncIdentityInfo.cs b/src/Apache.IoTDB/Rpc/Generated/TSyncIdentityInfo.cs index ccf7bc5..5c8d708 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSyncIdentityInfo : TBase @@ -154,39 +155,39 @@ public TSyncIdentityInfo(string pipeName, long createTime, string version, strin oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSyncIdentityInfo"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp555 = new TStruct("TSyncIdentityInfo"); + await oprot.WriteStructBeginAsync(tmp555, cancellationToken); + var tmp556 = new TField(); if((PipeName != null)) { - field.Name = "pipeName"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp556.Name = "pipeName"; + tmp556.Type = TType.String; + tmp556.ID = 1; + await oprot.WriteFieldBeginAsync(tmp556, 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); + tmp556.Name = "createTime"; + tmp556.Type = TType.I64; + tmp556.ID = 2; + await oprot.WriteFieldBeginAsync(tmp556, 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); + tmp556.Name = "version"; + tmp556.Type = TType.String; + tmp556.ID = 3; + await oprot.WriteFieldBeginAsync(tmp556, 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); + tmp556.Name = "database"; + tmp556.Type = TType.String; + tmp556.ID = 4; + await oprot.WriteFieldBeginAsync(tmp556, cancellationToken); await oprot.WriteStringAsync(Database, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -231,26 +232,26 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSyncIdentityInfo("); + var tmp557 = new StringBuilder("TSyncIdentityInfo("); if((PipeName != null)) { - sb.Append(", PipeName: "); - PipeName.ToString(sb); + tmp557.Append(", PipeName: "); + PipeName.ToString(tmp557); } - sb.Append(", CreateTime: "); - CreateTime.ToString(sb); + tmp557.Append(", CreateTime: "); + CreateTime.ToString(tmp557); if((Version != null)) { - sb.Append(", Version: "); - Version.ToString(sb); + tmp557.Append(", Version: "); + Version.ToString(tmp557); } if((Database != null)) { - sb.Append(", Database: "); - Database.ToString(sb); + tmp557.Append(", Database: "); + Database.ToString(tmp557); } - sb.Append(')'); - return sb.ToString(); + tmp557.Append(')'); + return tmp557.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSyncTransportMetaInfo.cs b/src/Apache.IoTDB/Rpc/Generated/TSyncTransportMetaInfo.cs index ef840cc..411b60c 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSyncTransportMetaInfo : TBase @@ -116,22 +117,22 @@ public TSyncTransportMetaInfo(string fileName, long startIndex) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TSyncTransportMetaInfo"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp559 = new TStruct("TSyncTransportMetaInfo"); + await oprot.WriteStructBeginAsync(tmp559, cancellationToken); + var tmp560 = new TField(); if((FileName != null)) { - field.Name = "fileName"; - field.Type = TType.String; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp560.Name = "fileName"; + tmp560.Type = TType.String; + tmp560.ID = 1; + await oprot.WriteFieldBeginAsync(tmp560, cancellationToken); await oprot.WriteStringAsync(FileName, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - field.Name = "startIndex"; - field.Type = TType.I64; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp560.Name = "startIndex"; + tmp560.Type = TType.I64; + tmp560.ID = 2; + await oprot.WriteFieldBeginAsync(tmp560, cancellationToken); await oprot.WriteI64Async(StartIndex, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -165,16 +166,16 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TSyncTransportMetaInfo("); + var tmp561 = new StringBuilder("TSyncTransportMetaInfo("); if((FileName != null)) { - sb.Append(", FileName: "); - FileName.ToString(sb); + tmp561.Append(", FileName: "); + FileName.ToString(tmp561); } - sb.Append(", StartIndex: "); - StartIndex.ToString(sb); - sb.Append(')'); - return sb.ToString(); + tmp561.Append(", StartIndex: "); + StartIndex.ToString(tmp561); + tmp561.Append(')'); + return tmp561.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResp.cs b/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResp.cs index f6b74eb..9ec36a3 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TTestConnectionResp : TBase @@ -81,14 +82,14 @@ public TTestConnectionResp(TSStatus status, List resultLi if (field.Type == TType.List) { { - TList _list72 = await iprot.ReadListBeginAsync(cancellationToken); - ResultList = new List(_list72.Count); - for(int _i73 = 0; _i73 < _list72.Count; ++_i73) + TList _list166 = await iprot.ReadListBeginAsync(cancellationToken); + ResultList = new List(_list166.Count); + for(int _i167 = 0; _i167 < _list166.Count; ++_i167) { - TTestConnectionResult _elem74; - _elem74 = new TTestConnectionResult(); - await _elem74.ReadAsync(iprot, cancellationToken); - ResultList.Add(_elem74); + TTestConnectionResult _elem168; + _elem168 = new TTestConnectionResult(); + await _elem168.ReadAsync(iprot, cancellationToken); + ResultList.Add(_elem168); } await iprot.ReadListEndAsync(cancellationToken); } @@ -128,29 +129,29 @@ public TTestConnectionResp(TSStatus status, List resultLi oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TTestConnectionResp"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp169 = new TStruct("TTestConnectionResp"); + await oprot.WriteStructBeginAsync(tmp169, cancellationToken); + var tmp170 = new TField(); if((Status != null)) { - field.Name = "status"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp170.Name = "status"; + tmp170.Type = TType.Struct; + tmp170.ID = 1; + await oprot.WriteFieldBeginAsync(tmp170, cancellationToken); await Status.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((ResultList != null)) { - field.Name = "resultList"; - field.Type = TType.List; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp170.Name = "resultList"; + tmp170.Type = TType.List; + tmp170.ID = 2; + await oprot.WriteFieldBeginAsync(tmp170, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, ResultList.Count), cancellationToken); - foreach (TTestConnectionResult _iter75 in ResultList) + foreach (TTestConnectionResult _iter171 in ResultList) { - await _iter75.WriteAsync(oprot, cancellationToken); + await _iter171.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -190,19 +191,19 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TTestConnectionResp("); + var tmp172 = new StringBuilder("TTestConnectionResp("); if((Status != null)) { - sb.Append(", Status: "); - Status.ToString(sb); + tmp172.Append(", Status: "); + Status.ToString(tmp172); } if((ResultList != null)) { - sb.Append(", ResultList: "); - ResultList.ToString(sb); + tmp172.Append(", ResultList: "); + ResultList.ToString(tmp172); } - sb.Append(')'); - return sb.ToString(); + tmp172.Append(')'); + return tmp172.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResult.cs b/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResult.cs index b4117b9..ec5807d 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TTestConnectionResult : TBase @@ -168,39 +169,39 @@ public TTestConnectionResult(TServiceProvider serviceProvider, TSender sender, b oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TTestConnectionResult"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp162 = new TStruct("TTestConnectionResult"); + await oprot.WriteStructBeginAsync(tmp162, cancellationToken); + var tmp163 = new TField(); if((ServiceProvider != null)) { - field.Name = "serviceProvider"; - field.Type = TType.Struct; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp163.Name = "serviceProvider"; + tmp163.Type = TType.Struct; + tmp163.ID = 1; + await oprot.WriteFieldBeginAsync(tmp163, 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); + tmp163.Name = "sender"; + tmp163.Type = TType.Struct; + tmp163.ID = 2; + await oprot.WriteFieldBeginAsync(tmp163, 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); + tmp163.Name = "success"; + tmp163.Type = TType.Bool; + tmp163.ID = 3; + await oprot.WriteFieldBeginAsync(tmp163, 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); + tmp163.Name = "reason"; + tmp163.Type = TType.String; + tmp163.ID = 4; + await oprot.WriteFieldBeginAsync(tmp163, cancellationToken); await oprot.WriteStringAsync(Reason, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -245,26 +246,26 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TTestConnectionResult("); + var tmp164 = new StringBuilder("TTestConnectionResult("); if((ServiceProvider != null)) { - sb.Append(", ServiceProvider: "); - ServiceProvider.ToString(sb); + tmp164.Append(", ServiceProvider: "); + ServiceProvider.ToString(tmp164); } if((Sender != null)) { - sb.Append(", Sender: "); - Sender.ToString(sb); + tmp164.Append(", Sender: "); + Sender.ToString(tmp164); } - sb.Append(", Success: "); - Success.ToString(sb); + tmp164.Append(", Success: "); + Success.ToString(tmp164); if((Reason != null) && __isset.reason) { - sb.Append(", Reason: "); - Reason.ToString(sb); + tmp164.Append(", Reason: "); + Reason.ToString(tmp164); } - sb.Append(')'); - return sb.ToString(); + tmp164.Append(')'); + return tmp164.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TThrottleQuota.cs b/src/Apache.IoTDB/Rpc/Generated/TThrottleQuota.cs index 16b958b..0803de8 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TThrottleQuota : TBase @@ -108,16 +109,16 @@ public TThrottleQuota() if (field.Type == TType.Map) { { - TMap _map55 = await iprot.ReadMapBeginAsync(cancellationToken); - ThrottleLimit = new Dictionary(_map55.Count); - for(int _i56 = 0; _i56 < _map55.Count; ++_i56) + TMap _map125 = await iprot.ReadMapBeginAsync(cancellationToken); + ThrottleLimit = new Dictionary(_map125.Count); + for(int _i126 = 0; _i126 < _map125.Count; ++_i126) { - ThrottleType _key57; - TTimedQuota _val58; - _key57 = (ThrottleType)await iprot.ReadI32Async(cancellationToken); - _val58 = new TTimedQuota(); - await _val58.ReadAsync(iprot, cancellationToken); - ThrottleLimit[_key57] = _val58; + ThrottleType _key127; + TTimedQuota _val128; + _key127 = (ThrottleType)await iprot.ReadI32Async(cancellationToken); + _val128 = new TTimedQuota(); + await _val128.ReadAsync(iprot, cancellationToken); + ThrottleLimit[_key127] = _val128; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -168,21 +169,21 @@ public TThrottleQuota() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TThrottleQuota"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); + var tmp129 = new TStruct("TThrottleQuota"); + await oprot.WriteStructBeginAsync(tmp129, cancellationToken); + var tmp130 = new TField(); if((ThrottleLimit != null) && __isset.throttleLimit) { - field.Name = "throttleLimit"; - field.Type = TType.Map; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp130.Name = "throttleLimit"; + tmp130.Type = TType.Map; + tmp130.ID = 1; + await oprot.WriteFieldBeginAsync(tmp130, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, ThrottleLimit.Count), cancellationToken); - foreach (ThrottleType _iter59 in ThrottleLimit.Keys) + foreach (ThrottleType _iter131 in ThrottleLimit.Keys) { - await oprot.WriteI32Async((int)_iter59, cancellationToken); - await ThrottleLimit[_iter59].WriteAsync(oprot, cancellationToken); + await oprot.WriteI32Async((int)_iter131, cancellationToken); + await ThrottleLimit[_iter131].WriteAsync(oprot, cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -190,19 +191,19 @@ public TThrottleQuota() } if(__isset.memLimit) { - field.Name = "memLimit"; - field.Type = TType.I64; - field.ID = 2; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + tmp130.Name = "memLimit"; + tmp130.Type = TType.I64; + tmp130.ID = 2; + await oprot.WriteFieldBeginAsync(tmp130, 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); + tmp130.Name = "cpuLimit"; + tmp130.Type = TType.I32; + tmp130.ID = 3; + await oprot.WriteFieldBeginAsync(tmp130, cancellationToken); await oprot.WriteI32Async(CpuLimit, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -245,28 +246,28 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TThrottleQuota("); - int tmp60 = 0; + var tmp132 = new StringBuilder("TThrottleQuota("); + int tmp133 = 0; if((ThrottleLimit != null) && __isset.throttleLimit) { - if(0 < tmp60++) { sb.Append(", "); } - sb.Append("ThrottleLimit: "); - ThrottleLimit.ToString(sb); + if(0 < tmp133++) { tmp132.Append(", "); } + tmp132.Append("ThrottleLimit: "); + ThrottleLimit.ToString(tmp132); } if(__isset.memLimit) { - if(0 < tmp60++) { sb.Append(", "); } - sb.Append("MemLimit: "); - MemLimit.ToString(sb); + if(0 < tmp133++) { tmp132.Append(", "); } + tmp132.Append("MemLimit: "); + MemLimit.ToString(tmp132); } if(__isset.cpuLimit) { - if(0 < tmp60++) { sb.Append(", "); } - sb.Append("CpuLimit: "); - CpuLimit.ToString(sb); + if(0 < tmp133++) { tmp132.Append(", "); } + tmp132.Append("CpuLimit: "); + CpuLimit.ToString(tmp132); } - sb.Append(')'); - return sb.ToString(); + tmp132.Append(')'); + return tmp132.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TTimePartitionSlot.cs b/src/Apache.IoTDB/Rpc/Generated/TTimePartitionSlot.cs index abf1d79..21f6b03 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.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TTimePartitionSlot : TBase @@ -97,13 +98,13 @@ public TTimePartitionSlot(long startTime) : this() oprot.IncrementRecursionDepth(); try { - var struc = new TStruct("TTimePartitionSlot"); - await oprot.WriteStructBeginAsync(struc, cancellationToken); - var field = new TField(); - field.Name = "startTime"; - field.Type = TType.I64; - field.ID = 1; - await oprot.WriteFieldBeginAsync(field, cancellationToken); + var tmp20 = new TStruct("TTimePartitionSlot"); + await oprot.WriteStructBeginAsync(tmp20, cancellationToken); + var tmp21 = new TField(); + tmp21.Name = "startTime"; + tmp21.Type = TType.I64; + tmp21.ID = 1; + await oprot.WriteFieldBeginAsync(tmp21, cancellationToken); await oprot.WriteI64Async(StartTime, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -132,11 +133,11 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TTimePartitionSlot("); - sb.Append(", StartTime: "); - StartTime.ToString(sb); - sb.Append(')'); - return sb.ToString(); + var tmp22 = new StringBuilder("TTimePartitionSlot("); + tmp22.Append(", StartTime: "); + StartTime.ToString(tmp22); + tmp22.Append(')'); + return tmp22.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TTimedQuota.cs b/src/Apache.IoTDB/Rpc/Generated/TTimedQuota.cs index 282ac91..b667002 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.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,6 +27,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TTimedQuota : TBase @@ -116,19 +117,19 @@ public TTimedQuota(long timeUnit, long softLimit) : this() 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); + var tmp121 = new TStruct("TTimedQuota"); + await oprot.WriteStructBeginAsync(tmp121, cancellationToken); + var tmp122 = new TField(); + tmp122.Name = "timeUnit"; + tmp122.Type = TType.I64; + tmp122.ID = 1; + await oprot.WriteFieldBeginAsync(tmp122, 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); + tmp122.Name = "softLimit"; + tmp122.Type = TType.I64; + tmp122.ID = 2; + await oprot.WriteFieldBeginAsync(tmp122, cancellationToken); await oprot.WriteI64Async(SoftLimit, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -159,13 +160,13 @@ public override int GetHashCode() { public override string ToString() { - var sb = new StringBuilder("TTimedQuota("); - sb.Append(", TimeUnit: "); - TimeUnit.ToString(sb); - sb.Append(", SoftLimit: "); - SoftLimit.ToString(sb); - sb.Append(')'); - return sb.ToString(); + var tmp123 = new StringBuilder("TTimedQuota("); + tmp123.Append(", TimeUnit: "); + TimeUnit.ToString(tmp123); + tmp123.Append(", SoftLimit: "); + SoftLimit.ToString(tmp123); + tmp123.Append(')'); + return tmp123.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/ThrottleType.cs b/src/Apache.IoTDB/Rpc/Generated/ThrottleType.cs index 425a016..bbac3d3 100644 --- a/src/Apache.IoTDB/Rpc/Generated/ThrottleType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/ThrottleType.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,6 +7,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum ThrottleType { diff --git a/src/Apache.IoTDB/Rpc/Generated/TrainingState.cs b/src/Apache.IoTDB/Rpc/Generated/TrainingState.cs index 4a68d2d..6491b1b 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TrainingState.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TrainingState.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,6 +7,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum TrainingState { diff --git a/src/Apache.IoTDB/Rpc/Generated/client.Extensions.cs b/src/Apache.IoTDB/Rpc/Generated/client.Extensions.cs index 49c8a7e..e2431e2 100644 --- a/src/Apache.IoTDB/Rpc/Generated/client.Extensions.cs +++ b/src/Apache.IoTDB/Rpc/Generated/client.Extensions.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -19,6 +19,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public static class clientExtensions { diff --git a/src/Apache.IoTDB/Rpc/Generated/common.Extensions.cs b/src/Apache.IoTDB/Rpc/Generated/common.Extensions.cs index 4fd2bad..3744506 100644 --- a/src/Apache.IoTDB/Rpc/Generated/common.Extensions.cs +++ b/src/Apache.IoTDB/Rpc/Generated/common.Extensions.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.14.1) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -19,6 +19,7 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public static class commonExtensions { diff --git a/src/Apache.IoTDB/SessionPool.Builder.cs b/src/Apache.IoTDB/SessionPool.Builder.cs index 69b8e42..f943d81 100644 --- a/src/Apache.IoTDB/SessionPool.Builder.cs +++ b/src/Apache.IoTDB/SessionPool.Builder.cs @@ -31,7 +31,7 @@ public class Builder private string _username = "root"; private string _password = "root"; private int _fetchSize = 1024; - private string _zoneId = "UTC+08:00"; + private string _zoneId = "Asia/Shanghai"; private int _poolSize = 8; private bool _enableRpcCompression = false; private int _connectionTimeoutInMs = 500; @@ -118,7 +118,7 @@ public Builder() _username = "root"; _password = "root"; _fetchSize = 1024; - _zoneId = "UTC+08:00"; + _zoneId = "Asia/Shanghai"; _poolSize = 8; _enableRpcCompression = false; _connectionTimeoutInMs = 500; diff --git a/src/Apache.IoTDB/SessionPool.cs b/src/Apache.IoTDB/SessionPool.cs index 0fb9089..9428379 100644 --- a/src/Apache.IoTDB/SessionPool.cs +++ b/src/Apache.IoTDB/SessionPool.cs @@ -66,23 +66,23 @@ public partial class SessionPool : IDisposable [Obsolete("This method is deprecated, please use new SessionPool.Builder().")] public SessionPool(string host, int port, int poolSize) - : this(host, port, "root", "root", 1024, "UTC+08:00", poolSize, true, 60) + : this(host, port, "root", "root", 1024, "Asia/Shanghai", poolSize, true, 60) { } [Obsolete(" This method is deprecated, please use new SessionPool.Builder().")] public SessionPool(string host, int port, string username, string password) - : this(host, port, username, password, 1024, "UTC+08:00", 8, true, 60) + : this(host, port, username, password, 1024, "Asia/Shanghai", 8, true, 60) { } public SessionPool(string host, int port, string username, string password, int fetchSize) - : this(host, port, username, password, fetchSize, "UTC+08:00", 8, true, 60) + : this(host, port, username, password, fetchSize, "Asia/Shanghai", 8, true, 60) { } - public SessionPool(string host, int port) : this(host, port, "root", "root", 1024, "UTC+08:00", 8, true, 60) + public SessionPool(string host, int port) : this(host, port, "root", "root", 1024, "Asia/Shanghai", 8, true, 60) { } public SessionPool(string host, int port, string username, string password, int fetchSize, string zoneId, int poolSize, bool enableRpcCompression, int timeout) @@ -110,15 +110,15 @@ protected internal SessionPool(string host, int port, string username, string pa /// 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) + : this(nodeUrls, "root", "root", 1024, "Asia/Shanghai", poolSize, true, 60) { } public SessionPool(List nodeUrls, string username, string password) - : this(nodeUrls, username, password, 1024, "UTC+08:00", 8, true, 60) + : this(nodeUrls, username, password, 1024, "Asia/Shanghai", 8, true, 60) { } public SessionPool(List nodeUrls, string username, string password, int fetchSize) - : this(nodeUrls, username, password, fetchSize, "UTC+08:00", 8, true, 60) + : this(nodeUrls, username, password, fetchSize, "Asia/Shanghai", 8, true, 60) { } public SessionPool(List nodeUrls, string username, string password, int fetchSize, string zoneId) @@ -361,7 +361,7 @@ public async Task Close() var closeSessionRequest = new TSCloseSessionReq(client.SessionId); try { - await client.ServiceClient.closeSessionAsync(closeSessionRequest); + await client.ServiceClient.closeSession(closeSessionRequest); } catch (TException e) { @@ -385,7 +385,7 @@ public async Task SetTimeZone(string zoneId) var req = new TSSetTimeZoneReq(client.SessionId, zoneId); try { - var resp = await client.ServiceClient.setTimeZoneAsync(req); + var resp = await client.ServiceClient.setTimeZone(req); if (_debugMode) { _logger.LogInformation("setting time zone_id as {0}, server message:{1}", zoneId, resp.Message); @@ -409,7 +409,7 @@ public async Task GetTimeZone() try { - var response = await client.ServiceClient.getTimeZoneAsync(client.SessionId); + var response = await client.ServiceClient.getTimeZone(client.SessionId); return response?.TimeZone; } @@ -455,7 +455,7 @@ private async Task CreateAndOpen(string host, int port, bool enableRpcCo try { - var openResp = await client.openSessionAsync(openReq, cancellationToken); + var openResp = await client.openSession(openReq, cancellationToken); if (openResp.ServerProtocolVersion != ProtocolVersion) { @@ -468,7 +468,7 @@ private async Task CreateAndOpen(string host, int port, bool enableRpcCo } var sessionId = openResp.SessionId; - var statementId = await client.requestStatementIdAsync(sessionId, cancellationToken); + var statementId = await client.requestStatementId(sessionId, cancellationToken); var endpoint = new TEndPoint(host, port); @@ -494,7 +494,7 @@ public async Task CreateDatabase(string dbName) return await ExecuteClientOperationAsync( async client => { - var status = await client.ServiceClient.setStorageGroupAsync(client.SessionId, dbName); + var status = await client.ServiceClient.setStorageGroup(client.SessionId, dbName); if (_debugMode) { @@ -513,7 +513,7 @@ public async Task SetStorageGroup(string groupName) return await ExecuteClientOperationAsync( async client => { - var status = await client.ServiceClient.setStorageGroupAsync(client.SessionId, groupName); + var status = await client.ServiceClient.setStorageGroup(client.SessionId, groupName); if (_debugMode) { _logger.LogInformation("set storage group {0} successfully, server message is {1}", groupName, status.Message); @@ -539,7 +539,7 @@ public async Task CreateTimeSeries( (int)encoding, (int)compressor); - var status = await client.ServiceClient.createTimeseriesAsync(req); + var status = await client.ServiceClient.createTimeseries(req); if (_debugMode) { @@ -573,7 +573,7 @@ public async Task CreateAlignedTimeseriesAsync( encodings, compressors); - var status = await client.ServiceClient.createAlignedTimeseriesAsync(req); + var status = await client.ServiceClient.createAlignedTimeseries(req); if (_debugMode) { @@ -590,7 +590,7 @@ public async Task DeleteDatabaseAsync(string dbName) return await ExecuteClientOperationAsync( async client => { - var status = await client.ServiceClient.deleteStorageGroupsAsync(client.SessionId, new List { dbName }); + var status = await client.ServiceClient.deleteStorageGroups(client.SessionId, new List { dbName }); if (_debugMode) { @@ -608,7 +608,7 @@ public async Task DeleteStorageGroupAsync(string groupName) return await ExecuteClientOperationAsync( async client => { - var status = await client.ServiceClient.deleteStorageGroupsAsync(client.SessionId, new List { groupName }); + var status = await client.ServiceClient.deleteStorageGroups(client.SessionId, new List { groupName }); if (_debugMode) { @@ -625,7 +625,7 @@ public async Task DeleteDatabasesAsync(List dbNames) return await ExecuteClientOperationAsync( async client => { - var status = await client.ServiceClient.deleteStorageGroupsAsync(client.SessionId, dbNames); + var status = await client.ServiceClient.deleteStorageGroups(client.SessionId, dbNames); if (_debugMode) { @@ -643,7 +643,7 @@ public async Task DeleteStorageGroupsAsync(List groupNames) return await ExecuteClientOperationAsync( async client => { - var status = await client.ServiceClient.deleteStorageGroupsAsync(client.SessionId, groupNames); + var status = await client.ServiceClient.deleteStorageGroups(client.SessionId, groupNames); if (_debugMode) { @@ -670,7 +670,7 @@ public async Task CreateMultiTimeSeriesAsync( var req = new TSCreateMultiTimeseriesReq(client.SessionId, tsPathLst, dataTypes, encodings, compressors); - var status = await client.ServiceClient.createMultiTimeseriesAsync(req); + var status = await client.ServiceClient.createMultiTimeseries(req); if (_debugMode) { @@ -687,7 +687,7 @@ public async Task DeleteTimeSeriesAsync(List pathList) return await ExecuteClientOperationAsync( async client => { - var status = await client.ServiceClient.deleteTimeseriesAsync(client.SessionId, pathList); + var status = await client.ServiceClient.deleteTimeseries(client.SessionId, pathList); if (_debugMode) { @@ -710,9 +710,9 @@ public async Task CheckTimeSeriesExistsAsync(string tsPath) try { var sql = "SHOW TIMESERIES " + tsPath; - var sessionDataset = await ExecuteQueryStatementAsync(sql); - bool timeSeriesExists = sessionDataset.HasNext(); - await sessionDataset.Close(); // be sure to close the sessionDataset to put the client back to the pool + var sessionDataSet = await ExecuteQueryStatementAsync(sql); + bool timeSeriesExists = sessionDataSet.HasNext(); + await sessionDataSet.Close(); // be sure to close the SessionDataSet to put the client back to the pool return timeSeriesExists; } catch (TException e) @@ -727,7 +727,7 @@ public async Task DeleteDataAsync(List tsPathLst, long startTime, l { var req = new TSDeleteDataReq(client.SessionId, tsPathLst, startTime, endTime); - var status = await client.ServiceClient.deleteDataAsync(req); + var status = await client.ServiceClient.deleteData(req); if (_debugMode) { @@ -749,7 +749,7 @@ public async Task InsertRecordAsync(string deviceId, RowRecord record) { var req = new TSInsertRecordReq(client.SessionId, deviceId, record.Measurements, record.ToBytes(), record.Timestamps); - var status = await client.ServiceClient.insertRecordAsync(req); + var status = await client.ServiceClient.insertRecord(req); if (_debugMode) { @@ -771,7 +771,7 @@ public async Task InsertAlignedRecordAsync(string deviceId, RowRecord recor // ASSERT that the insert plan is aligned System.Diagnostics.Debug.Assert(req.IsAligned == true); - var status = await client.ServiceClient.insertRecordAsync(req); + var status = await client.ServiceClient.insertRecord(req); if (_debugMode) { @@ -828,7 +828,7 @@ public async Task InsertStringRecordAsync(string deviceId, List mea { var req = GenInsertStrRecordReq(deviceId, measurements, values, timestamp, client.SessionId); - var status = await client.ServiceClient.insertStringRecordAsync(req); + var status = await client.ServiceClient.insertStringRecord(req); if (_debugMode) { @@ -848,7 +848,7 @@ public async Task InsertAlignedStringRecordAsync(string deviceId, List InsertStringRecordsAsync(List deviceIds, List InsertAlignedStringRecordsAsync(List deviceIds, L { var req = GenInsertStringRecordsReq(deviceIds, measurements, values, timestamps, client.SessionId, true); - var status = await client.ServiceClient.insertStringRecordsAsync(req); + var status = await client.ServiceClient.insertStringRecords(req); if (_debugMode) { @@ -907,7 +907,7 @@ public async Task InsertRecordsAsync(List deviceId, List { var req = GenInsertRecordsReq(deviceId, rowRecords, client.SessionId); - var status = await client.ServiceClient.insertRecordsAsync(req); + var status = await client.ServiceClient.insertRecords(req); if (_debugMode) { @@ -929,7 +929,7 @@ public async Task InsertAlignedRecordsAsync(List deviceId, List InsertTabletAsync(Tablet tablet) { var req = GenInsertTabletReq(tablet, client.SessionId); - var status = await client.ServiceClient.insertTabletAsync(req); + var status = await client.ServiceClient.insertTablet(req); if (_debugMode) { @@ -979,7 +979,7 @@ public async Task InsertAlignedTabletAsync(Tablet tablet) var req = GenInsertTabletReq(tablet, client.SessionId); req.IsAligned = true; - var status = await client.ServiceClient.insertTabletAsync(req); + var status = await client.ServiceClient.insertTablet(req); if (_debugMode) { @@ -1001,7 +1001,7 @@ protected internal async Task InsertRelationalTabletAsync(Tablet tablet) req.ColumnCategories = tablet.GetColumnColumnCategories(); req.WriteToTable = true; - var status = await client.ServiceClient.insertTabletAsync(req); + var status = await client.ServiceClient.insertTablet(req); if (_debugMode) { @@ -1051,7 +1051,7 @@ public async Task InsertTabletsAsync(List tabletLst) { var req = GenInsertTabletsReq(tabletLst, client.SessionId); - var status = await client.ServiceClient.insertTabletsAsync(req); + var status = await client.ServiceClient.insertTablets(req); if (_debugMode) { @@ -1071,7 +1071,7 @@ public async Task InsertAlignedTabletsAsync(List tabletLst) var req = GenInsertTabletsReq(tabletLst, client.SessionId); req.IsAligned = true; - var status = await client.ServiceClient.insertTabletsAsync(req); + var status = await client.ServiceClient.insertTablets(req); if (_debugMode) { @@ -1133,7 +1133,7 @@ public async Task InsertStringRecordsOfOneDeviceSortedAsync(string deviceId var req = GenInsertStringRecordsOfOneDeviceReq(deviceId, timestamps, measurementsList, valuesList, client.SessionId, isAligned); - var status = await client.ServiceClient.insertStringRecordsOfOneDeviceAsync(req); + var status = await client.ServiceClient.insertStringRecordsOfOneDevice(req); if (_debugMode) { @@ -1189,7 +1189,7 @@ public async Task InsertRecordsOfOneDeviceSortedAsync(string deviceId, List var req = GenInsertRecordsOfOneDeviceRequest(deviceId, rowRecords, client.SessionId); - var status = await client.ServiceClient.insertRecordsOfOneDeviceAsync(req); + var status = await client.ServiceClient.insertRecordsOfOneDevice(req); if (_debugMode) { @@ -1216,7 +1216,7 @@ public async Task InsertAlignedRecordsOfOneDeviceSortedAsync(string deviceI var req = GenInsertRecordsOfOneDeviceRequest(deviceId, rowRecords, client.SessionId); req.IsAligned = true; - var status = await client.ServiceClient.insertRecordsOfOneDeviceAsync(req); + var status = await client.ServiceClient.insertRecordsOfOneDevice(req); if (_debugMode) { @@ -1240,7 +1240,7 @@ public async Task TestInsertRecordAsync(string deviceId, RowRecord record) record.ToBytes(), record.Timestamps); - var status = await client.ServiceClient.testInsertRecordAsync(req); + var status = await client.ServiceClient.testInsertRecord(req); if (_debugMode) { @@ -1259,7 +1259,7 @@ public async Task TestInsertRecordsAsync(List deviceId, List TestInsertTabletAsync(Tablet tablet) { var req = GenInsertTabletReq(tablet, client.SessionId); - var status = await client.ServiceClient.testInsertTabletAsync(req); + var status = await client.ServiceClient.testInsertTablet(req); if (_debugMode) { @@ -1297,7 +1297,7 @@ public async Task TestInsertTabletsAsync(List tabletLst) { var req = GenInsertTabletsReq(tabletLst, client.SessionId); - var status = await client.ServiceClient.testInsertTabletsAsync(req); + var status = await client.ServiceClient.testInsertTablets(req); if (_debugMode) { @@ -1327,7 +1327,7 @@ public async Task ExecuteQueryStatementAsync(string sql, long ti Timeout = timeoutInMs }; - var resp = await client.ServiceClient.executeQueryStatementAsync(req); + var resp = await client.ServiceClient.executeQueryStatementV2(req); var status = resp.Status; if (_utilFunctions.VerifySuccess(status) == -1) @@ -1335,7 +1335,11 @@ public async Task ExecuteQueryStatementAsync(string sql, long ti throw new Exception(string.Format("execute query failed, sql: {0}, message: {1}", sql, status.Message)); } - return new SessionDataSet(sql, resp, client, _clients, client.StatementId) + return new SessionDataSet( + sql, resp.Columns, resp.DataTypeList, resp.ColumnNameIndexMap, resp.QueryId, + client.StatementId, client, resp.QueryResult, resp.IgnoreTimeStamp, + resp.MoreData, _zoneId, resp.ColumnIndex2TsBlockColumnIndexList, _clients + ) { FetchSize = _fetchSize, }; @@ -1356,7 +1360,7 @@ public async Task ExecuteStatementAsync(string sql, long timeout Timeout = timeout }; - var resp = await client.ServiceClient.executeStatementAsync(req); + var resp = await client.ServiceClient.executeStatementV2(req); var status = resp.Status; if (_utilFunctions.VerifySuccess(status) == -1) @@ -1364,7 +1368,11 @@ public async Task ExecuteStatementAsync(string sql, long timeout throw new Exception(string.Format("execute query failed, sql: {0}, message: {1}", sql, status.Message)); } - return new SessionDataSet(sql, resp, client, _clients, client.StatementId) + return new SessionDataSet( + sql, resp.Columns, resp.DataTypeList, resp.ColumnNameIndexMap, resp.QueryId, + client.StatementId, client, resp.QueryResult, resp.IgnoreTimeStamp, + resp.MoreData, _zoneId, resp.ColumnIndex2TsBlockColumnIndexList, _clients + ) { FetchSize = _fetchSize, }; @@ -1383,7 +1391,7 @@ public async Task ExecuteNonQueryStatementAsync(string sql) String previousDB = _database; var req = new TSExecuteStatementReq(client.SessionId, sql, client.StatementId); - var resp = await client.ServiceClient.executeUpdateStatementAsync(req); + var resp = await client.ServiceClient.executeUpdateStatement(req); var status = resp.Status; if (resp.__isset.database) @@ -1400,7 +1408,7 @@ public async Task ExecuteNonQueryStatementAsync(string sql) if (c != client) { var switchReq = new TSExecuteStatementReq(c.SessionId, sql, c.StatementId); - await c.ServiceClient.executeUpdateStatementAsync(switchReq); + await c.ServiceClient.executeUpdateStatement(switchReq); } } catch (Exception e) @@ -1432,7 +1440,7 @@ public async Task ExecuteRawDataQuery(List paths, long s EnableRedirectQuery = false }; - var resp = await client.ServiceClient.executeRawDataQueryAsync(req); + var resp = await client.ServiceClient.executeRawDataQueryV2(req); var status = resp.Status; if (_utilFunctions.VerifySuccess(status) == -1) @@ -1440,7 +1448,11 @@ public async Task ExecuteRawDataQuery(List paths, long s throw new Exception(string.Format("execute raw data query failed, message: {0}", status.Message)); } - return new SessionDataSet("", resp, client, _clients, client.StatementId) + return new SessionDataSet( + "", resp.Columns, resp.DataTypeList, resp.ColumnNameIndexMap, resp.QueryId, + client.StatementId, client, resp.QueryResult, resp.IgnoreTimeStamp, + resp.MoreData, _zoneId, resp.ColumnIndex2TsBlockColumnIndexList, _clients + ) { FetchSize = _fetchSize, }; @@ -1460,7 +1472,7 @@ public async Task ExecuteLastDataQueryAsync(List paths, EnableRedirectQuery = false }; - var resp = await client.ServiceClient.executeLastDataQueryAsync(req); + var resp = await client.ServiceClient.executeLastDataQueryV2(req); var status = resp.Status; if (_utilFunctions.VerifySuccess(status) == -1) @@ -1468,7 +1480,11 @@ public async Task ExecuteLastDataQueryAsync(List paths, throw new Exception(string.Format("execute last data query failed, message: {0}", status.Message)); } - return new SessionDataSet("", resp, client, _clients, client.StatementId) + return new SessionDataSet( + "", resp.Columns, resp.DataTypeList, resp.ColumnNameIndexMap, resp.QueryId, + client.StatementId, client, resp.QueryResult, resp.IgnoreTimeStamp, + resp.MoreData, _zoneId, resp.ColumnIndex2TsBlockColumnIndexList, _clients + ) { FetchSize = _fetchSize, }; @@ -1485,7 +1501,7 @@ public async Task CreateSchemaTemplateAsync(Template template) { var req = new TSCreateSchemaTemplateReq(client.SessionId, template.Name, template.ToBytes()); - var status = await client.ServiceClient.createSchemaTemplateAsync(req); + var status = await client.ServiceClient.createSchemaTemplate(req); if (_debugMode) { @@ -1506,7 +1522,7 @@ public async Task DropSchemaTemplateAsync(string templateName) { var req = new TSDropSchemaTemplateReq(client.SessionId, templateName); - var status = await client.ServiceClient.dropSchemaTemplateAsync(req); + var status = await client.ServiceClient.dropSchemaTemplate(req); if (_debugMode) { @@ -1526,7 +1542,7 @@ public async Task SetSchemaTemplateAsync(string templateName, string prefix { var req = new TSSetSchemaTemplateReq(client.SessionId, templateName, prefixPath); - var status = await client.ServiceClient.setSchemaTemplateAsync(req); + var status = await client.ServiceClient.setSchemaTemplate(req); if (_debugMode) { @@ -1546,7 +1562,7 @@ public async Task UnsetSchemaTemplateAsync(string prefixPath, string templa { var req = new TSUnsetSchemaTemplateReq(client.SessionId, prefixPath, templateName); - var status = await client.ServiceClient.unsetSchemaTemplateAsync(req); + var status = await client.ServiceClient.unsetSchemaTemplate(req); if (_debugMode) { @@ -1566,7 +1582,7 @@ public async Task DeleteNodeInTemplateAsync(string templateName, string pat { var req = new TSPruneSchemaTemplateReq(client.SessionId, templateName, path); - var status = await client.ServiceClient.pruneSchemaTemplateAsync(req); + var status = await client.ServiceClient.pruneSchemaTemplate(req); if (_debugMode) { @@ -1586,7 +1602,7 @@ public async Task CountMeasurementsInTemplateAsync(string name) { var req = new TSQueryTemplateReq(client.SessionId, name, (int)TemplateQueryType.COUNT_MEASUREMENTS); - var resp = await client.ServiceClient.querySchemaTemplateAsync(req); + var resp = await client.ServiceClient.querySchemaTemplate(req); var status = resp.Status; if (_debugMode) @@ -1612,7 +1628,7 @@ public async Task IsMeasurementInTemplateAsync(string templateName, string var req = new TSQueryTemplateReq(client.SessionId, templateName, (int)TemplateQueryType.IS_MEASUREMENT); req.Measurement = path; - var resp = await client.ServiceClient.querySchemaTemplateAsync(req); + var resp = await client.ServiceClient.querySchemaTemplate(req); var status = resp.Status; if (_debugMode) @@ -1638,7 +1654,7 @@ public async Task IsPathExistInTemplateAsync(string templateName, string p var req = new TSQueryTemplateReq(client.SessionId, templateName, (int)TemplateQueryType.PATH_EXIST); req.Measurement = path; - var resp = await client.ServiceClient.querySchemaTemplateAsync(req); + var resp = await client.ServiceClient.querySchemaTemplate(req); var status = resp.Status; if (_debugMode) @@ -1664,7 +1680,7 @@ public async Task> ShowMeasurementsInTemplateAsync(string templateN var req = new TSQueryTemplateReq(client.SessionId, templateName, (int)TemplateQueryType.SHOW_MEASUREMENTS); req.Measurement = pattern; - var resp = await client.ServiceClient.querySchemaTemplateAsync(req); + var resp = await client.ServiceClient.querySchemaTemplate(req); var status = resp.Status; if (_debugMode) @@ -1689,7 +1705,7 @@ public async Task> ShowAllTemplatesAsync() { var req = new TSQueryTemplateReq(client.SessionId, "", (int)TemplateQueryType.SHOW_TEMPLATES); - var resp = await client.ServiceClient.querySchemaTemplateAsync(req); + var resp = await client.ServiceClient.querySchemaTemplate(req); var status = resp.Status; if (_debugMode) @@ -1715,7 +1731,7 @@ public async Task> ShowPathsTemplateSetOnAsync(string templateName) { var req = new TSQueryTemplateReq(client.SessionId, templateName, (int)TemplateQueryType.SHOW_SET_TEMPLATES); - var resp = await client.ServiceClient.querySchemaTemplateAsync(req); + var resp = await client.ServiceClient.querySchemaTemplate(req); var status = resp.Status; if (_debugMode) @@ -1740,7 +1756,7 @@ public async Task> ShowPathsTemplateUsingOnAsync(string templateNam { var req = new TSQueryTemplateReq(client.SessionId, templateName, (int)TemplateQueryType.SHOW_USING_TEMPLATES); - var resp = await client.ServiceClient.querySchemaTemplateAsync(req); + var resp = await client.ServiceClient.querySchemaTemplate(req); var status = resp.Status; if (_debugMode) diff --git a/src/Apache.IoTDB/TableSessionPool.Builder.cs b/src/Apache.IoTDB/TableSessionPool.Builder.cs index fdeb78e..07387b5 100644 --- a/src/Apache.IoTDB/TableSessionPool.Builder.cs +++ b/src/Apache.IoTDB/TableSessionPool.Builder.cs @@ -33,7 +33,7 @@ public class Builder private string _username = "root"; private string _password = "root"; private int _fetchSize = 1024; - private string _zoneId = "UTC+08:00"; + private string _zoneId = "Asia/Shanghai"; private int _poolSize = 8; private bool _enableRpcCompression = false; private int _connectionTimeoutInMs = 500; @@ -120,7 +120,7 @@ public Builder() _username = "root"; _password = "root"; _fetchSize = 1024; - _zoneId = "UTC+08:00"; + _zoneId = "Asia/Shanghai"; _poolSize = 8; _enableRpcCompression = false; _connectionTimeoutInMs = 500; From 357307a612d6543231db2ccf2147eff21d9c6154 Mon Sep 17 00:00:00 2001 From: Zhan Lu <51200935+lausannel@users.noreply.github.com> Date: Sun, 24 Aug 2025 17:57:31 +0100 Subject: [PATCH 02/14] fix comments (#2) * add tsblock * develop tsblock and rpcdataset * improve code specifications * develop RpcDataSet api * coding api in SessionDataSet and rpcDataSet * fix bugs & pass test * adapted to IoTDBDataReader * adopted comments * add license and change ubuntu version * format code * fix pull request * fix valueIsNull --------- Co-authored-by: xxhz22 <1791961174@qq.com> --- .../SessionPoolTest.AlignedRecord.cs | 4 +-- .../SessionPoolTest.Record.cs | 2 +- .../Apache.IoTDB.Samples/SessionPoolTest.cs | 2 +- samples/Apache.IoTDB.Samples/UtilsTest.cs | 6 ++--- src/Apache.IoTDB.Data/IoTDBDataReader.cs | 2 +- src/Apache.IoTDB/DataStructure/ByteBuffer.cs | 2 +- src/Apache.IoTDB/DataStructure/Column.cs | 12 ++++----- .../DataStructure/ColumnDecoder.cs | 4 +-- src/Apache.IoTDB/DataStructure/RpcDataSet.cs | 5 ++-- .../DataStructure/SessionDataSet.cs | 25 ++++--------------- src/Apache.IoTDB/DataStructure/TsBlock.cs | 6 ++--- src/Apache.IoTDB/SessionPool.cs | 8 +++--- 12 files changed, 31 insertions(+), 47 deletions(-) diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedRecord.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedRecord.cs index 011c480..ecad735 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedRecord.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedRecord.cs @@ -218,7 +218,7 @@ public async Task TestInsertAlignedRecords() while (res.Next()) { res_count += 1; - Console.WriteLine(res.GetRow()); + Console.WriteLine(res.Next()); } await res.Close(); @@ -299,7 +299,7 @@ public async Task TestInsertAlignedStringRecords() var res_count = 0; while (res.Next()) { - Console.WriteLine(res.GetRow()); + Console.WriteLine(res.Next()); res_count += 1; } diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.Record.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.Record.cs index d75e605..544692a 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.Record.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.Record.cs @@ -382,7 +382,7 @@ public async Task TestInsertStringRecords() var res_count = 0; while (res.Next()) { - Console.WriteLine(res.GetRow()); + Console.WriteLine(res.Next()); res_count += 1; } diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.cs index 284fba0..5783268 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.cs @@ -621,7 +621,7 @@ public async Task TestMultiNodeDataFetch() Console.WriteLine(); var count = 0; - while (res.Next()) count++; + while (res.HasNext()) count++; Console.WriteLine(count + " " + (fetchSize * processedSize * 4 + 783)); System.Diagnostics.Debug.Assert(count == fetchSize * processedSize * 4 + 783); diff --git a/samples/Apache.IoTDB.Samples/UtilsTest.cs b/samples/Apache.IoTDB.Samples/UtilsTest.cs index 6a31901..af3a46f 100644 --- a/samples/Apache.IoTDB.Samples/UtilsTest.cs +++ b/samples/Apache.IoTDB.Samples/UtilsTest.cs @@ -90,7 +90,7 @@ static public void PrintDataSetByType(SessionDataSet sessionDataSet) } Console.WriteLine(); - while (sessionDataSet.Next()) + while (sessionDataSet.HasNext()) { for (int i = 0; i < columns.Count; i++) { @@ -147,7 +147,7 @@ static public void PrintDataSetByObject(SessionDataSet sessionDataSet) } Console.WriteLine(); - while (sessionDataSet.Next()) + while (sessionDataSet.HasNext()) { for (int i = 0; i < columns.Count; i++) { @@ -169,7 +169,7 @@ static public void PrintDataSetByString(SessionDataSet sessionDataSet) } Console.WriteLine(); - while (sessionDataSet.Next()) + while (sessionDataSet.HasNext()) { for (int i = 0; i < columns.Count; i++) { diff --git a/src/Apache.IoTDB.Data/IoTDBDataReader.cs b/src/Apache.IoTDB.Data/IoTDBDataReader.cs index 0c5a5c4..fa01449 100644 --- a/src/Apache.IoTDB.Data/IoTDBDataReader.cs +++ b/src/Apache.IoTDB.Data/IoTDBDataReader.cs @@ -457,7 +457,7 @@ public override DataTable GetSchemaTable() { if (_dataSet.Next()) { - rowdata = _dataSet.GetRow(); + rowdata = _dataSet.Next(); } var schemaTable = new DataTable("SchemaTable"); if (_metas != null && rowdata != null) diff --git a/src/Apache.IoTDB/DataStructure/ByteBuffer.cs b/src/Apache.IoTDB/DataStructure/ByteBuffer.cs index d190dd2..7fade31 100644 --- a/src/Apache.IoTDB/DataStructure/ByteBuffer.cs +++ b/src/Apache.IoTDB/DataStructure/ByteBuffer.cs @@ -146,7 +146,7 @@ public byte[] GetBuffer() return _buffer[.._writePos]; } - public byte[] GetBytesbyLength(int length) + public byte[] GetBytesByLengthh(int length) { if (_readPos + length > _buffer.Length) throw new ArgumentOutOfRangeException(nameof(length), diff --git a/src/Apache.IoTDB/DataStructure/Column.cs b/src/Apache.IoTDB/DataStructure/Column.cs index e594883..52d816f 100644 --- a/src/Apache.IoTDB/DataStructure/Column.cs +++ b/src/Apache.IoTDB/DataStructure/Column.cs @@ -175,7 +175,7 @@ public BinaryColumn(int arrayOffset, int positionCount, bool[] valueIsNull, Bina ColumnEncoding.BinaryArray, arrayOffset: arrayOffset, positionCount: positionCount, - valueIsNull: null, + valueIsNull: valueIsNull, values: values) { } @@ -193,7 +193,7 @@ public IntColumn(int arrayOffset, int positionCount, bool[] valueIsNull, int[] v ColumnEncoding.Int32Array, arrayOffset: arrayOffset, positionCount: positionCount, - valueIsNull: null, + valueIsNull: valueIsNull, values: values) { } @@ -211,7 +211,7 @@ public FloatColumn(int arrayOffset, int positionCount, bool[] valueIsNull, float ColumnEncoding.Int32Array, arrayOffset: arrayOffset, positionCount: positionCount, - valueIsNull: null, + valueIsNull: valueIsNull, values: values) { } @@ -229,7 +229,7 @@ public LongColumn(int arrayOffset, int positionCount, bool[] valueIsNull, long[] ColumnEncoding.Int64Array, arrayOffset: arrayOffset, positionCount: positionCount, - valueIsNull: null, + valueIsNull: valueIsNull, values: values) { } @@ -247,7 +247,7 @@ public DoubleColumn(int arrayOffset, int positionCount, bool[] valueIsNull, doub ColumnEncoding.Int64Array, arrayOffset: arrayOffset, positionCount: positionCount, - valueIsNull: null, + valueIsNull: valueIsNull, values: values) { } @@ -265,7 +265,7 @@ public BooleanColumn(int arrayOffset, int positionCount, bool[] valueIsNull, boo ColumnEncoding.ByteArray, arrayOffset: arrayOffset, positionCount: positionCount, - valueIsNull: null, + valueIsNull: valueIsNull, values: values) { } diff --git a/src/Apache.IoTDB/DataStructure/ColumnDecoder.cs b/src/Apache.IoTDB/DataStructure/ColumnDecoder.cs index 83ce03a..a903498 100644 --- a/src/Apache.IoTDB/DataStructure/ColumnDecoder.cs +++ b/src/Apache.IoTDB/DataStructure/ColumnDecoder.cs @@ -68,7 +68,7 @@ public static bool[] DeserializeNullIndicators(ByteBuffer reader, int positionCo public static bool[] DeserializeBooleanArray(ByteBuffer reader, int size) { int packedSize = (size + 7) / 8; - byte[] packedBytes = reader.GetBytesbyLength(packedSize); + byte[] packedBytes = reader.GetBytesByLengthh(packedSize); if (packedBytes.Length < packedSize) throw new InvalidDataException( $"Boolean array decoding failed: expected {packedSize} bytes for {size} bits, but only received {packedBytes.Length} bytes from buffer." @@ -199,7 +199,7 @@ public Column ReadColumn(ByteBuffer reader, TSDataType dataType, int positionCou if (nullIndicators != null && nullIndicators[i]) continue; int length = reader.GetInt(); - byte[] value = reader.GetBytesbyLength(length); + byte[] value = reader.GetBytesByLengthh(length); values[i] = new Binary(value); } diff --git a/src/Apache.IoTDB/DataStructure/RpcDataSet.cs b/src/Apache.IoTDB/DataStructure/RpcDataSet.cs index 74346a4..5eeed48 100644 --- a/src/Apache.IoTDB/DataStructure/RpcDataSet.cs +++ b/src/Apache.IoTDB/DataStructure/RpcDataSet.cs @@ -185,7 +185,7 @@ public async Task Close() try { - var status = await _client.ServiceClient.closeOperation(closeRequest); + var status = await _client.ServiceClient.closeOperationAsync(closeRequest); } catch (TException e) { @@ -242,8 +242,7 @@ private bool FetchResults() try { - var task = _client.ServiceClient.fetchResultsV2(req); - + var task = _client.ServiceClient.fetchResultsV2Async(req); var resp = task.ConfigureAwait(false).GetAwaiter().GetResult(); if (!resp.HasResultSet) diff --git a/src/Apache.IoTDB/DataStructure/SessionDataSet.cs b/src/Apache.IoTDB/DataStructure/SessionDataSet.cs index d8c8b5d..5a0e853 100644 --- a/src/Apache.IoTDB/DataStructure/SessionDataSet.cs +++ b/src/Apache.IoTDB/DataStructure/SessionDataSet.cs @@ -33,11 +33,7 @@ public class SessionDataSet : System.IDisposable private readonly List _columnNames; private readonly Dictionary _columnNameIndexMap; private readonly List _columnTypeLst; - private readonly int _columnSize; - private List _valueBufferLst, _bitmapBufferLst; private Client _client; - private int _rowIndex; - private RowRecord _cachedRowRecord; private bool _isClosed = false; private bool disposedValue; private RpcDataSet _rpcDataSet; @@ -52,35 +48,28 @@ public class SessionDataSet : System.IDisposable public SessionDataSet( string sql, List ColumnNameList, List ColumnTypeList, Dictionary ColumnNameIndexMap, long QueryId, long statementId, Client client, List QueryResult, - bool IgnoreTimeStamp, bool MoreData, string zoneId, List ColumnIndex2TsBlockColumnIndexList, ConcurrentClientQueue _clientQueueS + bool IgnoreTimeStamp, bool MoreData, string zoneId, List ColumnIndex2TsBlockColumnIndexList, ConcurrentClientQueue clientQueue ) { _client = client; _sql = sql; _queryId = QueryId; _statementId = statementId; - _columnSize = ColumnNameList.Count; _columnNameIndexMap = ColumnNameIndexMap; - _rowIndex = 0; _columnNames = ColumnNameList; _columnTypeLst = ColumnTypeList; _zoneId = zoneId; - _clientQueue = _clientQueueS; - + _clientQueue = clientQueue; + _rpcDataSet = new RpcDataSet( _sql, _columnNames, _columnTypeLst, _columnNameIndexMap, IgnoreTimeStamp, MoreData, _queryId, _statementId, _client, _client.SessionId, QueryResult, FetchSize, DefaultTimeout, _zoneId, ColumnIndex2TsBlockColumnIndexList ); } - public bool HasNext() - { - if (_rpcDataSet.HasCachedRecord) return true; - return Next(); - } - - public bool Next() => _rpcDataSet.Next(); + public bool HasNext() => _rpcDataSet.Next(); + public RowRecord Next() => _rpcDataSet.GetRow(); public bool IsNull(string columnName) => _rpcDataSet.IsNullByColumnName(columnName); public bool IsNullByIndex(int columnIndex) => _rpcDataSet.IsNullByIndex(columnIndex); @@ -119,9 +108,7 @@ public bool HasNext() public IReadOnlyList GetColumnNames() => _rpcDataSet._columnNameList; public IReadOnlyList GetColumnTypes() => _rpcDataSet._columnTypeList; - public RowRecord GetRow() => _rpcDataSet.GetRow(); public int RowCount() => _rpcDataSet._tsBlockSize; - public void ShowTableNames() { IReadOnlyList columns = GetColumnNames(); @@ -173,8 +160,6 @@ protected virtual void Dispose(bool disposing) { } } - _valueBufferLst = null; - _bitmapBufferLst = null; disposedValue = true; } } diff --git a/src/Apache.IoTDB/DataStructure/TsBlock.cs b/src/Apache.IoTDB/DataStructure/TsBlock.cs index e399c22..14d598c 100644 --- a/src/Apache.IoTDB/DataStructure/TsBlock.cs +++ b/src/Apache.IoTDB/DataStructure/TsBlock.cs @@ -77,10 +77,10 @@ public static TsBlock Deserialize(ByteBuffer reader) ColumnEncoding timeColumnEncodings = DeserializeColumnEncoding(reader); // Read value column encodings - var valuecolumnEncodings = new ColumnEncoding[valueColumnCount]; + var valueColumnEncodings = new ColumnEncoding[valueColumnCount]; for (int i = 1; i < valueColumnCount + 1; i++) { - valuecolumnEncodings[i - 1] = DeserializeColumnEncoding(reader); + valueColumnEncodings[i - 1] = DeserializeColumnEncoding(reader); } // Read time column @@ -91,7 +91,7 @@ public static TsBlock Deserialize(ByteBuffer reader) var valueColumns = new Column[valueColumnCount]; for (int i = 1; i < valueColumnCount + 1; i++) { - var decoder = BaseColumnDecoder.GetDecoder(valuecolumnEncodings[i - 1]); + var decoder = BaseColumnDecoder.GetDecoder(valueColumnEncodings[i - 1]); valueColumns[i - 1] = decoder.ReadColumn(reader, valueColumnDataTypes[i - 1], positionCount); } diff --git a/src/Apache.IoTDB/SessionPool.cs b/src/Apache.IoTDB/SessionPool.cs index 9428379..f08ccf8 100644 --- a/src/Apache.IoTDB/SessionPool.cs +++ b/src/Apache.IoTDB/SessionPool.cs @@ -1327,7 +1327,7 @@ public async Task ExecuteQueryStatementAsync(string sql, long ti Timeout = timeoutInMs }; - var resp = await client.ServiceClient.executeQueryStatementV2(req); + var resp = await client.ServiceClient.executeQueryStatementV2Async(req); var status = resp.Status; if (_utilFunctions.VerifySuccess(status) == -1) @@ -1360,7 +1360,7 @@ public async Task ExecuteStatementAsync(string sql, long timeout Timeout = timeout }; - var resp = await client.ServiceClient.executeStatementV2(req); + var resp = await client.ServiceClient.executeStatementV2Async(req); var status = resp.Status; if (_utilFunctions.VerifySuccess(status) == -1) @@ -1440,7 +1440,7 @@ public async Task ExecuteRawDataQuery(List paths, long s EnableRedirectQuery = false }; - var resp = await client.ServiceClient.executeRawDataQueryV2(req); + var resp = await client.ServiceClient.executeRawDataQueryV2Async(req); var status = resp.Status; if (_utilFunctions.VerifySuccess(status) == -1) @@ -1472,7 +1472,7 @@ public async Task ExecuteLastDataQueryAsync(List paths, EnableRedirectQuery = false }; - var resp = await client.ServiceClient.executeLastDataQueryV2(req); + var resp = await client.ServiceClient.executeLastDataQueryV2Async(req); var status = resp.Status; if (_utilFunctions.VerifySuccess(status) == -1) From 69f27e9ac6defd9790c50eef415d62c8f2cf7f31 Mon Sep 17 00:00:00 2001 From: lausannel <513964121@qq.com> Date: Sun, 24 Aug 2025 18:18:29 +0100 Subject: [PATCH 03/14] change thrift compiler version to 0.14.1 --- .../Rpc/Generated/FunctionType.cs | 3 +- .../Rpc/Generated/IClientRPCService.cs | 8313 ++++++++--------- src/Apache.IoTDB/Rpc/Generated/Model.cs | 3 +- .../Rpc/Generated/ServerProperties.cs | 127 +- .../Rpc/Generated/TAINodeConfiguration.cs | 39 +- .../Rpc/Generated/TAINodeLocation.cs | 39 +- .../Rpc/Generated/TAggregationType.cs | 3 +- .../Rpc/Generated/TConfigNodeLocation.cs | 51 +- .../Rpc/Generated/TConsensusGroupId.cs | 39 +- .../Rpc/Generated/TConsensusGroupType.cs | 3 +- ...TCreateTimeseriesUsingSchemaTemplateReq.cs | 55 +- .../Rpc/Generated/TDataNodeConfiguration.cs | 39 +- .../Rpc/Generated/TDataNodeLocation.cs | 87 +- src/Apache.IoTDB/Rpc/Generated/TEndPoint.cs | 39 +- src/Apache.IoTDB/Rpc/Generated/TFile.cs | 39 +- src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs | 57 +- src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs | 91 +- src/Apache.IoTDB/Rpc/Generated/TLicense.cs | 111 +- src/Apache.IoTDB/Rpc/Generated/TLoadSample.cs | 63 +- .../Rpc/Generated/TNodeLocations.cs | 81 +- .../Rpc/Generated/TNodeResource.cs | 39 +- .../Rpc/Generated/TPipeHeartbeatResp.cs | 357 + .../Rpc/Generated/TPipeSubscribeReq.cs | 51 +- .../Rpc/Generated/TPipeSubscribeResp.cs | 79 +- .../Rpc/Generated/TPipeTransferReq.cs | 51 +- .../Rpc/Generated/TPipeTransferResp.cs | 39 +- .../Generated/TRegionMaintainTaskStatus.cs | 3 +- .../Rpc/Generated/TRegionMigrateFailedType.cs | 3 +- .../Rpc/Generated/TRegionReplicaSet.cs | 57 +- .../Rpc/Generated/TSAggregationQueryReq.cs | 179 +- .../Generated/TSAppendSchemaTemplateReq.cs | 163 +- .../Generated/TSBackupConfigurationResp.cs | 63 +- .../Rpc/Generated/TSCancelOperationReq.cs | 39 +- .../Rpc/Generated/TSCloseOperationReq.cs | 51 +- .../Rpc/Generated/TSCloseSessionReq.cs | 27 +- .../Rpc/Generated/TSConnectionInfo.cs | 63 +- .../Rpc/Generated/TSConnectionInfoResp.cs | 45 +- .../Rpc/Generated/TSConnectionType.cs | 3 +- .../Generated/TSCreateAlignedTimeseriesReq.cs | 275 +- .../Generated/TSCreateMultiTimeseriesReq.cs | 311 +- .../Generated/TSCreateSchemaTemplateReq.cs | 51 +- .../Rpc/Generated/TSCreateTimeseriesReq.cs | 189 +- .../Rpc/Generated/TSDeleteDataReq.cs | 79 +- .../Rpc/Generated/TSDropSchemaTemplateReq.cs | 39 +- .../Generated/TSExecuteBatchStatementReq.cs | 55 +- .../Rpc/Generated/TSExecuteStatementReq.cs | 99 +- .../Rpc/Generated/TSExecuteStatementResp.cs | 337 +- .../TSFastLastDataQueryForOneDeviceReq.cs | 151 +- .../TSFastLastDataQueryForOnePrefixPathReq.cs | 115 +- .../Rpc/Generated/TSFetchMetadataReq.cs | 51 +- .../Rpc/Generated/TSFetchMetadataResp.cs | 79 +- .../Rpc/Generated/TSFetchResultsReq.cs | 99 +- .../Rpc/Generated/TSFetchResultsResp.cs | 115 +- .../Rpc/Generated/TSGetOperationStatusReq.cs | 39 +- .../Rpc/Generated/TSGetTimeZoneResp.cs | 39 +- .../Generated/TSGroupByQueryIntervalReq.cs | 171 +- .../Rpc/Generated/TSInsertRecordReq.cs | 143 +- .../TSInsertRecordsOfOneDeviceReq.cs | 149 +- .../Rpc/Generated/TSInsertRecordsReq.cs | 165 +- .../Rpc/Generated/TSInsertStringRecordReq.cs | 131 +- .../TSInsertStringRecordsOfOneDeviceReq.cs | 163 +- .../Rpc/Generated/TSInsertStringRecordsReq.cs | 179 +- .../Rpc/Generated/TSInsertTabletReq.cs | 334 +- .../Rpc/Generated/TSInsertTabletsReq.cs | 235 +- .../Rpc/Generated/TSLastDataQueryReq.cs | 139 +- .../Rpc/Generated/TSOpenSessionReq.cs | 97 +- .../Rpc/Generated/TSOpenSessionResp.cs | 85 +- .../Rpc/Generated/TSProtocolVersion.cs | 3 +- .../Rpc/Generated/TSPruneSchemaTemplateReq.cs | 51 +- .../Rpc/Generated/TSQueryDataSet.cs | 59 +- .../Rpc/Generated/TSQueryNonAlignDataSet.cs | 71 +- .../Rpc/Generated/TSQueryTemplateReq.cs | 63 +- .../Rpc/Generated/TSQueryTemplateResp.cs | 91 +- .../Rpc/Generated/TSRawDataQueryReq.cs | 151 +- .../Rpc/Generated/TSSetSchemaTemplateReq.cs | 51 +- .../Rpc/Generated/TSSetTimeZoneReq.cs | 39 +- src/Apache.IoTDB/Rpc/Generated/TSStatus.cs | 93 +- .../Rpc/Generated/TSTracingInfo.cs | 179 +- .../Rpc/Generated/TSUnsetSchemaTemplateReq.cs | 51 +- src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs | 39 +- src/Apache.IoTDB/Rpc/Generated/TSender.cs | 45 +- .../Rpc/Generated/TSeriesPartitionSlot.cs | 27 +- .../Rpc/Generated/TServiceProvider.cs | 51 +- .../Rpc/Generated/TServiceType.cs | 3 +- .../Rpc/Generated/TSetConfigurationReq.cs | 61 +- .../Rpc/Generated/TSetSpaceQuotaReq.cs | 55 +- src/Apache.IoTDB/Rpc/Generated/TSetTTLReq.cs | 67 +- .../Rpc/Generated/TSetThrottleQuotaReq.cs | 39 +- src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs | 43 +- .../Rpc/Generated/TShowConfigurationResp.cs | 39 +- .../TShowConfigurationTemplateResp.cs | 39 +- src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs | 43 +- src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs | 59 +- .../Rpc/Generated/TSyncIdentityInfo.cs | 63 +- .../Rpc/Generated/TSyncTransportMetaInfo.cs | 39 +- .../Rpc/Generated/TTestConnectionResp.cs | 57 +- .../Rpc/Generated/TTestConnectionResult.cs | 63 +- .../Rpc/Generated/TThrottleQuota.cs | 83 +- .../Rpc/Generated/TTimePartitionSlot.cs | 27 +- src/Apache.IoTDB/Rpc/Generated/TTimedQuota.cs | 39 +- .../Rpc/Generated/ThrottleType.cs | 3 +- .../Rpc/Generated/TrainingState.cs | 3 +- .../Rpc/Generated/client.Extensions.cs | 3 +- .../Rpc/Generated/common.Extensions.cs | 63 +- 104 files changed, 8227 insertions(+), 8436 deletions(-) create mode 100644 src/Apache.IoTDB/Rpc/Generated/TPipeHeartbeatResp.cs diff --git a/src/Apache.IoTDB/Rpc/Generated/FunctionType.cs b/src/Apache.IoTDB/Rpc/Generated/FunctionType.cs index ab47cd3..4ec65ad 100644 --- a/src/Apache.IoTDB/Rpc/Generated/FunctionType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/FunctionType.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,7 +7,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum FunctionType { diff --git a/src/Apache.IoTDB/Rpc/Generated/IClientRPCService.cs b/src/Apache.IoTDB/Rpc/Generated/IClientRPCService.cs index 5323f6b..3fbd3aa 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,148 +27,147 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class IClientRPCService { public interface IAsync { - global::System.Threading.Tasks.Task executeQueryStatementV2(TSExecuteStatementReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeQueryStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeUpdateStatementV2(TSExecuteStatementReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeUpdateStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeStatementV2(TSExecuteStatementReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeRawDataQueryV2(TSRawDataQueryReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeRawDataQueryV2Async(TSRawDataQueryReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeLastDataQueryV2(TSLastDataQueryReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeLastDataQueryV2Async(TSLastDataQueryReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeFastLastDataQueryForOnePrefixPath(TSFastLastDataQueryForOnePrefixPathReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeFastLastDataQueryForOnePrefixPathAsync(TSFastLastDataQueryForOnePrefixPathReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeFastLastDataQueryForOneDeviceV2(TSFastLastDataQueryForOneDeviceReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeFastLastDataQueryForOneDeviceV2Async(TSFastLastDataQueryForOneDeviceReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeAggregationQueryV2(TSAggregationQueryReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeAggregationQueryV2Async(TSAggregationQueryReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeGroupByQueryIntervalQuery(TSGroupByQueryIntervalReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeGroupByQueryIntervalQueryAsync(TSGroupByQueryIntervalReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task fetchResultsV2(TSFetchResultsReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task fetchResultsV2Async(TSFetchResultsReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task openSession(TSOpenSessionReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task openSessionAsync(TSOpenSessionReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task closeSession(TSCloseSessionReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task closeSessionAsync(TSCloseSessionReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeStatement(TSExecuteStatementReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeBatchStatement(TSExecuteBatchStatementReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeBatchStatementAsync(TSExecuteBatchStatementReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeQueryStatement(TSExecuteStatementReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeQueryStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeUpdateStatement(TSExecuteStatementReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeUpdateStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task fetchResults(TSFetchResultsReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task fetchResultsAsync(TSFetchResultsReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task fetchMetadata(TSFetchMetadataReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task fetchMetadataAsync(TSFetchMetadataReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task cancelOperation(TSCancelOperationReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task cancelOperationAsync(TSCancelOperationReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task closeOperation(TSCloseOperationReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task closeOperationAsync(TSCloseOperationReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task getTimeZone(long sessionId, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task getTimeZoneAsync(long sessionId, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task setTimeZone(TSSetTimeZoneReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task setTimeZoneAsync(TSSetTimeZoneReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task getProperties(CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task getPropertiesAsync(CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task setStorageGroup(long sessionId, string storageGroup, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task setStorageGroupAsync(long sessionId, string storageGroup, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task createTimeseries(TSCreateTimeseriesReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task createTimeseriesAsync(TSCreateTimeseriesReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task createAlignedTimeseries(TSCreateAlignedTimeseriesReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task createAlignedTimeseriesAsync(TSCreateAlignedTimeseriesReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task createMultiTimeseries(TSCreateMultiTimeseriesReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task createMultiTimeseriesAsync(TSCreateMultiTimeseriesReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task deleteTimeseries(long sessionId, List path, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task deleteTimeseriesAsync(long sessionId, List path, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task deleteStorageGroups(long sessionId, List storageGroup, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task deleteStorageGroupsAsync(long sessionId, List storageGroup, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task insertRecord(TSInsertRecordReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task insertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task insertStringRecord(TSInsertStringRecordReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task insertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task insertTablet(TSInsertTabletReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task insertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task insertTablets(TSInsertTabletsReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task insertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task insertRecords(TSInsertRecordsReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task insertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task insertRecordsOfOneDevice(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task insertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task insertStringRecordsOfOneDevice(TSInsertStringRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task insertStringRecordsOfOneDeviceAsync(TSInsertStringRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task insertStringRecords(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task insertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task testInsertTablet(TSInsertTabletReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task testInsertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task testInsertTablets(TSInsertTabletsReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task testInsertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task testInsertRecord(TSInsertRecordReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task testInsertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task testInsertStringRecord(TSInsertStringRecordReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task testInsertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task testInsertRecords(TSInsertRecordsReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task testInsertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task testInsertRecordsOfOneDevice(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task testInsertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task testInsertStringRecords(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task testInsertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task deleteData(TSDeleteDataReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task deleteDataAsync(TSDeleteDataReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeRawDataQuery(TSRawDataQueryReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeRawDataQueryAsync(TSRawDataQueryReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeLastDataQuery(TSLastDataQueryReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeLastDataQueryAsync(TSLastDataQueryReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task executeAggregationQuery(TSAggregationQueryReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task executeAggregationQueryAsync(TSAggregationQueryReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task requestStatementId(long sessionId, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task requestStatementIdAsync(long sessionId, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task createSchemaTemplate(TSCreateSchemaTemplateReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task createSchemaTemplateAsync(TSCreateSchemaTemplateReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task appendSchemaTemplate(TSAppendSchemaTemplateReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task appendSchemaTemplateAsync(TSAppendSchemaTemplateReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task pruneSchemaTemplate(TSPruneSchemaTemplateReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task pruneSchemaTemplateAsync(TSPruneSchemaTemplateReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task querySchemaTemplate(TSQueryTemplateReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task querySchemaTemplateAsync(TSQueryTemplateReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task showConfigurationTemplate(CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task showConfigurationTemplateAsync(CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task showConfiguration(int nodeId, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task showConfigurationAsync(int nodeId, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task setSchemaTemplate(TSSetSchemaTemplateReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task setSchemaTemplateAsync(TSSetSchemaTemplateReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task unsetSchemaTemplate(TSUnsetSchemaTemplateReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task unsetSchemaTemplateAsync(TSUnsetSchemaTemplateReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task dropSchemaTemplate(TSDropSchemaTemplateReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task dropSchemaTemplateAsync(TSDropSchemaTemplateReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task createTimeseriesUsingSchemaTemplate(TCreateTimeseriesUsingSchemaTemplateReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task createTimeseriesUsingSchemaTemplateAsync(TCreateTimeseriesUsingSchemaTemplateReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task handshake(TSyncIdentityInfo info, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task handshakeAsync(TSyncIdentityInfo info, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task sendPipeData(byte[] buff, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task sendPipeDataAsync(byte[] buff, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task sendFile(TSyncTransportMetaInfo metaInfo, byte[] buff, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task sendFileAsync(TSyncTransportMetaInfo metaInfo, byte[] buff, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task pipeTransfer(TPipeTransferReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task pipeTransferAsync(TPipeTransferReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task pipeSubscribe(TPipeSubscribeReq req, CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task pipeSubscribeAsync(TPipeSubscribeReq req, CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task getBackupConfiguration(CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task getBackupConfigurationAsync(CancellationToken cancellationToken = default); - global::System.Threading.Tasks.Task fetchAllConnectionsInfo(CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task fetchAllConnectionsInfoAsync(CancellationToken cancellationToken = default); /// /// For other node's call /// - global::System.Threading.Tasks.Task testConnectionEmptyRPC(CancellationToken cancellationToken = default); + global::System.Threading.Tasks.Task testConnectionEmptyRPCAsync(CancellationToken cancellationToken = default); } @@ -179,2685 +178,2013 @@ public Client(TProtocol protocol) : this(protocol, protocol) { } - public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputProtocol, outputProtocol) - { + public Client(TProtocol inputProtocol, TProtocol outputProtocol) : base(inputProtocol, outputProtocol) { } - - public async global::System.Threading.Tasks.Task executeQueryStatementV2(TSExecuteStatementReq req, CancellationToken cancellationToken = default) - { - await send_executeQueryStatementV2(req, cancellationToken); - return await recv_executeQueryStatementV2(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_executeQueryStatementV2(TSExecuteStatementReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task executeQueryStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeQueryStatementV2", TMessageType.Call, SeqId), cancellationToken); - var tmp599 = new InternalStructs.executeQueryStatementV2_args() { + var args = new InternalStructs.executeQueryStatementV2Args() { Req = req, }; - await tmp599.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_executeQueryStatementV2(CancellationToken cancellationToken = default) - { - var tmp600 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp600.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp601 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp601; + throw x; } - var tmp602 = new InternalStructs.executeQueryStatementV2_result(); - await tmp602.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.executeQueryStatementV2Result(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp602.__isset.success) + if (result.__isset.success) { - return tmp602.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeQueryStatementV2 failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeUpdateStatementV2(TSExecuteStatementReq req, CancellationToken cancellationToken = default) - { - await send_executeUpdateStatementV2(req, cancellationToken); - return await recv_executeUpdateStatementV2(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_executeUpdateStatementV2(TSExecuteStatementReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task executeUpdateStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeUpdateStatementV2", TMessageType.Call, SeqId), cancellationToken); - var tmp603 = new InternalStructs.executeUpdateStatementV2_args() { + var args = new InternalStructs.executeUpdateStatementV2Args() { Req = req, }; - await tmp603.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_executeUpdateStatementV2(CancellationToken cancellationToken = default) - { - var tmp604 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp604.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp605 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp605; + throw x; } - var tmp606 = new InternalStructs.executeUpdateStatementV2_result(); - await tmp606.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.executeUpdateStatementV2Result(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp606.__isset.success) + if (result.__isset.success) { - return tmp606.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeUpdateStatementV2 failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeStatementV2(TSExecuteStatementReq req, CancellationToken cancellationToken = default) - { - await send_executeStatementV2(req, cancellationToken); - return await recv_executeStatementV2(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_executeStatementV2(TSExecuteStatementReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task executeStatementV2Async(TSExecuteStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeStatementV2", TMessageType.Call, SeqId), cancellationToken); - var tmp607 = new InternalStructs.executeStatementV2_args() { + var args = new InternalStructs.executeStatementV2Args() { Req = req, }; - await tmp607.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_executeStatementV2(CancellationToken cancellationToken = default) - { - var tmp608 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp608.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp609 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp609; + throw x; } - var tmp610 = new InternalStructs.executeStatementV2_result(); - await tmp610.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.executeStatementV2Result(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp610.__isset.success) + if (result.__isset.success) { - return tmp610.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeStatementV2 failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeRawDataQueryV2(TSRawDataQueryReq req, CancellationToken cancellationToken = default) - { - await send_executeRawDataQueryV2(req, cancellationToken); - return await recv_executeRawDataQueryV2(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_executeRawDataQueryV2(TSRawDataQueryReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task executeRawDataQueryV2Async(TSRawDataQueryReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeRawDataQueryV2", TMessageType.Call, SeqId), cancellationToken); - var tmp611 = new InternalStructs.executeRawDataQueryV2_args() { + var args = new InternalStructs.executeRawDataQueryV2Args() { Req = req, }; - await tmp611.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_executeRawDataQueryV2(CancellationToken cancellationToken = default) - { - var tmp612 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp612.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp613 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp613; + throw x; } - var tmp614 = new InternalStructs.executeRawDataQueryV2_result(); - await tmp614.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.executeRawDataQueryV2Result(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp614.__isset.success) + if (result.__isset.success) { - return tmp614.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeRawDataQueryV2 failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeLastDataQueryV2(TSLastDataQueryReq req, CancellationToken cancellationToken = default) - { - await send_executeLastDataQueryV2(req, cancellationToken); - return await recv_executeLastDataQueryV2(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_executeLastDataQueryV2(TSLastDataQueryReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task executeLastDataQueryV2Async(TSLastDataQueryReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeLastDataQueryV2", TMessageType.Call, SeqId), cancellationToken); - var tmp615 = new InternalStructs.executeLastDataQueryV2_args() { + var args = new InternalStructs.executeLastDataQueryV2Args() { Req = req, }; - await tmp615.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_executeLastDataQueryV2(CancellationToken cancellationToken = default) - { - var tmp616 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp616.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp617 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp617; + throw x; } - var tmp618 = new InternalStructs.executeLastDataQueryV2_result(); - await tmp618.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.executeLastDataQueryV2Result(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp618.__isset.success) + if (result.__isset.success) { - return tmp618.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeLastDataQueryV2 failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeFastLastDataQueryForOnePrefixPath(TSFastLastDataQueryForOnePrefixPathReq req, CancellationToken cancellationToken = default) - { - await send_executeFastLastDataQueryForOnePrefixPath(req, cancellationToken); - return await recv_executeFastLastDataQueryForOnePrefixPath(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_executeFastLastDataQueryForOnePrefixPath(TSFastLastDataQueryForOnePrefixPathReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task executeFastLastDataQueryForOnePrefixPathAsync(TSFastLastDataQueryForOnePrefixPathReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeFastLastDataQueryForOnePrefixPath", TMessageType.Call, SeqId), cancellationToken); - var tmp619 = new InternalStructs.executeFastLastDataQueryForOnePrefixPath_args() { + var args = new InternalStructs.executeFastLastDataQueryForOnePrefixPathArgs() { Req = req, }; - await tmp619.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_executeFastLastDataQueryForOnePrefixPath(CancellationToken cancellationToken = default) - { - var tmp620 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp620.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp621 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp621; + throw x; } - var tmp622 = new InternalStructs.executeFastLastDataQueryForOnePrefixPath_result(); - await tmp622.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.executeFastLastDataQueryForOnePrefixPathResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp622.__isset.success) + if (result.__isset.success) { - return tmp622.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeFastLastDataQueryForOnePrefixPath failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeFastLastDataQueryForOneDeviceV2(TSFastLastDataQueryForOneDeviceReq req, CancellationToken cancellationToken = default) - { - await send_executeFastLastDataQueryForOneDeviceV2(req, cancellationToken); - return await recv_executeFastLastDataQueryForOneDeviceV2(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_executeFastLastDataQueryForOneDeviceV2(TSFastLastDataQueryForOneDeviceReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task executeFastLastDataQueryForOneDeviceV2Async(TSFastLastDataQueryForOneDeviceReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeFastLastDataQueryForOneDeviceV2", TMessageType.Call, SeqId), cancellationToken); - var tmp623 = new InternalStructs.executeFastLastDataQueryForOneDeviceV2_args() { + var args = new InternalStructs.executeFastLastDataQueryForOneDeviceV2Args() { Req = req, }; - await tmp623.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_executeFastLastDataQueryForOneDeviceV2(CancellationToken cancellationToken = default) - { - var tmp624 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp624.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp625 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp625; + throw x; } - var tmp626 = new InternalStructs.executeFastLastDataQueryForOneDeviceV2_result(); - await tmp626.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.executeFastLastDataQueryForOneDeviceV2Result(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp626.__isset.success) + if (result.__isset.success) { - return tmp626.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeFastLastDataQueryForOneDeviceV2 failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeAggregationQueryV2(TSAggregationQueryReq req, CancellationToken cancellationToken = default) - { - await send_executeAggregationQueryV2(req, cancellationToken); - return await recv_executeAggregationQueryV2(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_executeAggregationQueryV2(TSAggregationQueryReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task executeAggregationQueryV2Async(TSAggregationQueryReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeAggregationQueryV2", TMessageType.Call, SeqId), cancellationToken); - var tmp627 = new InternalStructs.executeAggregationQueryV2_args() { + var args = new InternalStructs.executeAggregationQueryV2Args() { Req = req, }; - await tmp627.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_executeAggregationQueryV2(CancellationToken cancellationToken = default) - { - var tmp628 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp628.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp629 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp629; + throw x; } - var tmp630 = new InternalStructs.executeAggregationQueryV2_result(); - await tmp630.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.executeAggregationQueryV2Result(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp630.__isset.success) + if (result.__isset.success) { - return tmp630.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeAggregationQueryV2 failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeGroupByQueryIntervalQuery(TSGroupByQueryIntervalReq req, CancellationToken cancellationToken = default) - { - await send_executeGroupByQueryIntervalQuery(req, cancellationToken); - return await recv_executeGroupByQueryIntervalQuery(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_executeGroupByQueryIntervalQuery(TSGroupByQueryIntervalReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task executeGroupByQueryIntervalQueryAsync(TSGroupByQueryIntervalReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeGroupByQueryIntervalQuery", TMessageType.Call, SeqId), cancellationToken); - var tmp631 = new InternalStructs.executeGroupByQueryIntervalQuery_args() { + var args = new InternalStructs.executeGroupByQueryIntervalQueryArgs() { Req = req, }; - await tmp631.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_executeGroupByQueryIntervalQuery(CancellationToken cancellationToken = default) - { - var tmp632 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp632.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp633 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp633; + throw x; } - var tmp634 = new InternalStructs.executeGroupByQueryIntervalQuery_result(); - await tmp634.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.executeGroupByQueryIntervalQueryResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp634.__isset.success) + if (result.__isset.success) { - return tmp634.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeGroupByQueryIntervalQuery failed: unknown result"); } - public async global::System.Threading.Tasks.Task fetchResultsV2(TSFetchResultsReq req, CancellationToken cancellationToken = default) - { - await send_fetchResultsV2(req, cancellationToken); - return await recv_fetchResultsV2(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_fetchResultsV2(TSFetchResultsReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task fetchResultsV2Async(TSFetchResultsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("fetchResultsV2", TMessageType.Call, SeqId), cancellationToken); - var tmp635 = new InternalStructs.fetchResultsV2_args() { + var args = new InternalStructs.fetchResultsV2Args() { Req = req, }; - await tmp635.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_fetchResultsV2(CancellationToken cancellationToken = default) - { - var tmp636 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp636.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp637 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp637; + throw x; } - var tmp638 = new InternalStructs.fetchResultsV2_result(); - await tmp638.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.fetchResultsV2Result(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp638.__isset.success) + if (result.__isset.success) { - return tmp638.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "fetchResultsV2 failed: unknown result"); } - public async global::System.Threading.Tasks.Task openSession(TSOpenSessionReq req, CancellationToken cancellationToken = default) - { - await send_openSession(req, cancellationToken); - return await recv_openSession(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_openSession(TSOpenSessionReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task openSessionAsync(TSOpenSessionReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("openSession", TMessageType.Call, SeqId), cancellationToken); - var tmp639 = new InternalStructs.openSession_args() { + var args = new InternalStructs.openSessionArgs() { Req = req, }; - await tmp639.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_openSession(CancellationToken cancellationToken = default) - { - var tmp640 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp640.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp641 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp641; + throw x; } - var tmp642 = new InternalStructs.openSession_result(); - await tmp642.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.openSessionResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp642.__isset.success) + if (result.__isset.success) { - return tmp642.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "openSession failed: unknown result"); } - public async global::System.Threading.Tasks.Task closeSession(TSCloseSessionReq req, CancellationToken cancellationToken = default) - { - await send_closeSession(req, cancellationToken); - return await recv_closeSession(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_closeSession(TSCloseSessionReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task closeSessionAsync(TSCloseSessionReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("closeSession", TMessageType.Call, SeqId), cancellationToken); - var tmp643 = new InternalStructs.closeSession_args() { + var args = new InternalStructs.closeSessionArgs() { Req = req, }; - await tmp643.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_closeSession(CancellationToken cancellationToken = default) - { - var tmp644 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp644.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp645 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp645; + throw x; } - var tmp646 = new InternalStructs.closeSession_result(); - await tmp646.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.closeSessionResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp646.__isset.success) + if (result.__isset.success) { - return tmp646.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "closeSession failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeStatement(TSExecuteStatementReq req, CancellationToken cancellationToken = default) - { - await send_executeStatement(req, cancellationToken); - return await recv_executeStatement(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_executeStatement(TSExecuteStatementReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task executeStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeStatement", TMessageType.Call, SeqId), cancellationToken); - var tmp647 = new InternalStructs.executeStatement_args() { + var args = new InternalStructs.executeStatementArgs() { Req = req, }; - await tmp647.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_executeStatement(CancellationToken cancellationToken = default) - { - var tmp648 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp648.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp649 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp649; + throw x; } - var tmp650 = new InternalStructs.executeStatement_result(); - await tmp650.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.executeStatementResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp650.__isset.success) + if (result.__isset.success) { - return tmp650.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeStatement failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeBatchStatement(TSExecuteBatchStatementReq req, CancellationToken cancellationToken = default) - { - await send_executeBatchStatement(req, cancellationToken); - return await recv_executeBatchStatement(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_executeBatchStatement(TSExecuteBatchStatementReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task executeBatchStatementAsync(TSExecuteBatchStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeBatchStatement", TMessageType.Call, SeqId), cancellationToken); - var tmp651 = new InternalStructs.executeBatchStatement_args() { + var args = new InternalStructs.executeBatchStatementArgs() { Req = req, }; - await tmp651.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_executeBatchStatement(CancellationToken cancellationToken = default) - { - var tmp652 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp652.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp653 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp653; + throw x; } - var tmp654 = new InternalStructs.executeBatchStatement_result(); - await tmp654.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.executeBatchStatementResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp654.__isset.success) + if (result.__isset.success) { - return tmp654.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeBatchStatement failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeQueryStatement(TSExecuteStatementReq req, CancellationToken cancellationToken = default) - { - await send_executeQueryStatement(req, cancellationToken); - return await recv_executeQueryStatement(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_executeQueryStatement(TSExecuteStatementReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task executeQueryStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeQueryStatement", TMessageType.Call, SeqId), cancellationToken); - var tmp655 = new InternalStructs.executeQueryStatement_args() { + var args = new InternalStructs.executeQueryStatementArgs() { Req = req, }; - await tmp655.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_executeQueryStatement(CancellationToken cancellationToken = default) - { - var tmp656 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp656.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp657 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp657; + throw x; } - var tmp658 = new InternalStructs.executeQueryStatement_result(); - await tmp658.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.executeQueryStatementResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp658.__isset.success) + if (result.__isset.success) { - return tmp658.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeQueryStatement failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeUpdateStatement(TSExecuteStatementReq req, CancellationToken cancellationToken = default) - { - await send_executeUpdateStatement(req, cancellationToken); - return await recv_executeUpdateStatement(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_executeUpdateStatement(TSExecuteStatementReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task executeUpdateStatementAsync(TSExecuteStatementReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeUpdateStatement", TMessageType.Call, SeqId), cancellationToken); - var tmp659 = new InternalStructs.executeUpdateStatement_args() { + var args = new InternalStructs.executeUpdateStatementArgs() { Req = req, }; - await tmp659.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_executeUpdateStatement(CancellationToken cancellationToken = default) - { - var tmp660 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp660.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp661 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp661; + throw x; } - var tmp662 = new InternalStructs.executeUpdateStatement_result(); - await tmp662.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.executeUpdateStatementResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp662.__isset.success) + if (result.__isset.success) { - return tmp662.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeUpdateStatement failed: unknown result"); } - public async global::System.Threading.Tasks.Task fetchResults(TSFetchResultsReq req, CancellationToken cancellationToken = default) - { - await send_fetchResults(req, cancellationToken); - return await recv_fetchResults(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_fetchResults(TSFetchResultsReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task fetchResultsAsync(TSFetchResultsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("fetchResults", TMessageType.Call, SeqId), cancellationToken); - var tmp663 = new InternalStructs.fetchResults_args() { + var args = new InternalStructs.fetchResultsArgs() { Req = req, }; - await tmp663.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_fetchResults(CancellationToken cancellationToken = default) - { - var tmp664 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp664.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp665 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp665; + throw x; } - var tmp666 = new InternalStructs.fetchResults_result(); - await tmp666.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.fetchResultsResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp666.__isset.success) + if (result.__isset.success) { - return tmp666.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "fetchResults failed: unknown result"); } - public async global::System.Threading.Tasks.Task fetchMetadata(TSFetchMetadataReq req, CancellationToken cancellationToken = default) - { - await send_fetchMetadata(req, cancellationToken); - return await recv_fetchMetadata(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_fetchMetadata(TSFetchMetadataReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task fetchMetadataAsync(TSFetchMetadataReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("fetchMetadata", TMessageType.Call, SeqId), cancellationToken); - var tmp667 = new InternalStructs.fetchMetadata_args() { + var args = new InternalStructs.fetchMetadataArgs() { Req = req, }; - await tmp667.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_fetchMetadata(CancellationToken cancellationToken = default) - { - var tmp668 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp668.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp669 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp669; + throw x; } - var tmp670 = new InternalStructs.fetchMetadata_result(); - await tmp670.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.fetchMetadataResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp670.__isset.success) + if (result.__isset.success) { - return tmp670.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "fetchMetadata failed: unknown result"); } - public async global::System.Threading.Tasks.Task cancelOperation(TSCancelOperationReq req, CancellationToken cancellationToken = default) - { - await send_cancelOperation(req, cancellationToken); - return await recv_cancelOperation(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_cancelOperation(TSCancelOperationReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task cancelOperationAsync(TSCancelOperationReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("cancelOperation", TMessageType.Call, SeqId), cancellationToken); - var tmp671 = new InternalStructs.cancelOperation_args() { + var args = new InternalStructs.cancelOperationArgs() { Req = req, }; - await tmp671.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_cancelOperation(CancellationToken cancellationToken = default) - { - var tmp672 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp672.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp673 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp673; + throw x; } - var tmp674 = new InternalStructs.cancelOperation_result(); - await tmp674.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.cancelOperationResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp674.__isset.success) + if (result.__isset.success) { - return tmp674.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "cancelOperation failed: unknown result"); } - public async global::System.Threading.Tasks.Task closeOperation(TSCloseOperationReq req, CancellationToken cancellationToken = default) - { - await send_closeOperation(req, cancellationToken); - return await recv_closeOperation(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_closeOperation(TSCloseOperationReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task closeOperationAsync(TSCloseOperationReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("closeOperation", TMessageType.Call, SeqId), cancellationToken); - var tmp675 = new InternalStructs.closeOperation_args() { + var args = new InternalStructs.closeOperationArgs() { Req = req, }; - await tmp675.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_closeOperation(CancellationToken cancellationToken = default) - { - var tmp676 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp676.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp677 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp677; + throw x; } - var tmp678 = new InternalStructs.closeOperation_result(); - await tmp678.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.closeOperationResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp678.__isset.success) + if (result.__isset.success) { - return tmp678.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "closeOperation failed: unknown result"); } - public async global::System.Threading.Tasks.Task getTimeZone(long sessionId, CancellationToken cancellationToken = default) - { - await send_getTimeZone(sessionId, cancellationToken); - return await recv_getTimeZone(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_getTimeZone(long sessionId, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task getTimeZoneAsync(long sessionId, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("getTimeZone", TMessageType.Call, SeqId), cancellationToken); - var tmp679 = new InternalStructs.getTimeZone_args() { + var args = new InternalStructs.getTimeZoneArgs() { SessionId = sessionId, }; - await tmp679.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_getTimeZone(CancellationToken cancellationToken = default) - { - var tmp680 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp680.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp681 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp681; + throw x; } - var tmp682 = new InternalStructs.getTimeZone_result(); - await tmp682.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.getTimeZoneResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp682.__isset.success) + if (result.__isset.success) { - return tmp682.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getTimeZone failed: unknown result"); } - public async global::System.Threading.Tasks.Task setTimeZone(TSSetTimeZoneReq req, CancellationToken cancellationToken = default) - { - await send_setTimeZone(req, cancellationToken); - return await recv_setTimeZone(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_setTimeZone(TSSetTimeZoneReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task setTimeZoneAsync(TSSetTimeZoneReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("setTimeZone", TMessageType.Call, SeqId), cancellationToken); - var tmp683 = new InternalStructs.setTimeZone_args() { + var args = new InternalStructs.setTimeZoneArgs() { Req = req, }; - await tmp683.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_setTimeZone(CancellationToken cancellationToken = default) - { - var tmp684 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp684.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp685 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp685; + throw x; } - var tmp686 = new InternalStructs.setTimeZone_result(); - await tmp686.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.setTimeZoneResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp686.__isset.success) + if (result.__isset.success) { - return tmp686.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "setTimeZone failed: unknown result"); } - public async global::System.Threading.Tasks.Task getProperties(CancellationToken cancellationToken = default) - { - await send_getProperties(cancellationToken); - return await recv_getProperties(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_getProperties(CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task getPropertiesAsync(CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("getProperties", TMessageType.Call, SeqId), cancellationToken); - var tmp687 = new InternalStructs.getProperties_args() { + var args = new InternalStructs.getPropertiesArgs() { }; - await tmp687.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_getProperties(CancellationToken cancellationToken = default) - { - var tmp688 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp688.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp689 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp689; + throw x; } - var tmp690 = new InternalStructs.getProperties_result(); - await tmp690.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.getPropertiesResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp690.__isset.success) + if (result.__isset.success) { - return tmp690.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getProperties failed: unknown result"); } - public async global::System.Threading.Tasks.Task setStorageGroup(long sessionId, string storageGroup, CancellationToken cancellationToken = default) - { - await send_setStorageGroup(sessionId, storageGroup, cancellationToken); - return await recv_setStorageGroup(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_setStorageGroup(long sessionId, string storageGroup, CancellationToken cancellationToken = default) + 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 tmp691 = new InternalStructs.setStorageGroup_args() { + var args = new InternalStructs.setStorageGroupArgs() { SessionId = sessionId, StorageGroup = storageGroup, }; - await tmp691.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_setStorageGroup(CancellationToken cancellationToken = default) - { - var tmp692 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp692.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp693 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp693; + throw x; } - var tmp694 = new InternalStructs.setStorageGroup_result(); - await tmp694.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.setStorageGroupResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp694.__isset.success) + if (result.__isset.success) { - return tmp694.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "setStorageGroup failed: unknown result"); } - public async global::System.Threading.Tasks.Task createTimeseries(TSCreateTimeseriesReq req, CancellationToken cancellationToken = default) - { - await send_createTimeseries(req, cancellationToken); - return await recv_createTimeseries(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_createTimeseries(TSCreateTimeseriesReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task createTimeseriesAsync(TSCreateTimeseriesReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("createTimeseries", TMessageType.Call, SeqId), cancellationToken); - var tmp695 = new InternalStructs.createTimeseries_args() { + var args = new InternalStructs.createTimeseriesArgs() { Req = req, }; - await tmp695.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_createTimeseries(CancellationToken cancellationToken = default) - { - var tmp696 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp696.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp697 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp697; + throw x; } - var tmp698 = new InternalStructs.createTimeseries_result(); - await tmp698.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.createTimeseriesResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp698.__isset.success) + if (result.__isset.success) { - return tmp698.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "createTimeseries failed: unknown result"); } - public async global::System.Threading.Tasks.Task createAlignedTimeseries(TSCreateAlignedTimeseriesReq req, CancellationToken cancellationToken = default) - { - await send_createAlignedTimeseries(req, cancellationToken); - return await recv_createAlignedTimeseries(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_createAlignedTimeseries(TSCreateAlignedTimeseriesReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task createAlignedTimeseriesAsync(TSCreateAlignedTimeseriesReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("createAlignedTimeseries", TMessageType.Call, SeqId), cancellationToken); - var tmp699 = new InternalStructs.createAlignedTimeseries_args() { + var args = new InternalStructs.createAlignedTimeseriesArgs() { Req = req, }; - await tmp699.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_createAlignedTimeseries(CancellationToken cancellationToken = default) - { - var tmp700 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp700.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp701 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp701; + throw x; } - var tmp702 = new InternalStructs.createAlignedTimeseries_result(); - await tmp702.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.createAlignedTimeseriesResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp702.__isset.success) + if (result.__isset.success) { - return tmp702.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "createAlignedTimeseries failed: unknown result"); } - public async global::System.Threading.Tasks.Task createMultiTimeseries(TSCreateMultiTimeseriesReq req, CancellationToken cancellationToken = default) - { - await send_createMultiTimeseries(req, cancellationToken); - return await recv_createMultiTimeseries(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_createMultiTimeseries(TSCreateMultiTimeseriesReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task createMultiTimeseriesAsync(TSCreateMultiTimeseriesReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("createMultiTimeseries", TMessageType.Call, SeqId), cancellationToken); - var tmp703 = new InternalStructs.createMultiTimeseries_args() { + var args = new InternalStructs.createMultiTimeseriesArgs() { Req = req, }; - await tmp703.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_createMultiTimeseries(CancellationToken cancellationToken = default) - { - var tmp704 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp704.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp705 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp705; + throw x; } - var tmp706 = new InternalStructs.createMultiTimeseries_result(); - await tmp706.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.createMultiTimeseriesResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp706.__isset.success) + if (result.__isset.success) { - return tmp706.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "createMultiTimeseries failed: unknown result"); } - public async global::System.Threading.Tasks.Task deleteTimeseries(long sessionId, List path, CancellationToken cancellationToken = default) - { - await send_deleteTimeseries(sessionId, path, cancellationToken); - return await recv_deleteTimeseries(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_deleteTimeseries(long sessionId, List path, CancellationToken cancellationToken = default) + 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 tmp707 = new InternalStructs.deleteTimeseries_args() { + var args = new InternalStructs.deleteTimeseriesArgs() { SessionId = sessionId, Path = path, }; - await tmp707.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_deleteTimeseries(CancellationToken cancellationToken = default) - { - var tmp708 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp708.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp709 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp709; + throw x; } - var tmp710 = new InternalStructs.deleteTimeseries_result(); - await tmp710.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.deleteTimeseriesResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp710.__isset.success) + if (result.__isset.success) { - return tmp710.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "deleteTimeseries failed: unknown result"); } - public async global::System.Threading.Tasks.Task deleteStorageGroups(long sessionId, List storageGroup, CancellationToken cancellationToken = default) - { - await send_deleteStorageGroups(sessionId, storageGroup, cancellationToken); - return await recv_deleteStorageGroups(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_deleteStorageGroups(long sessionId, List storageGroup, CancellationToken cancellationToken = default) + 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 tmp711 = new InternalStructs.deleteStorageGroups_args() { + var args = new InternalStructs.deleteStorageGroupsArgs() { SessionId = sessionId, StorageGroup = storageGroup, }; - await tmp711.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_deleteStorageGroups(CancellationToken cancellationToken = default) - { - var tmp712 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp712.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp713 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp713; + throw x; } - var tmp714 = new InternalStructs.deleteStorageGroups_result(); - await tmp714.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.deleteStorageGroupsResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp714.__isset.success) + if (result.__isset.success) { - return tmp714.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "deleteStorageGroups failed: unknown result"); } - public async global::System.Threading.Tasks.Task insertRecord(TSInsertRecordReq req, CancellationToken cancellationToken = default) - { - await send_insertRecord(req, cancellationToken); - return await recv_insertRecord(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_insertRecord(TSInsertRecordReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task insertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertRecord", TMessageType.Call, SeqId), cancellationToken); - var tmp715 = new InternalStructs.insertRecord_args() { + var args = new InternalStructs.insertRecordArgs() { Req = req, }; - await tmp715.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_insertRecord(CancellationToken cancellationToken = default) - { - var tmp716 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp716.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp717 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp717; + throw x; } - var tmp718 = new InternalStructs.insertRecord_result(); - await tmp718.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.insertRecordResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp718.__isset.success) + if (result.__isset.success) { - return tmp718.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertRecord failed: unknown result"); } - public async global::System.Threading.Tasks.Task insertStringRecord(TSInsertStringRecordReq req, CancellationToken cancellationToken = default) - { - await send_insertStringRecord(req, cancellationToken); - return await recv_insertStringRecord(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_insertStringRecord(TSInsertStringRecordReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task insertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertStringRecord", TMessageType.Call, SeqId), cancellationToken); - var tmp719 = new InternalStructs.insertStringRecord_args() { + var args = new InternalStructs.insertStringRecordArgs() { Req = req, }; - await tmp719.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_insertStringRecord(CancellationToken cancellationToken = default) - { - var tmp720 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp720.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp721 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp721; + throw x; } - var tmp722 = new InternalStructs.insertStringRecord_result(); - await tmp722.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.insertStringRecordResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp722.__isset.success) + if (result.__isset.success) { - return tmp722.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertStringRecord failed: unknown result"); } - public async global::System.Threading.Tasks.Task insertTablet(TSInsertTabletReq req, CancellationToken cancellationToken = default) - { - await send_insertTablet(req, cancellationToken); - return await recv_insertTablet(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_insertTablet(TSInsertTabletReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task insertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertTablet", TMessageType.Call, SeqId), cancellationToken); - var tmp723 = new InternalStructs.insertTablet_args() { + var args = new InternalStructs.insertTabletArgs() { Req = req, }; - await tmp723.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_insertTablet(CancellationToken cancellationToken = default) - { - var tmp724 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp724.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp725 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp725; + throw x; } - var tmp726 = new InternalStructs.insertTablet_result(); - await tmp726.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.insertTabletResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp726.__isset.success) + if (result.__isset.success) { - return tmp726.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertTablet failed: unknown result"); } - public async global::System.Threading.Tasks.Task insertTablets(TSInsertTabletsReq req, CancellationToken cancellationToken = default) - { - await send_insertTablets(req, cancellationToken); - return await recv_insertTablets(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_insertTablets(TSInsertTabletsReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task insertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertTablets", TMessageType.Call, SeqId), cancellationToken); - var tmp727 = new InternalStructs.insertTablets_args() { + var args = new InternalStructs.insertTabletsArgs() { Req = req, }; - await tmp727.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_insertTablets(CancellationToken cancellationToken = default) - { - var tmp728 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp728.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp729 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp729; + throw x; } - var tmp730 = new InternalStructs.insertTablets_result(); - await tmp730.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.insertTabletsResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp730.__isset.success) + if (result.__isset.success) { - return tmp730.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertTablets failed: unknown result"); } - public async global::System.Threading.Tasks.Task insertRecords(TSInsertRecordsReq req, CancellationToken cancellationToken = default) - { - await send_insertRecords(req, cancellationToken); - return await recv_insertRecords(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_insertRecords(TSInsertRecordsReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task insertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertRecords", TMessageType.Call, SeqId), cancellationToken); - var tmp731 = new InternalStructs.insertRecords_args() { + var args = new InternalStructs.insertRecordsArgs() { Req = req, }; - await tmp731.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_insertRecords(CancellationToken cancellationToken = default) - { - var tmp732 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp732.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp733 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp733; + throw x; } - var tmp734 = new InternalStructs.insertRecords_result(); - await tmp734.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.insertRecordsResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp734.__isset.success) + if (result.__isset.success) { - return tmp734.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertRecords failed: unknown result"); } - public async global::System.Threading.Tasks.Task insertRecordsOfOneDevice(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) - { - await send_insertRecordsOfOneDevice(req, cancellationToken); - return await recv_insertRecordsOfOneDevice(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_insertRecordsOfOneDevice(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task insertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertRecordsOfOneDevice", TMessageType.Call, SeqId), cancellationToken); - var tmp735 = new InternalStructs.insertRecordsOfOneDevice_args() { + var args = new InternalStructs.insertRecordsOfOneDeviceArgs() { Req = req, }; - await tmp735.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_insertRecordsOfOneDevice(CancellationToken cancellationToken = default) - { - var tmp736 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp736.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp737 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp737; + throw x; } - var tmp738 = new InternalStructs.insertRecordsOfOneDevice_result(); - await tmp738.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.insertRecordsOfOneDeviceResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp738.__isset.success) + if (result.__isset.success) { - return tmp738.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertRecordsOfOneDevice failed: unknown result"); } - public async global::System.Threading.Tasks.Task insertStringRecordsOfOneDevice(TSInsertStringRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) - { - await send_insertStringRecordsOfOneDevice(req, cancellationToken); - return await recv_insertStringRecordsOfOneDevice(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_insertStringRecordsOfOneDevice(TSInsertStringRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task insertStringRecordsOfOneDeviceAsync(TSInsertStringRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertStringRecordsOfOneDevice", TMessageType.Call, SeqId), cancellationToken); - var tmp739 = new InternalStructs.insertStringRecordsOfOneDevice_args() { + var args = new InternalStructs.insertStringRecordsOfOneDeviceArgs() { Req = req, }; - await tmp739.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_insertStringRecordsOfOneDevice(CancellationToken cancellationToken = default) - { - var tmp740 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp740.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp741 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp741; + throw x; } - var tmp742 = new InternalStructs.insertStringRecordsOfOneDevice_result(); - await tmp742.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.insertStringRecordsOfOneDeviceResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp742.__isset.success) + if (result.__isset.success) { - return tmp742.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertStringRecordsOfOneDevice failed: unknown result"); } - public async global::System.Threading.Tasks.Task insertStringRecords(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default) - { - await send_insertStringRecords(req, cancellationToken); - return await recv_insertStringRecords(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_insertStringRecords(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task insertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("insertStringRecords", TMessageType.Call, SeqId), cancellationToken); - var tmp743 = new InternalStructs.insertStringRecords_args() { + var args = new InternalStructs.insertStringRecordsArgs() { Req = req, }; - await tmp743.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_insertStringRecords(CancellationToken cancellationToken = default) - { - var tmp744 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp744.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp745 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp745; + throw x; } - var tmp746 = new InternalStructs.insertStringRecords_result(); - await tmp746.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.insertStringRecordsResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp746.__isset.success) + if (result.__isset.success) { - return tmp746.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "insertStringRecords failed: unknown result"); } - public async global::System.Threading.Tasks.Task testInsertTablet(TSInsertTabletReq req, CancellationToken cancellationToken = default) - { - await send_testInsertTablet(req, cancellationToken); - return await recv_testInsertTablet(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_testInsertTablet(TSInsertTabletReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task testInsertTabletAsync(TSInsertTabletReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertTablet", TMessageType.Call, SeqId), cancellationToken); - var tmp747 = new InternalStructs.testInsertTablet_args() { + var args = new InternalStructs.testInsertTabletArgs() { Req = req, }; - await tmp747.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_testInsertTablet(CancellationToken cancellationToken = default) - { - var tmp748 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp748.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp749 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp749; + throw x; } - var tmp750 = new InternalStructs.testInsertTablet_result(); - await tmp750.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.testInsertTabletResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp750.__isset.success) + if (result.__isset.success) { - return tmp750.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertTablet failed: unknown result"); } - public async global::System.Threading.Tasks.Task testInsertTablets(TSInsertTabletsReq req, CancellationToken cancellationToken = default) - { - await send_testInsertTablets(req, cancellationToken); - return await recv_testInsertTablets(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_testInsertTablets(TSInsertTabletsReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task testInsertTabletsAsync(TSInsertTabletsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertTablets", TMessageType.Call, SeqId), cancellationToken); - var tmp751 = new InternalStructs.testInsertTablets_args() { + var args = new InternalStructs.testInsertTabletsArgs() { Req = req, }; - await tmp751.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_testInsertTablets(CancellationToken cancellationToken = default) - { - var tmp752 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp752.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp753 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp753; + throw x; } - var tmp754 = new InternalStructs.testInsertTablets_result(); - await tmp754.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.testInsertTabletsResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp754.__isset.success) + if (result.__isset.success) { - return tmp754.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertTablets failed: unknown result"); } - public async global::System.Threading.Tasks.Task testInsertRecord(TSInsertRecordReq req, CancellationToken cancellationToken = default) - { - await send_testInsertRecord(req, cancellationToken); - return await recv_testInsertRecord(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_testInsertRecord(TSInsertRecordReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task testInsertRecordAsync(TSInsertRecordReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertRecord", TMessageType.Call, SeqId), cancellationToken); - var tmp755 = new InternalStructs.testInsertRecord_args() { + var args = new InternalStructs.testInsertRecordArgs() { Req = req, }; - await tmp755.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_testInsertRecord(CancellationToken cancellationToken = default) - { - var tmp756 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp756.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp757 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp757; + throw x; } - var tmp758 = new InternalStructs.testInsertRecord_result(); - await tmp758.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.testInsertRecordResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp758.__isset.success) + if (result.__isset.success) { - return tmp758.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertRecord failed: unknown result"); } - public async global::System.Threading.Tasks.Task testInsertStringRecord(TSInsertStringRecordReq req, CancellationToken cancellationToken = default) - { - await send_testInsertStringRecord(req, cancellationToken); - return await recv_testInsertStringRecord(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_testInsertStringRecord(TSInsertStringRecordReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task testInsertStringRecordAsync(TSInsertStringRecordReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertStringRecord", TMessageType.Call, SeqId), cancellationToken); - var tmp759 = new InternalStructs.testInsertStringRecord_args() { + var args = new InternalStructs.testInsertStringRecordArgs() { Req = req, }; - await tmp759.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_testInsertStringRecord(CancellationToken cancellationToken = default) - { - var tmp760 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp760.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp761 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp761; + throw x; } - var tmp762 = new InternalStructs.testInsertStringRecord_result(); - await tmp762.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.testInsertStringRecordResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp762.__isset.success) + if (result.__isset.success) { - return tmp762.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertStringRecord failed: unknown result"); } - public async global::System.Threading.Tasks.Task testInsertRecords(TSInsertRecordsReq req, CancellationToken cancellationToken = default) - { - await send_testInsertRecords(req, cancellationToken); - return await recv_testInsertRecords(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_testInsertRecords(TSInsertRecordsReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task testInsertRecordsAsync(TSInsertRecordsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertRecords", TMessageType.Call, SeqId), cancellationToken); - var tmp763 = new InternalStructs.testInsertRecords_args() { + var args = new InternalStructs.testInsertRecordsArgs() { Req = req, }; - await tmp763.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_testInsertRecords(CancellationToken cancellationToken = default) - { - var tmp764 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp764.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp765 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp765; + throw x; } - var tmp766 = new InternalStructs.testInsertRecords_result(); - await tmp766.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.testInsertRecordsResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp766.__isset.success) + if (result.__isset.success) { - return tmp766.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertRecords failed: unknown result"); } - public async global::System.Threading.Tasks.Task testInsertRecordsOfOneDevice(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) - { - await send_testInsertRecordsOfOneDevice(req, cancellationToken); - return await recv_testInsertRecordsOfOneDevice(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_testInsertRecordsOfOneDevice(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task testInsertRecordsOfOneDeviceAsync(TSInsertRecordsOfOneDeviceReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertRecordsOfOneDevice", TMessageType.Call, SeqId), cancellationToken); - var tmp767 = new InternalStructs.testInsertRecordsOfOneDevice_args() { + var args = new InternalStructs.testInsertRecordsOfOneDeviceArgs() { Req = req, }; - await tmp767.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_testInsertRecordsOfOneDevice(CancellationToken cancellationToken = default) - { - var tmp768 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp768.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp769 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp769; + throw x; } - var tmp770 = new InternalStructs.testInsertRecordsOfOneDevice_result(); - await tmp770.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.testInsertRecordsOfOneDeviceResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp770.__isset.success) + if (result.__isset.success) { - return tmp770.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertRecordsOfOneDevice failed: unknown result"); } - public async global::System.Threading.Tasks.Task testInsertStringRecords(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default) - { - await send_testInsertStringRecords(req, cancellationToken); - return await recv_testInsertStringRecords(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_testInsertStringRecords(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task testInsertStringRecordsAsync(TSInsertStringRecordsReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testInsertStringRecords", TMessageType.Call, SeqId), cancellationToken); - var tmp771 = new InternalStructs.testInsertStringRecords_args() { + var args = new InternalStructs.testInsertStringRecordsArgs() { Req = req, }; - await tmp771.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_testInsertStringRecords(CancellationToken cancellationToken = default) - { - var tmp772 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp772.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp773 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp773; + throw x; } - var tmp774 = new InternalStructs.testInsertStringRecords_result(); - await tmp774.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.testInsertStringRecordsResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp774.__isset.success) + if (result.__isset.success) { - return tmp774.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testInsertStringRecords failed: unknown result"); } - public async global::System.Threading.Tasks.Task deleteData(TSDeleteDataReq req, CancellationToken cancellationToken = default) - { - await send_deleteData(req, cancellationToken); - return await recv_deleteData(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_deleteData(TSDeleteDataReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task deleteDataAsync(TSDeleteDataReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("deleteData", TMessageType.Call, SeqId), cancellationToken); - var tmp775 = new InternalStructs.deleteData_args() { + var args = new InternalStructs.deleteDataArgs() { Req = req, }; - await tmp775.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_deleteData(CancellationToken cancellationToken = default) - { - var tmp776 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp776.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp777 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp777; + throw x; } - var tmp778 = new InternalStructs.deleteData_result(); - await tmp778.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.deleteDataResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp778.__isset.success) + if (result.__isset.success) { - return tmp778.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "deleteData failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeRawDataQuery(TSRawDataQueryReq req, CancellationToken cancellationToken = default) - { - await send_executeRawDataQuery(req, cancellationToken); - return await recv_executeRawDataQuery(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_executeRawDataQuery(TSRawDataQueryReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task executeRawDataQueryAsync(TSRawDataQueryReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeRawDataQuery", TMessageType.Call, SeqId), cancellationToken); - var tmp779 = new InternalStructs.executeRawDataQuery_args() { + var args = new InternalStructs.executeRawDataQueryArgs() { Req = req, }; - await tmp779.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_executeRawDataQuery(CancellationToken cancellationToken = default) - { - var tmp780 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp780.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp781 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp781; + throw x; } - var tmp782 = new InternalStructs.executeRawDataQuery_result(); - await tmp782.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.executeRawDataQueryResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp782.__isset.success) + if (result.__isset.success) { - return tmp782.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeRawDataQuery failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeLastDataQuery(TSLastDataQueryReq req, CancellationToken cancellationToken = default) - { - await send_executeLastDataQuery(req, cancellationToken); - return await recv_executeLastDataQuery(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_executeLastDataQuery(TSLastDataQueryReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task executeLastDataQueryAsync(TSLastDataQueryReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeLastDataQuery", TMessageType.Call, SeqId), cancellationToken); - var tmp783 = new InternalStructs.executeLastDataQuery_args() { + var args = new InternalStructs.executeLastDataQueryArgs() { Req = req, }; - await tmp783.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_executeLastDataQuery(CancellationToken cancellationToken = default) - { - var tmp784 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp784.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp785 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp785; + throw x; } - var tmp786 = new InternalStructs.executeLastDataQuery_result(); - await tmp786.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.executeLastDataQueryResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp786.__isset.success) + if (result.__isset.success) { - return tmp786.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeLastDataQuery failed: unknown result"); } - public async global::System.Threading.Tasks.Task executeAggregationQuery(TSAggregationQueryReq req, CancellationToken cancellationToken = default) - { - await send_executeAggregationQuery(req, cancellationToken); - return await recv_executeAggregationQuery(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_executeAggregationQuery(TSAggregationQueryReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task executeAggregationQueryAsync(TSAggregationQueryReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("executeAggregationQuery", TMessageType.Call, SeqId), cancellationToken); - var tmp787 = new InternalStructs.executeAggregationQuery_args() { + var args = new InternalStructs.executeAggregationQueryArgs() { Req = req, }; - await tmp787.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_executeAggregationQuery(CancellationToken cancellationToken = default) - { - var tmp788 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp788.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp789 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp789; + throw x; } - var tmp790 = new InternalStructs.executeAggregationQuery_result(); - await tmp790.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.executeAggregationQueryResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp790.__isset.success) + if (result.__isset.success) { - return tmp790.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "executeAggregationQuery failed: unknown result"); } - public async global::System.Threading.Tasks.Task requestStatementId(long sessionId, CancellationToken cancellationToken = default) - { - await send_requestStatementId(sessionId, cancellationToken); - return await recv_requestStatementId(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_requestStatementId(long sessionId, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task requestStatementIdAsync(long sessionId, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("requestStatementId", TMessageType.Call, SeqId), cancellationToken); - var tmp791 = new InternalStructs.requestStatementId_args() { + var args = new InternalStructs.requestStatementIdArgs() { SessionId = sessionId, }; - await tmp791.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_requestStatementId(CancellationToken cancellationToken = default) - { - var tmp792 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp792.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp793 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp793; + throw x; } - var tmp794 = new InternalStructs.requestStatementId_result(); - await tmp794.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.requestStatementIdResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp794.__isset.success) + if (result.__isset.success) { - return tmp794.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "requestStatementId failed: unknown result"); } - public async global::System.Threading.Tasks.Task createSchemaTemplate(TSCreateSchemaTemplateReq req, CancellationToken cancellationToken = default) - { - await send_createSchemaTemplate(req, cancellationToken); - return await recv_createSchemaTemplate(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_createSchemaTemplate(TSCreateSchemaTemplateReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task createSchemaTemplateAsync(TSCreateSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("createSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var tmp795 = new InternalStructs.createSchemaTemplate_args() { + var args = new InternalStructs.createSchemaTemplateArgs() { Req = req, }; - await tmp795.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_createSchemaTemplate(CancellationToken cancellationToken = default) - { - var tmp796 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp796.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp797 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp797; + throw x; } - var tmp798 = new InternalStructs.createSchemaTemplate_result(); - await tmp798.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.createSchemaTemplateResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp798.__isset.success) + if (result.__isset.success) { - return tmp798.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "createSchemaTemplate failed: unknown result"); } - public async global::System.Threading.Tasks.Task appendSchemaTemplate(TSAppendSchemaTemplateReq req, CancellationToken cancellationToken = default) - { - await send_appendSchemaTemplate(req, cancellationToken); - return await recv_appendSchemaTemplate(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_appendSchemaTemplate(TSAppendSchemaTemplateReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task appendSchemaTemplateAsync(TSAppendSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("appendSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var tmp799 = new InternalStructs.appendSchemaTemplate_args() { + var args = new InternalStructs.appendSchemaTemplateArgs() { Req = req, }; - await tmp799.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_appendSchemaTemplate(CancellationToken cancellationToken = default) - { - var tmp800 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp800.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp801 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp801; + throw x; } - var tmp802 = new InternalStructs.appendSchemaTemplate_result(); - await tmp802.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.appendSchemaTemplateResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp802.__isset.success) + if (result.__isset.success) { - return tmp802.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "appendSchemaTemplate failed: unknown result"); } - public async global::System.Threading.Tasks.Task pruneSchemaTemplate(TSPruneSchemaTemplateReq req, CancellationToken cancellationToken = default) - { - await send_pruneSchemaTemplate(req, cancellationToken); - return await recv_pruneSchemaTemplate(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_pruneSchemaTemplate(TSPruneSchemaTemplateReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task pruneSchemaTemplateAsync(TSPruneSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("pruneSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var tmp803 = new InternalStructs.pruneSchemaTemplate_args() { + var args = new InternalStructs.pruneSchemaTemplateArgs() { Req = req, }; - await tmp803.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_pruneSchemaTemplate(CancellationToken cancellationToken = default) - { - var tmp804 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp804.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp805 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp805; + throw x; } - var tmp806 = new InternalStructs.pruneSchemaTemplate_result(); - await tmp806.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.pruneSchemaTemplateResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp806.__isset.success) + if (result.__isset.success) { - return tmp806.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "pruneSchemaTemplate failed: unknown result"); } - public async global::System.Threading.Tasks.Task querySchemaTemplate(TSQueryTemplateReq req, CancellationToken cancellationToken = default) - { - await send_querySchemaTemplate(req, cancellationToken); - return await recv_querySchemaTemplate(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_querySchemaTemplate(TSQueryTemplateReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task querySchemaTemplateAsync(TSQueryTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("querySchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var tmp807 = new InternalStructs.querySchemaTemplate_args() { + var args = new InternalStructs.querySchemaTemplateArgs() { Req = req, }; - await tmp807.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_querySchemaTemplate(CancellationToken cancellationToken = default) - { - var tmp808 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp808.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp809 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp809; + throw x; } - var tmp810 = new InternalStructs.querySchemaTemplate_result(); - await tmp810.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.querySchemaTemplateResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp810.__isset.success) + if (result.__isset.success) { - return tmp810.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "querySchemaTemplate failed: unknown result"); } - public async global::System.Threading.Tasks.Task showConfigurationTemplate(CancellationToken cancellationToken = default) - { - await send_showConfigurationTemplate(cancellationToken); - return await recv_showConfigurationTemplate(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_showConfigurationTemplate(CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task showConfigurationTemplateAsync(CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("showConfigurationTemplate", TMessageType.Call, SeqId), cancellationToken); - var tmp811 = new InternalStructs.showConfigurationTemplate_args() { + var args = new InternalStructs.showConfigurationTemplateArgs() { }; - await tmp811.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_showConfigurationTemplate(CancellationToken cancellationToken = default) - { - var tmp812 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp812.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp813 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp813; + throw x; } - var tmp814 = new InternalStructs.showConfigurationTemplate_result(); - await tmp814.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.showConfigurationTemplateResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp814.__isset.success) + if (result.__isset.success) { - return tmp814.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "showConfigurationTemplate failed: unknown result"); } - public async global::System.Threading.Tasks.Task showConfiguration(int nodeId, CancellationToken cancellationToken = default) - { - await send_showConfiguration(nodeId, cancellationToken); - return await recv_showConfiguration(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_showConfiguration(int nodeId, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task showConfigurationAsync(int nodeId, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("showConfiguration", TMessageType.Call, SeqId), cancellationToken); - var tmp815 = new InternalStructs.showConfiguration_args() { + var args = new InternalStructs.showConfigurationArgs() { NodeId = nodeId, }; - await tmp815.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_showConfiguration(CancellationToken cancellationToken = default) - { - var tmp816 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp816.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp817 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp817; + throw x; } - var tmp818 = new InternalStructs.showConfiguration_result(); - await tmp818.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.showConfigurationResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp818.__isset.success) + if (result.__isset.success) { - return tmp818.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "showConfiguration failed: unknown result"); } - public async global::System.Threading.Tasks.Task setSchemaTemplate(TSSetSchemaTemplateReq req, CancellationToken cancellationToken = default) - { - await send_setSchemaTemplate(req, cancellationToken); - return await recv_setSchemaTemplate(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_setSchemaTemplate(TSSetSchemaTemplateReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task setSchemaTemplateAsync(TSSetSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("setSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var tmp819 = new InternalStructs.setSchemaTemplate_args() { + var args = new InternalStructs.setSchemaTemplateArgs() { Req = req, }; - await tmp819.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_setSchemaTemplate(CancellationToken cancellationToken = default) - { - var tmp820 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp820.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp821 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp821; + throw x; } - var tmp822 = new InternalStructs.setSchemaTemplate_result(); - await tmp822.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.setSchemaTemplateResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp822.__isset.success) + if (result.__isset.success) { - return tmp822.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "setSchemaTemplate failed: unknown result"); } - public async global::System.Threading.Tasks.Task unsetSchemaTemplate(TSUnsetSchemaTemplateReq req, CancellationToken cancellationToken = default) - { - await send_unsetSchemaTemplate(req, cancellationToken); - return await recv_unsetSchemaTemplate(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_unsetSchemaTemplate(TSUnsetSchemaTemplateReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task unsetSchemaTemplateAsync(TSUnsetSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("unsetSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var tmp823 = new InternalStructs.unsetSchemaTemplate_args() { + var args = new InternalStructs.unsetSchemaTemplateArgs() { Req = req, }; - await tmp823.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_unsetSchemaTemplate(CancellationToken cancellationToken = default) - { - var tmp824 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp824.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp825 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp825; + throw x; } - var tmp826 = new InternalStructs.unsetSchemaTemplate_result(); - await tmp826.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.unsetSchemaTemplateResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp826.__isset.success) + if (result.__isset.success) { - return tmp826.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "unsetSchemaTemplate failed: unknown result"); } - public async global::System.Threading.Tasks.Task dropSchemaTemplate(TSDropSchemaTemplateReq req, CancellationToken cancellationToken = default) - { - await send_dropSchemaTemplate(req, cancellationToken); - return await recv_dropSchemaTemplate(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_dropSchemaTemplate(TSDropSchemaTemplateReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task dropSchemaTemplateAsync(TSDropSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("dropSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var tmp827 = new InternalStructs.dropSchemaTemplate_args() { + var args = new InternalStructs.dropSchemaTemplateArgs() { Req = req, }; - await tmp827.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_dropSchemaTemplate(CancellationToken cancellationToken = default) - { - var tmp828 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp828.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp829 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp829; + throw x; } - var tmp830 = new InternalStructs.dropSchemaTemplate_result(); - await tmp830.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.dropSchemaTemplateResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp830.__isset.success) + if (result.__isset.success) { - return tmp830.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "dropSchemaTemplate failed: unknown result"); } - public async global::System.Threading.Tasks.Task createTimeseriesUsingSchemaTemplate(TCreateTimeseriesUsingSchemaTemplateReq req, CancellationToken cancellationToken = default) - { - await send_createTimeseriesUsingSchemaTemplate(req, cancellationToken); - return await recv_createTimeseriesUsingSchemaTemplate(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_createTimeseriesUsingSchemaTemplate(TCreateTimeseriesUsingSchemaTemplateReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task createTimeseriesUsingSchemaTemplateAsync(TCreateTimeseriesUsingSchemaTemplateReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("createTimeseriesUsingSchemaTemplate", TMessageType.Call, SeqId), cancellationToken); - var tmp831 = new InternalStructs.createTimeseriesUsingSchemaTemplate_args() { + var args = new InternalStructs.createTimeseriesUsingSchemaTemplateArgs() { Req = req, }; - await tmp831.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_createTimeseriesUsingSchemaTemplate(CancellationToken cancellationToken = default) - { - var tmp832 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp832.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp833 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp833; + throw x; } - var tmp834 = new InternalStructs.createTimeseriesUsingSchemaTemplate_result(); - await tmp834.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.createTimeseriesUsingSchemaTemplateResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp834.__isset.success) + if (result.__isset.success) { - return tmp834.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "createTimeseriesUsingSchemaTemplate failed: unknown result"); } - public async global::System.Threading.Tasks.Task handshake(TSyncIdentityInfo info, CancellationToken cancellationToken = default) - { - await send_handshake(info, cancellationToken); - return await recv_handshake(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_handshake(TSyncIdentityInfo info, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task handshakeAsync(TSyncIdentityInfo info, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("handshake", TMessageType.Call, SeqId), cancellationToken); - var tmp835 = new InternalStructs.handshake_args() { + var args = new InternalStructs.handshakeArgs() { Info = info, }; - await tmp835.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_handshake(CancellationToken cancellationToken = default) - { - var tmp836 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp836.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp837 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp837; + throw x; } - var tmp838 = new InternalStructs.handshake_result(); - await tmp838.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.handshakeResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp838.__isset.success) + if (result.__isset.success) { - return tmp838.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "handshake failed: unknown result"); } - public async global::System.Threading.Tasks.Task sendPipeData(byte[] buff, CancellationToken cancellationToken = default) - { - await send_sendPipeData(buff, cancellationToken); - return await recv_sendPipeData(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_sendPipeData(byte[] buff, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task sendPipeDataAsync(byte[] buff, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("sendPipeData", TMessageType.Call, SeqId), cancellationToken); - var tmp839 = new InternalStructs.sendPipeData_args() { + var args = new InternalStructs.sendPipeDataArgs() { Buff = buff, }; - await tmp839.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_sendPipeData(CancellationToken cancellationToken = default) - { - var tmp840 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp840.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp841 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp841; + throw x; } - var tmp842 = new InternalStructs.sendPipeData_result(); - await tmp842.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.sendPipeDataResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp842.__isset.success) + if (result.__isset.success) { - return tmp842.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "sendPipeData failed: unknown result"); } - public async global::System.Threading.Tasks.Task sendFile(TSyncTransportMetaInfo metaInfo, byte[] buff, CancellationToken cancellationToken = default) - { - await send_sendFile(metaInfo, buff, cancellationToken); - return await recv_sendFile(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_sendFile(TSyncTransportMetaInfo metaInfo, byte[] buff, CancellationToken cancellationToken = default) + 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 tmp843 = new InternalStructs.sendFile_args() { + var args = new InternalStructs.sendFileArgs() { MetaInfo = metaInfo, Buff = buff, }; - await tmp843.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_sendFile(CancellationToken cancellationToken = default) - { - var tmp844 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp844.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp845 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp845; + throw x; } - var tmp846 = new InternalStructs.sendFile_result(); - await tmp846.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.sendFileResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp846.__isset.success) + if (result.__isset.success) { - return tmp846.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "sendFile failed: unknown result"); } - public async global::System.Threading.Tasks.Task pipeTransfer(TPipeTransferReq req, CancellationToken cancellationToken = default) - { - await send_pipeTransfer(req, cancellationToken); - return await recv_pipeTransfer(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_pipeTransfer(TPipeTransferReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task pipeTransferAsync(TPipeTransferReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("pipeTransfer", TMessageType.Call, SeqId), cancellationToken); - var tmp847 = new InternalStructs.pipeTransfer_args() { + var args = new InternalStructs.pipeTransferArgs() { Req = req, }; - await tmp847.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_pipeTransfer(CancellationToken cancellationToken = default) - { - var tmp848 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp848.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp849 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp849; + throw x; } - var tmp850 = new InternalStructs.pipeTransfer_result(); - await tmp850.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.pipeTransferResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp850.__isset.success) + if (result.__isset.success) { - return tmp850.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "pipeTransfer failed: unknown result"); } - public async global::System.Threading.Tasks.Task pipeSubscribe(TPipeSubscribeReq req, CancellationToken cancellationToken = default) - { - await send_pipeSubscribe(req, cancellationToken); - return await recv_pipeSubscribe(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_pipeSubscribe(TPipeSubscribeReq req, CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task pipeSubscribeAsync(TPipeSubscribeReq req, CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("pipeSubscribe", TMessageType.Call, SeqId), cancellationToken); - var tmp851 = new InternalStructs.pipeSubscribe_args() { + var args = new InternalStructs.pipeSubscribeArgs() { Req = req, }; - await tmp851.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_pipeSubscribe(CancellationToken cancellationToken = default) - { - var tmp852 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp852.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp853 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp853; + throw x; } - var tmp854 = new InternalStructs.pipeSubscribe_result(); - await tmp854.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.pipeSubscribeResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp854.__isset.success) + if (result.__isset.success) { - return tmp854.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "pipeSubscribe failed: unknown result"); } - public async global::System.Threading.Tasks.Task getBackupConfiguration(CancellationToken cancellationToken = default) - { - await send_getBackupConfiguration(cancellationToken); - return await recv_getBackupConfiguration(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_getBackupConfiguration(CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task getBackupConfigurationAsync(CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("getBackupConfiguration", TMessageType.Call, SeqId), cancellationToken); - var tmp855 = new InternalStructs.getBackupConfiguration_args() { + var args = new InternalStructs.getBackupConfigurationArgs() { }; - await tmp855.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_getBackupConfiguration(CancellationToken cancellationToken = default) - { - var tmp856 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp856.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp857 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp857; + throw x; } - var tmp858 = new InternalStructs.getBackupConfiguration_result(); - await tmp858.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.getBackupConfigurationResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp858.__isset.success) + if (result.__isset.success) { - return tmp858.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getBackupConfiguration failed: unknown result"); } - public async global::System.Threading.Tasks.Task fetchAllConnectionsInfo(CancellationToken cancellationToken = default) - { - await send_fetchAllConnectionsInfo(cancellationToken); - return await recv_fetchAllConnectionsInfo(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_fetchAllConnectionsInfo(CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task fetchAllConnectionsInfoAsync(CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("fetchAllConnectionsInfo", TMessageType.Call, SeqId), cancellationToken); - var tmp859 = new InternalStructs.fetchAllConnectionsInfo_args() { + var args = new InternalStructs.fetchAllConnectionsInfoArgs() { }; - await tmp859.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_fetchAllConnectionsInfo(CancellationToken cancellationToken = default) - { - var tmp860 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp860.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp861 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp861; + throw x; } - var tmp862 = new InternalStructs.fetchAllConnectionsInfo_result(); - await tmp862.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.fetchAllConnectionsInfoResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp862.__isset.success) + if (result.__isset.success) { - return tmp862.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "fetchAllConnectionsInfo failed: unknown result"); } - public async global::System.Threading.Tasks.Task testConnectionEmptyRPC(CancellationToken cancellationToken = default) - { - await send_testConnectionEmptyRPC(cancellationToken); - return await recv_testConnectionEmptyRPC(cancellationToken); - } - - public async global::System.Threading.Tasks.Task send_testConnectionEmptyRPC(CancellationToken cancellationToken = default) + public async global::System.Threading.Tasks.Task testConnectionEmptyRPCAsync(CancellationToken cancellationToken = default) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("testConnectionEmptyRPC", TMessageType.Call, SeqId), cancellationToken); - var tmp863 = new InternalStructs.testConnectionEmptyRPC_args() { + var args = new InternalStructs.testConnectionEmptyRPCArgs() { }; - await tmp863.WriteAsync(OutputProtocol, cancellationToken); + await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); - } - - public async global::System.Threading.Tasks.Task recv_testConnectionEmptyRPC(CancellationToken cancellationToken = default) - { - var tmp864 = await InputProtocol.ReadMessageBeginAsync(cancellationToken); - if (tmp864.Type == TMessageType.Exception) + var msg = await InputProtocol.ReadMessageBeginAsync(cancellationToken); + if (msg.Type == TMessageType.Exception) { - var tmp865 = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); + var x = await TApplicationException.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - throw tmp865; + throw x; } - var tmp866 = new InternalStructs.testConnectionEmptyRPC_result(); - await tmp866.ReadAsync(InputProtocol, cancellationToken); + var result = new InternalStructs.testConnectionEmptyRPCResult(); + await result.ReadAsync(InputProtocol, cancellationToken); await InputProtocol.ReadMessageEndAsync(cancellationToken); - if (tmp866.__isset.success) + if (result.__isset.success) { - return tmp866.Success; + return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testConnectionEmptyRPC failed: unknown result"); } @@ -2983,30 +2310,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeQueryStatementV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp867 = new InternalStructs.executeQueryStatementV2_args(); - await tmp867.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.executeQueryStatementV2Args(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp868 = new InternalStructs.executeQueryStatementV2_result(); + var result = new InternalStructs.executeQueryStatementV2Result(); try { - tmp868.Success = await _iAsync.executeQueryStatementV2(tmp867.Req, cancellationToken); + result.Success = await _iAsync.executeQueryStatementV2Async(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeQueryStatementV2", TMessageType.Reply, seqid), cancellationToken); - await tmp868.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp869) + catch (Exception ex) { - var tmp870 = $"Error occurred in {GetType().FullName}: {tmp869.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp869, tmp870); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp870); - var tmp871 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeQueryStatementV2", TMessageType.Exception, seqid), cancellationToken); - await tmp871.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3014,30 +2341,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeUpdateStatementV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp872 = new InternalStructs.executeUpdateStatementV2_args(); - await tmp872.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.executeUpdateStatementV2Args(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp873 = new InternalStructs.executeUpdateStatementV2_result(); + var result = new InternalStructs.executeUpdateStatementV2Result(); try { - tmp873.Success = await _iAsync.executeUpdateStatementV2(tmp872.Req, cancellationToken); + result.Success = await _iAsync.executeUpdateStatementV2Async(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeUpdateStatementV2", TMessageType.Reply, seqid), cancellationToken); - await tmp873.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp874) + catch (Exception ex) { - var tmp875 = $"Error occurred in {GetType().FullName}: {tmp874.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp874, tmp875); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp875); - var tmp876 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeUpdateStatementV2", TMessageType.Exception, seqid), cancellationToken); - await tmp876.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3045,30 +2372,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeStatementV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp877 = new InternalStructs.executeStatementV2_args(); - await tmp877.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.executeStatementV2Args(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp878 = new InternalStructs.executeStatementV2_result(); + var result = new InternalStructs.executeStatementV2Result(); try { - tmp878.Success = await _iAsync.executeStatementV2(tmp877.Req, cancellationToken); + result.Success = await _iAsync.executeStatementV2Async(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeStatementV2", TMessageType.Reply, seqid), cancellationToken); - await tmp878.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp879) + catch (Exception ex) { - var tmp880 = $"Error occurred in {GetType().FullName}: {tmp879.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp879, tmp880); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp880); - var tmp881 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeStatementV2", TMessageType.Exception, seqid), cancellationToken); - await tmp881.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3076,30 +2403,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeRawDataQueryV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp882 = new InternalStructs.executeRawDataQueryV2_args(); - await tmp882.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.executeRawDataQueryV2Args(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp883 = new InternalStructs.executeRawDataQueryV2_result(); + var result = new InternalStructs.executeRawDataQueryV2Result(); try { - tmp883.Success = await _iAsync.executeRawDataQueryV2(tmp882.Req, cancellationToken); + result.Success = await _iAsync.executeRawDataQueryV2Async(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeRawDataQueryV2", TMessageType.Reply, seqid), cancellationToken); - await tmp883.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp884) + catch (Exception ex) { - var tmp885 = $"Error occurred in {GetType().FullName}: {tmp884.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp884, tmp885); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp885); - var tmp886 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeRawDataQueryV2", TMessageType.Exception, seqid), cancellationToken); - await tmp886.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3107,30 +2434,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeLastDataQueryV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp887 = new InternalStructs.executeLastDataQueryV2_args(); - await tmp887.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.executeLastDataQueryV2Args(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp888 = new InternalStructs.executeLastDataQueryV2_result(); + var result = new InternalStructs.executeLastDataQueryV2Result(); try { - tmp888.Success = await _iAsync.executeLastDataQueryV2(tmp887.Req, cancellationToken); + result.Success = await _iAsync.executeLastDataQueryV2Async(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeLastDataQueryV2", TMessageType.Reply, seqid), cancellationToken); - await tmp888.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp889) + catch (Exception ex) { - var tmp890 = $"Error occurred in {GetType().FullName}: {tmp889.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp889, tmp890); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp890); - var tmp891 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeLastDataQueryV2", TMessageType.Exception, seqid), cancellationToken); - await tmp891.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3138,30 +2465,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeFastLastDataQueryForOnePrefixPath_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp892 = new InternalStructs.executeFastLastDataQueryForOnePrefixPath_args(); - await tmp892.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.executeFastLastDataQueryForOnePrefixPathArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp893 = new InternalStructs.executeFastLastDataQueryForOnePrefixPath_result(); + var result = new InternalStructs.executeFastLastDataQueryForOnePrefixPathResult(); try { - tmp893.Success = await _iAsync.executeFastLastDataQueryForOnePrefixPath(tmp892.Req, cancellationToken); + result.Success = await _iAsync.executeFastLastDataQueryForOnePrefixPathAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeFastLastDataQueryForOnePrefixPath", TMessageType.Reply, seqid), cancellationToken); - await tmp893.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp894) + catch (Exception ex) { - var tmp895 = $"Error occurred in {GetType().FullName}: {tmp894.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp894, tmp895); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp895); - var tmp896 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeFastLastDataQueryForOnePrefixPath", TMessageType.Exception, seqid), cancellationToken); - await tmp896.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3169,30 +2496,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeFastLastDataQueryForOneDeviceV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp897 = new InternalStructs.executeFastLastDataQueryForOneDeviceV2_args(); - await tmp897.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.executeFastLastDataQueryForOneDeviceV2Args(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp898 = new InternalStructs.executeFastLastDataQueryForOneDeviceV2_result(); + var result = new InternalStructs.executeFastLastDataQueryForOneDeviceV2Result(); try { - tmp898.Success = await _iAsync.executeFastLastDataQueryForOneDeviceV2(tmp897.Req, cancellationToken); + result.Success = await _iAsync.executeFastLastDataQueryForOneDeviceV2Async(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeFastLastDataQueryForOneDeviceV2", TMessageType.Reply, seqid), cancellationToken); - await tmp898.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp899) + catch (Exception ex) { - var tmp900 = $"Error occurred in {GetType().FullName}: {tmp899.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp899, tmp900); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp900); - var tmp901 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeFastLastDataQueryForOneDeviceV2", TMessageType.Exception, seqid), cancellationToken); - await tmp901.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3200,30 +2527,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeAggregationQueryV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp902 = new InternalStructs.executeAggregationQueryV2_args(); - await tmp902.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.executeAggregationQueryV2Args(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp903 = new InternalStructs.executeAggregationQueryV2_result(); + var result = new InternalStructs.executeAggregationQueryV2Result(); try { - tmp903.Success = await _iAsync.executeAggregationQueryV2(tmp902.Req, cancellationToken); + result.Success = await _iAsync.executeAggregationQueryV2Async(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeAggregationQueryV2", TMessageType.Reply, seqid), cancellationToken); - await tmp903.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp904) + catch (Exception ex) { - var tmp905 = $"Error occurred in {GetType().FullName}: {tmp904.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp904, tmp905); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp905); - var tmp906 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeAggregationQueryV2", TMessageType.Exception, seqid), cancellationToken); - await tmp906.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3231,30 +2558,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeGroupByQueryIntervalQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp907 = new InternalStructs.executeGroupByQueryIntervalQuery_args(); - await tmp907.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.executeGroupByQueryIntervalQueryArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp908 = new InternalStructs.executeGroupByQueryIntervalQuery_result(); + var result = new InternalStructs.executeGroupByQueryIntervalQueryResult(); try { - tmp908.Success = await _iAsync.executeGroupByQueryIntervalQuery(tmp907.Req, cancellationToken); + result.Success = await _iAsync.executeGroupByQueryIntervalQueryAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeGroupByQueryIntervalQuery", TMessageType.Reply, seqid), cancellationToken); - await tmp908.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp909) + catch (Exception ex) { - var tmp910 = $"Error occurred in {GetType().FullName}: {tmp909.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp909, tmp910); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp910); - var tmp911 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeGroupByQueryIntervalQuery", TMessageType.Exception, seqid), cancellationToken); - await tmp911.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3262,30 +2589,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task fetchResultsV2_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp912 = new InternalStructs.fetchResultsV2_args(); - await tmp912.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.fetchResultsV2Args(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp913 = new InternalStructs.fetchResultsV2_result(); + var result = new InternalStructs.fetchResultsV2Result(); try { - tmp913.Success = await _iAsync.fetchResultsV2(tmp912.Req, cancellationToken); + result.Success = await _iAsync.fetchResultsV2Async(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("fetchResultsV2", TMessageType.Reply, seqid), cancellationToken); - await tmp913.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp914) + catch (Exception ex) { - var tmp915 = $"Error occurred in {GetType().FullName}: {tmp914.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp914, tmp915); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp915); - var tmp916 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("fetchResultsV2", TMessageType.Exception, seqid), cancellationToken); - await tmp916.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3293,30 +2620,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task openSession_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp917 = new InternalStructs.openSession_args(); - await tmp917.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.openSessionArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp918 = new InternalStructs.openSession_result(); + var result = new InternalStructs.openSessionResult(); try { - tmp918.Success = await _iAsync.openSession(tmp917.Req, cancellationToken); + result.Success = await _iAsync.openSessionAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("openSession", TMessageType.Reply, seqid), cancellationToken); - await tmp918.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp919) + catch (Exception ex) { - var tmp920 = $"Error occurred in {GetType().FullName}: {tmp919.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp919, tmp920); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp920); - var tmp921 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("openSession", TMessageType.Exception, seqid), cancellationToken); - await tmp921.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3324,30 +2651,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task closeSession_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp922 = new InternalStructs.closeSession_args(); - await tmp922.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.closeSessionArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp923 = new InternalStructs.closeSession_result(); + var result = new InternalStructs.closeSessionResult(); try { - tmp923.Success = await _iAsync.closeSession(tmp922.Req, cancellationToken); + result.Success = await _iAsync.closeSessionAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("closeSession", TMessageType.Reply, seqid), cancellationToken); - await tmp923.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp924) + catch (Exception ex) { - var tmp925 = $"Error occurred in {GetType().FullName}: {tmp924.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp924, tmp925); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp925); - var tmp926 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("closeSession", TMessageType.Exception, seqid), cancellationToken); - await tmp926.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3355,30 +2682,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp927 = new InternalStructs.executeStatement_args(); - await tmp927.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.executeStatementArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp928 = new InternalStructs.executeStatement_result(); + var result = new InternalStructs.executeStatementResult(); try { - tmp928.Success = await _iAsync.executeStatement(tmp927.Req, cancellationToken); + result.Success = await _iAsync.executeStatementAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeStatement", TMessageType.Reply, seqid), cancellationToken); - await tmp928.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp929) + catch (Exception ex) { - var tmp930 = $"Error occurred in {GetType().FullName}: {tmp929.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp929, tmp930); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp930); - var tmp931 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeStatement", TMessageType.Exception, seqid), cancellationToken); - await tmp931.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3386,30 +2713,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeBatchStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp932 = new InternalStructs.executeBatchStatement_args(); - await tmp932.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.executeBatchStatementArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp933 = new InternalStructs.executeBatchStatement_result(); + var result = new InternalStructs.executeBatchStatementResult(); try { - tmp933.Success = await _iAsync.executeBatchStatement(tmp932.Req, cancellationToken); + result.Success = await _iAsync.executeBatchStatementAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeBatchStatement", TMessageType.Reply, seqid), cancellationToken); - await tmp933.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp934) + catch (Exception ex) { - var tmp935 = $"Error occurred in {GetType().FullName}: {tmp934.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp934, tmp935); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp935); - var tmp936 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeBatchStatement", TMessageType.Exception, seqid), cancellationToken); - await tmp936.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3417,30 +2744,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeQueryStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp937 = new InternalStructs.executeQueryStatement_args(); - await tmp937.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.executeQueryStatementArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp938 = new InternalStructs.executeQueryStatement_result(); + var result = new InternalStructs.executeQueryStatementResult(); try { - tmp938.Success = await _iAsync.executeQueryStatement(tmp937.Req, cancellationToken); + result.Success = await _iAsync.executeQueryStatementAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeQueryStatement", TMessageType.Reply, seqid), cancellationToken); - await tmp938.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp939) + catch (Exception ex) { - var tmp940 = $"Error occurred in {GetType().FullName}: {tmp939.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp939, tmp940); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp940); - var tmp941 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeQueryStatement", TMessageType.Exception, seqid), cancellationToken); - await tmp941.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3448,30 +2775,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeUpdateStatement_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp942 = new InternalStructs.executeUpdateStatement_args(); - await tmp942.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.executeUpdateStatementArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp943 = new InternalStructs.executeUpdateStatement_result(); + var result = new InternalStructs.executeUpdateStatementResult(); try { - tmp943.Success = await _iAsync.executeUpdateStatement(tmp942.Req, cancellationToken); + result.Success = await _iAsync.executeUpdateStatementAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeUpdateStatement", TMessageType.Reply, seqid), cancellationToken); - await tmp943.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp944) + catch (Exception ex) { - var tmp945 = $"Error occurred in {GetType().FullName}: {tmp944.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp944, tmp945); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp945); - var tmp946 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeUpdateStatement", TMessageType.Exception, seqid), cancellationToken); - await tmp946.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3479,30 +2806,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task fetchResults_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp947 = new InternalStructs.fetchResults_args(); - await tmp947.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.fetchResultsArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp948 = new InternalStructs.fetchResults_result(); + var result = new InternalStructs.fetchResultsResult(); try { - tmp948.Success = await _iAsync.fetchResults(tmp947.Req, cancellationToken); + result.Success = await _iAsync.fetchResultsAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("fetchResults", TMessageType.Reply, seqid), cancellationToken); - await tmp948.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp949) + catch (Exception ex) { - var tmp950 = $"Error occurred in {GetType().FullName}: {tmp949.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp949, tmp950); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp950); - var tmp951 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("fetchResults", TMessageType.Exception, seqid), cancellationToken); - await tmp951.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3510,30 +2837,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task fetchMetadata_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp952 = new InternalStructs.fetchMetadata_args(); - await tmp952.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.fetchMetadataArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp953 = new InternalStructs.fetchMetadata_result(); + var result = new InternalStructs.fetchMetadataResult(); try { - tmp953.Success = await _iAsync.fetchMetadata(tmp952.Req, cancellationToken); + result.Success = await _iAsync.fetchMetadataAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("fetchMetadata", TMessageType.Reply, seqid), cancellationToken); - await tmp953.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp954) + catch (Exception ex) { - var tmp955 = $"Error occurred in {GetType().FullName}: {tmp954.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp954, tmp955); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp955); - var tmp956 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("fetchMetadata", TMessageType.Exception, seqid), cancellationToken); - await tmp956.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3541,30 +2868,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task cancelOperation_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp957 = new InternalStructs.cancelOperation_args(); - await tmp957.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.cancelOperationArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp958 = new InternalStructs.cancelOperation_result(); + var result = new InternalStructs.cancelOperationResult(); try { - tmp958.Success = await _iAsync.cancelOperation(tmp957.Req, cancellationToken); + result.Success = await _iAsync.cancelOperationAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("cancelOperation", TMessageType.Reply, seqid), cancellationToken); - await tmp958.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp959) + catch (Exception ex) { - var tmp960 = $"Error occurred in {GetType().FullName}: {tmp959.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp959, tmp960); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp960); - var tmp961 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("cancelOperation", TMessageType.Exception, seqid), cancellationToken); - await tmp961.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3572,30 +2899,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task closeOperation_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp962 = new InternalStructs.closeOperation_args(); - await tmp962.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.closeOperationArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp963 = new InternalStructs.closeOperation_result(); + var result = new InternalStructs.closeOperationResult(); try { - tmp963.Success = await _iAsync.closeOperation(tmp962.Req, cancellationToken); + result.Success = await _iAsync.closeOperationAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("closeOperation", TMessageType.Reply, seqid), cancellationToken); - await tmp963.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp964) + catch (Exception ex) { - var tmp965 = $"Error occurred in {GetType().FullName}: {tmp964.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp964, tmp965); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp965); - var tmp966 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("closeOperation", TMessageType.Exception, seqid), cancellationToken); - await tmp966.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3603,30 +2930,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task getTimeZone_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp967 = new InternalStructs.getTimeZone_args(); - await tmp967.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.getTimeZoneArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp968 = new InternalStructs.getTimeZone_result(); + var result = new InternalStructs.getTimeZoneResult(); try { - tmp968.Success = await _iAsync.getTimeZone(tmp967.SessionId, cancellationToken); + result.Success = await _iAsync.getTimeZoneAsync(args.SessionId, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("getTimeZone", TMessageType.Reply, seqid), cancellationToken); - await tmp968.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp969) + catch (Exception ex) { - var tmp970 = $"Error occurred in {GetType().FullName}: {tmp969.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp969, tmp970); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp970); - var tmp971 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("getTimeZone", TMessageType.Exception, seqid), cancellationToken); - await tmp971.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3634,30 +2961,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task setTimeZone_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp972 = new InternalStructs.setTimeZone_args(); - await tmp972.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.setTimeZoneArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp973 = new InternalStructs.setTimeZone_result(); + var result = new InternalStructs.setTimeZoneResult(); try { - tmp973.Success = await _iAsync.setTimeZone(tmp972.Req, cancellationToken); + result.Success = await _iAsync.setTimeZoneAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("setTimeZone", TMessageType.Reply, seqid), cancellationToken); - await tmp973.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp974) + catch (Exception ex) { - var tmp975 = $"Error occurred in {GetType().FullName}: {tmp974.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp974, tmp975); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp975); - var tmp976 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("setTimeZone", TMessageType.Exception, seqid), cancellationToken); - await tmp976.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3665,30 +2992,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task getProperties_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp977 = new InternalStructs.getProperties_args(); - await tmp977.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.getPropertiesArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp978 = new InternalStructs.getProperties_result(); + var result = new InternalStructs.getPropertiesResult(); try { - tmp978.Success = await _iAsync.getProperties(cancellationToken); + result.Success = await _iAsync.getPropertiesAsync(cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("getProperties", TMessageType.Reply, seqid), cancellationToken); - await tmp978.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp979) + catch (Exception ex) { - var tmp980 = $"Error occurred in {GetType().FullName}: {tmp979.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp979, tmp980); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp980); - var tmp981 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("getProperties", TMessageType.Exception, seqid), cancellationToken); - await tmp981.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3696,30 +3023,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task setStorageGroup_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp982 = new InternalStructs.setStorageGroup_args(); - await tmp982.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.setStorageGroupArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp983 = new InternalStructs.setStorageGroup_result(); + var result = new InternalStructs.setStorageGroupResult(); try { - tmp983.Success = await _iAsync.setStorageGroup(tmp982.SessionId, tmp982.StorageGroup, cancellationToken); + result.Success = await _iAsync.setStorageGroupAsync(args.SessionId, args.StorageGroup, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("setStorageGroup", TMessageType.Reply, seqid), cancellationToken); - await tmp983.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp984) + catch (Exception ex) { - var tmp985 = $"Error occurred in {GetType().FullName}: {tmp984.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp984, tmp985); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp985); - var tmp986 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("setStorageGroup", TMessageType.Exception, seqid), cancellationToken); - await tmp986.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3727,30 +3054,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task createTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp987 = new InternalStructs.createTimeseries_args(); - await tmp987.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.createTimeseriesArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp988 = new InternalStructs.createTimeseries_result(); + var result = new InternalStructs.createTimeseriesResult(); try { - tmp988.Success = await _iAsync.createTimeseries(tmp987.Req, cancellationToken); + result.Success = await _iAsync.createTimeseriesAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("createTimeseries", TMessageType.Reply, seqid), cancellationToken); - await tmp988.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp989) + catch (Exception ex) { - var tmp990 = $"Error occurred in {GetType().FullName}: {tmp989.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp989, tmp990); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp990); - var tmp991 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("createTimeseries", TMessageType.Exception, seqid), cancellationToken); - await tmp991.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3758,30 +3085,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task createAlignedTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp992 = new InternalStructs.createAlignedTimeseries_args(); - await tmp992.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.createAlignedTimeseriesArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp993 = new InternalStructs.createAlignedTimeseries_result(); + var result = new InternalStructs.createAlignedTimeseriesResult(); try { - tmp993.Success = await _iAsync.createAlignedTimeseries(tmp992.Req, cancellationToken); + result.Success = await _iAsync.createAlignedTimeseriesAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("createAlignedTimeseries", TMessageType.Reply, seqid), cancellationToken); - await tmp993.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp994) + catch (Exception ex) { - var tmp995 = $"Error occurred in {GetType().FullName}: {tmp994.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp994, tmp995); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp995); - var tmp996 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("createAlignedTimeseries", TMessageType.Exception, seqid), cancellationToken); - await tmp996.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3789,30 +3116,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task createMultiTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp997 = new InternalStructs.createMultiTimeseries_args(); - await tmp997.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.createMultiTimeseriesArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp998 = new InternalStructs.createMultiTimeseries_result(); + var result = new InternalStructs.createMultiTimeseriesResult(); try { - tmp998.Success = await _iAsync.createMultiTimeseries(tmp997.Req, cancellationToken); + result.Success = await _iAsync.createMultiTimeseriesAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("createMultiTimeseries", TMessageType.Reply, seqid), cancellationToken); - await tmp998.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp999) + catch (Exception ex) { - var tmp1000 = $"Error occurred in {GetType().FullName}: {tmp999.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp999, tmp1000); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1000); - var tmp1001 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("createMultiTimeseries", TMessageType.Exception, seqid), cancellationToken); - await tmp1001.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3820,30 +3147,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task deleteTimeseries_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1002 = new InternalStructs.deleteTimeseries_args(); - await tmp1002.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.deleteTimeseriesArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1003 = new InternalStructs.deleteTimeseries_result(); + var result = new InternalStructs.deleteTimeseriesResult(); try { - tmp1003.Success = await _iAsync.deleteTimeseries(tmp1002.SessionId, tmp1002.Path, cancellationToken); + result.Success = await _iAsync.deleteTimeseriesAsync(args.SessionId, args.Path, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("deleteTimeseries", TMessageType.Reply, seqid), cancellationToken); - await tmp1003.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1004) + catch (Exception ex) { - var tmp1005 = $"Error occurred in {GetType().FullName}: {tmp1004.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1004, tmp1005); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1005); - var tmp1006 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("deleteTimeseries", TMessageType.Exception, seqid), cancellationToken); - await tmp1006.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3851,30 +3178,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task deleteStorageGroups_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1007 = new InternalStructs.deleteStorageGroups_args(); - await tmp1007.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.deleteStorageGroupsArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1008 = new InternalStructs.deleteStorageGroups_result(); + var result = new InternalStructs.deleteStorageGroupsResult(); try { - tmp1008.Success = await _iAsync.deleteStorageGroups(tmp1007.SessionId, tmp1007.StorageGroup, cancellationToken); + result.Success = await _iAsync.deleteStorageGroupsAsync(args.SessionId, args.StorageGroup, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("deleteStorageGroups", TMessageType.Reply, seqid), cancellationToken); - await tmp1008.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1009) + catch (Exception ex) { - var tmp1010 = $"Error occurred in {GetType().FullName}: {tmp1009.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1009, tmp1010); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1010); - var tmp1011 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("deleteStorageGroups", TMessageType.Exception, seqid), cancellationToken); - await tmp1011.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3882,30 +3209,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task insertRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1012 = new InternalStructs.insertRecord_args(); - await tmp1012.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.insertRecordArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1013 = new InternalStructs.insertRecord_result(); + var result = new InternalStructs.insertRecordResult(); try { - tmp1013.Success = await _iAsync.insertRecord(tmp1012.Req, cancellationToken); + result.Success = await _iAsync.insertRecordAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("insertRecord", TMessageType.Reply, seqid), cancellationToken); - await tmp1013.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1014) + catch (Exception ex) { - var tmp1015 = $"Error occurred in {GetType().FullName}: {tmp1014.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1014, tmp1015); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1015); - var tmp1016 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertRecord", TMessageType.Exception, seqid), cancellationToken); - await tmp1016.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3913,30 +3240,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task insertStringRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1017 = new InternalStructs.insertStringRecord_args(); - await tmp1017.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.insertStringRecordArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1018 = new InternalStructs.insertStringRecord_result(); + var result = new InternalStructs.insertStringRecordResult(); try { - tmp1018.Success = await _iAsync.insertStringRecord(tmp1017.Req, cancellationToken); + result.Success = await _iAsync.insertStringRecordAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("insertStringRecord", TMessageType.Reply, seqid), cancellationToken); - await tmp1018.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1019) + catch (Exception ex) { - var tmp1020 = $"Error occurred in {GetType().FullName}: {tmp1019.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1019, tmp1020); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1020); - var tmp1021 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertStringRecord", TMessageType.Exception, seqid), cancellationToken); - await tmp1021.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3944,30 +3271,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task insertTablet_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1022 = new InternalStructs.insertTablet_args(); - await tmp1022.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.insertTabletArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1023 = new InternalStructs.insertTablet_result(); + var result = new InternalStructs.insertTabletResult(); try { - tmp1023.Success = await _iAsync.insertTablet(tmp1022.Req, cancellationToken); + result.Success = await _iAsync.insertTabletAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("insertTablet", TMessageType.Reply, seqid), cancellationToken); - await tmp1023.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1024) + catch (Exception ex) { - var tmp1025 = $"Error occurred in {GetType().FullName}: {tmp1024.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1024, tmp1025); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1025); - var tmp1026 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertTablet", TMessageType.Exception, seqid), cancellationToken); - await tmp1026.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -3975,30 +3302,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task insertTablets_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1027 = new InternalStructs.insertTablets_args(); - await tmp1027.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.insertTabletsArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1028 = new InternalStructs.insertTablets_result(); + var result = new InternalStructs.insertTabletsResult(); try { - tmp1028.Success = await _iAsync.insertTablets(tmp1027.Req, cancellationToken); + result.Success = await _iAsync.insertTabletsAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("insertTablets", TMessageType.Reply, seqid), cancellationToken); - await tmp1028.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1029) + catch (Exception ex) { - var tmp1030 = $"Error occurred in {GetType().FullName}: {tmp1029.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1029, tmp1030); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1030); - var tmp1031 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertTablets", TMessageType.Exception, seqid), cancellationToken); - await tmp1031.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4006,30 +3333,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task insertRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1032 = new InternalStructs.insertRecords_args(); - await tmp1032.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.insertRecordsArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1033 = new InternalStructs.insertRecords_result(); + var result = new InternalStructs.insertRecordsResult(); try { - tmp1033.Success = await _iAsync.insertRecords(tmp1032.Req, cancellationToken); + result.Success = await _iAsync.insertRecordsAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("insertRecords", TMessageType.Reply, seqid), cancellationToken); - await tmp1033.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1034) + catch (Exception ex) { - var tmp1035 = $"Error occurred in {GetType().FullName}: {tmp1034.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1034, tmp1035); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1035); - var tmp1036 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertRecords", TMessageType.Exception, seqid), cancellationToken); - await tmp1036.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4037,30 +3364,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task insertRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1037 = new InternalStructs.insertRecordsOfOneDevice_args(); - await tmp1037.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.insertRecordsOfOneDeviceArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1038 = new InternalStructs.insertRecordsOfOneDevice_result(); + var result = new InternalStructs.insertRecordsOfOneDeviceResult(); try { - tmp1038.Success = await _iAsync.insertRecordsOfOneDevice(tmp1037.Req, cancellationToken); + result.Success = await _iAsync.insertRecordsOfOneDeviceAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("insertRecordsOfOneDevice", TMessageType.Reply, seqid), cancellationToken); - await tmp1038.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1039) + catch (Exception ex) { - var tmp1040 = $"Error occurred in {GetType().FullName}: {tmp1039.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1039, tmp1040); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1040); - var tmp1041 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertRecordsOfOneDevice", TMessageType.Exception, seqid), cancellationToken); - await tmp1041.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4068,30 +3395,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task insertStringRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1042 = new InternalStructs.insertStringRecordsOfOneDevice_args(); - await tmp1042.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.insertStringRecordsOfOneDeviceArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1043 = new InternalStructs.insertStringRecordsOfOneDevice_result(); + var result = new InternalStructs.insertStringRecordsOfOneDeviceResult(); try { - tmp1043.Success = await _iAsync.insertStringRecordsOfOneDevice(tmp1042.Req, cancellationToken); + result.Success = await _iAsync.insertStringRecordsOfOneDeviceAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("insertStringRecordsOfOneDevice", TMessageType.Reply, seqid), cancellationToken); - await tmp1043.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1044) + catch (Exception ex) { - var tmp1045 = $"Error occurred in {GetType().FullName}: {tmp1044.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1044, tmp1045); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1045); - var tmp1046 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertStringRecordsOfOneDevice", TMessageType.Exception, seqid), cancellationToken); - await tmp1046.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4099,30 +3426,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task insertStringRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1047 = new InternalStructs.insertStringRecords_args(); - await tmp1047.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.insertStringRecordsArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1048 = new InternalStructs.insertStringRecords_result(); + var result = new InternalStructs.insertStringRecordsResult(); try { - tmp1048.Success = await _iAsync.insertStringRecords(tmp1047.Req, cancellationToken); + result.Success = await _iAsync.insertStringRecordsAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("insertStringRecords", TMessageType.Reply, seqid), cancellationToken); - await tmp1048.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1049) + catch (Exception ex) { - var tmp1050 = $"Error occurred in {GetType().FullName}: {tmp1049.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1049, tmp1050); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1050); - var tmp1051 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("insertStringRecords", TMessageType.Exception, seqid), cancellationToken); - await tmp1051.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4130,30 +3457,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task testInsertTablet_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1052 = new InternalStructs.testInsertTablet_args(); - await tmp1052.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.testInsertTabletArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1053 = new InternalStructs.testInsertTablet_result(); + var result = new InternalStructs.testInsertTabletResult(); try { - tmp1053.Success = await _iAsync.testInsertTablet(tmp1052.Req, cancellationToken); + result.Success = await _iAsync.testInsertTabletAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("testInsertTablet", TMessageType.Reply, seqid), cancellationToken); - await tmp1053.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1054) + catch (Exception ex) { - var tmp1055 = $"Error occurred in {GetType().FullName}: {tmp1054.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1054, tmp1055); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1055); - var tmp1056 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertTablet", TMessageType.Exception, seqid), cancellationToken); - await tmp1056.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4161,30 +3488,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task testInsertTablets_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1057 = new InternalStructs.testInsertTablets_args(); - await tmp1057.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.testInsertTabletsArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1058 = new InternalStructs.testInsertTablets_result(); + var result = new InternalStructs.testInsertTabletsResult(); try { - tmp1058.Success = await _iAsync.testInsertTablets(tmp1057.Req, cancellationToken); + result.Success = await _iAsync.testInsertTabletsAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("testInsertTablets", TMessageType.Reply, seqid), cancellationToken); - await tmp1058.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1059) + catch (Exception ex) { - var tmp1060 = $"Error occurred in {GetType().FullName}: {tmp1059.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1059, tmp1060); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1060); - var tmp1061 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertTablets", TMessageType.Exception, seqid), cancellationToken); - await tmp1061.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4192,30 +3519,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task testInsertRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1062 = new InternalStructs.testInsertRecord_args(); - await tmp1062.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.testInsertRecordArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1063 = new InternalStructs.testInsertRecord_result(); + var result = new InternalStructs.testInsertRecordResult(); try { - tmp1063.Success = await _iAsync.testInsertRecord(tmp1062.Req, cancellationToken); + result.Success = await _iAsync.testInsertRecordAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("testInsertRecord", TMessageType.Reply, seqid), cancellationToken); - await tmp1063.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1064) + catch (Exception ex) { - var tmp1065 = $"Error occurred in {GetType().FullName}: {tmp1064.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1064, tmp1065); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1065); - var tmp1066 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertRecord", TMessageType.Exception, seqid), cancellationToken); - await tmp1066.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4223,30 +3550,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task testInsertStringRecord_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1067 = new InternalStructs.testInsertStringRecord_args(); - await tmp1067.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.testInsertStringRecordArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1068 = new InternalStructs.testInsertStringRecord_result(); + var result = new InternalStructs.testInsertStringRecordResult(); try { - tmp1068.Success = await _iAsync.testInsertStringRecord(tmp1067.Req, cancellationToken); + result.Success = await _iAsync.testInsertStringRecordAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("testInsertStringRecord", TMessageType.Reply, seqid), cancellationToken); - await tmp1068.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1069) + catch (Exception ex) { - var tmp1070 = $"Error occurred in {GetType().FullName}: {tmp1069.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1069, tmp1070); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1070); - var tmp1071 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertStringRecord", TMessageType.Exception, seqid), cancellationToken); - await tmp1071.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4254,30 +3581,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task testInsertRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1072 = new InternalStructs.testInsertRecords_args(); - await tmp1072.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.testInsertRecordsArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1073 = new InternalStructs.testInsertRecords_result(); + var result = new InternalStructs.testInsertRecordsResult(); try { - tmp1073.Success = await _iAsync.testInsertRecords(tmp1072.Req, cancellationToken); + result.Success = await _iAsync.testInsertRecordsAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("testInsertRecords", TMessageType.Reply, seqid), cancellationToken); - await tmp1073.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1074) + catch (Exception ex) { - var tmp1075 = $"Error occurred in {GetType().FullName}: {tmp1074.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1074, tmp1075); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1075); - var tmp1076 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertRecords", TMessageType.Exception, seqid), cancellationToken); - await tmp1076.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4285,30 +3612,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task testInsertRecordsOfOneDevice_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1077 = new InternalStructs.testInsertRecordsOfOneDevice_args(); - await tmp1077.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.testInsertRecordsOfOneDeviceArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1078 = new InternalStructs.testInsertRecordsOfOneDevice_result(); + var result = new InternalStructs.testInsertRecordsOfOneDeviceResult(); try { - tmp1078.Success = await _iAsync.testInsertRecordsOfOneDevice(tmp1077.Req, cancellationToken); + result.Success = await _iAsync.testInsertRecordsOfOneDeviceAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("testInsertRecordsOfOneDevice", TMessageType.Reply, seqid), cancellationToken); - await tmp1078.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1079) + catch (Exception ex) { - var tmp1080 = $"Error occurred in {GetType().FullName}: {tmp1079.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1079, tmp1080); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1080); - var tmp1081 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertRecordsOfOneDevice", TMessageType.Exception, seqid), cancellationToken); - await tmp1081.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4316,30 +3643,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task testInsertStringRecords_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1082 = new InternalStructs.testInsertStringRecords_args(); - await tmp1082.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.testInsertStringRecordsArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1083 = new InternalStructs.testInsertStringRecords_result(); + var result = new InternalStructs.testInsertStringRecordsResult(); try { - tmp1083.Success = await _iAsync.testInsertStringRecords(tmp1082.Req, cancellationToken); + result.Success = await _iAsync.testInsertStringRecordsAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("testInsertStringRecords", TMessageType.Reply, seqid), cancellationToken); - await tmp1083.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1084) + catch (Exception ex) { - var tmp1085 = $"Error occurred in {GetType().FullName}: {tmp1084.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1084, tmp1085); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1085); - var tmp1086 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testInsertStringRecords", TMessageType.Exception, seqid), cancellationToken); - await tmp1086.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4347,30 +3674,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task deleteData_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1087 = new InternalStructs.deleteData_args(); - await tmp1087.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.deleteDataArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1088 = new InternalStructs.deleteData_result(); + var result = new InternalStructs.deleteDataResult(); try { - tmp1088.Success = await _iAsync.deleteData(tmp1087.Req, cancellationToken); + result.Success = await _iAsync.deleteDataAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("deleteData", TMessageType.Reply, seqid), cancellationToken); - await tmp1088.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1089) + catch (Exception ex) { - var tmp1090 = $"Error occurred in {GetType().FullName}: {tmp1089.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1089, tmp1090); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1090); - var tmp1091 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("deleteData", TMessageType.Exception, seqid), cancellationToken); - await tmp1091.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4378,30 +3705,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeRawDataQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1092 = new InternalStructs.executeRawDataQuery_args(); - await tmp1092.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.executeRawDataQueryArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1093 = new InternalStructs.executeRawDataQuery_result(); + var result = new InternalStructs.executeRawDataQueryResult(); try { - tmp1093.Success = await _iAsync.executeRawDataQuery(tmp1092.Req, cancellationToken); + result.Success = await _iAsync.executeRawDataQueryAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeRawDataQuery", TMessageType.Reply, seqid), cancellationToken); - await tmp1093.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1094) + catch (Exception ex) { - var tmp1095 = $"Error occurred in {GetType().FullName}: {tmp1094.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1094, tmp1095); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1095); - var tmp1096 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeRawDataQuery", TMessageType.Exception, seqid), cancellationToken); - await tmp1096.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4409,30 +3736,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeLastDataQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1097 = new InternalStructs.executeLastDataQuery_args(); - await tmp1097.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.executeLastDataQueryArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1098 = new InternalStructs.executeLastDataQuery_result(); + var result = new InternalStructs.executeLastDataQueryResult(); try { - tmp1098.Success = await _iAsync.executeLastDataQuery(tmp1097.Req, cancellationToken); + result.Success = await _iAsync.executeLastDataQueryAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeLastDataQuery", TMessageType.Reply, seqid), cancellationToken); - await tmp1098.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1099) + catch (Exception ex) { - var tmp1100 = $"Error occurred in {GetType().FullName}: {tmp1099.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1099, tmp1100); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1100); - var tmp1101 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeLastDataQuery", TMessageType.Exception, seqid), cancellationToken); - await tmp1101.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4440,30 +3767,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task executeAggregationQuery_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1102 = new InternalStructs.executeAggregationQuery_args(); - await tmp1102.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.executeAggregationQueryArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1103 = new InternalStructs.executeAggregationQuery_result(); + var result = new InternalStructs.executeAggregationQueryResult(); try { - tmp1103.Success = await _iAsync.executeAggregationQuery(tmp1102.Req, cancellationToken); + result.Success = await _iAsync.executeAggregationQueryAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("executeAggregationQuery", TMessageType.Reply, seqid), cancellationToken); - await tmp1103.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1104) + catch (Exception ex) { - var tmp1105 = $"Error occurred in {GetType().FullName}: {tmp1104.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1104, tmp1105); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1105); - var tmp1106 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("executeAggregationQuery", TMessageType.Exception, seqid), cancellationToken); - await tmp1106.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4471,30 +3798,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task requestStatementId_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1107 = new InternalStructs.requestStatementId_args(); - await tmp1107.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.requestStatementIdArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1108 = new InternalStructs.requestStatementId_result(); + var result = new InternalStructs.requestStatementIdResult(); try { - tmp1108.Success = await _iAsync.requestStatementId(tmp1107.SessionId, cancellationToken); + result.Success = await _iAsync.requestStatementIdAsync(args.SessionId, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("requestStatementId", TMessageType.Reply, seqid), cancellationToken); - await tmp1108.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1109) + catch (Exception ex) { - var tmp1110 = $"Error occurred in {GetType().FullName}: {tmp1109.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1109, tmp1110); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1110); - var tmp1111 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("requestStatementId", TMessageType.Exception, seqid), cancellationToken); - await tmp1111.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4502,30 +3829,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task createSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1112 = new InternalStructs.createSchemaTemplate_args(); - await tmp1112.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.createSchemaTemplateArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1113 = new InternalStructs.createSchemaTemplate_result(); + var result = new InternalStructs.createSchemaTemplateResult(); try { - tmp1113.Success = await _iAsync.createSchemaTemplate(tmp1112.Req, cancellationToken); + result.Success = await _iAsync.createSchemaTemplateAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("createSchemaTemplate", TMessageType.Reply, seqid), cancellationToken); - await tmp1113.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1114) + catch (Exception ex) { - var tmp1115 = $"Error occurred in {GetType().FullName}: {tmp1114.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1114, tmp1115); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1115); - var tmp1116 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("createSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); - await tmp1116.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4533,30 +3860,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task appendSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1117 = new InternalStructs.appendSchemaTemplate_args(); - await tmp1117.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.appendSchemaTemplateArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1118 = new InternalStructs.appendSchemaTemplate_result(); + var result = new InternalStructs.appendSchemaTemplateResult(); try { - tmp1118.Success = await _iAsync.appendSchemaTemplate(tmp1117.Req, cancellationToken); + result.Success = await _iAsync.appendSchemaTemplateAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("appendSchemaTemplate", TMessageType.Reply, seqid), cancellationToken); - await tmp1118.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1119) + catch (Exception ex) { - var tmp1120 = $"Error occurred in {GetType().FullName}: {tmp1119.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1119, tmp1120); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1120); - var tmp1121 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("appendSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); - await tmp1121.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4564,30 +3891,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task pruneSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1122 = new InternalStructs.pruneSchemaTemplate_args(); - await tmp1122.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.pruneSchemaTemplateArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1123 = new InternalStructs.pruneSchemaTemplate_result(); + var result = new InternalStructs.pruneSchemaTemplateResult(); try { - tmp1123.Success = await _iAsync.pruneSchemaTemplate(tmp1122.Req, cancellationToken); + result.Success = await _iAsync.pruneSchemaTemplateAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("pruneSchemaTemplate", TMessageType.Reply, seqid), cancellationToken); - await tmp1123.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1124) + catch (Exception ex) { - var tmp1125 = $"Error occurred in {GetType().FullName}: {tmp1124.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1124, tmp1125); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1125); - var tmp1126 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("pruneSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); - await tmp1126.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4595,30 +3922,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task querySchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1127 = new InternalStructs.querySchemaTemplate_args(); - await tmp1127.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.querySchemaTemplateArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1128 = new InternalStructs.querySchemaTemplate_result(); + var result = new InternalStructs.querySchemaTemplateResult(); try { - tmp1128.Success = await _iAsync.querySchemaTemplate(tmp1127.Req, cancellationToken); + result.Success = await _iAsync.querySchemaTemplateAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("querySchemaTemplate", TMessageType.Reply, seqid), cancellationToken); - await tmp1128.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1129) + catch (Exception ex) { - var tmp1130 = $"Error occurred in {GetType().FullName}: {tmp1129.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1129, tmp1130); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1130); - var tmp1131 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("querySchemaTemplate", TMessageType.Exception, seqid), cancellationToken); - await tmp1131.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4626,30 +3953,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task showConfigurationTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1132 = new InternalStructs.showConfigurationTemplate_args(); - await tmp1132.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.showConfigurationTemplateArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1133 = new InternalStructs.showConfigurationTemplate_result(); + var result = new InternalStructs.showConfigurationTemplateResult(); try { - tmp1133.Success = await _iAsync.showConfigurationTemplate(cancellationToken); + result.Success = await _iAsync.showConfigurationTemplateAsync(cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("showConfigurationTemplate", TMessageType.Reply, seqid), cancellationToken); - await tmp1133.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1134) + catch (Exception ex) { - var tmp1135 = $"Error occurred in {GetType().FullName}: {tmp1134.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1134, tmp1135); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1135); - var tmp1136 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("showConfigurationTemplate", TMessageType.Exception, seqid), cancellationToken); - await tmp1136.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4657,30 +3984,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task showConfiguration_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1137 = new InternalStructs.showConfiguration_args(); - await tmp1137.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.showConfigurationArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1138 = new InternalStructs.showConfiguration_result(); + var result = new InternalStructs.showConfigurationResult(); try { - tmp1138.Success = await _iAsync.showConfiguration(tmp1137.NodeId, cancellationToken); + result.Success = await _iAsync.showConfigurationAsync(args.NodeId, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("showConfiguration", TMessageType.Reply, seqid), cancellationToken); - await tmp1138.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1139) + catch (Exception ex) { - var tmp1140 = $"Error occurred in {GetType().FullName}: {tmp1139.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1139, tmp1140); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1140); - var tmp1141 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("showConfiguration", TMessageType.Exception, seqid), cancellationToken); - await tmp1141.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4688,30 +4015,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task setSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1142 = new InternalStructs.setSchemaTemplate_args(); - await tmp1142.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.setSchemaTemplateArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1143 = new InternalStructs.setSchemaTemplate_result(); + var result = new InternalStructs.setSchemaTemplateResult(); try { - tmp1143.Success = await _iAsync.setSchemaTemplate(tmp1142.Req, cancellationToken); + result.Success = await _iAsync.setSchemaTemplateAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("setSchemaTemplate", TMessageType.Reply, seqid), cancellationToken); - await tmp1143.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1144) + catch (Exception ex) { - var tmp1145 = $"Error occurred in {GetType().FullName}: {tmp1144.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1144, tmp1145); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1145); - var tmp1146 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("setSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); - await tmp1146.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4719,30 +4046,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task unsetSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1147 = new InternalStructs.unsetSchemaTemplate_args(); - await tmp1147.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.unsetSchemaTemplateArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1148 = new InternalStructs.unsetSchemaTemplate_result(); + var result = new InternalStructs.unsetSchemaTemplateResult(); try { - tmp1148.Success = await _iAsync.unsetSchemaTemplate(tmp1147.Req, cancellationToken); + result.Success = await _iAsync.unsetSchemaTemplateAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("unsetSchemaTemplate", TMessageType.Reply, seqid), cancellationToken); - await tmp1148.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1149) + catch (Exception ex) { - var tmp1150 = $"Error occurred in {GetType().FullName}: {tmp1149.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1149, tmp1150); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1150); - var tmp1151 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("unsetSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); - await tmp1151.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4750,30 +4077,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task dropSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1152 = new InternalStructs.dropSchemaTemplate_args(); - await tmp1152.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.dropSchemaTemplateArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1153 = new InternalStructs.dropSchemaTemplate_result(); + var result = new InternalStructs.dropSchemaTemplateResult(); try { - tmp1153.Success = await _iAsync.dropSchemaTemplate(tmp1152.Req, cancellationToken); + result.Success = await _iAsync.dropSchemaTemplateAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("dropSchemaTemplate", TMessageType.Reply, seqid), cancellationToken); - await tmp1153.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1154) + catch (Exception ex) { - var tmp1155 = $"Error occurred in {GetType().FullName}: {tmp1154.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1154, tmp1155); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1155); - var tmp1156 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("dropSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); - await tmp1156.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4781,30 +4108,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task createTimeseriesUsingSchemaTemplate_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1157 = new InternalStructs.createTimeseriesUsingSchemaTemplate_args(); - await tmp1157.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.createTimeseriesUsingSchemaTemplateArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1158 = new InternalStructs.createTimeseriesUsingSchemaTemplate_result(); + var result = new InternalStructs.createTimeseriesUsingSchemaTemplateResult(); try { - tmp1158.Success = await _iAsync.createTimeseriesUsingSchemaTemplate(tmp1157.Req, cancellationToken); + result.Success = await _iAsync.createTimeseriesUsingSchemaTemplateAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("createTimeseriesUsingSchemaTemplate", TMessageType.Reply, seqid), cancellationToken); - await tmp1158.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1159) + catch (Exception ex) { - var tmp1160 = $"Error occurred in {GetType().FullName}: {tmp1159.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1159, tmp1160); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1160); - var tmp1161 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("createTimeseriesUsingSchemaTemplate", TMessageType.Exception, seqid), cancellationToken); - await tmp1161.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4812,30 +4139,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task handshake_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1162 = new InternalStructs.handshake_args(); - await tmp1162.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.handshakeArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1163 = new InternalStructs.handshake_result(); + var result = new InternalStructs.handshakeResult(); try { - tmp1163.Success = await _iAsync.handshake(tmp1162.Info, cancellationToken); + result.Success = await _iAsync.handshakeAsync(args.Info, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("handshake", TMessageType.Reply, seqid), cancellationToken); - await tmp1163.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1164) + catch (Exception ex) { - var tmp1165 = $"Error occurred in {GetType().FullName}: {tmp1164.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1164, tmp1165); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1165); - var tmp1166 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("handshake", TMessageType.Exception, seqid), cancellationToken); - await tmp1166.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4843,30 +4170,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task sendPipeData_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1167 = new InternalStructs.sendPipeData_args(); - await tmp1167.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.sendPipeDataArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1168 = new InternalStructs.sendPipeData_result(); + var result = new InternalStructs.sendPipeDataResult(); try { - tmp1168.Success = await _iAsync.sendPipeData(tmp1167.Buff, cancellationToken); + result.Success = await _iAsync.sendPipeDataAsync(args.Buff, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("sendPipeData", TMessageType.Reply, seqid), cancellationToken); - await tmp1168.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1169) + catch (Exception ex) { - var tmp1170 = $"Error occurred in {GetType().FullName}: {tmp1169.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1169, tmp1170); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1170); - var tmp1171 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("sendPipeData", TMessageType.Exception, seqid), cancellationToken); - await tmp1171.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4874,30 +4201,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task sendFile_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1172 = new InternalStructs.sendFile_args(); - await tmp1172.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.sendFileArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1173 = new InternalStructs.sendFile_result(); + var result = new InternalStructs.sendFileResult(); try { - tmp1173.Success = await _iAsync.sendFile(tmp1172.MetaInfo, tmp1172.Buff, cancellationToken); + result.Success = await _iAsync.sendFileAsync(args.MetaInfo, args.Buff, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("sendFile", TMessageType.Reply, seqid), cancellationToken); - await tmp1173.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1174) + catch (Exception ex) { - var tmp1175 = $"Error occurred in {GetType().FullName}: {tmp1174.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1174, tmp1175); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1175); - var tmp1176 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("sendFile", TMessageType.Exception, seqid), cancellationToken); - await tmp1176.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4905,30 +4232,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task pipeTransfer_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1177 = new InternalStructs.pipeTransfer_args(); - await tmp1177.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.pipeTransferArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1178 = new InternalStructs.pipeTransfer_result(); + var result = new InternalStructs.pipeTransferResult(); try { - tmp1178.Success = await _iAsync.pipeTransfer(tmp1177.Req, cancellationToken); + result.Success = await _iAsync.pipeTransferAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("pipeTransfer", TMessageType.Reply, seqid), cancellationToken); - await tmp1178.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1179) + catch (Exception ex) { - var tmp1180 = $"Error occurred in {GetType().FullName}: {tmp1179.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1179, tmp1180); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1180); - var tmp1181 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("pipeTransfer", TMessageType.Exception, seqid), cancellationToken); - await tmp1181.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4936,30 +4263,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task pipeSubscribe_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1182 = new InternalStructs.pipeSubscribe_args(); - await tmp1182.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.pipeSubscribeArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1183 = new InternalStructs.pipeSubscribe_result(); + var result = new InternalStructs.pipeSubscribeResult(); try { - tmp1183.Success = await _iAsync.pipeSubscribe(tmp1182.Req, cancellationToken); + result.Success = await _iAsync.pipeSubscribeAsync(args.Req, cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("pipeSubscribe", TMessageType.Reply, seqid), cancellationToken); - await tmp1183.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1184) + catch (Exception ex) { - var tmp1185 = $"Error occurred in {GetType().FullName}: {tmp1184.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1184, tmp1185); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1185); - var tmp1186 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("pipeSubscribe", TMessageType.Exception, seqid), cancellationToken); - await tmp1186.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4967,30 +4294,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task getBackupConfiguration_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1187 = new InternalStructs.getBackupConfiguration_args(); - await tmp1187.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.getBackupConfigurationArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1188 = new InternalStructs.getBackupConfiguration_result(); + var result = new InternalStructs.getBackupConfigurationResult(); try { - tmp1188.Success = await _iAsync.getBackupConfiguration(cancellationToken); + result.Success = await _iAsync.getBackupConfigurationAsync(cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("getBackupConfiguration", TMessageType.Reply, seqid), cancellationToken); - await tmp1188.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1189) + catch (Exception ex) { - var tmp1190 = $"Error occurred in {GetType().FullName}: {tmp1189.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1189, tmp1190); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1190); - var tmp1191 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("getBackupConfiguration", TMessageType.Exception, seqid), cancellationToken); - await tmp1191.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -4998,30 +4325,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task fetchAllConnectionsInfo_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1192 = new InternalStructs.fetchAllConnectionsInfo_args(); - await tmp1192.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.fetchAllConnectionsInfoArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1193 = new InternalStructs.fetchAllConnectionsInfo_result(); + var result = new InternalStructs.fetchAllConnectionsInfoResult(); try { - tmp1193.Success = await _iAsync.fetchAllConnectionsInfo(cancellationToken); + result.Success = await _iAsync.fetchAllConnectionsInfoAsync(cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("fetchAllConnectionsInfo", TMessageType.Reply, seqid), cancellationToken); - await tmp1193.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1194) + catch (Exception ex) { - var tmp1195 = $"Error occurred in {GetType().FullName}: {tmp1194.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1194, tmp1195); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1195); - var tmp1196 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("fetchAllConnectionsInfo", TMessageType.Exception, seqid), cancellationToken); - await tmp1196.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -5029,30 +4356,30 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public async global::System.Threading.Tasks.Task testConnectionEmptyRPC_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { - var tmp1197 = new InternalStructs.testConnectionEmptyRPC_args(); - await tmp1197.ReadAsync(iprot, cancellationToken); + var args = new InternalStructs.testConnectionEmptyRPCArgs(); + await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); - var tmp1198 = new InternalStructs.testConnectionEmptyRPC_result(); + var result = new InternalStructs.testConnectionEmptyRPCResult(); try { - tmp1198.Success = await _iAsync.testConnectionEmptyRPC(cancellationToken); + result.Success = await _iAsync.testConnectionEmptyRPCAsync(cancellationToken); await oprot.WriteMessageBeginAsync(new TMessage("testConnectionEmptyRPC", TMessageType.Reply, seqid), cancellationToken); - await tmp1198.WriteAsync(oprot, cancellationToken); + await result.WriteAsync(oprot, cancellationToken); } catch (TTransportException) { throw; } - catch (Exception tmp1199) + catch (Exception ex) { - var tmp1200 = $"Error occurred in {GetType().FullName}: {tmp1199.Message}"; + var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}"; if(_logger != null) - _logger.LogError(tmp1199, tmp1200); + _logger.LogError(ex, sErr); else - Console.Error.WriteLine(tmp1200); - var tmp1201 = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); + Console.Error.WriteLine(sErr); + var x = new TApplicationException(TApplicationException.ExceptionType.InternalError," Internal error."); await oprot.WriteMessageBeginAsync(new TMessage("testConnectionEmptyRPC", TMessageType.Exception, seqid), cancellationToken); - await tmp1201.WriteAsync(oprot, cancellationToken); + await x.WriteAsync(oprot, cancellationToken); } await oprot.WriteMessageEndAsync(cancellationToken); await oprot.Transport.FlushAsync(cancellationToken); @@ -5063,7 +4390,7 @@ public async Task ProcessAsync(TProtocol iprot, TProtocol oprot, Cancellat public class InternalStructs { - public partial class executeQueryStatementV2_args : TBase + public partial class executeQueryStatementV2Args : TBase { private TSExecuteStatementReq _req; @@ -5087,7 +4414,7 @@ public struct Isset public bool req; } - public executeQueryStatementV2_args() + public executeQueryStatementV2Args() { } @@ -5140,15 +4467,15 @@ public executeQueryStatementV2_args() oprot.IncrementRecursionDepth(); try { - var tmp1202 = new TStruct("executeQueryStatementV2_args"); - await oprot.WriteStructBeginAsync(tmp1202, cancellationToken); - var tmp1203 = new TField(); + var struc = new TStruct("executeQueryStatementV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1203.Name = "req"; - tmp1203.Type = TType.Struct; - tmp1203.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1203, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -5163,7 +4490,7 @@ public executeQueryStatementV2_args() public override bool Equals(object that) { - if (!(that is executeQueryStatementV2_args other)) return false; + 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)))); } @@ -5181,21 +4508,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1204 = new StringBuilder("executeQueryStatementV2_args("); - int tmp1205 = 0; + var sb = new StringBuilder("executeQueryStatementV2_args("); + int tmp438 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1205++) { tmp1204.Append(", "); } - tmp1204.Append("Req: "); - Req.ToString(tmp1204); + if(0 < tmp438++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1204.Append(')'); - return tmp1204.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeQueryStatementV2_result : TBase + public partial class executeQueryStatementV2Result : TBase { private TSExecuteStatementResp _success; @@ -5219,7 +4546,7 @@ public struct Isset public bool success; } - public executeQueryStatementV2_result() + public executeQueryStatementV2Result() { } @@ -5272,18 +4599,18 @@ public executeQueryStatementV2_result() oprot.IncrementRecursionDepth(); try { - var tmp1206 = new TStruct("executeQueryStatementV2_result"); - await oprot.WriteStructBeginAsync(tmp1206, cancellationToken); - var tmp1207 = new TField(); + var struc = new TStruct("executeQueryStatementV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1207.Name = "Success"; - tmp1207.Type = TType.Struct; - tmp1207.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1207, 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); } @@ -5299,7 +4626,7 @@ public executeQueryStatementV2_result() public override bool Equals(object that) { - if (!(that is executeQueryStatementV2_result other)) return false; + 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)))); } @@ -5317,21 +4644,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1208 = new StringBuilder("executeQueryStatementV2_result("); - int tmp1209 = 0; + var sb = new StringBuilder("executeQueryStatementV2_result("); + int tmp439 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1209++) { tmp1208.Append(", "); } - tmp1208.Append("Success: "); - Success.ToString(tmp1208); + if(0 < tmp439++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1208.Append(')'); - return tmp1208.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeUpdateStatementV2_args : TBase + public partial class executeUpdateStatementV2Args : TBase { private TSExecuteStatementReq _req; @@ -5355,7 +4682,7 @@ public struct Isset public bool req; } - public executeUpdateStatementV2_args() + public executeUpdateStatementV2Args() { } @@ -5408,15 +4735,15 @@ public executeUpdateStatementV2_args() oprot.IncrementRecursionDepth(); try { - var tmp1210 = new TStruct("executeUpdateStatementV2_args"); - await oprot.WriteStructBeginAsync(tmp1210, cancellationToken); - var tmp1211 = new TField(); + var struc = new TStruct("executeUpdateStatementV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1211.Name = "req"; - tmp1211.Type = TType.Struct; - tmp1211.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1211, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -5431,7 +4758,7 @@ public executeUpdateStatementV2_args() public override bool Equals(object that) { - if (!(that is executeUpdateStatementV2_args other)) return false; + 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)))); } @@ -5449,21 +4776,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1212 = new StringBuilder("executeUpdateStatementV2_args("); - int tmp1213 = 0; + var sb = new StringBuilder("executeUpdateStatementV2_args("); + int tmp440 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1213++) { tmp1212.Append(", "); } - tmp1212.Append("Req: "); - Req.ToString(tmp1212); + if(0 < tmp440++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1212.Append(')'); - return tmp1212.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeUpdateStatementV2_result : TBase + public partial class executeUpdateStatementV2Result : TBase { private TSExecuteStatementResp _success; @@ -5487,7 +4814,7 @@ public struct Isset public bool success; } - public executeUpdateStatementV2_result() + public executeUpdateStatementV2Result() { } @@ -5540,18 +4867,18 @@ public executeUpdateStatementV2_result() oprot.IncrementRecursionDepth(); try { - var tmp1214 = new TStruct("executeUpdateStatementV2_result"); - await oprot.WriteStructBeginAsync(tmp1214, cancellationToken); - var tmp1215 = new TField(); + var struc = new TStruct("executeUpdateStatementV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1215.Name = "Success"; - tmp1215.Type = TType.Struct; - tmp1215.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1215, 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); } @@ -5567,7 +4894,7 @@ public executeUpdateStatementV2_result() public override bool Equals(object that) { - if (!(that is executeUpdateStatementV2_result other)) return false; + 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)))); } @@ -5585,21 +4912,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1216 = new StringBuilder("executeUpdateStatementV2_result("); - int tmp1217 = 0; + var sb = new StringBuilder("executeUpdateStatementV2_result("); + int tmp441 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1217++) { tmp1216.Append(", "); } - tmp1216.Append("Success: "); - Success.ToString(tmp1216); + if(0 < tmp441++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1216.Append(')'); - return tmp1216.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeStatementV2_args : TBase + public partial class executeStatementV2Args : TBase { private TSExecuteStatementReq _req; @@ -5623,7 +4950,7 @@ public struct Isset public bool req; } - public executeStatementV2_args() + public executeStatementV2Args() { } @@ -5676,15 +5003,15 @@ public executeStatementV2_args() oprot.IncrementRecursionDepth(); try { - var tmp1218 = new TStruct("executeStatementV2_args"); - await oprot.WriteStructBeginAsync(tmp1218, cancellationToken); - var tmp1219 = new TField(); + var struc = new TStruct("executeStatementV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1219.Name = "req"; - tmp1219.Type = TType.Struct; - tmp1219.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1219, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -5699,7 +5026,7 @@ public executeStatementV2_args() public override bool Equals(object that) { - if (!(that is executeStatementV2_args other)) return false; + 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)))); } @@ -5717,21 +5044,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1220 = new StringBuilder("executeStatementV2_args("); - int tmp1221 = 0; + var sb = new StringBuilder("executeStatementV2_args("); + int tmp442 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1221++) { tmp1220.Append(", "); } - tmp1220.Append("Req: "); - Req.ToString(tmp1220); + if(0 < tmp442++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1220.Append(')'); - return tmp1220.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeStatementV2_result : TBase + public partial class executeStatementV2Result : TBase { private TSExecuteStatementResp _success; @@ -5755,7 +5082,7 @@ public struct Isset public bool success; } - public executeStatementV2_result() + public executeStatementV2Result() { } @@ -5808,18 +5135,18 @@ public executeStatementV2_result() oprot.IncrementRecursionDepth(); try { - var tmp1222 = new TStruct("executeStatementV2_result"); - await oprot.WriteStructBeginAsync(tmp1222, cancellationToken); - var tmp1223 = new TField(); + var struc = new TStruct("executeStatementV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1223.Name = "Success"; - tmp1223.Type = TType.Struct; - tmp1223.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1223, 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); } @@ -5835,7 +5162,7 @@ public executeStatementV2_result() public override bool Equals(object that) { - if (!(that is executeStatementV2_result other)) return false; + 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)))); } @@ -5853,21 +5180,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1224 = new StringBuilder("executeStatementV2_result("); - int tmp1225 = 0; + var sb = new StringBuilder("executeStatementV2_result("); + int tmp443 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1225++) { tmp1224.Append(", "); } - tmp1224.Append("Success: "); - Success.ToString(tmp1224); + if(0 < tmp443++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1224.Append(')'); - return tmp1224.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeRawDataQueryV2_args : TBase + public partial class executeRawDataQueryV2Args : TBase { private TSRawDataQueryReq _req; @@ -5891,7 +5218,7 @@ public struct Isset public bool req; } - public executeRawDataQueryV2_args() + public executeRawDataQueryV2Args() { } @@ -5944,15 +5271,15 @@ public executeRawDataQueryV2_args() oprot.IncrementRecursionDepth(); try { - var tmp1226 = new TStruct("executeRawDataQueryV2_args"); - await oprot.WriteStructBeginAsync(tmp1226, cancellationToken); - var tmp1227 = new TField(); + var struc = new TStruct("executeRawDataQueryV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1227.Name = "req"; - tmp1227.Type = TType.Struct; - tmp1227.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1227, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -5967,7 +5294,7 @@ public executeRawDataQueryV2_args() public override bool Equals(object that) { - if (!(that is executeRawDataQueryV2_args other)) return false; + 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)))); } @@ -5985,21 +5312,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1228 = new StringBuilder("executeRawDataQueryV2_args("); - int tmp1229 = 0; + var sb = new StringBuilder("executeRawDataQueryV2_args("); + int tmp444 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1229++) { tmp1228.Append(", "); } - tmp1228.Append("Req: "); - Req.ToString(tmp1228); + if(0 < tmp444++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1228.Append(')'); - return tmp1228.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeRawDataQueryV2_result : TBase + public partial class executeRawDataQueryV2Result : TBase { private TSExecuteStatementResp _success; @@ -6023,7 +5350,7 @@ public struct Isset public bool success; } - public executeRawDataQueryV2_result() + public executeRawDataQueryV2Result() { } @@ -6076,18 +5403,18 @@ public executeRawDataQueryV2_result() oprot.IncrementRecursionDepth(); try { - var tmp1230 = new TStruct("executeRawDataQueryV2_result"); - await oprot.WriteStructBeginAsync(tmp1230, cancellationToken); - var tmp1231 = new TField(); + var struc = new TStruct("executeRawDataQueryV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1231.Name = "Success"; - tmp1231.Type = TType.Struct; - tmp1231.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1231, 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); } @@ -6103,7 +5430,7 @@ public executeRawDataQueryV2_result() public override bool Equals(object that) { - if (!(that is executeRawDataQueryV2_result other)) return false; + 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)))); } @@ -6121,21 +5448,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1232 = new StringBuilder("executeRawDataQueryV2_result("); - int tmp1233 = 0; + var sb = new StringBuilder("executeRawDataQueryV2_result("); + int tmp445 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1233++) { tmp1232.Append(", "); } - tmp1232.Append("Success: "); - Success.ToString(tmp1232); + if(0 < tmp445++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1232.Append(')'); - return tmp1232.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeLastDataQueryV2_args : TBase + public partial class executeLastDataQueryV2Args : TBase { private TSLastDataQueryReq _req; @@ -6159,7 +5486,7 @@ public struct Isset public bool req; } - public executeLastDataQueryV2_args() + public executeLastDataQueryV2Args() { } @@ -6212,15 +5539,15 @@ public executeLastDataQueryV2_args() oprot.IncrementRecursionDepth(); try { - var tmp1234 = new TStruct("executeLastDataQueryV2_args"); - await oprot.WriteStructBeginAsync(tmp1234, cancellationToken); - var tmp1235 = new TField(); + var struc = new TStruct("executeLastDataQueryV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1235.Name = "req"; - tmp1235.Type = TType.Struct; - tmp1235.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1235, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -6235,7 +5562,7 @@ public executeLastDataQueryV2_args() public override bool Equals(object that) { - if (!(that is executeLastDataQueryV2_args other)) return false; + 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)))); } @@ -6253,21 +5580,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1236 = new StringBuilder("executeLastDataQueryV2_args("); - int tmp1237 = 0; + var sb = new StringBuilder("executeLastDataQueryV2_args("); + int tmp446 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1237++) { tmp1236.Append(", "); } - tmp1236.Append("Req: "); - Req.ToString(tmp1236); + if(0 < tmp446++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1236.Append(')'); - return tmp1236.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeLastDataQueryV2_result : TBase + public partial class executeLastDataQueryV2Result : TBase { private TSExecuteStatementResp _success; @@ -6291,7 +5618,7 @@ public struct Isset public bool success; } - public executeLastDataQueryV2_result() + public executeLastDataQueryV2Result() { } @@ -6344,18 +5671,18 @@ public executeLastDataQueryV2_result() oprot.IncrementRecursionDepth(); try { - var tmp1238 = new TStruct("executeLastDataQueryV2_result"); - await oprot.WriteStructBeginAsync(tmp1238, cancellationToken); - var tmp1239 = new TField(); + var struc = new TStruct("executeLastDataQueryV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1239.Name = "Success"; - tmp1239.Type = TType.Struct; - tmp1239.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1239, 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); } @@ -6371,7 +5698,7 @@ public executeLastDataQueryV2_result() public override bool Equals(object that) { - if (!(that is executeLastDataQueryV2_result other)) return false; + 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)))); } @@ -6389,21 +5716,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1240 = new StringBuilder("executeLastDataQueryV2_result("); - int tmp1241 = 0; + var sb = new StringBuilder("executeLastDataQueryV2_result("); + int tmp447 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1241++) { tmp1240.Append(", "); } - tmp1240.Append("Success: "); - Success.ToString(tmp1240); + if(0 < tmp447++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1240.Append(')'); - return tmp1240.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeFastLastDataQueryForOnePrefixPath_args : TBase + public partial class executeFastLastDataQueryForOnePrefixPathArgs : TBase { private TSFastLastDataQueryForOnePrefixPathReq _req; @@ -6427,7 +5754,7 @@ public struct Isset public bool req; } - public executeFastLastDataQueryForOnePrefixPath_args() + public executeFastLastDataQueryForOnePrefixPathArgs() { } @@ -6480,15 +5807,15 @@ public executeFastLastDataQueryForOnePrefixPath_args() oprot.IncrementRecursionDepth(); try { - var tmp1242 = new TStruct("executeFastLastDataQueryForOnePrefixPath_args"); - await oprot.WriteStructBeginAsync(tmp1242, cancellationToken); - var tmp1243 = new TField(); + var struc = new TStruct("executeFastLastDataQueryForOnePrefixPath_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1243.Name = "req"; - tmp1243.Type = TType.Struct; - tmp1243.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1243, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -6503,7 +5830,7 @@ public executeFastLastDataQueryForOnePrefixPath_args() public override bool Equals(object that) { - if (!(that is executeFastLastDataQueryForOnePrefixPath_args other)) return false; + if (!(that is executeFastLastDataQueryForOnePrefixPathArgs other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.req == other.__isset.req) && ((!__isset.req) || (System.Object.Equals(Req, other.Req)))); } @@ -6521,21 +5848,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1244 = new StringBuilder("executeFastLastDataQueryForOnePrefixPath_args("); - int tmp1245 = 0; + var sb = new StringBuilder("executeFastLastDataQueryForOnePrefixPath_args("); + int tmp448 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1245++) { tmp1244.Append(", "); } - tmp1244.Append("Req: "); - Req.ToString(tmp1244); + if(0 < tmp448++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1244.Append(')'); - return tmp1244.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeFastLastDataQueryForOnePrefixPath_result : TBase + public partial class executeFastLastDataQueryForOnePrefixPathResult : TBase { private TSExecuteStatementResp _success; @@ -6559,7 +5886,7 @@ public struct Isset public bool success; } - public executeFastLastDataQueryForOnePrefixPath_result() + public executeFastLastDataQueryForOnePrefixPathResult() { } @@ -6612,18 +5939,18 @@ public executeFastLastDataQueryForOnePrefixPath_result() oprot.IncrementRecursionDepth(); try { - var tmp1246 = new TStruct("executeFastLastDataQueryForOnePrefixPath_result"); - await oprot.WriteStructBeginAsync(tmp1246, cancellationToken); - var tmp1247 = new TField(); + var struc = new TStruct("executeFastLastDataQueryForOnePrefixPath_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1247.Name = "Success"; - tmp1247.Type = TType.Struct; - tmp1247.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1247, 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); } @@ -6639,7 +5966,7 @@ public executeFastLastDataQueryForOnePrefixPath_result() public override bool Equals(object that) { - if (!(that is executeFastLastDataQueryForOnePrefixPath_result other)) return false; + if (!(that is executeFastLastDataQueryForOnePrefixPathResult other)) return false; if (ReferenceEquals(this, other)) return true; return ((__isset.success == other.__isset.success) && ((!__isset.success) || (System.Object.Equals(Success, other.Success)))); } @@ -6657,21 +5984,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1248 = new StringBuilder("executeFastLastDataQueryForOnePrefixPath_result("); - int tmp1249 = 0; + var sb = new StringBuilder("executeFastLastDataQueryForOnePrefixPath_result("); + int tmp449 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1249++) { tmp1248.Append(", "); } - tmp1248.Append("Success: "); - Success.ToString(tmp1248); + if(0 < tmp449++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1248.Append(')'); - return tmp1248.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeFastLastDataQueryForOneDeviceV2_args : TBase + public partial class executeFastLastDataQueryForOneDeviceV2Args : TBase { private TSFastLastDataQueryForOneDeviceReq _req; @@ -6695,7 +6022,7 @@ public struct Isset public bool req; } - public executeFastLastDataQueryForOneDeviceV2_args() + public executeFastLastDataQueryForOneDeviceV2Args() { } @@ -6748,15 +6075,15 @@ public executeFastLastDataQueryForOneDeviceV2_args() oprot.IncrementRecursionDepth(); try { - var tmp1250 = new TStruct("executeFastLastDataQueryForOneDeviceV2_args"); - await oprot.WriteStructBeginAsync(tmp1250, cancellationToken); - var tmp1251 = new TField(); + var struc = new TStruct("executeFastLastDataQueryForOneDeviceV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1251.Name = "req"; - tmp1251.Type = TType.Struct; - tmp1251.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1251, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -6771,7 +6098,7 @@ public executeFastLastDataQueryForOneDeviceV2_args() public override bool Equals(object that) { - if (!(that is executeFastLastDataQueryForOneDeviceV2_args other)) return false; + 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)))); } @@ -6789,21 +6116,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1252 = new StringBuilder("executeFastLastDataQueryForOneDeviceV2_args("); - int tmp1253 = 0; + var sb = new StringBuilder("executeFastLastDataQueryForOneDeviceV2_args("); + int tmp450 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1253++) { tmp1252.Append(", "); } - tmp1252.Append("Req: "); - Req.ToString(tmp1252); + if(0 < tmp450++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1252.Append(')'); - return tmp1252.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeFastLastDataQueryForOneDeviceV2_result : TBase + public partial class executeFastLastDataQueryForOneDeviceV2Result : TBase { private TSExecuteStatementResp _success; @@ -6827,7 +6154,7 @@ public struct Isset public bool success; } - public executeFastLastDataQueryForOneDeviceV2_result() + public executeFastLastDataQueryForOneDeviceV2Result() { } @@ -6880,18 +6207,18 @@ public executeFastLastDataQueryForOneDeviceV2_result() oprot.IncrementRecursionDepth(); try { - var tmp1254 = new TStruct("executeFastLastDataQueryForOneDeviceV2_result"); - await oprot.WriteStructBeginAsync(tmp1254, cancellationToken); - var tmp1255 = new TField(); + var struc = new TStruct("executeFastLastDataQueryForOneDeviceV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1255.Name = "Success"; - tmp1255.Type = TType.Struct; - tmp1255.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1255, 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); } @@ -6907,7 +6234,7 @@ public executeFastLastDataQueryForOneDeviceV2_result() public override bool Equals(object that) { - if (!(that is executeFastLastDataQueryForOneDeviceV2_result other)) return false; + 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)))); } @@ -6925,21 +6252,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1256 = new StringBuilder("executeFastLastDataQueryForOneDeviceV2_result("); - int tmp1257 = 0; + var sb = new StringBuilder("executeFastLastDataQueryForOneDeviceV2_result("); + int tmp451 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1257++) { tmp1256.Append(", "); } - tmp1256.Append("Success: "); - Success.ToString(tmp1256); + if(0 < tmp451++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1256.Append(')'); - return tmp1256.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeAggregationQueryV2_args : TBase + public partial class executeAggregationQueryV2Args : TBase { private TSAggregationQueryReq _req; @@ -6963,7 +6290,7 @@ public struct Isset public bool req; } - public executeAggregationQueryV2_args() + public executeAggregationQueryV2Args() { } @@ -7016,15 +6343,15 @@ public executeAggregationQueryV2_args() oprot.IncrementRecursionDepth(); try { - var tmp1258 = new TStruct("executeAggregationQueryV2_args"); - await oprot.WriteStructBeginAsync(tmp1258, cancellationToken); - var tmp1259 = new TField(); + var struc = new TStruct("executeAggregationQueryV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1259.Name = "req"; - tmp1259.Type = TType.Struct; - tmp1259.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1259, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -7039,7 +6366,7 @@ public executeAggregationQueryV2_args() public override bool Equals(object that) { - if (!(that is executeAggregationQueryV2_args other)) return false; + 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)))); } @@ -7057,21 +6384,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1260 = new StringBuilder("executeAggregationQueryV2_args("); - int tmp1261 = 0; + var sb = new StringBuilder("executeAggregationQueryV2_args("); + int tmp452 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1261++) { tmp1260.Append(", "); } - tmp1260.Append("Req: "); - Req.ToString(tmp1260); + if(0 < tmp452++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1260.Append(')'); - return tmp1260.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeAggregationQueryV2_result : TBase + public partial class executeAggregationQueryV2Result : TBase { private TSExecuteStatementResp _success; @@ -7095,7 +6422,7 @@ public struct Isset public bool success; } - public executeAggregationQueryV2_result() + public executeAggregationQueryV2Result() { } @@ -7148,18 +6475,18 @@ public executeAggregationQueryV2_result() oprot.IncrementRecursionDepth(); try { - var tmp1262 = new TStruct("executeAggregationQueryV2_result"); - await oprot.WriteStructBeginAsync(tmp1262, cancellationToken); - var tmp1263 = new TField(); + var struc = new TStruct("executeAggregationQueryV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1263.Name = "Success"; - tmp1263.Type = TType.Struct; - tmp1263.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1263, 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); } @@ -7175,7 +6502,7 @@ public executeAggregationQueryV2_result() public override bool Equals(object that) { - if (!(that is executeAggregationQueryV2_result other)) return false; + 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)))); } @@ -7193,21 +6520,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1264 = new StringBuilder("executeAggregationQueryV2_result("); - int tmp1265 = 0; + var sb = new StringBuilder("executeAggregationQueryV2_result("); + int tmp453 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1265++) { tmp1264.Append(", "); } - tmp1264.Append("Success: "); - Success.ToString(tmp1264); + if(0 < tmp453++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1264.Append(')'); - return tmp1264.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeGroupByQueryIntervalQuery_args : TBase + public partial class executeGroupByQueryIntervalQueryArgs : TBase { private TSGroupByQueryIntervalReq _req; @@ -7231,7 +6558,7 @@ public struct Isset public bool req; } - public executeGroupByQueryIntervalQuery_args() + public executeGroupByQueryIntervalQueryArgs() { } @@ -7284,15 +6611,15 @@ public executeGroupByQueryIntervalQuery_args() oprot.IncrementRecursionDepth(); try { - var tmp1266 = new TStruct("executeGroupByQueryIntervalQuery_args"); - await oprot.WriteStructBeginAsync(tmp1266, cancellationToken); - var tmp1267 = new TField(); + var struc = new TStruct("executeGroupByQueryIntervalQuery_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1267.Name = "req"; - tmp1267.Type = TType.Struct; - tmp1267.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1267, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -7307,7 +6634,7 @@ public executeGroupByQueryIntervalQuery_args() public override bool Equals(object that) { - if (!(that is executeGroupByQueryIntervalQuery_args other)) return false; + 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)))); } @@ -7325,21 +6652,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1268 = new StringBuilder("executeGroupByQueryIntervalQuery_args("); - int tmp1269 = 0; + var sb = new StringBuilder("executeGroupByQueryIntervalQuery_args("); + int tmp454 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1269++) { tmp1268.Append(", "); } - tmp1268.Append("Req: "); - Req.ToString(tmp1268); + if(0 < tmp454++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1268.Append(')'); - return tmp1268.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeGroupByQueryIntervalQuery_result : TBase + public partial class executeGroupByQueryIntervalQueryResult : TBase { private TSExecuteStatementResp _success; @@ -7363,7 +6690,7 @@ public struct Isset public bool success; } - public executeGroupByQueryIntervalQuery_result() + public executeGroupByQueryIntervalQueryResult() { } @@ -7416,18 +6743,18 @@ public executeGroupByQueryIntervalQuery_result() oprot.IncrementRecursionDepth(); try { - var tmp1270 = new TStruct("executeGroupByQueryIntervalQuery_result"); - await oprot.WriteStructBeginAsync(tmp1270, cancellationToken); - var tmp1271 = new TField(); + var struc = new TStruct("executeGroupByQueryIntervalQuery_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1271.Name = "Success"; - tmp1271.Type = TType.Struct; - tmp1271.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1271, 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); } @@ -7443,7 +6770,7 @@ public executeGroupByQueryIntervalQuery_result() public override bool Equals(object that) { - if (!(that is executeGroupByQueryIntervalQuery_result other)) return false; + 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)))); } @@ -7461,21 +6788,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1272 = new StringBuilder("executeGroupByQueryIntervalQuery_result("); - int tmp1273 = 0; + var sb = new StringBuilder("executeGroupByQueryIntervalQuery_result("); + int tmp455 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1273++) { tmp1272.Append(", "); } - tmp1272.Append("Success: "); - Success.ToString(tmp1272); + if(0 < tmp455++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1272.Append(')'); - return tmp1272.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class fetchResultsV2_args : TBase + public partial class fetchResultsV2Args : TBase { private TSFetchResultsReq _req; @@ -7499,7 +6826,7 @@ public struct Isset public bool req; } - public fetchResultsV2_args() + public fetchResultsV2Args() { } @@ -7552,15 +6879,15 @@ public fetchResultsV2_args() oprot.IncrementRecursionDepth(); try { - var tmp1274 = new TStruct("fetchResultsV2_args"); - await oprot.WriteStructBeginAsync(tmp1274, cancellationToken); - var tmp1275 = new TField(); + var struc = new TStruct("fetchResultsV2_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1275.Name = "req"; - tmp1275.Type = TType.Struct; - tmp1275.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1275, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -7575,7 +6902,7 @@ public fetchResultsV2_args() public override bool Equals(object that) { - if (!(that is fetchResultsV2_args other)) return false; + 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)))); } @@ -7593,21 +6920,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1276 = new StringBuilder("fetchResultsV2_args("); - int tmp1277 = 0; + var sb = new StringBuilder("fetchResultsV2_args("); + int tmp456 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1277++) { tmp1276.Append(", "); } - tmp1276.Append("Req: "); - Req.ToString(tmp1276); + if(0 < tmp456++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1276.Append(')'); - return tmp1276.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class fetchResultsV2_result : TBase + public partial class fetchResultsV2Result : TBase { private TSFetchResultsResp _success; @@ -7631,7 +6958,7 @@ public struct Isset public bool success; } - public fetchResultsV2_result() + public fetchResultsV2Result() { } @@ -7684,18 +7011,18 @@ public fetchResultsV2_result() oprot.IncrementRecursionDepth(); try { - var tmp1278 = new TStruct("fetchResultsV2_result"); - await oprot.WriteStructBeginAsync(tmp1278, cancellationToken); - var tmp1279 = new TField(); + var struc = new TStruct("fetchResultsV2_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1279.Name = "Success"; - tmp1279.Type = TType.Struct; - tmp1279.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1279, 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); } @@ -7711,7 +7038,7 @@ public fetchResultsV2_result() public override bool Equals(object that) { - if (!(that is fetchResultsV2_result other)) return false; + 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)))); } @@ -7729,21 +7056,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1280 = new StringBuilder("fetchResultsV2_result("); - int tmp1281 = 0; + var sb = new StringBuilder("fetchResultsV2_result("); + int tmp457 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1281++) { tmp1280.Append(", "); } - tmp1280.Append("Success: "); - Success.ToString(tmp1280); + if(0 < tmp457++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1280.Append(')'); - return tmp1280.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class openSession_args : TBase + public partial class openSessionArgs : TBase { private TSOpenSessionReq _req; @@ -7767,7 +7094,7 @@ public struct Isset public bool req; } - public openSession_args() + public openSessionArgs() { } @@ -7820,15 +7147,15 @@ public openSession_args() oprot.IncrementRecursionDepth(); try { - var tmp1282 = new TStruct("openSession_args"); - await oprot.WriteStructBeginAsync(tmp1282, cancellationToken); - var tmp1283 = new TField(); + var struc = new TStruct("openSession_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1283.Name = "req"; - tmp1283.Type = TType.Struct; - tmp1283.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1283, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -7843,7 +7170,7 @@ public openSession_args() public override bool Equals(object that) { - if (!(that is openSession_args other)) return false; + 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)))); } @@ -7861,21 +7188,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1284 = new StringBuilder("openSession_args("); - int tmp1285 = 0; + var sb = new StringBuilder("openSession_args("); + int tmp458 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1285++) { tmp1284.Append(", "); } - tmp1284.Append("Req: "); - Req.ToString(tmp1284); + if(0 < tmp458++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1284.Append(')'); - return tmp1284.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class openSession_result : TBase + public partial class openSessionResult : TBase { private TSOpenSessionResp _success; @@ -7899,7 +7226,7 @@ public struct Isset public bool success; } - public openSession_result() + public openSessionResult() { } @@ -7952,18 +7279,18 @@ public openSession_result() oprot.IncrementRecursionDepth(); try { - var tmp1286 = new TStruct("openSession_result"); - await oprot.WriteStructBeginAsync(tmp1286, cancellationToken); - var tmp1287 = new TField(); + var struc = new TStruct("openSession_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1287.Name = "Success"; - tmp1287.Type = TType.Struct; - tmp1287.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1287, 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); } @@ -7979,7 +7306,7 @@ public openSession_result() public override bool Equals(object that) { - if (!(that is openSession_result other)) return false; + 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)))); } @@ -7997,21 +7324,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1288 = new StringBuilder("openSession_result("); - int tmp1289 = 0; + var sb = new StringBuilder("openSession_result("); + int tmp459 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1289++) { tmp1288.Append(", "); } - tmp1288.Append("Success: "); - Success.ToString(tmp1288); + if(0 < tmp459++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1288.Append(')'); - return tmp1288.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class closeSession_args : TBase + public partial class closeSessionArgs : TBase { private TSCloseSessionReq _req; @@ -8035,7 +7362,7 @@ public struct Isset public bool req; } - public closeSession_args() + public closeSessionArgs() { } @@ -8088,15 +7415,15 @@ public closeSession_args() oprot.IncrementRecursionDepth(); try { - var tmp1290 = new TStruct("closeSession_args"); - await oprot.WriteStructBeginAsync(tmp1290, cancellationToken); - var tmp1291 = new TField(); + var struc = new TStruct("closeSession_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1291.Name = "req"; - tmp1291.Type = TType.Struct; - tmp1291.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1291, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -8111,7 +7438,7 @@ public closeSession_args() public override bool Equals(object that) { - if (!(that is closeSession_args other)) return false; + 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)))); } @@ -8129,21 +7456,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1292 = new StringBuilder("closeSession_args("); - int tmp1293 = 0; + var sb = new StringBuilder("closeSession_args("); + int tmp460 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1293++) { tmp1292.Append(", "); } - tmp1292.Append("Req: "); - Req.ToString(tmp1292); + if(0 < tmp460++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1292.Append(')'); - return tmp1292.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class closeSession_result : TBase + public partial class closeSessionResult : TBase { private TSStatus _success; @@ -8167,7 +7494,7 @@ public struct Isset public bool success; } - public closeSession_result() + public closeSessionResult() { } @@ -8220,18 +7547,18 @@ public closeSession_result() oprot.IncrementRecursionDepth(); try { - var tmp1294 = new TStruct("closeSession_result"); - await oprot.WriteStructBeginAsync(tmp1294, cancellationToken); - var tmp1295 = new TField(); + var struc = new TStruct("closeSession_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1295.Name = "Success"; - tmp1295.Type = TType.Struct; - tmp1295.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1295, 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); } @@ -8247,7 +7574,7 @@ public closeSession_result() public override bool Equals(object that) { - if (!(that is closeSession_result other)) return false; + 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)))); } @@ -8265,21 +7592,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1296 = new StringBuilder("closeSession_result("); - int tmp1297 = 0; + var sb = new StringBuilder("closeSession_result("); + int tmp461 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1297++) { tmp1296.Append(", "); } - tmp1296.Append("Success: "); - Success.ToString(tmp1296); + if(0 < tmp461++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1296.Append(')'); - return tmp1296.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeStatement_args : TBase + public partial class executeStatementArgs : TBase { private TSExecuteStatementReq _req; @@ -8303,7 +7630,7 @@ public struct Isset public bool req; } - public executeStatement_args() + public executeStatementArgs() { } @@ -8356,15 +7683,15 @@ public executeStatement_args() oprot.IncrementRecursionDepth(); try { - var tmp1298 = new TStruct("executeStatement_args"); - await oprot.WriteStructBeginAsync(tmp1298, cancellationToken); - var tmp1299 = new TField(); + var struc = new TStruct("executeStatement_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1299.Name = "req"; - tmp1299.Type = TType.Struct; - tmp1299.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1299, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -8379,7 +7706,7 @@ public executeStatement_args() public override bool Equals(object that) { - if (!(that is executeStatement_args other)) return false; + 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)))); } @@ -8397,21 +7724,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1300 = new StringBuilder("executeStatement_args("); - int tmp1301 = 0; + var sb = new StringBuilder("executeStatement_args("); + int tmp462 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1301++) { tmp1300.Append(", "); } - tmp1300.Append("Req: "); - Req.ToString(tmp1300); + if(0 < tmp462++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1300.Append(')'); - return tmp1300.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeStatement_result : TBase + public partial class executeStatementResult : TBase { private TSExecuteStatementResp _success; @@ -8435,7 +7762,7 @@ public struct Isset public bool success; } - public executeStatement_result() + public executeStatementResult() { } @@ -8488,18 +7815,18 @@ public executeStatement_result() oprot.IncrementRecursionDepth(); try { - var tmp1302 = new TStruct("executeStatement_result"); - await oprot.WriteStructBeginAsync(tmp1302, cancellationToken); - var tmp1303 = new TField(); + var struc = new TStruct("executeStatement_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1303.Name = "Success"; - tmp1303.Type = TType.Struct; - tmp1303.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1303, 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); } @@ -8515,7 +7842,7 @@ public executeStatement_result() public override bool Equals(object that) { - if (!(that is executeStatement_result other)) return false; + 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)))); } @@ -8533,21 +7860,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1304 = new StringBuilder("executeStatement_result("); - int tmp1305 = 0; + var sb = new StringBuilder("executeStatement_result("); + int tmp463 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1305++) { tmp1304.Append(", "); } - tmp1304.Append("Success: "); - Success.ToString(tmp1304); + if(0 < tmp463++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1304.Append(')'); - return tmp1304.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeBatchStatement_args : TBase + public partial class executeBatchStatementArgs : TBase { private TSExecuteBatchStatementReq _req; @@ -8571,7 +7898,7 @@ public struct Isset public bool req; } - public executeBatchStatement_args() + public executeBatchStatementArgs() { } @@ -8624,15 +7951,15 @@ public executeBatchStatement_args() oprot.IncrementRecursionDepth(); try { - var tmp1306 = new TStruct("executeBatchStatement_args"); - await oprot.WriteStructBeginAsync(tmp1306, cancellationToken); - var tmp1307 = new TField(); + var struc = new TStruct("executeBatchStatement_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1307.Name = "req"; - tmp1307.Type = TType.Struct; - tmp1307.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1307, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -8647,7 +7974,7 @@ public executeBatchStatement_args() public override bool Equals(object that) { - if (!(that is executeBatchStatement_args other)) return false; + 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)))); } @@ -8665,21 +7992,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1308 = new StringBuilder("executeBatchStatement_args("); - int tmp1309 = 0; + var sb = new StringBuilder("executeBatchStatement_args("); + int tmp464 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1309++) { tmp1308.Append(", "); } - tmp1308.Append("Req: "); - Req.ToString(tmp1308); + if(0 < tmp464++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1308.Append(')'); - return tmp1308.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeBatchStatement_result : TBase + public partial class executeBatchStatementResult : TBase { private TSStatus _success; @@ -8703,7 +8030,7 @@ public struct Isset public bool success; } - public executeBatchStatement_result() + public executeBatchStatementResult() { } @@ -8756,18 +8083,18 @@ public executeBatchStatement_result() oprot.IncrementRecursionDepth(); try { - var tmp1310 = new TStruct("executeBatchStatement_result"); - await oprot.WriteStructBeginAsync(tmp1310, cancellationToken); - var tmp1311 = new TField(); + var struc = new TStruct("executeBatchStatement_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1311.Name = "Success"; - tmp1311.Type = TType.Struct; - tmp1311.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1311, 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); } @@ -8783,7 +8110,7 @@ public executeBatchStatement_result() public override bool Equals(object that) { - if (!(that is executeBatchStatement_result other)) return false; + 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)))); } @@ -8801,21 +8128,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1312 = new StringBuilder("executeBatchStatement_result("); - int tmp1313 = 0; + var sb = new StringBuilder("executeBatchStatement_result("); + int tmp465 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1313++) { tmp1312.Append(", "); } - tmp1312.Append("Success: "); - Success.ToString(tmp1312); + if(0 < tmp465++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1312.Append(')'); - return tmp1312.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeQueryStatement_args : TBase + public partial class executeQueryStatementArgs : TBase { private TSExecuteStatementReq _req; @@ -8839,7 +8166,7 @@ public struct Isset public bool req; } - public executeQueryStatement_args() + public executeQueryStatementArgs() { } @@ -8892,15 +8219,15 @@ public executeQueryStatement_args() oprot.IncrementRecursionDepth(); try { - var tmp1314 = new TStruct("executeQueryStatement_args"); - await oprot.WriteStructBeginAsync(tmp1314, cancellationToken); - var tmp1315 = new TField(); + var struc = new TStruct("executeQueryStatement_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1315.Name = "req"; - tmp1315.Type = TType.Struct; - tmp1315.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1315, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -8915,7 +8242,7 @@ public executeQueryStatement_args() public override bool Equals(object that) { - if (!(that is executeQueryStatement_args other)) return false; + 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)))); } @@ -8933,21 +8260,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1316 = new StringBuilder("executeQueryStatement_args("); - int tmp1317 = 0; + var sb = new StringBuilder("executeQueryStatement_args("); + int tmp466 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1317++) { tmp1316.Append(", "); } - tmp1316.Append("Req: "); - Req.ToString(tmp1316); + if(0 < tmp466++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1316.Append(')'); - return tmp1316.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeQueryStatement_result : TBase + public partial class executeQueryStatementResult : TBase { private TSExecuteStatementResp _success; @@ -8971,7 +8298,7 @@ public struct Isset public bool success; } - public executeQueryStatement_result() + public executeQueryStatementResult() { } @@ -9024,18 +8351,18 @@ public executeQueryStatement_result() oprot.IncrementRecursionDepth(); try { - var tmp1318 = new TStruct("executeQueryStatement_result"); - await oprot.WriteStructBeginAsync(tmp1318, cancellationToken); - var tmp1319 = new TField(); + var struc = new TStruct("executeQueryStatement_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1319.Name = "Success"; - tmp1319.Type = TType.Struct; - tmp1319.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1319, 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); } @@ -9051,7 +8378,7 @@ public executeQueryStatement_result() public override bool Equals(object that) { - if (!(that is executeQueryStatement_result other)) return false; + 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)))); } @@ -9069,21 +8396,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1320 = new StringBuilder("executeQueryStatement_result("); - int tmp1321 = 0; + var sb = new StringBuilder("executeQueryStatement_result("); + int tmp467 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1321++) { tmp1320.Append(", "); } - tmp1320.Append("Success: "); - Success.ToString(tmp1320); + if(0 < tmp467++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1320.Append(')'); - return tmp1320.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeUpdateStatement_args : TBase + public partial class executeUpdateStatementArgs : TBase { private TSExecuteStatementReq _req; @@ -9107,7 +8434,7 @@ public struct Isset public bool req; } - public executeUpdateStatement_args() + public executeUpdateStatementArgs() { } @@ -9160,15 +8487,15 @@ public executeUpdateStatement_args() oprot.IncrementRecursionDepth(); try { - var tmp1322 = new TStruct("executeUpdateStatement_args"); - await oprot.WriteStructBeginAsync(tmp1322, cancellationToken); - var tmp1323 = new TField(); + var struc = new TStruct("executeUpdateStatement_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1323.Name = "req"; - tmp1323.Type = TType.Struct; - tmp1323.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1323, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -9183,7 +8510,7 @@ public executeUpdateStatement_args() public override bool Equals(object that) { - if (!(that is executeUpdateStatement_args other)) return false; + 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)))); } @@ -9201,21 +8528,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1324 = new StringBuilder("executeUpdateStatement_args("); - int tmp1325 = 0; + var sb = new StringBuilder("executeUpdateStatement_args("); + int tmp468 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1325++) { tmp1324.Append(", "); } - tmp1324.Append("Req: "); - Req.ToString(tmp1324); + if(0 < tmp468++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1324.Append(')'); - return tmp1324.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeUpdateStatement_result : TBase + public partial class executeUpdateStatementResult : TBase { private TSExecuteStatementResp _success; @@ -9239,7 +8566,7 @@ public struct Isset public bool success; } - public executeUpdateStatement_result() + public executeUpdateStatementResult() { } @@ -9292,18 +8619,18 @@ public executeUpdateStatement_result() oprot.IncrementRecursionDepth(); try { - var tmp1326 = new TStruct("executeUpdateStatement_result"); - await oprot.WriteStructBeginAsync(tmp1326, cancellationToken); - var tmp1327 = new TField(); + var struc = new TStruct("executeUpdateStatement_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1327.Name = "Success"; - tmp1327.Type = TType.Struct; - tmp1327.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1327, 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); } @@ -9319,7 +8646,7 @@ public executeUpdateStatement_result() public override bool Equals(object that) { - if (!(that is executeUpdateStatement_result other)) return false; + 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)))); } @@ -9337,21 +8664,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1328 = new StringBuilder("executeUpdateStatement_result("); - int tmp1329 = 0; + var sb = new StringBuilder("executeUpdateStatement_result("); + int tmp469 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1329++) { tmp1328.Append(", "); } - tmp1328.Append("Success: "); - Success.ToString(tmp1328); + if(0 < tmp469++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1328.Append(')'); - return tmp1328.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class fetchResults_args : TBase + public partial class fetchResultsArgs : TBase { private TSFetchResultsReq _req; @@ -9375,7 +8702,7 @@ public struct Isset public bool req; } - public fetchResults_args() + public fetchResultsArgs() { } @@ -9428,15 +8755,15 @@ public fetchResults_args() oprot.IncrementRecursionDepth(); try { - var tmp1330 = new TStruct("fetchResults_args"); - await oprot.WriteStructBeginAsync(tmp1330, cancellationToken); - var tmp1331 = new TField(); + var struc = new TStruct("fetchResults_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1331.Name = "req"; - tmp1331.Type = TType.Struct; - tmp1331.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1331, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -9451,7 +8778,7 @@ public fetchResults_args() public override bool Equals(object that) { - if (!(that is fetchResults_args other)) return false; + 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)))); } @@ -9469,21 +8796,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1332 = new StringBuilder("fetchResults_args("); - int tmp1333 = 0; + var sb = new StringBuilder("fetchResults_args("); + int tmp470 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1333++) { tmp1332.Append(", "); } - tmp1332.Append("Req: "); - Req.ToString(tmp1332); + if(0 < tmp470++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1332.Append(')'); - return tmp1332.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class fetchResults_result : TBase + public partial class fetchResultsResult : TBase { private TSFetchResultsResp _success; @@ -9507,7 +8834,7 @@ public struct Isset public bool success; } - public fetchResults_result() + public fetchResultsResult() { } @@ -9560,18 +8887,18 @@ public fetchResults_result() oprot.IncrementRecursionDepth(); try { - var tmp1334 = new TStruct("fetchResults_result"); - await oprot.WriteStructBeginAsync(tmp1334, cancellationToken); - var tmp1335 = new TField(); + var struc = new TStruct("fetchResults_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1335.Name = "Success"; - tmp1335.Type = TType.Struct; - tmp1335.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1335, 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); } @@ -9587,7 +8914,7 @@ public fetchResults_result() public override bool Equals(object that) { - if (!(that is fetchResults_result other)) return false; + 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)))); } @@ -9605,21 +8932,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1336 = new StringBuilder("fetchResults_result("); - int tmp1337 = 0; + var sb = new StringBuilder("fetchResults_result("); + int tmp471 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1337++) { tmp1336.Append(", "); } - tmp1336.Append("Success: "); - Success.ToString(tmp1336); + if(0 < tmp471++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1336.Append(')'); - return tmp1336.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class fetchMetadata_args : TBase + public partial class fetchMetadataArgs : TBase { private TSFetchMetadataReq _req; @@ -9643,7 +8970,7 @@ public struct Isset public bool req; } - public fetchMetadata_args() + public fetchMetadataArgs() { } @@ -9696,15 +9023,15 @@ public fetchMetadata_args() oprot.IncrementRecursionDepth(); try { - var tmp1338 = new TStruct("fetchMetadata_args"); - await oprot.WriteStructBeginAsync(tmp1338, cancellationToken); - var tmp1339 = new TField(); + var struc = new TStruct("fetchMetadata_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1339.Name = "req"; - tmp1339.Type = TType.Struct; - tmp1339.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1339, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -9719,7 +9046,7 @@ public fetchMetadata_args() public override bool Equals(object that) { - if (!(that is fetchMetadata_args other)) return false; + 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)))); } @@ -9737,21 +9064,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1340 = new StringBuilder("fetchMetadata_args("); - int tmp1341 = 0; + var sb = new StringBuilder("fetchMetadata_args("); + int tmp472 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1341++) { tmp1340.Append(", "); } - tmp1340.Append("Req: "); - Req.ToString(tmp1340); + if(0 < tmp472++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1340.Append(')'); - return tmp1340.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class fetchMetadata_result : TBase + public partial class fetchMetadataResult : TBase { private TSFetchMetadataResp _success; @@ -9775,7 +9102,7 @@ public struct Isset public bool success; } - public fetchMetadata_result() + public fetchMetadataResult() { } @@ -9828,18 +9155,18 @@ public fetchMetadata_result() oprot.IncrementRecursionDepth(); try { - var tmp1342 = new TStruct("fetchMetadata_result"); - await oprot.WriteStructBeginAsync(tmp1342, cancellationToken); - var tmp1343 = new TField(); + var struc = new TStruct("fetchMetadata_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1343.Name = "Success"; - tmp1343.Type = TType.Struct; - tmp1343.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1343, 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); } @@ -9855,7 +9182,7 @@ public fetchMetadata_result() public override bool Equals(object that) { - if (!(that is fetchMetadata_result other)) return false; + 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)))); } @@ -9873,21 +9200,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1344 = new StringBuilder("fetchMetadata_result("); - int tmp1345 = 0; + var sb = new StringBuilder("fetchMetadata_result("); + int tmp473 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1345++) { tmp1344.Append(", "); } - tmp1344.Append("Success: "); - Success.ToString(tmp1344); + if(0 < tmp473++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1344.Append(')'); - return tmp1344.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class cancelOperation_args : TBase + public partial class cancelOperationArgs : TBase { private TSCancelOperationReq _req; @@ -9911,7 +9238,7 @@ public struct Isset public bool req; } - public cancelOperation_args() + public cancelOperationArgs() { } @@ -9964,15 +9291,15 @@ public cancelOperation_args() oprot.IncrementRecursionDepth(); try { - var tmp1346 = new TStruct("cancelOperation_args"); - await oprot.WriteStructBeginAsync(tmp1346, cancellationToken); - var tmp1347 = new TField(); + var struc = new TStruct("cancelOperation_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1347.Name = "req"; - tmp1347.Type = TType.Struct; - tmp1347.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1347, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -9987,7 +9314,7 @@ public cancelOperation_args() public override bool Equals(object that) { - if (!(that is cancelOperation_args other)) return false; + 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)))); } @@ -10005,21 +9332,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1348 = new StringBuilder("cancelOperation_args("); - int tmp1349 = 0; + var sb = new StringBuilder("cancelOperation_args("); + int tmp474 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1349++) { tmp1348.Append(", "); } - tmp1348.Append("Req: "); - Req.ToString(tmp1348); + if(0 < tmp474++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1348.Append(')'); - return tmp1348.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class cancelOperation_result : TBase + public partial class cancelOperationResult : TBase { private TSStatus _success; @@ -10043,7 +9370,7 @@ public struct Isset public bool success; } - public cancelOperation_result() + public cancelOperationResult() { } @@ -10096,18 +9423,18 @@ public cancelOperation_result() oprot.IncrementRecursionDepth(); try { - var tmp1350 = new TStruct("cancelOperation_result"); - await oprot.WriteStructBeginAsync(tmp1350, cancellationToken); - var tmp1351 = new TField(); + var struc = new TStruct("cancelOperation_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1351.Name = "Success"; - tmp1351.Type = TType.Struct; - tmp1351.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1351, 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); } @@ -10123,7 +9450,7 @@ public cancelOperation_result() public override bool Equals(object that) { - if (!(that is cancelOperation_result other)) return false; + 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)))); } @@ -10141,21 +9468,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1352 = new StringBuilder("cancelOperation_result("); - int tmp1353 = 0; + var sb = new StringBuilder("cancelOperation_result("); + int tmp475 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1353++) { tmp1352.Append(", "); } - tmp1352.Append("Success: "); - Success.ToString(tmp1352); + if(0 < tmp475++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1352.Append(')'); - return tmp1352.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class closeOperation_args : TBase + public partial class closeOperationArgs : TBase { private TSCloseOperationReq _req; @@ -10179,7 +9506,7 @@ public struct Isset public bool req; } - public closeOperation_args() + public closeOperationArgs() { } @@ -10232,15 +9559,15 @@ public closeOperation_args() oprot.IncrementRecursionDepth(); try { - var tmp1354 = new TStruct("closeOperation_args"); - await oprot.WriteStructBeginAsync(tmp1354, cancellationToken); - var tmp1355 = new TField(); + var struc = new TStruct("closeOperation_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1355.Name = "req"; - tmp1355.Type = TType.Struct; - tmp1355.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1355, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -10255,7 +9582,7 @@ public closeOperation_args() public override bool Equals(object that) { - if (!(that is closeOperation_args other)) return false; + 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)))); } @@ -10273,21 +9600,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1356 = new StringBuilder("closeOperation_args("); - int tmp1357 = 0; + var sb = new StringBuilder("closeOperation_args("); + int tmp476 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1357++) { tmp1356.Append(", "); } - tmp1356.Append("Req: "); - Req.ToString(tmp1356); + if(0 < tmp476++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1356.Append(')'); - return tmp1356.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class closeOperation_result : TBase + public partial class closeOperationResult : TBase { private TSStatus _success; @@ -10311,7 +9638,7 @@ public struct Isset public bool success; } - public closeOperation_result() + public closeOperationResult() { } @@ -10364,18 +9691,18 @@ public closeOperation_result() oprot.IncrementRecursionDepth(); try { - var tmp1358 = new TStruct("closeOperation_result"); - await oprot.WriteStructBeginAsync(tmp1358, cancellationToken); - var tmp1359 = new TField(); + var struc = new TStruct("closeOperation_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1359.Name = "Success"; - tmp1359.Type = TType.Struct; - tmp1359.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1359, 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); } @@ -10391,7 +9718,7 @@ public closeOperation_result() public override bool Equals(object that) { - if (!(that is closeOperation_result other)) return false; + 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)))); } @@ -10409,21 +9736,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1360 = new StringBuilder("closeOperation_result("); - int tmp1361 = 0; + var sb = new StringBuilder("closeOperation_result("); + int tmp477 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1361++) { tmp1360.Append(", "); } - tmp1360.Append("Success: "); - Success.ToString(tmp1360); + if(0 < tmp477++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1360.Append(')'); - return tmp1360.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class getTimeZone_args : TBase + public partial class getTimeZoneArgs : TBase { private long _sessionId; @@ -10447,7 +9774,7 @@ public struct Isset public bool sessionId; } - public getTimeZone_args() + public getTimeZoneArgs() { } @@ -10499,15 +9826,15 @@ public getTimeZone_args() oprot.IncrementRecursionDepth(); try { - var tmp1362 = new TStruct("getTimeZone_args"); - await oprot.WriteStructBeginAsync(tmp1362, cancellationToken); - var tmp1363 = new TField(); + var struc = new TStruct("getTimeZone_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(__isset.sessionId) { - tmp1363.Name = "sessionId"; - tmp1363.Type = TType.I64; - tmp1363.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1363, cancellationToken); + field.Name = "sessionId"; + field.Type = TType.I64; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -10522,7 +9849,7 @@ public getTimeZone_args() public override bool Equals(object that) { - if (!(that is getTimeZone_args other)) return false; + 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)))); } @@ -10540,21 +9867,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1364 = new StringBuilder("getTimeZone_args("); - int tmp1365 = 0; + var sb = new StringBuilder("getTimeZone_args("); + int tmp478 = 0; if(__isset.sessionId) { - if(0 < tmp1365++) { tmp1364.Append(", "); } - tmp1364.Append("SessionId: "); - SessionId.ToString(tmp1364); + if(0 < tmp478++) { sb.Append(", "); } + sb.Append("SessionId: "); + SessionId.ToString(sb); } - tmp1364.Append(')'); - return tmp1364.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class getTimeZone_result : TBase + public partial class getTimeZoneResult : TBase { private TSGetTimeZoneResp _success; @@ -10578,7 +9905,7 @@ public struct Isset public bool success; } - public getTimeZone_result() + public getTimeZoneResult() { } @@ -10631,18 +9958,18 @@ public getTimeZone_result() oprot.IncrementRecursionDepth(); try { - var tmp1366 = new TStruct("getTimeZone_result"); - await oprot.WriteStructBeginAsync(tmp1366, cancellationToken); - var tmp1367 = new TField(); + var struc = new TStruct("getTimeZone_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1367.Name = "Success"; - tmp1367.Type = TType.Struct; - tmp1367.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1367, 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); } @@ -10658,7 +9985,7 @@ public getTimeZone_result() public override bool Equals(object that) { - if (!(that is getTimeZone_result other)) return false; + 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)))); } @@ -10676,21 +10003,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1368 = new StringBuilder("getTimeZone_result("); - int tmp1369 = 0; + var sb = new StringBuilder("getTimeZone_result("); + int tmp479 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1369++) { tmp1368.Append(", "); } - tmp1368.Append("Success: "); - Success.ToString(tmp1368); + if(0 < tmp479++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1368.Append(')'); - return tmp1368.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class setTimeZone_args : TBase + public partial class setTimeZoneArgs : TBase { private TSSetTimeZoneReq _req; @@ -10714,7 +10041,7 @@ public struct Isset public bool req; } - public setTimeZone_args() + public setTimeZoneArgs() { } @@ -10767,15 +10094,15 @@ public setTimeZone_args() oprot.IncrementRecursionDepth(); try { - var tmp1370 = new TStruct("setTimeZone_args"); - await oprot.WriteStructBeginAsync(tmp1370, cancellationToken); - var tmp1371 = new TField(); + var struc = new TStruct("setTimeZone_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1371.Name = "req"; - tmp1371.Type = TType.Struct; - tmp1371.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1371, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -10790,7 +10117,7 @@ public setTimeZone_args() public override bool Equals(object that) { - if (!(that is setTimeZone_args other)) return false; + 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)))); } @@ -10808,21 +10135,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1372 = new StringBuilder("setTimeZone_args("); - int tmp1373 = 0; + var sb = new StringBuilder("setTimeZone_args("); + int tmp480 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1373++) { tmp1372.Append(", "); } - tmp1372.Append("Req: "); - Req.ToString(tmp1372); + if(0 < tmp480++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1372.Append(')'); - return tmp1372.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class setTimeZone_result : TBase + public partial class setTimeZoneResult : TBase { private TSStatus _success; @@ -10846,7 +10173,7 @@ public struct Isset public bool success; } - public setTimeZone_result() + public setTimeZoneResult() { } @@ -10899,18 +10226,18 @@ public setTimeZone_result() oprot.IncrementRecursionDepth(); try { - var tmp1374 = new TStruct("setTimeZone_result"); - await oprot.WriteStructBeginAsync(tmp1374, cancellationToken); - var tmp1375 = new TField(); + var struc = new TStruct("setTimeZone_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1375.Name = "Success"; - tmp1375.Type = TType.Struct; - tmp1375.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1375, 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); } @@ -10926,7 +10253,7 @@ public setTimeZone_result() public override bool Equals(object that) { - if (!(that is setTimeZone_result other)) return false; + 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)))); } @@ -10944,24 +10271,24 @@ public override int GetHashCode() { public override string ToString() { - var tmp1376 = new StringBuilder("setTimeZone_result("); - int tmp1377 = 0; + var sb = new StringBuilder("setTimeZone_result("); + int tmp481 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1377++) { tmp1376.Append(", "); } - tmp1376.Append("Success: "); - Success.ToString(tmp1376); + if(0 < tmp481++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1376.Append(')'); - return tmp1376.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class getProperties_args : TBase + public partial class getPropertiesArgs : TBase { - public getProperties_args() + public getPropertiesArgs() { } @@ -11003,8 +10330,8 @@ public getProperties_args() oprot.IncrementRecursionDepth(); try { - var tmp1378 = new TStruct("getProperties_args"); - await oprot.WriteStructBeginAsync(tmp1378, cancellationToken); + var struc = new TStruct("getProperties_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -11016,7 +10343,7 @@ public getProperties_args() public override bool Equals(object that) { - if (!(that is getProperties_args other)) return false; + if (!(that is getPropertiesArgs other)) return false; if (ReferenceEquals(this, other)) return true; return true; } @@ -11030,14 +10357,14 @@ public override int GetHashCode() { public override string ToString() { - var tmp1379 = new StringBuilder("getProperties_args("); - tmp1379.Append(')'); - return tmp1379.ToString(); + var sb = new StringBuilder("getProperties_args("); + sb.Append(')'); + return sb.ToString(); } } - public partial class getProperties_result : TBase + public partial class getPropertiesResult : TBase { private ServerProperties _success; @@ -11061,7 +10388,7 @@ public struct Isset public bool success; } - public getProperties_result() + public getPropertiesResult() { } @@ -11114,18 +10441,18 @@ public getProperties_result() oprot.IncrementRecursionDepth(); try { - var tmp1381 = new TStruct("getProperties_result"); - await oprot.WriteStructBeginAsync(tmp1381, cancellationToken); - var tmp1382 = new TField(); + var struc = new TStruct("getProperties_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1382.Name = "Success"; - tmp1382.Type = TType.Struct; - tmp1382.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1382, 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); } @@ -11141,7 +10468,7 @@ public getProperties_result() public override bool Equals(object that) { - if (!(that is getProperties_result other)) return false; + 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)))); } @@ -11159,21 +10486,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1383 = new StringBuilder("getProperties_result("); - int tmp1384 = 0; + var sb = new StringBuilder("getProperties_result("); + int tmp483 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1384++) { tmp1383.Append(", "); } - tmp1383.Append("Success: "); - Success.ToString(tmp1383); + if(0 < tmp483++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1383.Append(')'); - return tmp1383.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class setStorageGroup_args : TBase + public partial class setStorageGroupArgs : TBase { private long _sessionId; private string _storageGroup; @@ -11212,7 +10539,7 @@ public struct Isset public bool storageGroup; } - public setStorageGroup_args() + public setStorageGroupArgs() { } @@ -11274,24 +10601,24 @@ public setStorageGroup_args() oprot.IncrementRecursionDepth(); try { - var tmp1385 = new TStruct("setStorageGroup_args"); - await oprot.WriteStructBeginAsync(tmp1385, cancellationToken); - var tmp1386 = new TField(); + var struc = new TStruct("setStorageGroup_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(__isset.sessionId) { - tmp1386.Name = "sessionId"; - tmp1386.Type = TType.I64; - tmp1386.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1386, cancellationToken); + 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) { - tmp1386.Name = "storageGroup"; - tmp1386.Type = TType.String; - tmp1386.ID = 2; - await oprot.WriteFieldBeginAsync(tmp1386, cancellationToken); + field.Name = "storageGroup"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteStringAsync(StorageGroup, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -11306,7 +10633,7 @@ public setStorageGroup_args() public override bool Equals(object that) { - if (!(that is setStorageGroup_args other)) return false; + 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)))); @@ -11329,27 +10656,27 @@ public override int GetHashCode() { public override string ToString() { - var tmp1387 = new StringBuilder("setStorageGroup_args("); - int tmp1388 = 0; + var sb = new StringBuilder("setStorageGroup_args("); + int tmp484 = 0; if(__isset.sessionId) { - if(0 < tmp1388++) { tmp1387.Append(", "); } - tmp1387.Append("SessionId: "); - SessionId.ToString(tmp1387); + if(0 < tmp484++) { sb.Append(", "); } + sb.Append("SessionId: "); + SessionId.ToString(sb); } if((StorageGroup != null) && __isset.storageGroup) { - if(0 < tmp1388++) { tmp1387.Append(", "); } - tmp1387.Append("StorageGroup: "); - StorageGroup.ToString(tmp1387); + if(0 < tmp484++) { sb.Append(", "); } + sb.Append("StorageGroup: "); + StorageGroup.ToString(sb); } - tmp1387.Append(')'); - return tmp1387.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class setStorageGroup_result : TBase + public partial class setStorageGroupResult : TBase { private TSStatus _success; @@ -11373,7 +10700,7 @@ public struct Isset public bool success; } - public setStorageGroup_result() + public setStorageGroupResult() { } @@ -11426,18 +10753,18 @@ public setStorageGroup_result() oprot.IncrementRecursionDepth(); try { - var tmp1389 = new TStruct("setStorageGroup_result"); - await oprot.WriteStructBeginAsync(tmp1389, cancellationToken); - var tmp1390 = new TField(); + var struc = new TStruct("setStorageGroup_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1390.Name = "Success"; - tmp1390.Type = TType.Struct; - tmp1390.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1390, 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); } @@ -11453,7 +10780,7 @@ public setStorageGroup_result() public override bool Equals(object that) { - if (!(that is setStorageGroup_result other)) return false; + 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)))); } @@ -11471,21 +10798,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1391 = new StringBuilder("setStorageGroup_result("); - int tmp1392 = 0; + var sb = new StringBuilder("setStorageGroup_result("); + int tmp485 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1392++) { tmp1391.Append(", "); } - tmp1391.Append("Success: "); - Success.ToString(tmp1391); + if(0 < tmp485++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1391.Append(')'); - return tmp1391.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class createTimeseries_args : TBase + public partial class createTimeseriesArgs : TBase { private TSCreateTimeseriesReq _req; @@ -11509,7 +10836,7 @@ public struct Isset public bool req; } - public createTimeseries_args() + public createTimeseriesArgs() { } @@ -11562,15 +10889,15 @@ public createTimeseries_args() oprot.IncrementRecursionDepth(); try { - var tmp1393 = new TStruct("createTimeseries_args"); - await oprot.WriteStructBeginAsync(tmp1393, cancellationToken); - var tmp1394 = new TField(); + var struc = new TStruct("createTimeseries_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1394.Name = "req"; - tmp1394.Type = TType.Struct; - tmp1394.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1394, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -11585,7 +10912,7 @@ public createTimeseries_args() public override bool Equals(object that) { - if (!(that is createTimeseries_args other)) return false; + 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)))); } @@ -11603,21 +10930,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1395 = new StringBuilder("createTimeseries_args("); - int tmp1396 = 0; + var sb = new StringBuilder("createTimeseries_args("); + int tmp486 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1396++) { tmp1395.Append(", "); } - tmp1395.Append("Req: "); - Req.ToString(tmp1395); + if(0 < tmp486++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1395.Append(')'); - return tmp1395.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class createTimeseries_result : TBase + public partial class createTimeseriesResult : TBase { private TSStatus _success; @@ -11641,7 +10968,7 @@ public struct Isset public bool success; } - public createTimeseries_result() + public createTimeseriesResult() { } @@ -11694,18 +11021,18 @@ public createTimeseries_result() oprot.IncrementRecursionDepth(); try { - var tmp1397 = new TStruct("createTimeseries_result"); - await oprot.WriteStructBeginAsync(tmp1397, cancellationToken); - var tmp1398 = new TField(); + var struc = new TStruct("createTimeseries_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1398.Name = "Success"; - tmp1398.Type = TType.Struct; - tmp1398.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1398, 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); } @@ -11721,7 +11048,7 @@ public createTimeseries_result() public override bool Equals(object that) { - if (!(that is createTimeseries_result other)) return false; + 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)))); } @@ -11739,21 +11066,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1399 = new StringBuilder("createTimeseries_result("); - int tmp1400 = 0; + var sb = new StringBuilder("createTimeseries_result("); + int tmp487 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1400++) { tmp1399.Append(", "); } - tmp1399.Append("Success: "); - Success.ToString(tmp1399); + if(0 < tmp487++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1399.Append(')'); - return tmp1399.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class createAlignedTimeseries_args : TBase + public partial class createAlignedTimeseriesArgs : TBase { private TSCreateAlignedTimeseriesReq _req; @@ -11777,7 +11104,7 @@ public struct Isset public bool req; } - public createAlignedTimeseries_args() + public createAlignedTimeseriesArgs() { } @@ -11830,15 +11157,15 @@ public createAlignedTimeseries_args() oprot.IncrementRecursionDepth(); try { - var tmp1401 = new TStruct("createAlignedTimeseries_args"); - await oprot.WriteStructBeginAsync(tmp1401, cancellationToken); - var tmp1402 = new TField(); + var struc = new TStruct("createAlignedTimeseries_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1402.Name = "req"; - tmp1402.Type = TType.Struct; - tmp1402.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1402, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -11853,7 +11180,7 @@ public createAlignedTimeseries_args() public override bool Equals(object that) { - if (!(that is createAlignedTimeseries_args other)) return false; + 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)))); } @@ -11871,21 +11198,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1403 = new StringBuilder("createAlignedTimeseries_args("); - int tmp1404 = 0; + var sb = new StringBuilder("createAlignedTimeseries_args("); + int tmp488 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1404++) { tmp1403.Append(", "); } - tmp1403.Append("Req: "); - Req.ToString(tmp1403); + if(0 < tmp488++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1403.Append(')'); - return tmp1403.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class createAlignedTimeseries_result : TBase + public partial class createAlignedTimeseriesResult : TBase { private TSStatus _success; @@ -11909,7 +11236,7 @@ public struct Isset public bool success; } - public createAlignedTimeseries_result() + public createAlignedTimeseriesResult() { } @@ -11962,18 +11289,18 @@ public createAlignedTimeseries_result() oprot.IncrementRecursionDepth(); try { - var tmp1405 = new TStruct("createAlignedTimeseries_result"); - await oprot.WriteStructBeginAsync(tmp1405, cancellationToken); - var tmp1406 = new TField(); + var struc = new TStruct("createAlignedTimeseries_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1406.Name = "Success"; - tmp1406.Type = TType.Struct; - tmp1406.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1406, 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); } @@ -11989,7 +11316,7 @@ public createAlignedTimeseries_result() public override bool Equals(object that) { - if (!(that is createAlignedTimeseries_result other)) return false; + 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)))); } @@ -12007,21 +11334,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1407 = new StringBuilder("createAlignedTimeseries_result("); - int tmp1408 = 0; + var sb = new StringBuilder("createAlignedTimeseries_result("); + int tmp489 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1408++) { tmp1407.Append(", "); } - tmp1407.Append("Success: "); - Success.ToString(tmp1407); + if(0 < tmp489++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1407.Append(')'); - return tmp1407.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class createMultiTimeseries_args : TBase + public partial class createMultiTimeseriesArgs : TBase { private TSCreateMultiTimeseriesReq _req; @@ -12045,7 +11372,7 @@ public struct Isset public bool req; } - public createMultiTimeseries_args() + public createMultiTimeseriesArgs() { } @@ -12098,15 +11425,15 @@ public createMultiTimeseries_args() oprot.IncrementRecursionDepth(); try { - var tmp1409 = new TStruct("createMultiTimeseries_args"); - await oprot.WriteStructBeginAsync(tmp1409, cancellationToken); - var tmp1410 = new TField(); + var struc = new TStruct("createMultiTimeseries_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1410.Name = "req"; - tmp1410.Type = TType.Struct; - tmp1410.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1410, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -12121,7 +11448,7 @@ public createMultiTimeseries_args() public override bool Equals(object that) { - if (!(that is createMultiTimeseries_args other)) return false; + 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)))); } @@ -12139,21 +11466,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1411 = new StringBuilder("createMultiTimeseries_args("); - int tmp1412 = 0; + var sb = new StringBuilder("createMultiTimeseries_args("); + int tmp490 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1412++) { tmp1411.Append(", "); } - tmp1411.Append("Req: "); - Req.ToString(tmp1411); + if(0 < tmp490++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1411.Append(')'); - return tmp1411.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class createMultiTimeseries_result : TBase + public partial class createMultiTimeseriesResult : TBase { private TSStatus _success; @@ -12177,7 +11504,7 @@ public struct Isset public bool success; } - public createMultiTimeseries_result() + public createMultiTimeseriesResult() { } @@ -12230,18 +11557,18 @@ public createMultiTimeseries_result() oprot.IncrementRecursionDepth(); try { - var tmp1413 = new TStruct("createMultiTimeseries_result"); - await oprot.WriteStructBeginAsync(tmp1413, cancellationToken); - var tmp1414 = new TField(); + var struc = new TStruct("createMultiTimeseries_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1414.Name = "Success"; - tmp1414.Type = TType.Struct; - tmp1414.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1414, 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); } @@ -12257,7 +11584,7 @@ public createMultiTimeseries_result() public override bool Equals(object that) { - if (!(that is createMultiTimeseries_result other)) return false; + 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)))); } @@ -12275,21 +11602,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1415 = new StringBuilder("createMultiTimeseries_result("); - int tmp1416 = 0; + var sb = new StringBuilder("createMultiTimeseries_result("); + int tmp491 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1416++) { tmp1415.Append(", "); } - tmp1415.Append("Success: "); - Success.ToString(tmp1415); + if(0 < tmp491++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1415.Append(')'); - return tmp1415.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class deleteTimeseries_args : TBase + public partial class deleteTimeseriesArgs : TBase { private long _sessionId; private List _path; @@ -12328,7 +11655,7 @@ public struct Isset public bool path; } - public deleteTimeseries_args() + public deleteTimeseriesArgs() { } @@ -12363,13 +11690,13 @@ public deleteTimeseries_args() if (field.Type == TType.List) { { - TList _list1417 = await iprot.ReadListBeginAsync(cancellationToken); - Path = new List(_list1417.Count); - for(int _i1418 = 0; _i1418 < _list1417.Count; ++_i1418) + TList _list492 = await iprot.ReadListBeginAsync(cancellationToken); + Path = new List(_list492.Count); + for(int _i493 = 0; _i493 < _list492.Count; ++_i493) { - string _elem1419; - _elem1419 = await iprot.ReadStringAsync(cancellationToken); - Path.Add(_elem1419); + string _elem494; + _elem494 = await iprot.ReadStringAsync(cancellationToken); + Path.Add(_elem494); } await iprot.ReadListEndAsync(cancellationToken); } @@ -12400,29 +11727,29 @@ public deleteTimeseries_args() oprot.IncrementRecursionDepth(); try { - var tmp1420 = new TStruct("deleteTimeseries_args"); - await oprot.WriteStructBeginAsync(tmp1420, cancellationToken); - var tmp1421 = new TField(); + var struc = new TStruct("deleteTimeseries_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(__isset.sessionId) { - tmp1421.Name = "sessionId"; - tmp1421.Type = TType.I64; - tmp1421.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1421, cancellationToken); + 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) { - tmp1421.Name = "path"; - tmp1421.Type = TType.List; - tmp1421.ID = 2; - await oprot.WriteFieldBeginAsync(tmp1421, cancellationToken); + 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 _iter1422 in Path) + foreach (string _iter495 in Path) { - await oprot.WriteStringAsync(_iter1422, cancellationToken); + await oprot.WriteStringAsync(_iter495, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -12439,7 +11766,7 @@ public deleteTimeseries_args() public override bool Equals(object that) { - if (!(that is deleteTimeseries_args other)) return false; + 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)))); @@ -12462,27 +11789,27 @@ public override int GetHashCode() { public override string ToString() { - var tmp1423 = new StringBuilder("deleteTimeseries_args("); - int tmp1424 = 0; + var sb = new StringBuilder("deleteTimeseries_args("); + int tmp496 = 0; if(__isset.sessionId) { - if(0 < tmp1424++) { tmp1423.Append(", "); } - tmp1423.Append("SessionId: "); - SessionId.ToString(tmp1423); + if(0 < tmp496++) { sb.Append(", "); } + sb.Append("SessionId: "); + SessionId.ToString(sb); } if((Path != null) && __isset.path) { - if(0 < tmp1424++) { tmp1423.Append(", "); } - tmp1423.Append("Path: "); - Path.ToString(tmp1423); + if(0 < tmp496++) { sb.Append(", "); } + sb.Append("Path: "); + Path.ToString(sb); } - tmp1423.Append(')'); - return tmp1423.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class deleteTimeseries_result : TBase + public partial class deleteTimeseriesResult : TBase { private TSStatus _success; @@ -12506,7 +11833,7 @@ public struct Isset public bool success; } - public deleteTimeseries_result() + public deleteTimeseriesResult() { } @@ -12559,18 +11886,18 @@ public deleteTimeseries_result() oprot.IncrementRecursionDepth(); try { - var tmp1425 = new TStruct("deleteTimeseries_result"); - await oprot.WriteStructBeginAsync(tmp1425, cancellationToken); - var tmp1426 = new TField(); + var struc = new TStruct("deleteTimeseries_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1426.Name = "Success"; - tmp1426.Type = TType.Struct; - tmp1426.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1426, 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); } @@ -12586,7 +11913,7 @@ public deleteTimeseries_result() public override bool Equals(object that) { - if (!(that is deleteTimeseries_result other)) return false; + 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)))); } @@ -12604,21 +11931,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1427 = new StringBuilder("deleteTimeseries_result("); - int tmp1428 = 0; + var sb = new StringBuilder("deleteTimeseries_result("); + int tmp497 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1428++) { tmp1427.Append(", "); } - tmp1427.Append("Success: "); - Success.ToString(tmp1427); + if(0 < tmp497++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1427.Append(')'); - return tmp1427.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class deleteStorageGroups_args : TBase + public partial class deleteStorageGroupsArgs : TBase { private long _sessionId; private List _storageGroup; @@ -12657,7 +11984,7 @@ public struct Isset public bool storageGroup; } - public deleteStorageGroups_args() + public deleteStorageGroupsArgs() { } @@ -12692,13 +12019,13 @@ public deleteStorageGroups_args() if (field.Type == TType.List) { { - TList _list1429 = await iprot.ReadListBeginAsync(cancellationToken); - StorageGroup = new List(_list1429.Count); - for(int _i1430 = 0; _i1430 < _list1429.Count; ++_i1430) + TList _list498 = await iprot.ReadListBeginAsync(cancellationToken); + StorageGroup = new List(_list498.Count); + for(int _i499 = 0; _i499 < _list498.Count; ++_i499) { - string _elem1431; - _elem1431 = await iprot.ReadStringAsync(cancellationToken); - StorageGroup.Add(_elem1431); + string _elem500; + _elem500 = await iprot.ReadStringAsync(cancellationToken); + StorageGroup.Add(_elem500); } await iprot.ReadListEndAsync(cancellationToken); } @@ -12729,29 +12056,29 @@ public deleteStorageGroups_args() oprot.IncrementRecursionDepth(); try { - var tmp1432 = new TStruct("deleteStorageGroups_args"); - await oprot.WriteStructBeginAsync(tmp1432, cancellationToken); - var tmp1433 = new TField(); + var struc = new TStruct("deleteStorageGroups_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(__isset.sessionId) { - tmp1433.Name = "sessionId"; - tmp1433.Type = TType.I64; - tmp1433.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1433, cancellationToken); + 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) { - tmp1433.Name = "storageGroup"; - tmp1433.Type = TType.List; - tmp1433.ID = 2; - await oprot.WriteFieldBeginAsync(tmp1433, cancellationToken); + 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 _iter1434 in StorageGroup) + foreach (string _iter501 in StorageGroup) { - await oprot.WriteStringAsync(_iter1434, cancellationToken); + await oprot.WriteStringAsync(_iter501, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -12768,7 +12095,7 @@ public deleteStorageGroups_args() public override bool Equals(object that) { - if (!(that is deleteStorageGroups_args other)) return false; + 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)))); @@ -12791,27 +12118,27 @@ public override int GetHashCode() { public override string ToString() { - var tmp1435 = new StringBuilder("deleteStorageGroups_args("); - int tmp1436 = 0; + var sb = new StringBuilder("deleteStorageGroups_args("); + int tmp502 = 0; if(__isset.sessionId) { - if(0 < tmp1436++) { tmp1435.Append(", "); } - tmp1435.Append("SessionId: "); - SessionId.ToString(tmp1435); + if(0 < tmp502++) { sb.Append(", "); } + sb.Append("SessionId: "); + SessionId.ToString(sb); } if((StorageGroup != null) && __isset.storageGroup) { - if(0 < tmp1436++) { tmp1435.Append(", "); } - tmp1435.Append("StorageGroup: "); - StorageGroup.ToString(tmp1435); + if(0 < tmp502++) { sb.Append(", "); } + sb.Append("StorageGroup: "); + StorageGroup.ToString(sb); } - tmp1435.Append(')'); - return tmp1435.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class deleteStorageGroups_result : TBase + public partial class deleteStorageGroupsResult : TBase { private TSStatus _success; @@ -12835,7 +12162,7 @@ public struct Isset public bool success; } - public deleteStorageGroups_result() + public deleteStorageGroupsResult() { } @@ -12888,18 +12215,18 @@ public deleteStorageGroups_result() oprot.IncrementRecursionDepth(); try { - var tmp1437 = new TStruct("deleteStorageGroups_result"); - await oprot.WriteStructBeginAsync(tmp1437, cancellationToken); - var tmp1438 = new TField(); + var struc = new TStruct("deleteStorageGroups_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1438.Name = "Success"; - tmp1438.Type = TType.Struct; - tmp1438.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1438, 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); } @@ -12915,7 +12242,7 @@ public deleteStorageGroups_result() public override bool Equals(object that) { - if (!(that is deleteStorageGroups_result other)) return false; + 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)))); } @@ -12933,21 +12260,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1439 = new StringBuilder("deleteStorageGroups_result("); - int tmp1440 = 0; + var sb = new StringBuilder("deleteStorageGroups_result("); + int tmp503 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1440++) { tmp1439.Append(", "); } - tmp1439.Append("Success: "); - Success.ToString(tmp1439); + if(0 < tmp503++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1439.Append(')'); - return tmp1439.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class insertRecord_args : TBase + public partial class insertRecordArgs : TBase { private TSInsertRecordReq _req; @@ -12971,7 +12298,7 @@ public struct Isset public bool req; } - public insertRecord_args() + public insertRecordArgs() { } @@ -13024,15 +12351,15 @@ public insertRecord_args() oprot.IncrementRecursionDepth(); try { - var tmp1441 = new TStruct("insertRecord_args"); - await oprot.WriteStructBeginAsync(tmp1441, cancellationToken); - var tmp1442 = new TField(); + var struc = new TStruct("insertRecord_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1442.Name = "req"; - tmp1442.Type = TType.Struct; - tmp1442.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1442, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -13047,7 +12374,7 @@ public insertRecord_args() public override bool Equals(object that) { - if (!(that is insertRecord_args other)) return false; + 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)))); } @@ -13065,21 +12392,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1443 = new StringBuilder("insertRecord_args("); - int tmp1444 = 0; + var sb = new StringBuilder("insertRecord_args("); + int tmp504 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1444++) { tmp1443.Append(", "); } - tmp1443.Append("Req: "); - Req.ToString(tmp1443); + if(0 < tmp504++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1443.Append(')'); - return tmp1443.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class insertRecord_result : TBase + public partial class insertRecordResult : TBase { private TSStatus _success; @@ -13103,7 +12430,7 @@ public struct Isset public bool success; } - public insertRecord_result() + public insertRecordResult() { } @@ -13156,18 +12483,18 @@ public insertRecord_result() oprot.IncrementRecursionDepth(); try { - var tmp1445 = new TStruct("insertRecord_result"); - await oprot.WriteStructBeginAsync(tmp1445, cancellationToken); - var tmp1446 = new TField(); + var struc = new TStruct("insertRecord_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1446.Name = "Success"; - tmp1446.Type = TType.Struct; - tmp1446.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1446, 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); } @@ -13183,7 +12510,7 @@ public insertRecord_result() public override bool Equals(object that) { - if (!(that is insertRecord_result other)) return false; + 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)))); } @@ -13201,21 +12528,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1447 = new StringBuilder("insertRecord_result("); - int tmp1448 = 0; + var sb = new StringBuilder("insertRecord_result("); + int tmp505 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1448++) { tmp1447.Append(", "); } - tmp1447.Append("Success: "); - Success.ToString(tmp1447); + if(0 < tmp505++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1447.Append(')'); - return tmp1447.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class insertStringRecord_args : TBase + public partial class insertStringRecordArgs : TBase { private TSInsertStringRecordReq _req; @@ -13239,7 +12566,7 @@ public struct Isset public bool req; } - public insertStringRecord_args() + public insertStringRecordArgs() { } @@ -13292,15 +12619,15 @@ public insertStringRecord_args() oprot.IncrementRecursionDepth(); try { - var tmp1449 = new TStruct("insertStringRecord_args"); - await oprot.WriteStructBeginAsync(tmp1449, cancellationToken); - var tmp1450 = new TField(); + var struc = new TStruct("insertStringRecord_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1450.Name = "req"; - tmp1450.Type = TType.Struct; - tmp1450.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1450, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -13315,7 +12642,7 @@ public insertStringRecord_args() public override bool Equals(object that) { - if (!(that is insertStringRecord_args other)) return false; + 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)))); } @@ -13333,21 +12660,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1451 = new StringBuilder("insertStringRecord_args("); - int tmp1452 = 0; + var sb = new StringBuilder("insertStringRecord_args("); + int tmp506 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1452++) { tmp1451.Append(", "); } - tmp1451.Append("Req: "); - Req.ToString(tmp1451); + if(0 < tmp506++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1451.Append(')'); - return tmp1451.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class insertStringRecord_result : TBase + public partial class insertStringRecordResult : TBase { private TSStatus _success; @@ -13371,7 +12698,7 @@ public struct Isset public bool success; } - public insertStringRecord_result() + public insertStringRecordResult() { } @@ -13424,18 +12751,18 @@ public insertStringRecord_result() oprot.IncrementRecursionDepth(); try { - var tmp1453 = new TStruct("insertStringRecord_result"); - await oprot.WriteStructBeginAsync(tmp1453, cancellationToken); - var tmp1454 = new TField(); + var struc = new TStruct("insertStringRecord_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1454.Name = "Success"; - tmp1454.Type = TType.Struct; - tmp1454.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1454, 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); } @@ -13451,7 +12778,7 @@ public insertStringRecord_result() public override bool Equals(object that) { - if (!(that is insertStringRecord_result other)) return false; + 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)))); } @@ -13469,21 +12796,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1455 = new StringBuilder("insertStringRecord_result("); - int tmp1456 = 0; + var sb = new StringBuilder("insertStringRecord_result("); + int tmp507 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1456++) { tmp1455.Append(", "); } - tmp1455.Append("Success: "); - Success.ToString(tmp1455); + if(0 < tmp507++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1455.Append(')'); - return tmp1455.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class insertTablet_args : TBase + public partial class insertTabletArgs : TBase { private TSInsertTabletReq _req; @@ -13507,7 +12834,7 @@ public struct Isset public bool req; } - public insertTablet_args() + public insertTabletArgs() { } @@ -13560,15 +12887,15 @@ public insertTablet_args() oprot.IncrementRecursionDepth(); try { - var tmp1457 = new TStruct("insertTablet_args"); - await oprot.WriteStructBeginAsync(tmp1457, cancellationToken); - var tmp1458 = new TField(); + var struc = new TStruct("insertTablet_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1458.Name = "req"; - tmp1458.Type = TType.Struct; - tmp1458.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1458, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -13583,7 +12910,7 @@ public insertTablet_args() public override bool Equals(object that) { - if (!(that is insertTablet_args other)) return false; + 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)))); } @@ -13601,21 +12928,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1459 = new StringBuilder("insertTablet_args("); - int tmp1460 = 0; + var sb = new StringBuilder("insertTablet_args("); + int tmp508 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1460++) { tmp1459.Append(", "); } - tmp1459.Append("Req: "); - Req.ToString(tmp1459); + if(0 < tmp508++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1459.Append(')'); - return tmp1459.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class insertTablet_result : TBase + public partial class insertTabletResult : TBase { private TSStatus _success; @@ -13639,7 +12966,7 @@ public struct Isset public bool success; } - public insertTablet_result() + public insertTabletResult() { } @@ -13692,18 +13019,18 @@ public insertTablet_result() oprot.IncrementRecursionDepth(); try { - var tmp1461 = new TStruct("insertTablet_result"); - await oprot.WriteStructBeginAsync(tmp1461, cancellationToken); - var tmp1462 = new TField(); + var struc = new TStruct("insertTablet_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1462.Name = "Success"; - tmp1462.Type = TType.Struct; - tmp1462.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1462, 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); } @@ -13719,7 +13046,7 @@ public insertTablet_result() public override bool Equals(object that) { - if (!(that is insertTablet_result other)) return false; + 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)))); } @@ -13737,21 +13064,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1463 = new StringBuilder("insertTablet_result("); - int tmp1464 = 0; + var sb = new StringBuilder("insertTablet_result("); + int tmp509 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1464++) { tmp1463.Append(", "); } - tmp1463.Append("Success: "); - Success.ToString(tmp1463); + if(0 < tmp509++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1463.Append(')'); - return tmp1463.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class insertTablets_args : TBase + public partial class insertTabletsArgs : TBase { private TSInsertTabletsReq _req; @@ -13775,7 +13102,7 @@ public struct Isset public bool req; } - public insertTablets_args() + public insertTabletsArgs() { } @@ -13828,15 +13155,15 @@ public insertTablets_args() oprot.IncrementRecursionDepth(); try { - var tmp1465 = new TStruct("insertTablets_args"); - await oprot.WriteStructBeginAsync(tmp1465, cancellationToken); - var tmp1466 = new TField(); + var struc = new TStruct("insertTablets_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1466.Name = "req"; - tmp1466.Type = TType.Struct; - tmp1466.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1466, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -13851,7 +13178,7 @@ public insertTablets_args() public override bool Equals(object that) { - if (!(that is insertTablets_args other)) return false; + 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)))); } @@ -13869,21 +13196,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1467 = new StringBuilder("insertTablets_args("); - int tmp1468 = 0; + var sb = new StringBuilder("insertTablets_args("); + int tmp510 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1468++) { tmp1467.Append(", "); } - tmp1467.Append("Req: "); - Req.ToString(tmp1467); + if(0 < tmp510++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1467.Append(')'); - return tmp1467.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class insertTablets_result : TBase + public partial class insertTabletsResult : TBase { private TSStatus _success; @@ -13907,7 +13234,7 @@ public struct Isset public bool success; } - public insertTablets_result() + public insertTabletsResult() { } @@ -13960,18 +13287,18 @@ public insertTablets_result() oprot.IncrementRecursionDepth(); try { - var tmp1469 = new TStruct("insertTablets_result"); - await oprot.WriteStructBeginAsync(tmp1469, cancellationToken); - var tmp1470 = new TField(); + var struc = new TStruct("insertTablets_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1470.Name = "Success"; - tmp1470.Type = TType.Struct; - tmp1470.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1470, 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); } @@ -13987,7 +13314,7 @@ public insertTablets_result() public override bool Equals(object that) { - if (!(that is insertTablets_result other)) return false; + 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)))); } @@ -14005,21 +13332,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1471 = new StringBuilder("insertTablets_result("); - int tmp1472 = 0; + var sb = new StringBuilder("insertTablets_result("); + int tmp511 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1472++) { tmp1471.Append(", "); } - tmp1471.Append("Success: "); - Success.ToString(tmp1471); + if(0 < tmp511++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1471.Append(')'); - return tmp1471.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class insertRecords_args : TBase + public partial class insertRecordsArgs : TBase { private TSInsertRecordsReq _req; @@ -14043,7 +13370,7 @@ public struct Isset public bool req; } - public insertRecords_args() + public insertRecordsArgs() { } @@ -14096,15 +13423,15 @@ public insertRecords_args() oprot.IncrementRecursionDepth(); try { - var tmp1473 = new TStruct("insertRecords_args"); - await oprot.WriteStructBeginAsync(tmp1473, cancellationToken); - var tmp1474 = new TField(); + var struc = new TStruct("insertRecords_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1474.Name = "req"; - tmp1474.Type = TType.Struct; - tmp1474.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1474, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -14119,7 +13446,7 @@ public insertRecords_args() public override bool Equals(object that) { - if (!(that is insertRecords_args other)) return false; + 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)))); } @@ -14137,21 +13464,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1475 = new StringBuilder("insertRecords_args("); - int tmp1476 = 0; + var sb = new StringBuilder("insertRecords_args("); + int tmp512 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1476++) { tmp1475.Append(", "); } - tmp1475.Append("Req: "); - Req.ToString(tmp1475); + if(0 < tmp512++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1475.Append(')'); - return tmp1475.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class insertRecords_result : TBase + public partial class insertRecordsResult : TBase { private TSStatus _success; @@ -14175,7 +13502,7 @@ public struct Isset public bool success; } - public insertRecords_result() + public insertRecordsResult() { } @@ -14228,18 +13555,18 @@ public insertRecords_result() oprot.IncrementRecursionDepth(); try { - var tmp1477 = new TStruct("insertRecords_result"); - await oprot.WriteStructBeginAsync(tmp1477, cancellationToken); - var tmp1478 = new TField(); + var struc = new TStruct("insertRecords_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1478.Name = "Success"; - tmp1478.Type = TType.Struct; - tmp1478.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1478, 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); } @@ -14255,7 +13582,7 @@ public insertRecords_result() public override bool Equals(object that) { - if (!(that is insertRecords_result other)) return false; + 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)))); } @@ -14273,21 +13600,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1479 = new StringBuilder("insertRecords_result("); - int tmp1480 = 0; + var sb = new StringBuilder("insertRecords_result("); + int tmp513 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1480++) { tmp1479.Append(", "); } - tmp1479.Append("Success: "); - Success.ToString(tmp1479); + if(0 < tmp513++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1479.Append(')'); - return tmp1479.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class insertRecordsOfOneDevice_args : TBase + public partial class insertRecordsOfOneDeviceArgs : TBase { private TSInsertRecordsOfOneDeviceReq _req; @@ -14311,7 +13638,7 @@ public struct Isset public bool req; } - public insertRecordsOfOneDevice_args() + public insertRecordsOfOneDeviceArgs() { } @@ -14364,15 +13691,15 @@ public insertRecordsOfOneDevice_args() oprot.IncrementRecursionDepth(); try { - var tmp1481 = new TStruct("insertRecordsOfOneDevice_args"); - await oprot.WriteStructBeginAsync(tmp1481, cancellationToken); - var tmp1482 = new TField(); + var struc = new TStruct("insertRecordsOfOneDevice_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1482.Name = "req"; - tmp1482.Type = TType.Struct; - tmp1482.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1482, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -14387,7 +13714,7 @@ public insertRecordsOfOneDevice_args() public override bool Equals(object that) { - if (!(that is insertRecordsOfOneDevice_args other)) return false; + 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)))); } @@ -14405,21 +13732,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1483 = new StringBuilder("insertRecordsOfOneDevice_args("); - int tmp1484 = 0; + var sb = new StringBuilder("insertRecordsOfOneDevice_args("); + int tmp514 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1484++) { tmp1483.Append(", "); } - tmp1483.Append("Req: "); - Req.ToString(tmp1483); + if(0 < tmp514++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1483.Append(')'); - return tmp1483.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class insertRecordsOfOneDevice_result : TBase + public partial class insertRecordsOfOneDeviceResult : TBase { private TSStatus _success; @@ -14443,7 +13770,7 @@ public struct Isset public bool success; } - public insertRecordsOfOneDevice_result() + public insertRecordsOfOneDeviceResult() { } @@ -14496,18 +13823,18 @@ public insertRecordsOfOneDevice_result() oprot.IncrementRecursionDepth(); try { - var tmp1485 = new TStruct("insertRecordsOfOneDevice_result"); - await oprot.WriteStructBeginAsync(tmp1485, cancellationToken); - var tmp1486 = new TField(); + var struc = new TStruct("insertRecordsOfOneDevice_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1486.Name = "Success"; - tmp1486.Type = TType.Struct; - tmp1486.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1486, 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); } @@ -14523,7 +13850,7 @@ public insertRecordsOfOneDevice_result() public override bool Equals(object that) { - if (!(that is insertRecordsOfOneDevice_result other)) return false; + 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)))); } @@ -14541,21 +13868,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1487 = new StringBuilder("insertRecordsOfOneDevice_result("); - int tmp1488 = 0; + var sb = new StringBuilder("insertRecordsOfOneDevice_result("); + int tmp515 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1488++) { tmp1487.Append(", "); } - tmp1487.Append("Success: "); - Success.ToString(tmp1487); + if(0 < tmp515++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1487.Append(')'); - return tmp1487.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class insertStringRecordsOfOneDevice_args : TBase + public partial class insertStringRecordsOfOneDeviceArgs : TBase { private TSInsertStringRecordsOfOneDeviceReq _req; @@ -14579,7 +13906,7 @@ public struct Isset public bool req; } - public insertStringRecordsOfOneDevice_args() + public insertStringRecordsOfOneDeviceArgs() { } @@ -14632,15 +13959,15 @@ public insertStringRecordsOfOneDevice_args() oprot.IncrementRecursionDepth(); try { - var tmp1489 = new TStruct("insertStringRecordsOfOneDevice_args"); - await oprot.WriteStructBeginAsync(tmp1489, cancellationToken); - var tmp1490 = new TField(); + var struc = new TStruct("insertStringRecordsOfOneDevice_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1490.Name = "req"; - tmp1490.Type = TType.Struct; - tmp1490.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1490, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -14655,7 +13982,7 @@ public insertStringRecordsOfOneDevice_args() public override bool Equals(object that) { - if (!(that is insertStringRecordsOfOneDevice_args other)) return false; + 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)))); } @@ -14673,21 +14000,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1491 = new StringBuilder("insertStringRecordsOfOneDevice_args("); - int tmp1492 = 0; + var sb = new StringBuilder("insertStringRecordsOfOneDevice_args("); + int tmp516 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1492++) { tmp1491.Append(", "); } - tmp1491.Append("Req: "); - Req.ToString(tmp1491); + if(0 < tmp516++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1491.Append(')'); - return tmp1491.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class insertStringRecordsOfOneDevice_result : TBase + public partial class insertStringRecordsOfOneDeviceResult : TBase { private TSStatus _success; @@ -14711,7 +14038,7 @@ public struct Isset public bool success; } - public insertStringRecordsOfOneDevice_result() + public insertStringRecordsOfOneDeviceResult() { } @@ -14764,18 +14091,18 @@ public insertStringRecordsOfOneDevice_result() oprot.IncrementRecursionDepth(); try { - var tmp1493 = new TStruct("insertStringRecordsOfOneDevice_result"); - await oprot.WriteStructBeginAsync(tmp1493, cancellationToken); - var tmp1494 = new TField(); + var struc = new TStruct("insertStringRecordsOfOneDevice_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1494.Name = "Success"; - tmp1494.Type = TType.Struct; - tmp1494.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1494, 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); } @@ -14791,7 +14118,7 @@ public insertStringRecordsOfOneDevice_result() public override bool Equals(object that) { - if (!(that is insertStringRecordsOfOneDevice_result other)) return false; + 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)))); } @@ -14809,21 +14136,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1495 = new StringBuilder("insertStringRecordsOfOneDevice_result("); - int tmp1496 = 0; + var sb = new StringBuilder("insertStringRecordsOfOneDevice_result("); + int tmp517 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1496++) { tmp1495.Append(", "); } - tmp1495.Append("Success: "); - Success.ToString(tmp1495); + if(0 < tmp517++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1495.Append(')'); - return tmp1495.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class insertStringRecords_args : TBase + public partial class insertStringRecordsArgs : TBase { private TSInsertStringRecordsReq _req; @@ -14847,7 +14174,7 @@ public struct Isset public bool req; } - public insertStringRecords_args() + public insertStringRecordsArgs() { } @@ -14900,15 +14227,15 @@ public insertStringRecords_args() oprot.IncrementRecursionDepth(); try { - var tmp1497 = new TStruct("insertStringRecords_args"); - await oprot.WriteStructBeginAsync(tmp1497, cancellationToken); - var tmp1498 = new TField(); + var struc = new TStruct("insertStringRecords_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1498.Name = "req"; - tmp1498.Type = TType.Struct; - tmp1498.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1498, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -14923,7 +14250,7 @@ public insertStringRecords_args() public override bool Equals(object that) { - if (!(that is insertStringRecords_args other)) return false; + 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)))); } @@ -14941,21 +14268,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1499 = new StringBuilder("insertStringRecords_args("); - int tmp1500 = 0; + var sb = new StringBuilder("insertStringRecords_args("); + int tmp518 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1500++) { tmp1499.Append(", "); } - tmp1499.Append("Req: "); - Req.ToString(tmp1499); + if(0 < tmp518++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1499.Append(')'); - return tmp1499.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class insertStringRecords_result : TBase + public partial class insertStringRecordsResult : TBase { private TSStatus _success; @@ -14979,7 +14306,7 @@ public struct Isset public bool success; } - public insertStringRecords_result() + public insertStringRecordsResult() { } @@ -15032,18 +14359,18 @@ public insertStringRecords_result() oprot.IncrementRecursionDepth(); try { - var tmp1501 = new TStruct("insertStringRecords_result"); - await oprot.WriteStructBeginAsync(tmp1501, cancellationToken); - var tmp1502 = new TField(); + var struc = new TStruct("insertStringRecords_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1502.Name = "Success"; - tmp1502.Type = TType.Struct; - tmp1502.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1502, 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); } @@ -15059,7 +14386,7 @@ public insertStringRecords_result() public override bool Equals(object that) { - if (!(that is insertStringRecords_result other)) return false; + 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)))); } @@ -15077,21 +14404,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1503 = new StringBuilder("insertStringRecords_result("); - int tmp1504 = 0; + var sb = new StringBuilder("insertStringRecords_result("); + int tmp519 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1504++) { tmp1503.Append(", "); } - tmp1503.Append("Success: "); - Success.ToString(tmp1503); + if(0 < tmp519++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1503.Append(')'); - return tmp1503.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class testInsertTablet_args : TBase + public partial class testInsertTabletArgs : TBase { private TSInsertTabletReq _req; @@ -15115,7 +14442,7 @@ public struct Isset public bool req; } - public testInsertTablet_args() + public testInsertTabletArgs() { } @@ -15168,15 +14495,15 @@ public testInsertTablet_args() oprot.IncrementRecursionDepth(); try { - var tmp1505 = new TStruct("testInsertTablet_args"); - await oprot.WriteStructBeginAsync(tmp1505, cancellationToken); - var tmp1506 = new TField(); + var struc = new TStruct("testInsertTablet_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1506.Name = "req"; - tmp1506.Type = TType.Struct; - tmp1506.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1506, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -15191,7 +14518,7 @@ public testInsertTablet_args() public override bool Equals(object that) { - if (!(that is testInsertTablet_args other)) return false; + 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)))); } @@ -15209,21 +14536,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1507 = new StringBuilder("testInsertTablet_args("); - int tmp1508 = 0; + var sb = new StringBuilder("testInsertTablet_args("); + int tmp520 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1508++) { tmp1507.Append(", "); } - tmp1507.Append("Req: "); - Req.ToString(tmp1507); + if(0 < tmp520++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1507.Append(')'); - return tmp1507.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class testInsertTablet_result : TBase + public partial class testInsertTabletResult : TBase { private TSStatus _success; @@ -15247,7 +14574,7 @@ public struct Isset public bool success; } - public testInsertTablet_result() + public testInsertTabletResult() { } @@ -15300,18 +14627,18 @@ public testInsertTablet_result() oprot.IncrementRecursionDepth(); try { - var tmp1509 = new TStruct("testInsertTablet_result"); - await oprot.WriteStructBeginAsync(tmp1509, cancellationToken); - var tmp1510 = new TField(); + var struc = new TStruct("testInsertTablet_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1510.Name = "Success"; - tmp1510.Type = TType.Struct; - tmp1510.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1510, 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); } @@ -15327,7 +14654,7 @@ public testInsertTablet_result() public override bool Equals(object that) { - if (!(that is testInsertTablet_result other)) return false; + 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)))); } @@ -15345,21 +14672,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1511 = new StringBuilder("testInsertTablet_result("); - int tmp1512 = 0; + var sb = new StringBuilder("testInsertTablet_result("); + int tmp521 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1512++) { tmp1511.Append(", "); } - tmp1511.Append("Success: "); - Success.ToString(tmp1511); + if(0 < tmp521++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1511.Append(')'); - return tmp1511.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class testInsertTablets_args : TBase + public partial class testInsertTabletsArgs : TBase { private TSInsertTabletsReq _req; @@ -15383,7 +14710,7 @@ public struct Isset public bool req; } - public testInsertTablets_args() + public testInsertTabletsArgs() { } @@ -15436,15 +14763,15 @@ public testInsertTablets_args() oprot.IncrementRecursionDepth(); try { - var tmp1513 = new TStruct("testInsertTablets_args"); - await oprot.WriteStructBeginAsync(tmp1513, cancellationToken); - var tmp1514 = new TField(); + var struc = new TStruct("testInsertTablets_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1514.Name = "req"; - tmp1514.Type = TType.Struct; - tmp1514.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1514, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -15459,7 +14786,7 @@ public testInsertTablets_args() public override bool Equals(object that) { - if (!(that is testInsertTablets_args other)) return false; + 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)))); } @@ -15477,21 +14804,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1515 = new StringBuilder("testInsertTablets_args("); - int tmp1516 = 0; + var sb = new StringBuilder("testInsertTablets_args("); + int tmp522 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1516++) { tmp1515.Append(", "); } - tmp1515.Append("Req: "); - Req.ToString(tmp1515); + if(0 < tmp522++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1515.Append(')'); - return tmp1515.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class testInsertTablets_result : TBase + public partial class testInsertTabletsResult : TBase { private TSStatus _success; @@ -15515,7 +14842,7 @@ public struct Isset public bool success; } - public testInsertTablets_result() + public testInsertTabletsResult() { } @@ -15568,18 +14895,18 @@ public testInsertTablets_result() oprot.IncrementRecursionDepth(); try { - var tmp1517 = new TStruct("testInsertTablets_result"); - await oprot.WriteStructBeginAsync(tmp1517, cancellationToken); - var tmp1518 = new TField(); + var struc = new TStruct("testInsertTablets_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1518.Name = "Success"; - tmp1518.Type = TType.Struct; - tmp1518.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1518, 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); } @@ -15595,7 +14922,7 @@ public testInsertTablets_result() public override bool Equals(object that) { - if (!(that is testInsertTablets_result other)) return false; + 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)))); } @@ -15613,21 +14940,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1519 = new StringBuilder("testInsertTablets_result("); - int tmp1520 = 0; + var sb = new StringBuilder("testInsertTablets_result("); + int tmp523 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1520++) { tmp1519.Append(", "); } - tmp1519.Append("Success: "); - Success.ToString(tmp1519); + if(0 < tmp523++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1519.Append(')'); - return tmp1519.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class testInsertRecord_args : TBase + public partial class testInsertRecordArgs : TBase { private TSInsertRecordReq _req; @@ -15651,7 +14978,7 @@ public struct Isset public bool req; } - public testInsertRecord_args() + public testInsertRecordArgs() { } @@ -15704,15 +15031,15 @@ public testInsertRecord_args() oprot.IncrementRecursionDepth(); try { - var tmp1521 = new TStruct("testInsertRecord_args"); - await oprot.WriteStructBeginAsync(tmp1521, cancellationToken); - var tmp1522 = new TField(); + var struc = new TStruct("testInsertRecord_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1522.Name = "req"; - tmp1522.Type = TType.Struct; - tmp1522.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1522, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -15727,7 +15054,7 @@ public testInsertRecord_args() public override bool Equals(object that) { - if (!(that is testInsertRecord_args other)) return false; + 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)))); } @@ -15745,21 +15072,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1523 = new StringBuilder("testInsertRecord_args("); - int tmp1524 = 0; + var sb = new StringBuilder("testInsertRecord_args("); + int tmp524 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1524++) { tmp1523.Append(", "); } - tmp1523.Append("Req: "); - Req.ToString(tmp1523); + if(0 < tmp524++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1523.Append(')'); - return tmp1523.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class testInsertRecord_result : TBase + public partial class testInsertRecordResult : TBase { private TSStatus _success; @@ -15783,7 +15110,7 @@ public struct Isset public bool success; } - public testInsertRecord_result() + public testInsertRecordResult() { } @@ -15836,18 +15163,18 @@ public testInsertRecord_result() oprot.IncrementRecursionDepth(); try { - var tmp1525 = new TStruct("testInsertRecord_result"); - await oprot.WriteStructBeginAsync(tmp1525, cancellationToken); - var tmp1526 = new TField(); + var struc = new TStruct("testInsertRecord_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1526.Name = "Success"; - tmp1526.Type = TType.Struct; - tmp1526.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1526, 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); } @@ -15863,7 +15190,7 @@ public testInsertRecord_result() public override bool Equals(object that) { - if (!(that is testInsertRecord_result other)) return false; + 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)))); } @@ -15881,21 +15208,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1527 = new StringBuilder("testInsertRecord_result("); - int tmp1528 = 0; + var sb = new StringBuilder("testInsertRecord_result("); + int tmp525 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1528++) { tmp1527.Append(", "); } - tmp1527.Append("Success: "); - Success.ToString(tmp1527); + if(0 < tmp525++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1527.Append(')'); - return tmp1527.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class testInsertStringRecord_args : TBase + public partial class testInsertStringRecordArgs : TBase { private TSInsertStringRecordReq _req; @@ -15919,7 +15246,7 @@ public struct Isset public bool req; } - public testInsertStringRecord_args() + public testInsertStringRecordArgs() { } @@ -15972,15 +15299,15 @@ public testInsertStringRecord_args() oprot.IncrementRecursionDepth(); try { - var tmp1529 = new TStruct("testInsertStringRecord_args"); - await oprot.WriteStructBeginAsync(tmp1529, cancellationToken); - var tmp1530 = new TField(); + var struc = new TStruct("testInsertStringRecord_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1530.Name = "req"; - tmp1530.Type = TType.Struct; - tmp1530.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1530, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -15995,7 +15322,7 @@ public testInsertStringRecord_args() public override bool Equals(object that) { - if (!(that is testInsertStringRecord_args other)) return false; + 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)))); } @@ -16013,21 +15340,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1531 = new StringBuilder("testInsertStringRecord_args("); - int tmp1532 = 0; + var sb = new StringBuilder("testInsertStringRecord_args("); + int tmp526 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1532++) { tmp1531.Append(", "); } - tmp1531.Append("Req: "); - Req.ToString(tmp1531); + if(0 < tmp526++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1531.Append(')'); - return tmp1531.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class testInsertStringRecord_result : TBase + public partial class testInsertStringRecordResult : TBase { private TSStatus _success; @@ -16051,7 +15378,7 @@ public struct Isset public bool success; } - public testInsertStringRecord_result() + public testInsertStringRecordResult() { } @@ -16104,18 +15431,18 @@ public testInsertStringRecord_result() oprot.IncrementRecursionDepth(); try { - var tmp1533 = new TStruct("testInsertStringRecord_result"); - await oprot.WriteStructBeginAsync(tmp1533, cancellationToken); - var tmp1534 = new TField(); + var struc = new TStruct("testInsertStringRecord_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1534.Name = "Success"; - tmp1534.Type = TType.Struct; - tmp1534.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1534, 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); } @@ -16131,7 +15458,7 @@ public testInsertStringRecord_result() public override bool Equals(object that) { - if (!(that is testInsertStringRecord_result other)) return false; + 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)))); } @@ -16149,21 +15476,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1535 = new StringBuilder("testInsertStringRecord_result("); - int tmp1536 = 0; + var sb = new StringBuilder("testInsertStringRecord_result("); + int tmp527 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1536++) { tmp1535.Append(", "); } - tmp1535.Append("Success: "); - Success.ToString(tmp1535); + if(0 < tmp527++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1535.Append(')'); - return tmp1535.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class testInsertRecords_args : TBase + public partial class testInsertRecordsArgs : TBase { private TSInsertRecordsReq _req; @@ -16187,7 +15514,7 @@ public struct Isset public bool req; } - public testInsertRecords_args() + public testInsertRecordsArgs() { } @@ -16240,15 +15567,15 @@ public testInsertRecords_args() oprot.IncrementRecursionDepth(); try { - var tmp1537 = new TStruct("testInsertRecords_args"); - await oprot.WriteStructBeginAsync(tmp1537, cancellationToken); - var tmp1538 = new TField(); + var struc = new TStruct("testInsertRecords_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1538.Name = "req"; - tmp1538.Type = TType.Struct; - tmp1538.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1538, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -16263,7 +15590,7 @@ public testInsertRecords_args() public override bool Equals(object that) { - if (!(that is testInsertRecords_args other)) return false; + 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)))); } @@ -16281,21 +15608,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1539 = new StringBuilder("testInsertRecords_args("); - int tmp1540 = 0; + var sb = new StringBuilder("testInsertRecords_args("); + int tmp528 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1540++) { tmp1539.Append(", "); } - tmp1539.Append("Req: "); - Req.ToString(tmp1539); + if(0 < tmp528++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1539.Append(')'); - return tmp1539.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class testInsertRecords_result : TBase + public partial class testInsertRecordsResult : TBase { private TSStatus _success; @@ -16319,7 +15646,7 @@ public struct Isset public bool success; } - public testInsertRecords_result() + public testInsertRecordsResult() { } @@ -16372,18 +15699,18 @@ public testInsertRecords_result() oprot.IncrementRecursionDepth(); try { - var tmp1541 = new TStruct("testInsertRecords_result"); - await oprot.WriteStructBeginAsync(tmp1541, cancellationToken); - var tmp1542 = new TField(); + var struc = new TStruct("testInsertRecords_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1542.Name = "Success"; - tmp1542.Type = TType.Struct; - tmp1542.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1542, 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); } @@ -16399,7 +15726,7 @@ public testInsertRecords_result() public override bool Equals(object that) { - if (!(that is testInsertRecords_result other)) return false; + 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)))); } @@ -16417,21 +15744,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1543 = new StringBuilder("testInsertRecords_result("); - int tmp1544 = 0; + var sb = new StringBuilder("testInsertRecords_result("); + int tmp529 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1544++) { tmp1543.Append(", "); } - tmp1543.Append("Success: "); - Success.ToString(tmp1543); + if(0 < tmp529++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1543.Append(')'); - return tmp1543.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class testInsertRecordsOfOneDevice_args : TBase + public partial class testInsertRecordsOfOneDeviceArgs : TBase { private TSInsertRecordsOfOneDeviceReq _req; @@ -16455,7 +15782,7 @@ public struct Isset public bool req; } - public testInsertRecordsOfOneDevice_args() + public testInsertRecordsOfOneDeviceArgs() { } @@ -16508,15 +15835,15 @@ public testInsertRecordsOfOneDevice_args() oprot.IncrementRecursionDepth(); try { - var tmp1545 = new TStruct("testInsertRecordsOfOneDevice_args"); - await oprot.WriteStructBeginAsync(tmp1545, cancellationToken); - var tmp1546 = new TField(); + var struc = new TStruct("testInsertRecordsOfOneDevice_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1546.Name = "req"; - tmp1546.Type = TType.Struct; - tmp1546.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1546, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -16531,7 +15858,7 @@ public testInsertRecordsOfOneDevice_args() public override bool Equals(object that) { - if (!(that is testInsertRecordsOfOneDevice_args other)) return false; + 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)))); } @@ -16549,21 +15876,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1547 = new StringBuilder("testInsertRecordsOfOneDevice_args("); - int tmp1548 = 0; + var sb = new StringBuilder("testInsertRecordsOfOneDevice_args("); + int tmp530 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1548++) { tmp1547.Append(", "); } - tmp1547.Append("Req: "); - Req.ToString(tmp1547); + if(0 < tmp530++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1547.Append(')'); - return tmp1547.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class testInsertRecordsOfOneDevice_result : TBase + public partial class testInsertRecordsOfOneDeviceResult : TBase { private TSStatus _success; @@ -16587,7 +15914,7 @@ public struct Isset public bool success; } - public testInsertRecordsOfOneDevice_result() + public testInsertRecordsOfOneDeviceResult() { } @@ -16640,18 +15967,18 @@ public testInsertRecordsOfOneDevice_result() oprot.IncrementRecursionDepth(); try { - var tmp1549 = new TStruct("testInsertRecordsOfOneDevice_result"); - await oprot.WriteStructBeginAsync(tmp1549, cancellationToken); - var tmp1550 = new TField(); + var struc = new TStruct("testInsertRecordsOfOneDevice_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1550.Name = "Success"; - tmp1550.Type = TType.Struct; - tmp1550.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1550, 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); } @@ -16667,7 +15994,7 @@ public testInsertRecordsOfOneDevice_result() public override bool Equals(object that) { - if (!(that is testInsertRecordsOfOneDevice_result other)) return false; + 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)))); } @@ -16685,21 +16012,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1551 = new StringBuilder("testInsertRecordsOfOneDevice_result("); - int tmp1552 = 0; + var sb = new StringBuilder("testInsertRecordsOfOneDevice_result("); + int tmp531 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1552++) { tmp1551.Append(", "); } - tmp1551.Append("Success: "); - Success.ToString(tmp1551); + if(0 < tmp531++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1551.Append(')'); - return tmp1551.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class testInsertStringRecords_args : TBase + public partial class testInsertStringRecordsArgs : TBase { private TSInsertStringRecordsReq _req; @@ -16723,7 +16050,7 @@ public struct Isset public bool req; } - public testInsertStringRecords_args() + public testInsertStringRecordsArgs() { } @@ -16776,15 +16103,15 @@ public testInsertStringRecords_args() oprot.IncrementRecursionDepth(); try { - var tmp1553 = new TStruct("testInsertStringRecords_args"); - await oprot.WriteStructBeginAsync(tmp1553, cancellationToken); - var tmp1554 = new TField(); + var struc = new TStruct("testInsertStringRecords_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1554.Name = "req"; - tmp1554.Type = TType.Struct; - tmp1554.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1554, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -16799,7 +16126,7 @@ public testInsertStringRecords_args() public override bool Equals(object that) { - if (!(that is testInsertStringRecords_args other)) return false; + 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)))); } @@ -16817,21 +16144,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1555 = new StringBuilder("testInsertStringRecords_args("); - int tmp1556 = 0; + var sb = new StringBuilder("testInsertStringRecords_args("); + int tmp532 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1556++) { tmp1555.Append(", "); } - tmp1555.Append("Req: "); - Req.ToString(tmp1555); + if(0 < tmp532++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1555.Append(')'); - return tmp1555.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class testInsertStringRecords_result : TBase + public partial class testInsertStringRecordsResult : TBase { private TSStatus _success; @@ -16855,7 +16182,7 @@ public struct Isset public bool success; } - public testInsertStringRecords_result() + public testInsertStringRecordsResult() { } @@ -16908,18 +16235,18 @@ public testInsertStringRecords_result() oprot.IncrementRecursionDepth(); try { - var tmp1557 = new TStruct("testInsertStringRecords_result"); - await oprot.WriteStructBeginAsync(tmp1557, cancellationToken); - var tmp1558 = new TField(); + var struc = new TStruct("testInsertStringRecords_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1558.Name = "Success"; - tmp1558.Type = TType.Struct; - tmp1558.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1558, 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); } @@ -16935,7 +16262,7 @@ public testInsertStringRecords_result() public override bool Equals(object that) { - if (!(that is testInsertStringRecords_result other)) return false; + 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)))); } @@ -16953,21 +16280,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1559 = new StringBuilder("testInsertStringRecords_result("); - int tmp1560 = 0; + var sb = new StringBuilder("testInsertStringRecords_result("); + int tmp533 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1560++) { tmp1559.Append(", "); } - tmp1559.Append("Success: "); - Success.ToString(tmp1559); + if(0 < tmp533++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1559.Append(')'); - return tmp1559.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class deleteData_args : TBase + public partial class deleteDataArgs : TBase { private TSDeleteDataReq _req; @@ -16991,7 +16318,7 @@ public struct Isset public bool req; } - public deleteData_args() + public deleteDataArgs() { } @@ -17044,15 +16371,15 @@ public deleteData_args() oprot.IncrementRecursionDepth(); try { - var tmp1561 = new TStruct("deleteData_args"); - await oprot.WriteStructBeginAsync(tmp1561, cancellationToken); - var tmp1562 = new TField(); + var struc = new TStruct("deleteData_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1562.Name = "req"; - tmp1562.Type = TType.Struct; - tmp1562.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1562, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -17067,7 +16394,7 @@ public deleteData_args() public override bool Equals(object that) { - if (!(that is deleteData_args other)) return false; + 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)))); } @@ -17085,21 +16412,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1563 = new StringBuilder("deleteData_args("); - int tmp1564 = 0; + var sb = new StringBuilder("deleteData_args("); + int tmp534 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1564++) { tmp1563.Append(", "); } - tmp1563.Append("Req: "); - Req.ToString(tmp1563); + if(0 < tmp534++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1563.Append(')'); - return tmp1563.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class deleteData_result : TBase + public partial class deleteDataResult : TBase { private TSStatus _success; @@ -17123,7 +16450,7 @@ public struct Isset public bool success; } - public deleteData_result() + public deleteDataResult() { } @@ -17176,18 +16503,18 @@ public deleteData_result() oprot.IncrementRecursionDepth(); try { - var tmp1565 = new TStruct("deleteData_result"); - await oprot.WriteStructBeginAsync(tmp1565, cancellationToken); - var tmp1566 = new TField(); + var struc = new TStruct("deleteData_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1566.Name = "Success"; - tmp1566.Type = TType.Struct; - tmp1566.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1566, 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); } @@ -17203,7 +16530,7 @@ public deleteData_result() public override bool Equals(object that) { - if (!(that is deleteData_result other)) return false; + 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)))); } @@ -17221,21 +16548,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1567 = new StringBuilder("deleteData_result("); - int tmp1568 = 0; + var sb = new StringBuilder("deleteData_result("); + int tmp535 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1568++) { tmp1567.Append(", "); } - tmp1567.Append("Success: "); - Success.ToString(tmp1567); + if(0 < tmp535++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1567.Append(')'); - return tmp1567.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeRawDataQuery_args : TBase + public partial class executeRawDataQueryArgs : TBase { private TSRawDataQueryReq _req; @@ -17259,7 +16586,7 @@ public struct Isset public bool req; } - public executeRawDataQuery_args() + public executeRawDataQueryArgs() { } @@ -17312,15 +16639,15 @@ public executeRawDataQuery_args() oprot.IncrementRecursionDepth(); try { - var tmp1569 = new TStruct("executeRawDataQuery_args"); - await oprot.WriteStructBeginAsync(tmp1569, cancellationToken); - var tmp1570 = new TField(); + var struc = new TStruct("executeRawDataQuery_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1570.Name = "req"; - tmp1570.Type = TType.Struct; - tmp1570.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1570, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -17335,7 +16662,7 @@ public executeRawDataQuery_args() public override bool Equals(object that) { - if (!(that is executeRawDataQuery_args other)) return false; + 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)))); } @@ -17353,21 +16680,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1571 = new StringBuilder("executeRawDataQuery_args("); - int tmp1572 = 0; + var sb = new StringBuilder("executeRawDataQuery_args("); + int tmp536 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1572++) { tmp1571.Append(", "); } - tmp1571.Append("Req: "); - Req.ToString(tmp1571); + if(0 < tmp536++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1571.Append(')'); - return tmp1571.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeRawDataQuery_result : TBase + public partial class executeRawDataQueryResult : TBase { private TSExecuteStatementResp _success; @@ -17391,7 +16718,7 @@ public struct Isset public bool success; } - public executeRawDataQuery_result() + public executeRawDataQueryResult() { } @@ -17444,18 +16771,18 @@ public executeRawDataQuery_result() oprot.IncrementRecursionDepth(); try { - var tmp1573 = new TStruct("executeRawDataQuery_result"); - await oprot.WriteStructBeginAsync(tmp1573, cancellationToken); - var tmp1574 = new TField(); + var struc = new TStruct("executeRawDataQuery_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1574.Name = "Success"; - tmp1574.Type = TType.Struct; - tmp1574.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1574, 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); } @@ -17471,7 +16798,7 @@ public executeRawDataQuery_result() public override bool Equals(object that) { - if (!(that is executeRawDataQuery_result other)) return false; + 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)))); } @@ -17489,21 +16816,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1575 = new StringBuilder("executeRawDataQuery_result("); - int tmp1576 = 0; + var sb = new StringBuilder("executeRawDataQuery_result("); + int tmp537 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1576++) { tmp1575.Append(", "); } - tmp1575.Append("Success: "); - Success.ToString(tmp1575); + if(0 < tmp537++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1575.Append(')'); - return tmp1575.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeLastDataQuery_args : TBase + public partial class executeLastDataQueryArgs : TBase { private TSLastDataQueryReq _req; @@ -17527,7 +16854,7 @@ public struct Isset public bool req; } - public executeLastDataQuery_args() + public executeLastDataQueryArgs() { } @@ -17580,15 +16907,15 @@ public executeLastDataQuery_args() oprot.IncrementRecursionDepth(); try { - var tmp1577 = new TStruct("executeLastDataQuery_args"); - await oprot.WriteStructBeginAsync(tmp1577, cancellationToken); - var tmp1578 = new TField(); + var struc = new TStruct("executeLastDataQuery_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1578.Name = "req"; - tmp1578.Type = TType.Struct; - tmp1578.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1578, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -17603,7 +16930,7 @@ public executeLastDataQuery_args() public override bool Equals(object that) { - if (!(that is executeLastDataQuery_args other)) return false; + 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)))); } @@ -17621,21 +16948,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1579 = new StringBuilder("executeLastDataQuery_args("); - int tmp1580 = 0; + var sb = new StringBuilder("executeLastDataQuery_args("); + int tmp538 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1580++) { tmp1579.Append(", "); } - tmp1579.Append("Req: "); - Req.ToString(tmp1579); + if(0 < tmp538++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1579.Append(')'); - return tmp1579.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeLastDataQuery_result : TBase + public partial class executeLastDataQueryResult : TBase { private TSExecuteStatementResp _success; @@ -17659,7 +16986,7 @@ public struct Isset public bool success; } - public executeLastDataQuery_result() + public executeLastDataQueryResult() { } @@ -17712,18 +17039,18 @@ public executeLastDataQuery_result() oprot.IncrementRecursionDepth(); try { - var tmp1581 = new TStruct("executeLastDataQuery_result"); - await oprot.WriteStructBeginAsync(tmp1581, cancellationToken); - var tmp1582 = new TField(); + var struc = new TStruct("executeLastDataQuery_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1582.Name = "Success"; - tmp1582.Type = TType.Struct; - tmp1582.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1582, 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); } @@ -17739,7 +17066,7 @@ public executeLastDataQuery_result() public override bool Equals(object that) { - if (!(that is executeLastDataQuery_result other)) return false; + 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)))); } @@ -17757,21 +17084,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1583 = new StringBuilder("executeLastDataQuery_result("); - int tmp1584 = 0; + var sb = new StringBuilder("executeLastDataQuery_result("); + int tmp539 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1584++) { tmp1583.Append(", "); } - tmp1583.Append("Success: "); - Success.ToString(tmp1583); + if(0 < tmp539++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1583.Append(')'); - return tmp1583.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeAggregationQuery_args : TBase + public partial class executeAggregationQueryArgs : TBase { private TSAggregationQueryReq _req; @@ -17795,7 +17122,7 @@ public struct Isset public bool req; } - public executeAggregationQuery_args() + public executeAggregationQueryArgs() { } @@ -17848,15 +17175,15 @@ public executeAggregationQuery_args() oprot.IncrementRecursionDepth(); try { - var tmp1585 = new TStruct("executeAggregationQuery_args"); - await oprot.WriteStructBeginAsync(tmp1585, cancellationToken); - var tmp1586 = new TField(); + var struc = new TStruct("executeAggregationQuery_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1586.Name = "req"; - tmp1586.Type = TType.Struct; - tmp1586.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1586, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -17871,7 +17198,7 @@ public executeAggregationQuery_args() public override bool Equals(object that) { - if (!(that is executeAggregationQuery_args other)) return false; + 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)))); } @@ -17889,21 +17216,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1587 = new StringBuilder("executeAggregationQuery_args("); - int tmp1588 = 0; + var sb = new StringBuilder("executeAggregationQuery_args("); + int tmp540 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1588++) { tmp1587.Append(", "); } - tmp1587.Append("Req: "); - Req.ToString(tmp1587); + if(0 < tmp540++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1587.Append(')'); - return tmp1587.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class executeAggregationQuery_result : TBase + public partial class executeAggregationQueryResult : TBase { private TSExecuteStatementResp _success; @@ -17927,7 +17254,7 @@ public struct Isset public bool success; } - public executeAggregationQuery_result() + public executeAggregationQueryResult() { } @@ -17980,18 +17307,18 @@ public executeAggregationQuery_result() oprot.IncrementRecursionDepth(); try { - var tmp1589 = new TStruct("executeAggregationQuery_result"); - await oprot.WriteStructBeginAsync(tmp1589, cancellationToken); - var tmp1590 = new TField(); + var struc = new TStruct("executeAggregationQuery_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1590.Name = "Success"; - tmp1590.Type = TType.Struct; - tmp1590.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1590, 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); } @@ -18007,7 +17334,7 @@ public executeAggregationQuery_result() public override bool Equals(object that) { - if (!(that is executeAggregationQuery_result other)) return false; + 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)))); } @@ -18025,21 +17352,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1591 = new StringBuilder("executeAggregationQuery_result("); - int tmp1592 = 0; + var sb = new StringBuilder("executeAggregationQuery_result("); + int tmp541 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1592++) { tmp1591.Append(", "); } - tmp1591.Append("Success: "); - Success.ToString(tmp1591); + if(0 < tmp541++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1591.Append(')'); - return tmp1591.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class requestStatementId_args : TBase + public partial class requestStatementIdArgs : TBase { private long _sessionId; @@ -18063,7 +17390,7 @@ public struct Isset public bool sessionId; } - public requestStatementId_args() + public requestStatementIdArgs() { } @@ -18115,15 +17442,15 @@ public requestStatementId_args() oprot.IncrementRecursionDepth(); try { - var tmp1593 = new TStruct("requestStatementId_args"); - await oprot.WriteStructBeginAsync(tmp1593, cancellationToken); - var tmp1594 = new TField(); + var struc = new TStruct("requestStatementId_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(__isset.sessionId) { - tmp1594.Name = "sessionId"; - tmp1594.Type = TType.I64; - tmp1594.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1594, cancellationToken); + field.Name = "sessionId"; + field.Type = TType.I64; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -18138,7 +17465,7 @@ public requestStatementId_args() public override bool Equals(object that) { - if (!(that is requestStatementId_args other)) return false; + 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)))); } @@ -18156,21 +17483,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1595 = new StringBuilder("requestStatementId_args("); - int tmp1596 = 0; + var sb = new StringBuilder("requestStatementId_args("); + int tmp542 = 0; if(__isset.sessionId) { - if(0 < tmp1596++) { tmp1595.Append(", "); } - tmp1595.Append("SessionId: "); - SessionId.ToString(tmp1595); + if(0 < tmp542++) { sb.Append(", "); } + sb.Append("SessionId: "); + SessionId.ToString(sb); } - tmp1595.Append(')'); - return tmp1595.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class requestStatementId_result : TBase + public partial class requestStatementIdResult : TBase { private long _success; @@ -18194,7 +17521,7 @@ public struct Isset public bool success; } - public requestStatementId_result() + public requestStatementIdResult() { } @@ -18246,16 +17573,16 @@ public requestStatementId_result() oprot.IncrementRecursionDepth(); try { - var tmp1597 = new TStruct("requestStatementId_result"); - await oprot.WriteStructBeginAsync(tmp1597, cancellationToken); - var tmp1598 = new TField(); + var struc = new TStruct("requestStatementId_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { - tmp1598.Name = "Success"; - tmp1598.Type = TType.I64; - tmp1598.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1598, cancellationToken); + field.Name = "Success"; + field.Type = TType.I64; + field.ID = 0; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(Success, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -18270,7 +17597,7 @@ public requestStatementId_result() public override bool Equals(object that) { - if (!(that is requestStatementId_result other)) return false; + 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)))); } @@ -18288,21 +17615,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1599 = new StringBuilder("requestStatementId_result("); - int tmp1600 = 0; + var sb = new StringBuilder("requestStatementId_result("); + int tmp543 = 0; if(__isset.success) { - if(0 < tmp1600++) { tmp1599.Append(", "); } - tmp1599.Append("Success: "); - Success.ToString(tmp1599); + if(0 < tmp543++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1599.Append(')'); - return tmp1599.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class createSchemaTemplate_args : TBase + public partial class createSchemaTemplateArgs : TBase { private TSCreateSchemaTemplateReq _req; @@ -18326,7 +17653,7 @@ public struct Isset public bool req; } - public createSchemaTemplate_args() + public createSchemaTemplateArgs() { } @@ -18379,15 +17706,15 @@ public createSchemaTemplate_args() oprot.IncrementRecursionDepth(); try { - var tmp1601 = new TStruct("createSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(tmp1601, cancellationToken); - var tmp1602 = new TField(); + var struc = new TStruct("createSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1602.Name = "req"; - tmp1602.Type = TType.Struct; - tmp1602.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1602, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -18402,7 +17729,7 @@ public createSchemaTemplate_args() public override bool Equals(object that) { - if (!(that is createSchemaTemplate_args other)) return false; + 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)))); } @@ -18420,21 +17747,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1603 = new StringBuilder("createSchemaTemplate_args("); - int tmp1604 = 0; + var sb = new StringBuilder("createSchemaTemplate_args("); + int tmp544 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1604++) { tmp1603.Append(", "); } - tmp1603.Append("Req: "); - Req.ToString(tmp1603); + if(0 < tmp544++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1603.Append(')'); - return tmp1603.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class createSchemaTemplate_result : TBase + public partial class createSchemaTemplateResult : TBase { private TSStatus _success; @@ -18458,7 +17785,7 @@ public struct Isset public bool success; } - public createSchemaTemplate_result() + public createSchemaTemplateResult() { } @@ -18511,18 +17838,18 @@ public createSchemaTemplate_result() oprot.IncrementRecursionDepth(); try { - var tmp1605 = new TStruct("createSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(tmp1605, cancellationToken); - var tmp1606 = new TField(); + var struc = new TStruct("createSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1606.Name = "Success"; - tmp1606.Type = TType.Struct; - tmp1606.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1606, 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); } @@ -18538,7 +17865,7 @@ public createSchemaTemplate_result() public override bool Equals(object that) { - if (!(that is createSchemaTemplate_result other)) return false; + 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)))); } @@ -18556,21 +17883,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1607 = new StringBuilder("createSchemaTemplate_result("); - int tmp1608 = 0; + var sb = new StringBuilder("createSchemaTemplate_result("); + int tmp545 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1608++) { tmp1607.Append(", "); } - tmp1607.Append("Success: "); - Success.ToString(tmp1607); + if(0 < tmp545++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1607.Append(')'); - return tmp1607.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class appendSchemaTemplate_args : TBase + public partial class appendSchemaTemplateArgs : TBase { private TSAppendSchemaTemplateReq _req; @@ -18594,7 +17921,7 @@ public struct Isset public bool req; } - public appendSchemaTemplate_args() + public appendSchemaTemplateArgs() { } @@ -18647,15 +17974,15 @@ public appendSchemaTemplate_args() oprot.IncrementRecursionDepth(); try { - var tmp1609 = new TStruct("appendSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(tmp1609, cancellationToken); - var tmp1610 = new TField(); + var struc = new TStruct("appendSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1610.Name = "req"; - tmp1610.Type = TType.Struct; - tmp1610.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1610, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -18670,7 +17997,7 @@ public appendSchemaTemplate_args() public override bool Equals(object that) { - if (!(that is appendSchemaTemplate_args other)) return false; + 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)))); } @@ -18688,21 +18015,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1611 = new StringBuilder("appendSchemaTemplate_args("); - int tmp1612 = 0; + var sb = new StringBuilder("appendSchemaTemplate_args("); + int tmp546 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1612++) { tmp1611.Append(", "); } - tmp1611.Append("Req: "); - Req.ToString(tmp1611); + if(0 < tmp546++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1611.Append(')'); - return tmp1611.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class appendSchemaTemplate_result : TBase + public partial class appendSchemaTemplateResult : TBase { private TSStatus _success; @@ -18726,7 +18053,7 @@ public struct Isset public bool success; } - public appendSchemaTemplate_result() + public appendSchemaTemplateResult() { } @@ -18779,18 +18106,18 @@ public appendSchemaTemplate_result() oprot.IncrementRecursionDepth(); try { - var tmp1613 = new TStruct("appendSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(tmp1613, cancellationToken); - var tmp1614 = new TField(); + var struc = new TStruct("appendSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1614.Name = "Success"; - tmp1614.Type = TType.Struct; - tmp1614.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1614, 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); } @@ -18806,7 +18133,7 @@ public appendSchemaTemplate_result() public override bool Equals(object that) { - if (!(that is appendSchemaTemplate_result other)) return false; + 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)))); } @@ -18824,21 +18151,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1615 = new StringBuilder("appendSchemaTemplate_result("); - int tmp1616 = 0; + var sb = new StringBuilder("appendSchemaTemplate_result("); + int tmp547 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1616++) { tmp1615.Append(", "); } - tmp1615.Append("Success: "); - Success.ToString(tmp1615); + if(0 < tmp547++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1615.Append(')'); - return tmp1615.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class pruneSchemaTemplate_args : TBase + public partial class pruneSchemaTemplateArgs : TBase { private TSPruneSchemaTemplateReq _req; @@ -18862,7 +18189,7 @@ public struct Isset public bool req; } - public pruneSchemaTemplate_args() + public pruneSchemaTemplateArgs() { } @@ -18915,15 +18242,15 @@ public pruneSchemaTemplate_args() oprot.IncrementRecursionDepth(); try { - var tmp1617 = new TStruct("pruneSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(tmp1617, cancellationToken); - var tmp1618 = new TField(); + var struc = new TStruct("pruneSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1618.Name = "req"; - tmp1618.Type = TType.Struct; - tmp1618.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1618, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -18938,7 +18265,7 @@ public pruneSchemaTemplate_args() public override bool Equals(object that) { - if (!(that is pruneSchemaTemplate_args other)) return false; + 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)))); } @@ -18956,21 +18283,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1619 = new StringBuilder("pruneSchemaTemplate_args("); - int tmp1620 = 0; + var sb = new StringBuilder("pruneSchemaTemplate_args("); + int tmp548 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1620++) { tmp1619.Append(", "); } - tmp1619.Append("Req: "); - Req.ToString(tmp1619); + if(0 < tmp548++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1619.Append(')'); - return tmp1619.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class pruneSchemaTemplate_result : TBase + public partial class pruneSchemaTemplateResult : TBase { private TSStatus _success; @@ -18994,7 +18321,7 @@ public struct Isset public bool success; } - public pruneSchemaTemplate_result() + public pruneSchemaTemplateResult() { } @@ -19047,18 +18374,18 @@ public pruneSchemaTemplate_result() oprot.IncrementRecursionDepth(); try { - var tmp1621 = new TStruct("pruneSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(tmp1621, cancellationToken); - var tmp1622 = new TField(); + var struc = new TStruct("pruneSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1622.Name = "Success"; - tmp1622.Type = TType.Struct; - tmp1622.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1622, 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); } @@ -19074,7 +18401,7 @@ public pruneSchemaTemplate_result() public override bool Equals(object that) { - if (!(that is pruneSchemaTemplate_result other)) return false; + 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)))); } @@ -19092,21 +18419,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1623 = new StringBuilder("pruneSchemaTemplate_result("); - int tmp1624 = 0; + var sb = new StringBuilder("pruneSchemaTemplate_result("); + int tmp549 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1624++) { tmp1623.Append(", "); } - tmp1623.Append("Success: "); - Success.ToString(tmp1623); + if(0 < tmp549++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1623.Append(')'); - return tmp1623.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class querySchemaTemplate_args : TBase + public partial class querySchemaTemplateArgs : TBase { private TSQueryTemplateReq _req; @@ -19130,7 +18457,7 @@ public struct Isset public bool req; } - public querySchemaTemplate_args() + public querySchemaTemplateArgs() { } @@ -19183,15 +18510,15 @@ public querySchemaTemplate_args() oprot.IncrementRecursionDepth(); try { - var tmp1625 = new TStruct("querySchemaTemplate_args"); - await oprot.WriteStructBeginAsync(tmp1625, cancellationToken); - var tmp1626 = new TField(); + var struc = new TStruct("querySchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1626.Name = "req"; - tmp1626.Type = TType.Struct; - tmp1626.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1626, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -19206,7 +18533,7 @@ public querySchemaTemplate_args() public override bool Equals(object that) { - if (!(that is querySchemaTemplate_args other)) return false; + 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)))); } @@ -19224,21 +18551,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1627 = new StringBuilder("querySchemaTemplate_args("); - int tmp1628 = 0; + var sb = new StringBuilder("querySchemaTemplate_args("); + int tmp550 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1628++) { tmp1627.Append(", "); } - tmp1627.Append("Req: "); - Req.ToString(tmp1627); + if(0 < tmp550++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1627.Append(')'); - return tmp1627.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class querySchemaTemplate_result : TBase + public partial class querySchemaTemplateResult : TBase { private TSQueryTemplateResp _success; @@ -19262,7 +18589,7 @@ public struct Isset public bool success; } - public querySchemaTemplate_result() + public querySchemaTemplateResult() { } @@ -19315,18 +18642,18 @@ public querySchemaTemplate_result() oprot.IncrementRecursionDepth(); try { - var tmp1629 = new TStruct("querySchemaTemplate_result"); - await oprot.WriteStructBeginAsync(tmp1629, cancellationToken); - var tmp1630 = new TField(); + var struc = new TStruct("querySchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1630.Name = "Success"; - tmp1630.Type = TType.Struct; - tmp1630.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1630, 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); } @@ -19342,7 +18669,7 @@ public querySchemaTemplate_result() public override bool Equals(object that) { - if (!(that is querySchemaTemplate_result other)) return false; + 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)))); } @@ -19360,24 +18687,24 @@ public override int GetHashCode() { public override string ToString() { - var tmp1631 = new StringBuilder("querySchemaTemplate_result("); - int tmp1632 = 0; + var sb = new StringBuilder("querySchemaTemplate_result("); + int tmp551 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1632++) { tmp1631.Append(", "); } - tmp1631.Append("Success: "); - Success.ToString(tmp1631); + if(0 < tmp551++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1631.Append(')'); - return tmp1631.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class showConfigurationTemplate_args : TBase + public partial class showConfigurationTemplateArgs : TBase { - public showConfigurationTemplate_args() + public showConfigurationTemplateArgs() { } @@ -19419,8 +18746,8 @@ public showConfigurationTemplate_args() oprot.IncrementRecursionDepth(); try { - var tmp1633 = new TStruct("showConfigurationTemplate_args"); - await oprot.WriteStructBeginAsync(tmp1633, cancellationToken); + var struc = new TStruct("showConfigurationTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -19432,7 +18759,7 @@ public showConfigurationTemplate_args() public override bool Equals(object that) { - if (!(that is showConfigurationTemplate_args other)) return false; + if (!(that is showConfigurationTemplateArgs other)) return false; if (ReferenceEquals(this, other)) return true; return true; } @@ -19446,14 +18773,14 @@ public override int GetHashCode() { public override string ToString() { - var tmp1634 = new StringBuilder("showConfigurationTemplate_args("); - tmp1634.Append(')'); - return tmp1634.ToString(); + var sb = new StringBuilder("showConfigurationTemplate_args("); + sb.Append(')'); + return sb.ToString(); } } - public partial class showConfigurationTemplate_result : TBase + public partial class showConfigurationTemplateResult : TBase { private TShowConfigurationTemplateResp _success; @@ -19477,7 +18804,7 @@ public struct Isset public bool success; } - public showConfigurationTemplate_result() + public showConfigurationTemplateResult() { } @@ -19530,18 +18857,18 @@ public showConfigurationTemplate_result() oprot.IncrementRecursionDepth(); try { - var tmp1636 = new TStruct("showConfigurationTemplate_result"); - await oprot.WriteStructBeginAsync(tmp1636, cancellationToken); - var tmp1637 = new TField(); + var struc = new TStruct("showConfigurationTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1637.Name = "Success"; - tmp1637.Type = TType.Struct; - tmp1637.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1637, 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); } @@ -19557,7 +18884,7 @@ public showConfigurationTemplate_result() public override bool Equals(object that) { - if (!(that is showConfigurationTemplate_result other)) return false; + 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)))); } @@ -19575,21 +18902,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1638 = new StringBuilder("showConfigurationTemplate_result("); - int tmp1639 = 0; + var sb = new StringBuilder("showConfigurationTemplate_result("); + int tmp553 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1639++) { tmp1638.Append(", "); } - tmp1638.Append("Success: "); - Success.ToString(tmp1638); + if(0 < tmp553++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1638.Append(')'); - return tmp1638.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class showConfiguration_args : TBase + public partial class showConfigurationArgs : TBase { private int _nodeId; @@ -19613,7 +18940,7 @@ public struct Isset public bool nodeId; } - public showConfiguration_args() + public showConfigurationArgs() { } @@ -19665,15 +18992,15 @@ public showConfiguration_args() oprot.IncrementRecursionDepth(); try { - var tmp1640 = new TStruct("showConfiguration_args"); - await oprot.WriteStructBeginAsync(tmp1640, cancellationToken); - var tmp1641 = new TField(); + var struc = new TStruct("showConfiguration_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(__isset.nodeId) { - tmp1641.Name = "nodeId"; - tmp1641.Type = TType.I32; - tmp1641.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1641, cancellationToken); + field.Name = "nodeId"; + field.Type = TType.I32; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(NodeId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -19688,7 +19015,7 @@ public showConfiguration_args() public override bool Equals(object that) { - if (!(that is showConfiguration_args other)) return false; + 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)))); } @@ -19706,21 +19033,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1642 = new StringBuilder("showConfiguration_args("); - int tmp1643 = 0; + var sb = new StringBuilder("showConfiguration_args("); + int tmp554 = 0; if(__isset.nodeId) { - if(0 < tmp1643++) { tmp1642.Append(", "); } - tmp1642.Append("NodeId: "); - NodeId.ToString(tmp1642); + if(0 < tmp554++) { sb.Append(", "); } + sb.Append("NodeId: "); + NodeId.ToString(sb); } - tmp1642.Append(')'); - return tmp1642.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class showConfiguration_result : TBase + public partial class showConfigurationResult : TBase { private TShowConfigurationResp _success; @@ -19744,7 +19071,7 @@ public struct Isset public bool success; } - public showConfiguration_result() + public showConfigurationResult() { } @@ -19797,18 +19124,18 @@ public showConfiguration_result() oprot.IncrementRecursionDepth(); try { - var tmp1644 = new TStruct("showConfiguration_result"); - await oprot.WriteStructBeginAsync(tmp1644, cancellationToken); - var tmp1645 = new TField(); + var struc = new TStruct("showConfiguration_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1645.Name = "Success"; - tmp1645.Type = TType.Struct; - tmp1645.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1645, 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); } @@ -19824,7 +19151,7 @@ public showConfiguration_result() public override bool Equals(object that) { - if (!(that is showConfiguration_result other)) return false; + 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)))); } @@ -19842,21 +19169,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1646 = new StringBuilder("showConfiguration_result("); - int tmp1647 = 0; + var sb = new StringBuilder("showConfiguration_result("); + int tmp555 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1647++) { tmp1646.Append(", "); } - tmp1646.Append("Success: "); - Success.ToString(tmp1646); + if(0 < tmp555++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1646.Append(')'); - return tmp1646.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class setSchemaTemplate_args : TBase + public partial class setSchemaTemplateArgs : TBase { private TSSetSchemaTemplateReq _req; @@ -19880,7 +19207,7 @@ public struct Isset public bool req; } - public setSchemaTemplate_args() + public setSchemaTemplateArgs() { } @@ -19933,15 +19260,15 @@ public setSchemaTemplate_args() oprot.IncrementRecursionDepth(); try { - var tmp1648 = new TStruct("setSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(tmp1648, cancellationToken); - var tmp1649 = new TField(); + var struc = new TStruct("setSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1649.Name = "req"; - tmp1649.Type = TType.Struct; - tmp1649.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1649, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -19956,7 +19283,7 @@ public setSchemaTemplate_args() public override bool Equals(object that) { - if (!(that is setSchemaTemplate_args other)) return false; + 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)))); } @@ -19974,21 +19301,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1650 = new StringBuilder("setSchemaTemplate_args("); - int tmp1651 = 0; + var sb = new StringBuilder("setSchemaTemplate_args("); + int tmp556 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1651++) { tmp1650.Append(", "); } - tmp1650.Append("Req: "); - Req.ToString(tmp1650); + if(0 < tmp556++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1650.Append(')'); - return tmp1650.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class setSchemaTemplate_result : TBase + public partial class setSchemaTemplateResult : TBase { private TSStatus _success; @@ -20012,7 +19339,7 @@ public struct Isset public bool success; } - public setSchemaTemplate_result() + public setSchemaTemplateResult() { } @@ -20065,18 +19392,18 @@ public setSchemaTemplate_result() oprot.IncrementRecursionDepth(); try { - var tmp1652 = new TStruct("setSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(tmp1652, cancellationToken); - var tmp1653 = new TField(); + var struc = new TStruct("setSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1653.Name = "Success"; - tmp1653.Type = TType.Struct; - tmp1653.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1653, 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); } @@ -20092,7 +19419,7 @@ public setSchemaTemplate_result() public override bool Equals(object that) { - if (!(that is setSchemaTemplate_result other)) return false; + 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)))); } @@ -20110,21 +19437,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1654 = new StringBuilder("setSchemaTemplate_result("); - int tmp1655 = 0; + var sb = new StringBuilder("setSchemaTemplate_result("); + int tmp557 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1655++) { tmp1654.Append(", "); } - tmp1654.Append("Success: "); - Success.ToString(tmp1654); + if(0 < tmp557++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1654.Append(')'); - return tmp1654.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class unsetSchemaTemplate_args : TBase + public partial class unsetSchemaTemplateArgs : TBase { private TSUnsetSchemaTemplateReq _req; @@ -20148,7 +19475,7 @@ public struct Isset public bool req; } - public unsetSchemaTemplate_args() + public unsetSchemaTemplateArgs() { } @@ -20201,15 +19528,15 @@ public unsetSchemaTemplate_args() oprot.IncrementRecursionDepth(); try { - var tmp1656 = new TStruct("unsetSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(tmp1656, cancellationToken); - var tmp1657 = new TField(); + var struc = new TStruct("unsetSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1657.Name = "req"; - tmp1657.Type = TType.Struct; - tmp1657.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1657, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -20224,7 +19551,7 @@ public unsetSchemaTemplate_args() public override bool Equals(object that) { - if (!(that is unsetSchemaTemplate_args other)) return false; + 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)))); } @@ -20242,21 +19569,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1658 = new StringBuilder("unsetSchemaTemplate_args("); - int tmp1659 = 0; + var sb = new StringBuilder("unsetSchemaTemplate_args("); + int tmp558 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1659++) { tmp1658.Append(", "); } - tmp1658.Append("Req: "); - Req.ToString(tmp1658); + if(0 < tmp558++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1658.Append(')'); - return tmp1658.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class unsetSchemaTemplate_result : TBase + public partial class unsetSchemaTemplateResult : TBase { private TSStatus _success; @@ -20280,7 +19607,7 @@ public struct Isset public bool success; } - public unsetSchemaTemplate_result() + public unsetSchemaTemplateResult() { } @@ -20333,18 +19660,18 @@ public unsetSchemaTemplate_result() oprot.IncrementRecursionDepth(); try { - var tmp1660 = new TStruct("unsetSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(tmp1660, cancellationToken); - var tmp1661 = new TField(); + var struc = new TStruct("unsetSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1661.Name = "Success"; - tmp1661.Type = TType.Struct; - tmp1661.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1661, 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); } @@ -20360,7 +19687,7 @@ public unsetSchemaTemplate_result() public override bool Equals(object that) { - if (!(that is unsetSchemaTemplate_result other)) return false; + 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)))); } @@ -20378,21 +19705,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1662 = new StringBuilder("unsetSchemaTemplate_result("); - int tmp1663 = 0; + var sb = new StringBuilder("unsetSchemaTemplate_result("); + int tmp559 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1663++) { tmp1662.Append(", "); } - tmp1662.Append("Success: "); - Success.ToString(tmp1662); + if(0 < tmp559++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1662.Append(')'); - return tmp1662.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class dropSchemaTemplate_args : TBase + public partial class dropSchemaTemplateArgs : TBase { private TSDropSchemaTemplateReq _req; @@ -20416,7 +19743,7 @@ public struct Isset public bool req; } - public dropSchemaTemplate_args() + public dropSchemaTemplateArgs() { } @@ -20469,15 +19796,15 @@ public dropSchemaTemplate_args() oprot.IncrementRecursionDepth(); try { - var tmp1664 = new TStruct("dropSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(tmp1664, cancellationToken); - var tmp1665 = new TField(); + var struc = new TStruct("dropSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1665.Name = "req"; - tmp1665.Type = TType.Struct; - tmp1665.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1665, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -20492,7 +19819,7 @@ public dropSchemaTemplate_args() public override bool Equals(object that) { - if (!(that is dropSchemaTemplate_args other)) return false; + 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)))); } @@ -20510,21 +19837,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1666 = new StringBuilder("dropSchemaTemplate_args("); - int tmp1667 = 0; + var sb = new StringBuilder("dropSchemaTemplate_args("); + int tmp560 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1667++) { tmp1666.Append(", "); } - tmp1666.Append("Req: "); - Req.ToString(tmp1666); + if(0 < tmp560++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1666.Append(')'); - return tmp1666.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class dropSchemaTemplate_result : TBase + public partial class dropSchemaTemplateResult : TBase { private TSStatus _success; @@ -20548,7 +19875,7 @@ public struct Isset public bool success; } - public dropSchemaTemplate_result() + public dropSchemaTemplateResult() { } @@ -20601,18 +19928,18 @@ public dropSchemaTemplate_result() oprot.IncrementRecursionDepth(); try { - var tmp1668 = new TStruct("dropSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(tmp1668, cancellationToken); - var tmp1669 = new TField(); + var struc = new TStruct("dropSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1669.Name = "Success"; - tmp1669.Type = TType.Struct; - tmp1669.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1669, 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); } @@ -20628,7 +19955,7 @@ public dropSchemaTemplate_result() public override bool Equals(object that) { - if (!(that is dropSchemaTemplate_result other)) return false; + 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)))); } @@ -20646,21 +19973,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1670 = new StringBuilder("dropSchemaTemplate_result("); - int tmp1671 = 0; + var sb = new StringBuilder("dropSchemaTemplate_result("); + int tmp561 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1671++) { tmp1670.Append(", "); } - tmp1670.Append("Success: "); - Success.ToString(tmp1670); + if(0 < tmp561++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1670.Append(')'); - return tmp1670.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class createTimeseriesUsingSchemaTemplate_args : TBase + public partial class createTimeseriesUsingSchemaTemplateArgs : TBase { private TCreateTimeseriesUsingSchemaTemplateReq _req; @@ -20684,7 +20011,7 @@ public struct Isset public bool req; } - public createTimeseriesUsingSchemaTemplate_args() + public createTimeseriesUsingSchemaTemplateArgs() { } @@ -20737,15 +20064,15 @@ public createTimeseriesUsingSchemaTemplate_args() oprot.IncrementRecursionDepth(); try { - var tmp1672 = new TStruct("createTimeseriesUsingSchemaTemplate_args"); - await oprot.WriteStructBeginAsync(tmp1672, cancellationToken); - var tmp1673 = new TField(); + var struc = new TStruct("createTimeseriesUsingSchemaTemplate_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1673.Name = "req"; - tmp1673.Type = TType.Struct; - tmp1673.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1673, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -20760,7 +20087,7 @@ public createTimeseriesUsingSchemaTemplate_args() public override bool Equals(object that) { - if (!(that is createTimeseriesUsingSchemaTemplate_args other)) return false; + 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)))); } @@ -20778,21 +20105,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1674 = new StringBuilder("createTimeseriesUsingSchemaTemplate_args("); - int tmp1675 = 0; + var sb = new StringBuilder("createTimeseriesUsingSchemaTemplate_args("); + int tmp562 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1675++) { tmp1674.Append(", "); } - tmp1674.Append("Req: "); - Req.ToString(tmp1674); + if(0 < tmp562++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1674.Append(')'); - return tmp1674.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class createTimeseriesUsingSchemaTemplate_result : TBase + public partial class createTimeseriesUsingSchemaTemplateResult : TBase { private TSStatus _success; @@ -20816,7 +20143,7 @@ public struct Isset public bool success; } - public createTimeseriesUsingSchemaTemplate_result() + public createTimeseriesUsingSchemaTemplateResult() { } @@ -20869,18 +20196,18 @@ public createTimeseriesUsingSchemaTemplate_result() oprot.IncrementRecursionDepth(); try { - var tmp1676 = new TStruct("createTimeseriesUsingSchemaTemplate_result"); - await oprot.WriteStructBeginAsync(tmp1676, cancellationToken); - var tmp1677 = new TField(); + var struc = new TStruct("createTimeseriesUsingSchemaTemplate_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1677.Name = "Success"; - tmp1677.Type = TType.Struct; - tmp1677.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1677, 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); } @@ -20896,7 +20223,7 @@ public createTimeseriesUsingSchemaTemplate_result() public override bool Equals(object that) { - if (!(that is createTimeseriesUsingSchemaTemplate_result other)) return false; + 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)))); } @@ -20914,21 +20241,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1678 = new StringBuilder("createTimeseriesUsingSchemaTemplate_result("); - int tmp1679 = 0; + var sb = new StringBuilder("createTimeseriesUsingSchemaTemplate_result("); + int tmp563 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1679++) { tmp1678.Append(", "); } - tmp1678.Append("Success: "); - Success.ToString(tmp1678); + if(0 < tmp563++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1678.Append(')'); - return tmp1678.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class handshake_args : TBase + public partial class handshakeArgs : TBase { private TSyncIdentityInfo _info; @@ -20952,7 +20279,7 @@ public struct Isset public bool info; } - public handshake_args() + public handshakeArgs() { } @@ -21005,15 +20332,15 @@ public handshake_args() oprot.IncrementRecursionDepth(); try { - var tmp1680 = new TStruct("handshake_args"); - await oprot.WriteStructBeginAsync(tmp1680, cancellationToken); - var tmp1681 = new TField(); + var struc = new TStruct("handshake_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Info != null) && __isset.info) { - tmp1681.Name = "info"; - tmp1681.Type = TType.Struct; - tmp1681.ID = -1; - await oprot.WriteFieldBeginAsync(tmp1681, cancellationToken); + field.Name = "info"; + field.Type = TType.Struct; + field.ID = -1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Info.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -21028,7 +20355,7 @@ public handshake_args() public override bool Equals(object that) { - if (!(that is handshake_args other)) return false; + 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)))); } @@ -21046,21 +20373,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1682 = new StringBuilder("handshake_args("); - int tmp1683 = 0; + var sb = new StringBuilder("handshake_args("); + int tmp564 = 0; if((Info != null) && __isset.info) { - if(0 < tmp1683++) { tmp1682.Append(", "); } - tmp1682.Append("Info: "); - Info.ToString(tmp1682); + if(0 < tmp564++) { sb.Append(", "); } + sb.Append("Info: "); + Info.ToString(sb); } - tmp1682.Append(')'); - return tmp1682.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class handshake_result : TBase + public partial class handshakeResult : TBase { private TSStatus _success; @@ -21084,7 +20411,7 @@ public struct Isset public bool success; } - public handshake_result() + public handshakeResult() { } @@ -21137,18 +20464,18 @@ public handshake_result() oprot.IncrementRecursionDepth(); try { - var tmp1684 = new TStruct("handshake_result"); - await oprot.WriteStructBeginAsync(tmp1684, cancellationToken); - var tmp1685 = new TField(); + var struc = new TStruct("handshake_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1685.Name = "Success"; - tmp1685.Type = TType.Struct; - tmp1685.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1685, 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); } @@ -21164,7 +20491,7 @@ public handshake_result() public override bool Equals(object that) { - if (!(that is handshake_result other)) return false; + 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)))); } @@ -21182,21 +20509,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1686 = new StringBuilder("handshake_result("); - int tmp1687 = 0; + var sb = new StringBuilder("handshake_result("); + int tmp565 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1687++) { tmp1686.Append(", "); } - tmp1686.Append("Success: "); - Success.ToString(tmp1686); + if(0 < tmp565++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1686.Append(')'); - return tmp1686.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class sendPipeData_args : TBase + public partial class sendPipeDataArgs : TBase { private byte[] _buff; @@ -21220,7 +20547,7 @@ public struct Isset public bool buff; } - public sendPipeData_args() + public sendPipeDataArgs() { } @@ -21272,15 +20599,15 @@ public sendPipeData_args() oprot.IncrementRecursionDepth(); try { - var tmp1688 = new TStruct("sendPipeData_args"); - await oprot.WriteStructBeginAsync(tmp1688, cancellationToken); - var tmp1689 = new TField(); + var struc = new TStruct("sendPipeData_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Buff != null) && __isset.buff) { - tmp1689.Name = "buff"; - tmp1689.Type = TType.String; - tmp1689.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1689, cancellationToken); + field.Name = "buff"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBinaryAsync(Buff, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -21295,7 +20622,7 @@ public sendPipeData_args() public override bool Equals(object that) { - if (!(that is sendPipeData_args other)) return false; + 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)))); } @@ -21313,21 +20640,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1690 = new StringBuilder("sendPipeData_args("); - int tmp1691 = 0; + var sb = new StringBuilder("sendPipeData_args("); + int tmp566 = 0; if((Buff != null) && __isset.buff) { - if(0 < tmp1691++) { tmp1690.Append(", "); } - tmp1690.Append("Buff: "); - Buff.ToString(tmp1690); + if(0 < tmp566++) { sb.Append(", "); } + sb.Append("Buff: "); + Buff.ToString(sb); } - tmp1690.Append(')'); - return tmp1690.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class sendPipeData_result : TBase + public partial class sendPipeDataResult : TBase { private TSStatus _success; @@ -21351,7 +20678,7 @@ public struct Isset public bool success; } - public sendPipeData_result() + public sendPipeDataResult() { } @@ -21404,18 +20731,18 @@ public sendPipeData_result() oprot.IncrementRecursionDepth(); try { - var tmp1692 = new TStruct("sendPipeData_result"); - await oprot.WriteStructBeginAsync(tmp1692, cancellationToken); - var tmp1693 = new TField(); + var struc = new TStruct("sendPipeData_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1693.Name = "Success"; - tmp1693.Type = TType.Struct; - tmp1693.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1693, 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); } @@ -21431,7 +20758,7 @@ public sendPipeData_result() public override bool Equals(object that) { - if (!(that is sendPipeData_result other)) return false; + 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)))); } @@ -21449,21 +20776,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1694 = new StringBuilder("sendPipeData_result("); - int tmp1695 = 0; + var sb = new StringBuilder("sendPipeData_result("); + int tmp567 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1695++) { tmp1694.Append(", "); } - tmp1694.Append("Success: "); - Success.ToString(tmp1694); + if(0 < tmp567++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1694.Append(')'); - return tmp1694.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class sendFile_args : TBase + public partial class sendFileArgs : TBase { private TSyncTransportMetaInfo _metaInfo; private byte[] _buff; @@ -21502,7 +20829,7 @@ public struct Isset public bool buff; } - public sendFile_args() + public sendFileArgs() { } @@ -21565,24 +20892,24 @@ public sendFile_args() oprot.IncrementRecursionDepth(); try { - var tmp1696 = new TStruct("sendFile_args"); - await oprot.WriteStructBeginAsync(tmp1696, cancellationToken); - var tmp1697 = new TField(); + var struc = new TStruct("sendFile_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((MetaInfo != null) && __isset.metaInfo) { - tmp1697.Name = "metaInfo"; - tmp1697.Type = TType.Struct; - tmp1697.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1697, cancellationToken); + field.Name = "metaInfo"; + 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) { - tmp1697.Name = "buff"; - tmp1697.Type = TType.String; - tmp1697.ID = 2; - await oprot.WriteFieldBeginAsync(tmp1697, cancellationToken); + field.Name = "buff"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBinaryAsync(Buff, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -21597,7 +20924,7 @@ public sendFile_args() public override bool Equals(object that) { - if (!(that is sendFile_args other)) return false; + 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)))); @@ -21620,27 +20947,27 @@ public override int GetHashCode() { public override string ToString() { - var tmp1698 = new StringBuilder("sendFile_args("); - int tmp1699 = 0; + var sb = new StringBuilder("sendFile_args("); + int tmp568 = 0; if((MetaInfo != null) && __isset.metaInfo) { - if(0 < tmp1699++) { tmp1698.Append(", "); } - tmp1698.Append("MetaInfo: "); - MetaInfo.ToString(tmp1698); + if(0 < tmp568++) { sb.Append(", "); } + sb.Append("MetaInfo: "); + MetaInfo.ToString(sb); } if((Buff != null) && __isset.buff) { - if(0 < tmp1699++) { tmp1698.Append(", "); } - tmp1698.Append("Buff: "); - Buff.ToString(tmp1698); + if(0 < tmp568++) { sb.Append(", "); } + sb.Append("Buff: "); + Buff.ToString(sb); } - tmp1698.Append(')'); - return tmp1698.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class sendFile_result : TBase + public partial class sendFileResult : TBase { private TSStatus _success; @@ -21664,7 +20991,7 @@ public struct Isset public bool success; } - public sendFile_result() + public sendFileResult() { } @@ -21717,18 +21044,18 @@ public sendFile_result() oprot.IncrementRecursionDepth(); try { - var tmp1700 = new TStruct("sendFile_result"); - await oprot.WriteStructBeginAsync(tmp1700, cancellationToken); - var tmp1701 = new TField(); + var struc = new TStruct("sendFile_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1701.Name = "Success"; - tmp1701.Type = TType.Struct; - tmp1701.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1701, 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); } @@ -21744,7 +21071,7 @@ public sendFile_result() public override bool Equals(object that) { - if (!(that is sendFile_result other)) return false; + 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)))); } @@ -21762,21 +21089,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1702 = new StringBuilder("sendFile_result("); - int tmp1703 = 0; + var sb = new StringBuilder("sendFile_result("); + int tmp569 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1703++) { tmp1702.Append(", "); } - tmp1702.Append("Success: "); - Success.ToString(tmp1702); + if(0 < tmp569++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1702.Append(')'); - return tmp1702.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class pipeTransfer_args : TBase + public partial class pipeTransferArgs : TBase { private TPipeTransferReq _req; @@ -21800,7 +21127,7 @@ public struct Isset public bool req; } - public pipeTransfer_args() + public pipeTransferArgs() { } @@ -21853,15 +21180,15 @@ public pipeTransfer_args() oprot.IncrementRecursionDepth(); try { - var tmp1704 = new TStruct("pipeTransfer_args"); - await oprot.WriteStructBeginAsync(tmp1704, cancellationToken); - var tmp1705 = new TField(); + var struc = new TStruct("pipeTransfer_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1705.Name = "req"; - tmp1705.Type = TType.Struct; - tmp1705.ID = -1; - await oprot.WriteFieldBeginAsync(tmp1705, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = -1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -21876,7 +21203,7 @@ public pipeTransfer_args() public override bool Equals(object that) { - if (!(that is pipeTransfer_args other)) return false; + 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)))); } @@ -21894,21 +21221,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1706 = new StringBuilder("pipeTransfer_args("); - int tmp1707 = 0; + var sb = new StringBuilder("pipeTransfer_args("); + int tmp570 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1707++) { tmp1706.Append(", "); } - tmp1706.Append("Req: "); - Req.ToString(tmp1706); + if(0 < tmp570++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1706.Append(')'); - return tmp1706.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class pipeTransfer_result : TBase + public partial class pipeTransferResult : TBase { private TPipeTransferResp _success; @@ -21932,7 +21259,7 @@ public struct Isset public bool success; } - public pipeTransfer_result() + public pipeTransferResult() { } @@ -21985,18 +21312,18 @@ public pipeTransfer_result() oprot.IncrementRecursionDepth(); try { - var tmp1708 = new TStruct("pipeTransfer_result"); - await oprot.WriteStructBeginAsync(tmp1708, cancellationToken); - var tmp1709 = new TField(); + var struc = new TStruct("pipeTransfer_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1709.Name = "Success"; - tmp1709.Type = TType.Struct; - tmp1709.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1709, 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); } @@ -22012,7 +21339,7 @@ public pipeTransfer_result() public override bool Equals(object that) { - if (!(that is pipeTransfer_result other)) return false; + 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)))); } @@ -22030,21 +21357,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1710 = new StringBuilder("pipeTransfer_result("); - int tmp1711 = 0; + var sb = new StringBuilder("pipeTransfer_result("); + int tmp571 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1711++) { tmp1710.Append(", "); } - tmp1710.Append("Success: "); - Success.ToString(tmp1710); + if(0 < tmp571++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1710.Append(')'); - return tmp1710.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class pipeSubscribe_args : TBase + public partial class pipeSubscribeArgs : TBase { private TPipeSubscribeReq _req; @@ -22068,7 +21395,7 @@ public struct Isset public bool req; } - public pipeSubscribe_args() + public pipeSubscribeArgs() { } @@ -22121,15 +21448,15 @@ public pipeSubscribe_args() oprot.IncrementRecursionDepth(); try { - var tmp1712 = new TStruct("pipeSubscribe_args"); - await oprot.WriteStructBeginAsync(tmp1712, cancellationToken); - var tmp1713 = new TField(); + var struc = new TStruct("pipeSubscribe_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Req != null) && __isset.req) { - tmp1713.Name = "req"; - tmp1713.Type = TType.Struct; - tmp1713.ID = -1; - await oprot.WriteFieldBeginAsync(tmp1713, cancellationToken); + field.Name = "req"; + field.Type = TType.Struct; + field.ID = -1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await Req.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -22144,7 +21471,7 @@ public pipeSubscribe_args() public override bool Equals(object that) { - if (!(that is pipeSubscribe_args other)) return false; + 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)))); } @@ -22162,21 +21489,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp1714 = new StringBuilder("pipeSubscribe_args("); - int tmp1715 = 0; + var sb = new StringBuilder("pipeSubscribe_args("); + int tmp572 = 0; if((Req != null) && __isset.req) { - if(0 < tmp1715++) { tmp1714.Append(", "); } - tmp1714.Append("Req: "); - Req.ToString(tmp1714); + if(0 < tmp572++) { sb.Append(", "); } + sb.Append("Req: "); + Req.ToString(sb); } - tmp1714.Append(')'); - return tmp1714.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class pipeSubscribe_result : TBase + public partial class pipeSubscribeResult : TBase { private TPipeSubscribeResp _success; @@ -22200,7 +21527,7 @@ public struct Isset public bool success; } - public pipeSubscribe_result() + public pipeSubscribeResult() { } @@ -22253,18 +21580,18 @@ public pipeSubscribe_result() oprot.IncrementRecursionDepth(); try { - var tmp1716 = new TStruct("pipeSubscribe_result"); - await oprot.WriteStructBeginAsync(tmp1716, cancellationToken); - var tmp1717 = new TField(); + var struc = new TStruct("pipeSubscribe_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1717.Name = "Success"; - tmp1717.Type = TType.Struct; - tmp1717.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1717, 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); } @@ -22280,7 +21607,7 @@ public pipeSubscribe_result() public override bool Equals(object that) { - if (!(that is pipeSubscribe_result other)) return false; + 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)))); } @@ -22298,24 +21625,24 @@ public override int GetHashCode() { public override string ToString() { - var tmp1718 = new StringBuilder("pipeSubscribe_result("); - int tmp1719 = 0; + var sb = new StringBuilder("pipeSubscribe_result("); + int tmp573 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1719++) { tmp1718.Append(", "); } - tmp1718.Append("Success: "); - Success.ToString(tmp1718); + if(0 < tmp573++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1718.Append(')'); - return tmp1718.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class getBackupConfiguration_args : TBase + public partial class getBackupConfigurationArgs : TBase { - public getBackupConfiguration_args() + public getBackupConfigurationArgs() { } @@ -22357,8 +21684,8 @@ public getBackupConfiguration_args() oprot.IncrementRecursionDepth(); try { - var tmp1720 = new TStruct("getBackupConfiguration_args"); - await oprot.WriteStructBeginAsync(tmp1720, cancellationToken); + var struc = new TStruct("getBackupConfiguration_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -22370,7 +21697,7 @@ public getBackupConfiguration_args() public override bool Equals(object that) { - if (!(that is getBackupConfiguration_args other)) return false; + if (!(that is getBackupConfigurationArgs other)) return false; if (ReferenceEquals(this, other)) return true; return true; } @@ -22384,14 +21711,14 @@ public override int GetHashCode() { public override string ToString() { - var tmp1721 = new StringBuilder("getBackupConfiguration_args("); - tmp1721.Append(')'); - return tmp1721.ToString(); + var sb = new StringBuilder("getBackupConfiguration_args("); + sb.Append(')'); + return sb.ToString(); } } - public partial class getBackupConfiguration_result : TBase + public partial class getBackupConfigurationResult : TBase { private TSBackupConfigurationResp _success; @@ -22415,7 +21742,7 @@ public struct Isset public bool success; } - public getBackupConfiguration_result() + public getBackupConfigurationResult() { } @@ -22468,18 +21795,18 @@ public getBackupConfiguration_result() oprot.IncrementRecursionDepth(); try { - var tmp1723 = new TStruct("getBackupConfiguration_result"); - await oprot.WriteStructBeginAsync(tmp1723, cancellationToken); - var tmp1724 = new TField(); + var struc = new TStruct("getBackupConfiguration_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1724.Name = "Success"; - tmp1724.Type = TType.Struct; - tmp1724.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1724, 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); } @@ -22495,7 +21822,7 @@ public getBackupConfiguration_result() public override bool Equals(object that) { - if (!(that is getBackupConfiguration_result other)) return false; + 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)))); } @@ -22513,24 +21840,24 @@ public override int GetHashCode() { public override string ToString() { - var tmp1725 = new StringBuilder("getBackupConfiguration_result("); - int tmp1726 = 0; + var sb = new StringBuilder("getBackupConfiguration_result("); + int tmp575 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1726++) { tmp1725.Append(", "); } - tmp1725.Append("Success: "); - Success.ToString(tmp1725); + if(0 < tmp575++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1725.Append(')'); - return tmp1725.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class fetchAllConnectionsInfo_args : TBase + public partial class fetchAllConnectionsInfoArgs : TBase { - public fetchAllConnectionsInfo_args() + public fetchAllConnectionsInfoArgs() { } @@ -22572,8 +21899,8 @@ public fetchAllConnectionsInfo_args() oprot.IncrementRecursionDepth(); try { - var tmp1727 = new TStruct("fetchAllConnectionsInfo_args"); - await oprot.WriteStructBeginAsync(tmp1727, cancellationToken); + var struc = new TStruct("fetchAllConnectionsInfo_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -22585,7 +21912,7 @@ public fetchAllConnectionsInfo_args() public override bool Equals(object that) { - if (!(that is fetchAllConnectionsInfo_args other)) return false; + if (!(that is fetchAllConnectionsInfoArgs other)) return false; if (ReferenceEquals(this, other)) return true; return true; } @@ -22599,14 +21926,14 @@ public override int GetHashCode() { public override string ToString() { - var tmp1728 = new StringBuilder("fetchAllConnectionsInfo_args("); - tmp1728.Append(')'); - return tmp1728.ToString(); + var sb = new StringBuilder("fetchAllConnectionsInfo_args("); + sb.Append(')'); + return sb.ToString(); } } - public partial class fetchAllConnectionsInfo_result : TBase + public partial class fetchAllConnectionsInfoResult : TBase { private TSConnectionInfoResp _success; @@ -22630,7 +21957,7 @@ public struct Isset public bool success; } - public fetchAllConnectionsInfo_result() + public fetchAllConnectionsInfoResult() { } @@ -22683,18 +22010,18 @@ public fetchAllConnectionsInfo_result() oprot.IncrementRecursionDepth(); try { - var tmp1730 = new TStruct("fetchAllConnectionsInfo_result"); - await oprot.WriteStructBeginAsync(tmp1730, cancellationToken); - var tmp1731 = new TField(); + var struc = new TStruct("fetchAllConnectionsInfo_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1731.Name = "Success"; - tmp1731.Type = TType.Struct; - tmp1731.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1731, 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); } @@ -22710,7 +22037,7 @@ public fetchAllConnectionsInfo_result() public override bool Equals(object that) { - if (!(that is fetchAllConnectionsInfo_result other)) return false; + 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)))); } @@ -22728,24 +22055,24 @@ public override int GetHashCode() { public override string ToString() { - var tmp1732 = new StringBuilder("fetchAllConnectionsInfo_result("); - int tmp1733 = 0; + var sb = new StringBuilder("fetchAllConnectionsInfo_result("); + int tmp577 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1733++) { tmp1732.Append(", "); } - tmp1732.Append("Success: "); - Success.ToString(tmp1732); + if(0 < tmp577++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1732.Append(')'); - return tmp1732.ToString(); + sb.Append(')'); + return sb.ToString(); } } - public partial class testConnectionEmptyRPC_args : TBase + public partial class testConnectionEmptyRPCArgs : TBase { - public testConnectionEmptyRPC_args() + public testConnectionEmptyRPCArgs() { } @@ -22787,8 +22114,8 @@ public testConnectionEmptyRPC_args() oprot.IncrementRecursionDepth(); try { - var tmp1734 = new TStruct("testConnectionEmptyRPC_args"); - await oprot.WriteStructBeginAsync(tmp1734, cancellationToken); + var struc = new TStruct("testConnectionEmptyRPC_args"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -22800,7 +22127,7 @@ public testConnectionEmptyRPC_args() public override bool Equals(object that) { - if (!(that is testConnectionEmptyRPC_args other)) return false; + if (!(that is testConnectionEmptyRPCArgs other)) return false; if (ReferenceEquals(this, other)) return true; return true; } @@ -22814,14 +22141,14 @@ public override int GetHashCode() { public override string ToString() { - var tmp1735 = new StringBuilder("testConnectionEmptyRPC_args("); - tmp1735.Append(')'); - return tmp1735.ToString(); + var sb = new StringBuilder("testConnectionEmptyRPC_args("); + sb.Append(')'); + return sb.ToString(); } } - public partial class testConnectionEmptyRPC_result : TBase + public partial class testConnectionEmptyRPCResult : TBase { private TSStatus _success; @@ -22845,7 +22172,7 @@ public struct Isset public bool success; } - public testConnectionEmptyRPC_result() + public testConnectionEmptyRPCResult() { } @@ -22898,18 +22225,18 @@ public testConnectionEmptyRPC_result() oprot.IncrementRecursionDepth(); try { - var tmp1737 = new TStruct("testConnectionEmptyRPC_result"); - await oprot.WriteStructBeginAsync(tmp1737, cancellationToken); - var tmp1738 = new TField(); + var struc = new TStruct("testConnectionEmptyRPC_result"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(this.__isset.success) { if (Success != null) { - tmp1738.Name = "Success"; - tmp1738.Type = TType.Struct; - tmp1738.ID = 0; - await oprot.WriteFieldBeginAsync(tmp1738, 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); } @@ -22925,7 +22252,7 @@ public testConnectionEmptyRPC_result() public override bool Equals(object that) { - if (!(that is testConnectionEmptyRPC_result other)) return false; + 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)))); } @@ -22943,16 +22270,16 @@ public override int GetHashCode() { public override string ToString() { - var tmp1739 = new StringBuilder("testConnectionEmptyRPC_result("); - int tmp1740 = 0; + var sb = new StringBuilder("testConnectionEmptyRPC_result("); + int tmp579 = 0; if((Success != null) && __isset.success) { - if(0 < tmp1740++) { tmp1739.Append(", "); } - tmp1739.Append("Success: "); - Success.ToString(tmp1739); + if(0 < tmp579++) { sb.Append(", "); } + sb.Append("Success: "); + Success.ToString(sb); } - tmp1739.Append(')'); - return tmp1739.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/Model.cs b/src/Apache.IoTDB/Rpc/Generated/Model.cs index 2338d69..dfb0315 100644 --- a/src/Apache.IoTDB/Rpc/Generated/Model.cs +++ b/src/Apache.IoTDB/Rpc/Generated/Model.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,7 +7,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum Model { diff --git a/src/Apache.IoTDB/Rpc/Generated/ServerProperties.cs b/src/Apache.IoTDB/Rpc/Generated/ServerProperties.cs index 82b8263..c5d3a49 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class ServerProperties : TBase @@ -166,13 +165,13 @@ public ServerProperties(string version, List supportedTimeAggregationOpe if (field.Type == TType.List) { { - TList _list487 = await iprot.ReadListBeginAsync(cancellationToken); - SupportedTimeAggregationOperations = new List(_list487.Count); - for(int _i488 = 0; _i488 < _list487.Count; ++_i488) + TList _list383 = await iprot.ReadListBeginAsync(cancellationToken); + SupportedTimeAggregationOperations = new List(_list383.Count); + for(int _i384 = 0; _i384 < _list383.Count; ++_i384) { - string _elem489; - _elem489 = await iprot.ReadStringAsync(cancellationToken); - SupportedTimeAggregationOperations.Add(_elem489); + string _elem385; + _elem385 = await iprot.ReadStringAsync(cancellationToken); + SupportedTimeAggregationOperations.Add(_elem385); } await iprot.ReadListEndAsync(cancellationToken); } @@ -277,29 +276,29 @@ public ServerProperties(string version, List supportedTimeAggregationOpe oprot.IncrementRecursionDepth(); try { - var tmp490 = new TStruct("ServerProperties"); - await oprot.WriteStructBeginAsync(tmp490, cancellationToken); - var tmp491 = new TField(); + var struc = new TStruct("ServerProperties"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Version != null)) { - tmp491.Name = "version"; - tmp491.Type = TType.String; - tmp491.ID = 1; - await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); + 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)) { - tmp491.Name = "supportedTimeAggregationOperations"; - tmp491.Type = TType.List; - tmp491.ID = 2; - await oprot.WriteFieldBeginAsync(tmp491, 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 _iter492 in SupportedTimeAggregationOperations) + foreach (string _iter386 in SupportedTimeAggregationOperations) { - await oprot.WriteStringAsync(_iter492, cancellationToken); + await oprot.WriteStringAsync(_iter386, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -307,55 +306,55 @@ public ServerProperties(string version, List supportedTimeAggregationOpe } if((TimestampPrecision != null)) { - tmp491.Name = "timestampPrecision"; - tmp491.Type = TType.String; - tmp491.ID = 3; - await oprot.WriteFieldBeginAsync(tmp491, 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) { - tmp491.Name = "maxConcurrentClientNum"; - tmp491.Type = TType.I32; - tmp491.ID = 4; - await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); + field.Name = "maxConcurrentClientNum"; + field.Type = TType.I32; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(MaxConcurrentClientNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.thriftMaxFrameSize) { - tmp491.Name = "thriftMaxFrameSize"; - tmp491.Type = TType.I32; - tmp491.ID = 5; - await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); + field.Name = "thriftMaxFrameSize"; + field.Type = TType.I32; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(ThriftMaxFrameSize, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.isReadOnly) { - tmp491.Name = "isReadOnly"; - tmp491.Type = TType.Bool; - tmp491.ID = 6; - await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); + field.Name = "isReadOnly"; + field.Type = TType.Bool; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(IsReadOnly, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((BuildInfo != null) && __isset.buildInfo) { - tmp491.Name = "buildInfo"; - tmp491.Type = TType.String; - tmp491.ID = 7; - await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); + field.Name = "buildInfo"; + field.Type = TType.String; + field.ID = 7; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteStringAsync(BuildInfo, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((Logo != null) && __isset.logo) { - tmp491.Name = "logo"; - tmp491.Type = TType.String; - tmp491.ID = 8; - await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); + field.Name = "logo"; + field.Type = TType.String; + field.ID = 8; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteStringAsync(Logo, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -423,49 +422,49 @@ public override int GetHashCode() { public override string ToString() { - var tmp493 = new StringBuilder("ServerProperties("); + var sb = new StringBuilder("ServerProperties("); if((Version != null)) { - tmp493.Append(", Version: "); - Version.ToString(tmp493); + sb.Append(", Version: "); + Version.ToString(sb); } if((SupportedTimeAggregationOperations != null)) { - tmp493.Append(", SupportedTimeAggregationOperations: "); - SupportedTimeAggregationOperations.ToString(tmp493); + sb.Append(", SupportedTimeAggregationOperations: "); + SupportedTimeAggregationOperations.ToString(sb); } if((TimestampPrecision != null)) { - tmp493.Append(", TimestampPrecision: "); - TimestampPrecision.ToString(tmp493); + sb.Append(", TimestampPrecision: "); + TimestampPrecision.ToString(sb); } if(__isset.maxConcurrentClientNum) { - tmp493.Append(", MaxConcurrentClientNum: "); - MaxConcurrentClientNum.ToString(tmp493); + sb.Append(", MaxConcurrentClientNum: "); + MaxConcurrentClientNum.ToString(sb); } if(__isset.thriftMaxFrameSize) { - tmp493.Append(", ThriftMaxFrameSize: "); - ThriftMaxFrameSize.ToString(tmp493); + sb.Append(", ThriftMaxFrameSize: "); + ThriftMaxFrameSize.ToString(sb); } if(__isset.isReadOnly) { - tmp493.Append(", IsReadOnly: "); - IsReadOnly.ToString(tmp493); + sb.Append(", IsReadOnly: "); + IsReadOnly.ToString(sb); } if((BuildInfo != null) && __isset.buildInfo) { - tmp493.Append(", BuildInfo: "); - BuildInfo.ToString(tmp493); + sb.Append(", BuildInfo: "); + BuildInfo.ToString(sb); } if((Logo != null) && __isset.logo) { - tmp493.Append(", Logo: "); - Logo.ToString(tmp493); + sb.Append(", Logo: "); + Logo.ToString(sb); } - tmp493.Append(')'); - return tmp493.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TAINodeConfiguration.cs b/src/Apache.IoTDB/Rpc/Generated/TAINodeConfiguration.cs index 0a1c99a..bc17548 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TAINodeConfiguration.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TAINodeConfiguration.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TAINodeConfiguration : TBase @@ -119,24 +118,24 @@ public TAINodeConfiguration(TAINodeLocation location, TNodeResource resource) : oprot.IncrementRecursionDepth(); try { - var tmp52 = new TStruct("TAINodeConfiguration"); - await oprot.WriteStructBeginAsync(tmp52, cancellationToken); - var tmp53 = new TField(); + var struc = new TStruct("TAINodeConfiguration"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Location != null)) { - tmp53.Name = "location"; - tmp53.Type = TType.Struct; - tmp53.ID = 1; - await oprot.WriteFieldBeginAsync(tmp53, 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); } if((Resource != null)) { - tmp53.Name = "resource"; - tmp53.Type = TType.Struct; - tmp53.ID = 2; - await oprot.WriteFieldBeginAsync(tmp53, 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); } @@ -174,19 +173,19 @@ public override int GetHashCode() { public override string ToString() { - var tmp54 = new StringBuilder("TAINodeConfiguration("); + var sb = new StringBuilder("TAINodeConfiguration("); if((Location != null)) { - tmp54.Append(", Location: "); - Location.ToString(tmp54); + sb.Append(", Location: "); + Location.ToString(sb); } if((Resource != null)) { - tmp54.Append(", Resource: "); - Resource.ToString(tmp54); + sb.Append(", Resource: "); + Resource.ToString(sb); } - tmp54.Append(')'); - return tmp54.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TAINodeLocation.cs b/src/Apache.IoTDB/Rpc/Generated/TAINodeLocation.cs index cc2d242..d090f57 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TAINodeLocation.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TAINodeLocation.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TAINodeLocation : TBase @@ -118,21 +117,21 @@ public TAINodeLocation(int aiNodeId, TEndPoint internalEndPoint) : this() oprot.IncrementRecursionDepth(); try { - var tmp44 = new TStruct("TAINodeLocation"); - await oprot.WriteStructBeginAsync(tmp44, cancellationToken); - var tmp45 = new TField(); - tmp45.Name = "aiNodeId"; - tmp45.Type = TType.I32; - tmp45.ID = 1; - await oprot.WriteFieldBeginAsync(tmp45, cancellationToken); + var struc = new TStruct("TAINodeLocation"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "aiNodeId"; + field.Type = TType.I32; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(AiNodeId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if((InternalEndPoint != null)) { - tmp45.Name = "internalEndPoint"; - tmp45.Type = TType.Struct; - tmp45.ID = 2; - await oprot.WriteFieldBeginAsync(tmp45, 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); } @@ -167,16 +166,16 @@ public override int GetHashCode() { public override string ToString() { - var tmp46 = new StringBuilder("TAINodeLocation("); - tmp46.Append(", AiNodeId: "); - AiNodeId.ToString(tmp46); + var sb = new StringBuilder("TAINodeLocation("); + sb.Append(", AiNodeId: "); + AiNodeId.ToString(sb); if((InternalEndPoint != null)) { - tmp46.Append(", InternalEndPoint: "); - InternalEndPoint.ToString(tmp46); + sb.Append(", InternalEndPoint: "); + InternalEndPoint.ToString(sb); } - tmp46.Append(')'); - return tmp46.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TAggregationType.cs b/src/Apache.IoTDB/Rpc/Generated/TAggregationType.cs index 850cd1c..a8619cd 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TAggregationType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TAggregationType.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,7 +7,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum TAggregationType { diff --git a/src/Apache.IoTDB/Rpc/Generated/TConfigNodeLocation.cs b/src/Apache.IoTDB/Rpc/Generated/TConfigNodeLocation.cs index 53a77e7..f43a427 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TConfigNodeLocation : TBase @@ -138,30 +137,30 @@ public TConfigNodeLocation(int configNodeId, TEndPoint internalEndPoint, TEndPoi oprot.IncrementRecursionDepth(); try { - var tmp36 = new TStruct("TConfigNodeLocation"); - await oprot.WriteStructBeginAsync(tmp36, cancellationToken); - var tmp37 = new TField(); - tmp37.Name = "configNodeId"; - tmp37.Type = TType.I32; - tmp37.ID = 1; - await oprot.WriteFieldBeginAsync(tmp37, cancellationToken); + var struc = new TStruct("TConfigNodeLocation"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "configNodeId"; + field.Type = TType.I32; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(ConfigNodeId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if((InternalEndPoint != null)) { - tmp37.Name = "internalEndPoint"; - tmp37.Type = TType.Struct; - tmp37.ID = 2; - await oprot.WriteFieldBeginAsync(tmp37, 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); } if((ConsensusEndPoint != null)) { - tmp37.Name = "consensusEndPoint"; - tmp37.Type = TType.Struct; - tmp37.ID = 3; - await oprot.WriteFieldBeginAsync(tmp37, 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); } @@ -201,21 +200,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp38 = new StringBuilder("TConfigNodeLocation("); - tmp38.Append(", ConfigNodeId: "); - ConfigNodeId.ToString(tmp38); + var sb = new StringBuilder("TConfigNodeLocation("); + sb.Append(", ConfigNodeId: "); + ConfigNodeId.ToString(sb); if((InternalEndPoint != null)) { - tmp38.Append(", InternalEndPoint: "); - InternalEndPoint.ToString(tmp38); + sb.Append(", InternalEndPoint: "); + InternalEndPoint.ToString(sb); } if((ConsensusEndPoint != null)) { - tmp38.Append(", ConsensusEndPoint: "); - ConsensusEndPoint.ToString(tmp38); + sb.Append(", ConsensusEndPoint: "); + ConsensusEndPoint.ToString(sb); } - tmp38.Append(')'); - return tmp38.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 b02529e..34492a9 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TConsensusGroupId : TBase @@ -121,19 +120,19 @@ public TConsensusGroupId(TConsensusGroupType type, int id) : this() oprot.IncrementRecursionDepth(); try { - var tmp12 = new TStruct("TConsensusGroupId"); - await oprot.WriteStructBeginAsync(tmp12, cancellationToken); - var tmp13 = new TField(); - tmp13.Name = "type"; - tmp13.Type = TType.I32; - tmp13.ID = 1; - await oprot.WriteFieldBeginAsync(tmp13, cancellationToken); + var struc = new TStruct("TConsensusGroupId"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "type"; + field.Type = TType.I32; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async((int)Type, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - tmp13.Name = "id"; - tmp13.Type = TType.I32; - tmp13.ID = 2; - await oprot.WriteFieldBeginAsync(tmp13, cancellationToken); + field.Name = "id"; + field.Type = TType.I32; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(Id, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -164,13 +163,13 @@ public override int GetHashCode() { public override string ToString() { - var tmp14 = new StringBuilder("TConsensusGroupId("); - tmp14.Append(", Type: "); - Type.ToString(tmp14); - tmp14.Append(", Id: "); - Id.ToString(tmp14); - tmp14.Append(')'); - return tmp14.ToString(); + var sb = new StringBuilder("TConsensusGroupId("); + sb.Append(", Type: "); + Type.ToString(sb); + sb.Append(", Id: "); + 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 6adeab4..c4f3c78 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TConsensusGroupType.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,7 +7,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum TConsensusGroupType { diff --git a/src/Apache.IoTDB/Rpc/Generated/TCreateTimeseriesUsingSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TCreateTimeseriesUsingSchemaTemplateReq.cs index a175c48..5f98b7a 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TCreateTimeseriesUsingSchemaTemplateReq : TBase @@ -81,13 +80,13 @@ public TCreateTimeseriesUsingSchemaTemplateReq(long sessionId, List devi if (field.Type == TType.List) { { - TList _list547 = await iprot.ReadListBeginAsync(cancellationToken); - DevicePathList = new List(_list547.Count); - for(int _i548 = 0; _i548 < _list547.Count; ++_i548) + TList _list416 = await iprot.ReadListBeginAsync(cancellationToken); + DevicePathList = new List(_list416.Count); + for(int _i417 = 0; _i417 < _list416.Count; ++_i417) { - string _elem549; - _elem549 = await iprot.ReadStringAsync(cancellationToken); - DevicePathList.Add(_elem549); + string _elem418; + _elem418 = await iprot.ReadStringAsync(cancellationToken); + DevicePathList.Add(_elem418); } await iprot.ReadListEndAsync(cancellationToken); } @@ -127,26 +126,26 @@ public TCreateTimeseriesUsingSchemaTemplateReq(long sessionId, List devi oprot.IncrementRecursionDepth(); try { - var tmp550 = new TStruct("TCreateTimeseriesUsingSchemaTemplateReq"); - await oprot.WriteStructBeginAsync(tmp550, cancellationToken); - var tmp551 = new TField(); - tmp551.Name = "sessionId"; - tmp551.Type = TType.I64; - tmp551.ID = 1; - await oprot.WriteFieldBeginAsync(tmp551, cancellationToken); + 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); if((DevicePathList != null)) { - tmp551.Name = "devicePathList"; - tmp551.Type = TType.List; - tmp551.ID = 2; - await oprot.WriteFieldBeginAsync(tmp551, 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 _iter552 in DevicePathList) + foreach (string _iter419 in DevicePathList) { - await oprot.WriteStringAsync(_iter552, cancellationToken); + await oprot.WriteStringAsync(_iter419, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -183,16 +182,16 @@ public override int GetHashCode() { public override string ToString() { - var tmp553 = new StringBuilder("TCreateTimeseriesUsingSchemaTemplateReq("); - tmp553.Append(", SessionId: "); - SessionId.ToString(tmp553); + var sb = new StringBuilder("TCreateTimeseriesUsingSchemaTemplateReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((DevicePathList != null)) { - tmp553.Append(", DevicePathList: "); - DevicePathList.ToString(tmp553); + sb.Append(", DevicePathList: "); + DevicePathList.ToString(sb); } - tmp553.Append(')'); - return tmp553.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TDataNodeConfiguration.cs b/src/Apache.IoTDB/Rpc/Generated/TDataNodeConfiguration.cs index a542f90..e56db6c 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TDataNodeConfiguration : TBase @@ -119,24 +118,24 @@ public TDataNodeConfiguration(TDataNodeLocation location, TNodeResource resource oprot.IncrementRecursionDepth(); try { - var tmp48 = new TStruct("TDataNodeConfiguration"); - await oprot.WriteStructBeginAsync(tmp48, cancellationToken); - var tmp49 = new TField(); + var struc = new TStruct("TDataNodeConfiguration"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Location != null)) { - tmp49.Name = "location"; - tmp49.Type = TType.Struct; - tmp49.ID = 1; - await oprot.WriteFieldBeginAsync(tmp49, 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); } if((Resource != null)) { - tmp49.Name = "resource"; - tmp49.Type = TType.Struct; - tmp49.ID = 2; - await oprot.WriteFieldBeginAsync(tmp49, 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); } @@ -174,19 +173,19 @@ public override int GetHashCode() { public override string ToString() { - var tmp50 = new StringBuilder("TDataNodeConfiguration("); + var sb = new StringBuilder("TDataNodeConfiguration("); if((Location != null)) { - tmp50.Append(", Location: "); - Location.ToString(tmp50); + sb.Append(", Location: "); + Location.ToString(sb); } if((Resource != null)) { - tmp50.Append(", Resource: "); - Resource.ToString(tmp50); + sb.Append(", Resource: "); + Resource.ToString(sb); } - tmp50.Append(')'); - return tmp50.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 32d53e3..303f0b6 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TDataNodeLocation : TBase @@ -198,57 +197,57 @@ public TDataNodeLocation(int dataNodeId, TEndPoint clientRpcEndPoint, TEndPoint oprot.IncrementRecursionDepth(); try { - var tmp40 = new TStruct("TDataNodeLocation"); - await oprot.WriteStructBeginAsync(tmp40, cancellationToken); - var tmp41 = new TField(); - tmp41.Name = "dataNodeId"; - tmp41.Type = TType.I32; - tmp41.ID = 1; - await oprot.WriteFieldBeginAsync(tmp41, cancellationToken); + var struc = new TStruct("TDataNodeLocation"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "dataNodeId"; + field.Type = TType.I32; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(DataNodeId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if((ClientRpcEndPoint != null)) { - tmp41.Name = "clientRpcEndPoint"; - tmp41.Type = TType.Struct; - tmp41.ID = 2; - await oprot.WriteFieldBeginAsync(tmp41, 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); } if((InternalEndPoint != null)) { - tmp41.Name = "internalEndPoint"; - tmp41.Type = TType.Struct; - tmp41.ID = 3; - await oprot.WriteFieldBeginAsync(tmp41, 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); } if((MPPDataExchangeEndPoint != null)) { - tmp41.Name = "mPPDataExchangeEndPoint"; - tmp41.Type = TType.Struct; - tmp41.ID = 4; - await oprot.WriteFieldBeginAsync(tmp41, 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); } if((DataRegionConsensusEndPoint != null)) { - tmp41.Name = "dataRegionConsensusEndPoint"; - tmp41.Type = TType.Struct; - tmp41.ID = 5; - await oprot.WriteFieldBeginAsync(tmp41, 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); } if((SchemaRegionConsensusEndPoint != null)) { - tmp41.Name = "schemaRegionConsensusEndPoint"; - tmp41.Type = TType.Struct; - tmp41.ID = 6; - await oprot.WriteFieldBeginAsync(tmp41, 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); } @@ -303,36 +302,36 @@ public override int GetHashCode() { public override string ToString() { - var tmp42 = new StringBuilder("TDataNodeLocation("); - tmp42.Append(", DataNodeId: "); - DataNodeId.ToString(tmp42); + var sb = new StringBuilder("TDataNodeLocation("); + sb.Append(", DataNodeId: "); + DataNodeId.ToString(sb); if((ClientRpcEndPoint != null)) { - tmp42.Append(", ClientRpcEndPoint: "); - ClientRpcEndPoint.ToString(tmp42); + sb.Append(", ClientRpcEndPoint: "); + ClientRpcEndPoint.ToString(sb); } if((InternalEndPoint != null)) { - tmp42.Append(", InternalEndPoint: "); - InternalEndPoint.ToString(tmp42); + sb.Append(", InternalEndPoint: "); + InternalEndPoint.ToString(sb); } if((MPPDataExchangeEndPoint != null)) { - tmp42.Append(", MPPDataExchangeEndPoint: "); - MPPDataExchangeEndPoint.ToString(tmp42); + sb.Append(", MPPDataExchangeEndPoint: "); + MPPDataExchangeEndPoint.ToString(sb); } if((DataRegionConsensusEndPoint != null)) { - tmp42.Append(", DataRegionConsensusEndPoint: "); - DataRegionConsensusEndPoint.ToString(tmp42); + sb.Append(", DataRegionConsensusEndPoint: "); + DataRegionConsensusEndPoint.ToString(sb); } if((SchemaRegionConsensusEndPoint != null)) { - tmp42.Append(", SchemaRegionConsensusEndPoint: "); - SchemaRegionConsensusEndPoint.ToString(tmp42); + sb.Append(", SchemaRegionConsensusEndPoint: "); + SchemaRegionConsensusEndPoint.ToString(sb); } - tmp42.Append(')'); - return tmp42.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 b057267..db66a12 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TEndPoint : TBase @@ -117,22 +116,22 @@ public TEndPoint(string ip, int port) : this() oprot.IncrementRecursionDepth(); try { - var tmp0 = new TStruct("TEndPoint"); - await oprot.WriteStructBeginAsync(tmp0, cancellationToken); - var tmp1 = new TField(); + var struc = new TStruct("TEndPoint"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Ip != null)) { - tmp1.Name = "ip"; - tmp1.Type = TType.String; - tmp1.ID = 1; - await oprot.WriteFieldBeginAsync(tmp1, 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); } - tmp1.Name = "port"; - tmp1.Type = TType.I32; - tmp1.ID = 2; - await oprot.WriteFieldBeginAsync(tmp1, cancellationToken); + field.Name = "port"; + field.Type = TType.I32; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(Port, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -166,16 +165,16 @@ public override int GetHashCode() { public override string ToString() { - var tmp2 = new StringBuilder("TEndPoint("); + var sb = new StringBuilder("TEndPoint("); if((Ip != null)) { - tmp2.Append(", Ip: "); - Ip.ToString(tmp2); + sb.Append(", Ip: "); + Ip.ToString(sb); } - tmp2.Append(", Port: "); - Port.ToString(tmp2); - tmp2.Append(')'); - return tmp2.ToString(); + sb.Append(", Port: "); + 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 662bb31..1ff51fc 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TFile : TBase @@ -117,24 +116,24 @@ public TFile(string fileName, byte[] file) : this() oprot.IncrementRecursionDepth(); try { - var tmp105 = new TStruct("TFile"); - await oprot.WriteStructBeginAsync(tmp105, cancellationToken); - var tmp106 = new TField(); + var struc = new TStruct("TFile"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((FileName != null)) { - tmp106.Name = "fileName"; - tmp106.Type = TType.String; - tmp106.ID = 1; - await oprot.WriteFieldBeginAsync(tmp106, 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); } if((File != null)) { - tmp106.Name = "file"; - tmp106.Type = TType.String; - tmp106.ID = 2; - await oprot.WriteFieldBeginAsync(tmp106, 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); } @@ -172,19 +171,19 @@ public override int GetHashCode() { public override string ToString() { - var tmp107 = new StringBuilder("TFile("); + var sb = new StringBuilder("TFile("); if((FileName != null)) { - tmp107.Append(", FileName: "); - FileName.ToString(tmp107); + sb.Append(", FileName: "); + FileName.ToString(sb); } if((File != null)) { - tmp107.Append(", File: "); - File.ToString(tmp107); + sb.Append(", File: "); + File.ToString(sb); } - tmp107.Append(')'); - return tmp107.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs b/src/Apache.IoTDB/Rpc/Generated/TFilesResp.cs index f5cd30e..4e1abe6 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TFilesResp : TBase @@ -82,14 +81,14 @@ public TFilesResp(TSStatus status, List files) : this() if (field.Type == TType.List) { { - TList _list109 = await iprot.ReadListBeginAsync(cancellationToken); - Files = new List(_list109.Count); - for(int _i110 = 0; _i110 < _list109.Count; ++_i110) + TList _list52 = await iprot.ReadListBeginAsync(cancellationToken); + Files = new List(_list52.Count); + for(int _i53 = 0; _i53 < _list52.Count; ++_i53) { - TFile _elem111; - _elem111 = new TFile(); - await _elem111.ReadAsync(iprot, cancellationToken); - Files.Add(_elem111); + TFile _elem54; + _elem54 = new TFile(); + await _elem54.ReadAsync(iprot, cancellationToken); + Files.Add(_elem54); } await iprot.ReadListEndAsync(cancellationToken); } @@ -129,29 +128,29 @@ public TFilesResp(TSStatus status, List files) : this() oprot.IncrementRecursionDepth(); try { - var tmp112 = new TStruct("TFilesResp"); - await oprot.WriteStructBeginAsync(tmp112, cancellationToken); - var tmp113 = new TField(); + var struc = new TStruct("TFilesResp"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Status != null)) { - tmp113.Name = "status"; - tmp113.Type = TType.Struct; - tmp113.ID = 1; - await oprot.WriteFieldBeginAsync(tmp113, 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); } if((Files != null)) { - tmp113.Name = "files"; - tmp113.Type = TType.List; - tmp113.ID = 2; - await oprot.WriteFieldBeginAsync(tmp113, 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 _iter114 in Files) + foreach (TFile _iter55 in Files) { - await _iter114.WriteAsync(oprot, cancellationToken); + await _iter55.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -191,19 +190,19 @@ public override int GetHashCode() { public override string ToString() { - var tmp115 = new StringBuilder("TFilesResp("); + var sb = new StringBuilder("TFilesResp("); if((Status != null)) { - tmp115.Append(", Status: "); - Status.ToString(tmp115); + sb.Append(", Status: "); + Status.ToString(sb); } if((Files != null)) { - tmp115.Append(", Files: "); - Files.ToString(tmp115); + sb.Append(", Files: "); + Files.ToString(sb); } - tmp115.Append(')'); - return tmp115.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs b/src/Apache.IoTDB/Rpc/Generated/TFlushReq.cs index 052fa54..7091dad 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TFlushReq : TBase @@ -119,13 +118,13 @@ public TFlushReq() if (field.Type == TType.List) { { - TList _list56 = await iprot.ReadListBeginAsync(cancellationToken); - StorageGroups = new List(_list56.Count); - for(int _i57 = 0; _i57 < _list56.Count; ++_i57) + TList _list20 = await iprot.ReadListBeginAsync(cancellationToken); + StorageGroups = new List(_list20.Count); + for(int _i21 = 0; _i21 < _list20.Count; ++_i21) { - string _elem58; - _elem58 = await iprot.ReadStringAsync(cancellationToken); - StorageGroups.Add(_elem58); + string _elem22; + _elem22 = await iprot.ReadStringAsync(cancellationToken); + StorageGroups.Add(_elem22); } await iprot.ReadListEndAsync(cancellationToken); } @@ -139,13 +138,13 @@ public TFlushReq() if (field.Type == TType.List) { { - TList _list59 = await iprot.ReadListBeginAsync(cancellationToken); - RegionIds = new List(_list59.Count); - for(int _i60 = 0; _i60 < _list59.Count; ++_i60) + TList _list23 = await iprot.ReadListBeginAsync(cancellationToken); + RegionIds = new List(_list23.Count); + for(int _i24 = 0; _i24 < _list23.Count; ++_i24) { - string _elem61; - _elem61 = await iprot.ReadStringAsync(cancellationToken); - RegionIds.Add(_elem61); + string _elem25; + _elem25 = await iprot.ReadStringAsync(cancellationToken); + RegionIds.Add(_elem25); } await iprot.ReadListEndAsync(cancellationToken); } @@ -176,29 +175,29 @@ public TFlushReq() oprot.IncrementRecursionDepth(); try { - var tmp62 = new TStruct("TFlushReq"); - await oprot.WriteStructBeginAsync(tmp62, cancellationToken); - var tmp63 = new TField(); + var struc = new TStruct("TFlushReq"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((IsSeq != null) && __isset.isSeq) { - tmp63.Name = "isSeq"; - tmp63.Type = TType.String; - tmp63.ID = 1; - await oprot.WriteFieldBeginAsync(tmp63, cancellationToken); + field.Name = "isSeq"; + field.Type = TType.String; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteStringAsync(IsSeq, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((StorageGroups != null) && __isset.storageGroups) { - tmp63.Name = "storageGroups"; - tmp63.Type = TType.List; - tmp63.ID = 2; - await oprot.WriteFieldBeginAsync(tmp63, cancellationToken); + field.Name = "storageGroups"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, StorageGroups.Count), cancellationToken); - foreach (string _iter64 in StorageGroups) + foreach (string _iter26 in StorageGroups) { - await oprot.WriteStringAsync(_iter64, cancellationToken); + await oprot.WriteStringAsync(_iter26, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -206,15 +205,15 @@ public TFlushReq() } if((RegionIds != null) && __isset.regionIds) { - tmp63.Name = "regionIds"; - tmp63.Type = TType.List; - tmp63.ID = 3; - await oprot.WriteFieldBeginAsync(tmp63, cancellationToken); + field.Name = "regionIds"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, RegionIds.Count), cancellationToken); - foreach (string _iter65 in RegionIds) + foreach (string _iter27 in RegionIds) { - await oprot.WriteStringAsync(_iter65, cancellationToken); + await oprot.WriteStringAsync(_iter27, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -259,28 +258,28 @@ public override int GetHashCode() { public override string ToString() { - var tmp66 = new StringBuilder("TFlushReq("); - int tmp67 = 0; + var sb = new StringBuilder("TFlushReq("); + int tmp28 = 0; if((IsSeq != null) && __isset.isSeq) { - if(0 < tmp67++) { tmp66.Append(", "); } - tmp66.Append("IsSeq: "); - IsSeq.ToString(tmp66); + if(0 < tmp28++) { sb.Append(", "); } + sb.Append("IsSeq: "); + IsSeq.ToString(sb); } if((StorageGroups != null) && __isset.storageGroups) { - if(0 < tmp67++) { tmp66.Append(", "); } - tmp66.Append("StorageGroups: "); - StorageGroups.ToString(tmp66); + if(0 < tmp28++) { sb.Append(", "); } + sb.Append("StorageGroups: "); + StorageGroups.ToString(sb); } if((RegionIds != null) && __isset.regionIds) { - if(0 < tmp67++) { tmp66.Append(", "); } - tmp66.Append("RegionIds: "); - RegionIds.ToString(tmp66); + if(0 < tmp28++) { sb.Append(", "); } + sb.Append("RegionIds: "); + RegionIds.ToString(sb); } - tmp66.Append(')'); - return tmp66.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TLicense.cs b/src/Apache.IoTDB/Rpc/Generated/TLicense.cs index 53b9e14..173ddf7 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TLicense : TBase @@ -231,55 +230,55 @@ public TLicense(long licenseIssueTimestamp, long expireTimestamp, short dataNode oprot.IncrementRecursionDepth(); try { - var tmp146 = new TStruct("TLicense"); - await oprot.WriteStructBeginAsync(tmp146, cancellationToken); - var tmp147 = new TField(); - tmp147.Name = "licenseIssueTimestamp"; - tmp147.Type = TType.I64; - tmp147.ID = 1; - await oprot.WriteFieldBeginAsync(tmp147, cancellationToken); + 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); - tmp147.Name = "expireTimestamp"; - tmp147.Type = TType.I64; - tmp147.ID = 2; - await oprot.WriteFieldBeginAsync(tmp147, 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); - tmp147.Name = "dataNodeNumLimit"; - tmp147.Type = TType.I16; - tmp147.ID = 4; - await oprot.WriteFieldBeginAsync(tmp147, 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); - tmp147.Name = "cpuCoreNumLimit"; - tmp147.Type = TType.I32; - tmp147.ID = 5; - await oprot.WriteFieldBeginAsync(tmp147, 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); - tmp147.Name = "deviceNumLimit"; - tmp147.Type = TType.I64; - tmp147.ID = 6; - await oprot.WriteFieldBeginAsync(tmp147, 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); - tmp147.Name = "sensorNumLimit"; - tmp147.Type = TType.I64; - tmp147.ID = 7; - await oprot.WriteFieldBeginAsync(tmp147, 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); - tmp147.Name = "disconnectionFromActiveNodeTimeLimit"; - tmp147.Type = TType.I64; - tmp147.ID = 8; - await oprot.WriteFieldBeginAsync(tmp147, 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); - tmp147.Name = "mlNodeNumLimit"; - tmp147.Type = TType.I16; - tmp147.ID = 9; - await oprot.WriteFieldBeginAsync(tmp147, 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); @@ -322,25 +321,25 @@ public override int GetHashCode() { public override string ToString() { - var tmp148 = new StringBuilder("TLicense("); - tmp148.Append(", LicenseIssueTimestamp: "); - LicenseIssueTimestamp.ToString(tmp148); - tmp148.Append(", ExpireTimestamp: "); - ExpireTimestamp.ToString(tmp148); - tmp148.Append(", DataNodeNumLimit: "); - DataNodeNumLimit.ToString(tmp148); - tmp148.Append(", CpuCoreNumLimit: "); - CpuCoreNumLimit.ToString(tmp148); - tmp148.Append(", DeviceNumLimit: "); - DeviceNumLimit.ToString(tmp148); - tmp148.Append(", SensorNumLimit: "); - SensorNumLimit.ToString(tmp148); - tmp148.Append(", DisconnectionFromActiveNodeTimeLimit: "); - DisconnectionFromActiveNodeTimeLimit.ToString(tmp148); - tmp148.Append(", MlNodeNumLimit: "); - MlNodeNumLimit.ToString(tmp148); - tmp148.Append(')'); - return tmp148.ToString(); + var sb = new StringBuilder("TLicense("); + sb.Append(", LicenseIssueTimestamp: "); + LicenseIssueTimestamp.ToString(sb); + sb.Append(", ExpireTimestamp: "); + ExpireTimestamp.ToString(sb); + sb.Append(", DataNodeNumLimit: "); + DataNodeNumLimit.ToString(sb); + sb.Append(", CpuCoreNumLimit: "); + CpuCoreNumLimit.ToString(sb); + sb.Append(", DeviceNumLimit: "); + DeviceNumLimit.ToString(sb); + sb.Append(", SensorNumLimit: "); + SensorNumLimit.ToString(sb); + sb.Append(", DisconnectionFromActiveNodeTimeLimit: "); + DisconnectionFromActiveNodeTimeLimit.ToString(sb); + sb.Append(", MlNodeNumLimit: "); + MlNodeNumLimit.ToString(sb); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TLoadSample.cs b/src/Apache.IoTDB/Rpc/Generated/TLoadSample.cs index 32ab35c..d4248b9 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TLoadSample.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TLoadSample.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TLoadSample : TBase @@ -155,31 +154,31 @@ public TLoadSample(double cpuUsageRate, double memoryUsageRate, double diskUsage oprot.IncrementRecursionDepth(); try { - var tmp150 = new TStruct("TLoadSample"); - await oprot.WriteStructBeginAsync(tmp150, cancellationToken); - var tmp151 = new TField(); - tmp151.Name = "cpuUsageRate"; - tmp151.Type = TType.Double; - tmp151.ID = 1; - await oprot.WriteFieldBeginAsync(tmp151, cancellationToken); + var struc = new TStruct("TLoadSample"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "cpuUsageRate"; + field.Type = TType.Double; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteDoubleAsync(CpuUsageRate, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - tmp151.Name = "memoryUsageRate"; - tmp151.Type = TType.Double; - tmp151.ID = 2; - await oprot.WriteFieldBeginAsync(tmp151, cancellationToken); + field.Name = "memoryUsageRate"; + field.Type = TType.Double; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteDoubleAsync(MemoryUsageRate, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - tmp151.Name = "diskUsageRate"; - tmp151.Type = TType.Double; - tmp151.ID = 3; - await oprot.WriteFieldBeginAsync(tmp151, cancellationToken); + field.Name = "diskUsageRate"; + field.Type = TType.Double; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteDoubleAsync(DiskUsageRate, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - tmp151.Name = "freeDiskSpace"; - tmp151.Type = TType.Double; - tmp151.ID = 4; - await oprot.WriteFieldBeginAsync(tmp151, cancellationToken); + field.Name = "freeDiskSpace"; + field.Type = TType.Double; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteDoubleAsync(FreeDiskSpace, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -214,17 +213,17 @@ public override int GetHashCode() { public override string ToString() { - var tmp152 = new StringBuilder("TLoadSample("); - tmp152.Append(", CpuUsageRate: "); - CpuUsageRate.ToString(tmp152); - tmp152.Append(", MemoryUsageRate: "); - MemoryUsageRate.ToString(tmp152); - tmp152.Append(", DiskUsageRate: "); - DiskUsageRate.ToString(tmp152); - tmp152.Append(", FreeDiskSpace: "); - FreeDiskSpace.ToString(tmp152); - tmp152.Append(')'); - return tmp152.ToString(); + var sb = new StringBuilder("TLoadSample("); + sb.Append(", CpuUsageRate: "); + CpuUsageRate.ToString(sb); + sb.Append(", MemoryUsageRate: "); + MemoryUsageRate.ToString(sb); + sb.Append(", DiskUsageRate: "); + DiskUsageRate.ToString(sb); + sb.Append(", FreeDiskSpace: "); + FreeDiskSpace.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 4505649..868782b 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TNodeLocations : TBase @@ -94,14 +93,14 @@ public TNodeLocations() if (field.Type == TType.List) { { - TList _list174 = await iprot.ReadListBeginAsync(cancellationToken); - ConfigNodeLocations = new List(_list174.Count); - for(int _i175 = 0; _i175 < _list174.Count; ++_i175) + TList _list98 = await iprot.ReadListBeginAsync(cancellationToken); + ConfigNodeLocations = new List(_list98.Count); + for(int _i99 = 0; _i99 < _list98.Count; ++_i99) { - TConfigNodeLocation _elem176; - _elem176 = new TConfigNodeLocation(); - await _elem176.ReadAsync(iprot, cancellationToken); - ConfigNodeLocations.Add(_elem176); + TConfigNodeLocation _elem100; + _elem100 = new TConfigNodeLocation(); + await _elem100.ReadAsync(iprot, cancellationToken); + ConfigNodeLocations.Add(_elem100); } await iprot.ReadListEndAsync(cancellationToken); } @@ -115,14 +114,14 @@ public TNodeLocations() if (field.Type == TType.List) { { - TList _list177 = await iprot.ReadListBeginAsync(cancellationToken); - DataNodeLocations = new List(_list177.Count); - for(int _i178 = 0; _i178 < _list177.Count; ++_i178) + TList _list101 = await iprot.ReadListBeginAsync(cancellationToken); + DataNodeLocations = new List(_list101.Count); + for(int _i102 = 0; _i102 < _list101.Count; ++_i102) { - TDataNodeLocation _elem179; - _elem179 = new TDataNodeLocation(); - await _elem179.ReadAsync(iprot, cancellationToken); - DataNodeLocations.Add(_elem179); + TDataNodeLocation _elem103; + _elem103 = new TDataNodeLocation(); + await _elem103.ReadAsync(iprot, cancellationToken); + DataNodeLocations.Add(_elem103); } await iprot.ReadListEndAsync(cancellationToken); } @@ -153,20 +152,20 @@ public TNodeLocations() oprot.IncrementRecursionDepth(); try { - var tmp180 = new TStruct("TNodeLocations"); - await oprot.WriteStructBeginAsync(tmp180, cancellationToken); - var tmp181 = new TField(); + var struc = new TStruct("TNodeLocations"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((ConfigNodeLocations != null) && __isset.configNodeLocations) { - tmp181.Name = "configNodeLocations"; - tmp181.Type = TType.List; - tmp181.ID = 1; - await oprot.WriteFieldBeginAsync(tmp181, cancellationToken); + 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 _iter182 in ConfigNodeLocations) + foreach (TConfigNodeLocation _iter104 in ConfigNodeLocations) { - await _iter182.WriteAsync(oprot, cancellationToken); + await _iter104.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -174,15 +173,15 @@ public TNodeLocations() } if((DataNodeLocations != null) && __isset.dataNodeLocations) { - tmp181.Name = "dataNodeLocations"; - tmp181.Type = TType.List; - tmp181.ID = 2; - await oprot.WriteFieldBeginAsync(tmp181, 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 _iter183 in DataNodeLocations) + foreach (TDataNodeLocation _iter105 in DataNodeLocations) { - await _iter183.WriteAsync(oprot, cancellationToken); + await _iter105.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -222,22 +221,22 @@ public override int GetHashCode() { public override string ToString() { - var tmp184 = new StringBuilder("TNodeLocations("); - int tmp185 = 0; + var sb = new StringBuilder("TNodeLocations("); + int tmp106 = 0; if((ConfigNodeLocations != null) && __isset.configNodeLocations) { - if(0 < tmp185++) { tmp184.Append(", "); } - tmp184.Append("ConfigNodeLocations: "); - ConfigNodeLocations.ToString(tmp184); + if(0 < tmp106++) { sb.Append(", "); } + sb.Append("ConfigNodeLocations: "); + ConfigNodeLocations.ToString(sb); } if((DataNodeLocations != null) && __isset.dataNodeLocations) { - if(0 < tmp185++) { tmp184.Append(", "); } - tmp184.Append("DataNodeLocations: "); - DataNodeLocations.ToString(tmp184); + if(0 < tmp106++) { sb.Append(", "); } + sb.Append("DataNodeLocations: "); + DataNodeLocations.ToString(sb); } - tmp184.Append(')'); - return tmp184.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TNodeResource.cs b/src/Apache.IoTDB/Rpc/Generated/TNodeResource.cs index 437e2ad..3df3303 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TNodeResource : TBase @@ -117,19 +116,19 @@ public TNodeResource(int cpuCoreNum, long maxMemory) : this() oprot.IncrementRecursionDepth(); try { - var tmp32 = new TStruct("TNodeResource"); - await oprot.WriteStructBeginAsync(tmp32, cancellationToken); - var tmp33 = new TField(); - tmp33.Name = "cpuCoreNum"; - tmp33.Type = TType.I32; - tmp33.ID = 1; - await oprot.WriteFieldBeginAsync(tmp33, cancellationToken); + var struc = new TStruct("TNodeResource"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "cpuCoreNum"; + field.Type = TType.I32; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(CpuCoreNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - tmp33.Name = "maxMemory"; - tmp33.Type = TType.I64; - tmp33.ID = 2; - await oprot.WriteFieldBeginAsync(tmp33, cancellationToken); + field.Name = "maxMemory"; + field.Type = TType.I64; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(MaxMemory, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -160,13 +159,13 @@ public override int GetHashCode() { public override string ToString() { - var tmp34 = new StringBuilder("TNodeResource("); - tmp34.Append(", CpuCoreNum: "); - CpuCoreNum.ToString(tmp34); - tmp34.Append(", MaxMemory: "); - MaxMemory.ToString(tmp34); - tmp34.Append(')'); - return tmp34.ToString(); + var sb = new StringBuilder("TNodeResource("); + sb.Append(", CpuCoreNum: "); + CpuCoreNum.ToString(sb); + sb.Append(", MaxMemory: "); + MaxMemory.ToString(sb); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TPipeHeartbeatResp.cs b/src/Apache.IoTDB/Rpc/Generated/TPipeHeartbeatResp.cs new file mode 100644 index 0000000..501e3a3 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/Generated/TPipeHeartbeatResp.cs @@ -0,0 +1,357 @@ +/** + * 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; + +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; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE1006 // parts of the code use IDL spelling + + +public partial class TPipeHeartbeatResp : TBase +{ + private List _pipeCompletedList; + private List _pipeRemainingEventCountList; + private List _pipeRemainingTimeList; + + public List PipeMetaList { get; set; } + + public List PipeCompletedList + { + get + { + return _pipeCompletedList; + } + set + { + __isset.pipeCompletedList = true; + this._pipeCompletedList = value; + } + } + + public List PipeRemainingEventCountList + { + get + { + return _pipeRemainingEventCountList; + } + set + { + __isset.pipeRemainingEventCountList = true; + this._pipeRemainingEventCountList = value; + } + } + + public List PipeRemainingTimeList + { + get + { + return _pipeRemainingTimeList; + } + set + { + __isset.pipeRemainingTimeList = true; + this._pipeRemainingTimeList = value; + } + } + + + public Isset __isset; + public struct Isset + { + public bool pipeCompletedList; + public bool pipeRemainingEventCountList; + public bool pipeRemainingTimeList; + } + + public TPipeHeartbeatResp() + { + } + + public TPipeHeartbeatResp(List pipeMetaList) : this() + { + this.PipeMetaList = pipeMetaList; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + bool isset_pipeMetaList = 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 _list71 = await iprot.ReadListBeginAsync(cancellationToken); + PipeMetaList = new List(_list71.Count); + for(int _i72 = 0; _i72 < _list71.Count; ++_i72) + { + byte[] _elem73; + _elem73 = await iprot.ReadBinaryAsync(cancellationToken); + PipeMetaList.Add(_elem73); + } + await iprot.ReadListEndAsync(cancellationToken); + } + isset_pipeMetaList = true; + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.List) + { + { + TList _list74 = await iprot.ReadListBeginAsync(cancellationToken); + PipeCompletedList = new List(_list74.Count); + for(int _i75 = 0; _i75 < _list74.Count; ++_i75) + { + bool _elem76; + _elem76 = await iprot.ReadBoolAsync(cancellationToken); + PipeCompletedList.Add(_elem76); + } + await iprot.ReadListEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.List) + { + { + TList _list77 = await iprot.ReadListBeginAsync(cancellationToken); + PipeRemainingEventCountList = new List(_list77.Count); + for(int _i78 = 0; _i78 < _list77.Count; ++_i78) + { + long _elem79; + _elem79 = await iprot.ReadI64Async(cancellationToken); + PipeRemainingEventCountList.Add(_elem79); + } + await iprot.ReadListEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.List) + { + { + TList _list80 = await iprot.ReadListBeginAsync(cancellationToken); + PipeRemainingTimeList = new List(_list80.Count); + for(int _i81 = 0; _i81 < _list80.Count; ++_i81) + { + double _elem82; + _elem82 = await iprot.ReadDoubleAsync(cancellationToken); + PipeRemainingTimeList.Add(_elem82); + } + 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_pipeMetaList) + { + throw new TProtocolException(TProtocolException.INVALID_DATA); + } + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var struc = new TStruct("TPipeHeartbeatResp"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + if((PipeMetaList != null)) + { + field.Name = "pipeMetaList"; + field.Type = TType.List; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.String, PipeMetaList.Count), cancellationToken); + foreach (byte[] _iter83 in PipeMetaList) + { + await oprot.WriteBinaryAsync(_iter83, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PipeCompletedList != null) && __isset.pipeCompletedList) + { + field.Name = "pipeCompletedList"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.Bool, PipeCompletedList.Count), cancellationToken); + foreach (bool _iter84 in PipeCompletedList) + { + await oprot.WriteBoolAsync(_iter84, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PipeRemainingEventCountList != null) && __isset.pipeRemainingEventCountList) + { + field.Name = "pipeRemainingEventCountList"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.I64, PipeRemainingEventCountList.Count), cancellationToken); + foreach (long _iter85 in PipeRemainingEventCountList) + { + await oprot.WriteI64Async(_iter85, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PipeRemainingTimeList != null) && __isset.pipeRemainingTimeList) + { + field.Name = "pipeRemainingTimeList"; + field.Type = TType.List; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.Double, PipeRemainingTimeList.Count), cancellationToken); + foreach (double _iter86 in PipeRemainingTimeList) + { + await oprot.WriteDoubleAsync(_iter86, 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) + { + if (!(that is TPipeHeartbeatResp other)) return false; + if (ReferenceEquals(this, other)) return true; + return TCollections.Equals(PipeMetaList, other.PipeMetaList) + && ((__isset.pipeCompletedList == other.__isset.pipeCompletedList) && ((!__isset.pipeCompletedList) || (TCollections.Equals(PipeCompletedList, other.PipeCompletedList)))) + && ((__isset.pipeRemainingEventCountList == other.__isset.pipeRemainingEventCountList) && ((!__isset.pipeRemainingEventCountList) || (TCollections.Equals(PipeRemainingEventCountList, other.PipeRemainingEventCountList)))) + && ((__isset.pipeRemainingTimeList == other.__isset.pipeRemainingTimeList) && ((!__isset.pipeRemainingTimeList) || (TCollections.Equals(PipeRemainingTimeList, other.PipeRemainingTimeList)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((PipeMetaList != null)) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(PipeMetaList); + } + if((PipeCompletedList != null) && __isset.pipeCompletedList) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(PipeCompletedList); + } + if((PipeRemainingEventCountList != null) && __isset.pipeRemainingEventCountList) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(PipeRemainingEventCountList); + } + if((PipeRemainingTimeList != null) && __isset.pipeRemainingTimeList) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(PipeRemainingTimeList); + } + } + return hashcode; + } + + public override string ToString() + { + var sb = new StringBuilder("TPipeHeartbeatResp("); + if((PipeMetaList != null)) + { + sb.Append(", PipeMetaList: "); + PipeMetaList.ToString(sb); + } + if((PipeCompletedList != null) && __isset.pipeCompletedList) + { + sb.Append(", PipeCompletedList: "); + PipeCompletedList.ToString(sb); + } + if((PipeRemainingEventCountList != null) && __isset.pipeRemainingEventCountList) + { + sb.Append(", PipeRemainingEventCountList: "); + PipeRemainingEventCountList.ToString(sb); + } + if((PipeRemainingTimeList != null) && __isset.pipeRemainingTimeList) + { + sb.Append(", PipeRemainingTimeList: "); + PipeRemainingTimeList.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 b9f539f..bf1e167 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TPipeSubscribeReq : TBase @@ -148,27 +147,27 @@ public TPipeSubscribeReq(sbyte version, short type) : this() oprot.IncrementRecursionDepth(); try { - var tmp571 = new TStruct("TPipeSubscribeReq"); - await oprot.WriteStructBeginAsync(tmp571, cancellationToken); - var tmp572 = new TField(); - tmp572.Name = "version"; - tmp572.Type = TType.Byte; - tmp572.ID = 1; - await oprot.WriteFieldBeginAsync(tmp572, cancellationToken); + 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); - tmp572.Name = "type"; - tmp572.Type = TType.I16; - tmp572.ID = 2; - await oprot.WriteFieldBeginAsync(tmp572, 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) { - tmp572.Name = "body"; - tmp572.Type = TType.String; - tmp572.ID = 3; - await oprot.WriteFieldBeginAsync(tmp572, 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); } @@ -205,18 +204,18 @@ public override int GetHashCode() { public override string ToString() { - var tmp573 = new StringBuilder("TPipeSubscribeReq("); - tmp573.Append(", Version: "); - Version.ToString(tmp573); - tmp573.Append(", Type: "); - Type.ToString(tmp573); + var sb = new StringBuilder("TPipeSubscribeReq("); + sb.Append(", Version: "); + Version.ToString(sb); + sb.Append(", Type: "); + Type.ToString(sb); if((Body != null) && __isset.body) { - tmp573.Append(", Body: "); - Body.ToString(tmp573); + sb.Append(", Body: "); + Body.ToString(sb); } - tmp573.Append(')'); - return tmp573.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeResp.cs b/src/Apache.IoTDB/Rpc/Generated/TPipeSubscribeResp.cs index d7e8282..f8e48e9 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TPipeSubscribeResp : TBase @@ -129,13 +128,13 @@ public TPipeSubscribeResp(TSStatus status, sbyte version, short type) : this() if (field.Type == TType.List) { { - TList _list575 = await iprot.ReadListBeginAsync(cancellationToken); - Body = new List(_list575.Count); - for(int _i576 = 0; _i576 < _list575.Count; ++_i576) + TList _list426 = await iprot.ReadListBeginAsync(cancellationToken); + Body = new List(_list426.Count); + for(int _i427 = 0; _i427 < _list426.Count; ++_i427) { - byte[] _elem577; - _elem577 = await iprot.ReadBinaryAsync(cancellationToken); - Body.Add(_elem577); + byte[] _elem428; + _elem428 = await iprot.ReadBinaryAsync(cancellationToken); + Body.Add(_elem428); } await iprot.ReadListEndAsync(cancellationToken); } @@ -178,41 +177,41 @@ public TPipeSubscribeResp(TSStatus status, sbyte version, short type) : this() oprot.IncrementRecursionDepth(); try { - var tmp578 = new TStruct("TPipeSubscribeResp"); - await oprot.WriteStructBeginAsync(tmp578, cancellationToken); - var tmp579 = new TField(); + var struc = new TStruct("TPipeSubscribeResp"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Status != null)) { - tmp579.Name = "status"; - tmp579.Type = TType.Struct; - tmp579.ID = 1; - await oprot.WriteFieldBeginAsync(tmp579, 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); } - tmp579.Name = "version"; - tmp579.Type = TType.Byte; - tmp579.ID = 2; - await oprot.WriteFieldBeginAsync(tmp579, 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); - tmp579.Name = "type"; - tmp579.Type = TType.I16; - tmp579.ID = 3; - await oprot.WriteFieldBeginAsync(tmp579, 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) { - tmp579.Name = "body"; - tmp579.Type = TType.List; - tmp579.ID = 4; - await oprot.WriteFieldBeginAsync(tmp579, cancellationToken); + 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[] _iter580 in Body) + foreach (byte[] _iter429 in Body) { - await oprot.WriteBinaryAsync(_iter580, cancellationToken); + await oprot.WriteBinaryAsync(_iter429, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -256,23 +255,23 @@ public override int GetHashCode() { public override string ToString() { - var tmp581 = new StringBuilder("TPipeSubscribeResp("); + var sb = new StringBuilder("TPipeSubscribeResp("); if((Status != null)) { - tmp581.Append(", Status: "); - Status.ToString(tmp581); + sb.Append(", Status: "); + Status.ToString(sb); } - tmp581.Append(", Version: "); - Version.ToString(tmp581); - tmp581.Append(", Type: "); - Type.ToString(tmp581); + sb.Append(", Version: "); + Version.ToString(sb); + sb.Append(", Type: "); + Type.ToString(sb); if((Body != null) && __isset.body) { - tmp581.Append(", Body: "); - Body.ToString(tmp581); + sb.Append(", Body: "); + Body.ToString(sb); } - tmp581.Append(')'); - return tmp581.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TPipeTransferReq.cs b/src/Apache.IoTDB/Rpc/Generated/TPipeTransferReq.cs index cb5f888..dc854d7 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TPipeTransferReq : TBase @@ -136,27 +135,27 @@ public TPipeTransferReq(sbyte version, short type, byte[] body) : this() oprot.IncrementRecursionDepth(); try { - var tmp563 = new TStruct("TPipeTransferReq"); - await oprot.WriteStructBeginAsync(tmp563, cancellationToken); - var tmp564 = new TField(); - tmp564.Name = "version"; - tmp564.Type = TType.Byte; - tmp564.ID = 1; - await oprot.WriteFieldBeginAsync(tmp564, cancellationToken); + 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); - tmp564.Name = "type"; - tmp564.Type = TType.I16; - tmp564.ID = 2; - await oprot.WriteFieldBeginAsync(tmp564, 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)) { - tmp564.Name = "body"; - tmp564.Type = TType.String; - tmp564.ID = 3; - await oprot.WriteFieldBeginAsync(tmp564, 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); } @@ -193,18 +192,18 @@ public override int GetHashCode() { public override string ToString() { - var tmp565 = new StringBuilder("TPipeTransferReq("); - tmp565.Append(", Version: "); - Version.ToString(tmp565); - tmp565.Append(", Type: "); - Type.ToString(tmp565); + var sb = new StringBuilder("TPipeTransferReq("); + sb.Append(", Version: "); + Version.ToString(sb); + sb.Append(", Type: "); + Type.ToString(sb); if((Body != null)) { - tmp565.Append(", Body: "); - Body.ToString(tmp565); + sb.Append(", Body: "); + Body.ToString(sb); } - tmp565.Append(')'); - return tmp565.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TPipeTransferResp.cs b/src/Apache.IoTDB/Rpc/Generated/TPipeTransferResp.cs index 8edda47..faaa628 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TPipeTransferResp : TBase @@ -130,24 +129,24 @@ public TPipeTransferResp(TSStatus status) : this() oprot.IncrementRecursionDepth(); try { - var tmp567 = new TStruct("TPipeTransferResp"); - await oprot.WriteStructBeginAsync(tmp567, cancellationToken); - var tmp568 = new TField(); + var struc = new TStruct("TPipeTransferResp"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Status != null)) { - tmp568.Name = "status"; - tmp568.Type = TType.Struct; - tmp568.ID = 1; - await oprot.WriteFieldBeginAsync(tmp568, 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); } if((Body != null) && __isset.body) { - tmp568.Name = "body"; - tmp568.Type = TType.String; - tmp568.ID = 2; - await oprot.WriteFieldBeginAsync(tmp568, cancellationToken); + field.Name = "body"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBinaryAsync(Body, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -185,19 +184,19 @@ public override int GetHashCode() { public override string ToString() { - var tmp569 = new StringBuilder("TPipeTransferResp("); + var sb = new StringBuilder("TPipeTransferResp("); if((Status != null)) { - tmp569.Append(", Status: "); - Status.ToString(tmp569); + sb.Append(", Status: "); + Status.ToString(sb); } if((Body != null) && __isset.body) { - tmp569.Append(", Body: "); - Body.ToString(tmp569); + sb.Append(", Body: "); + Body.ToString(sb); } - tmp569.Append(')'); - return tmp569.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TRegionMaintainTaskStatus.cs b/src/Apache.IoTDB/Rpc/Generated/TRegionMaintainTaskStatus.cs index 9488a23..e0904fb 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TRegionMaintainTaskStatus.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TRegionMaintainTaskStatus.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,7 +7,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum TRegionMaintainTaskStatus { diff --git a/src/Apache.IoTDB/Rpc/Generated/TRegionMigrateFailedType.cs b/src/Apache.IoTDB/Rpc/Generated/TRegionMigrateFailedType.cs index 4c2d362..1306ac5 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TRegionMigrateFailedType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TRegionMigrateFailedType.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,7 +7,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum TRegionMigrateFailedType { diff --git a/src/Apache.IoTDB/Rpc/Generated/TRegionReplicaSet.cs b/src/Apache.IoTDB/Rpc/Generated/TRegionReplicaSet.cs index b9e35ed..d745048 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TRegionReplicaSet : TBase @@ -82,14 +81,14 @@ public TRegionReplicaSet(TConsensusGroupId regionId, List dat if (field.Type == TType.List) { { - TList _list24 = await iprot.ReadListBeginAsync(cancellationToken); - DataNodeLocations = new List(_list24.Count); - for(int _i25 = 0; _i25 < _list24.Count; ++_i25) + TList _list9 = await iprot.ReadListBeginAsync(cancellationToken); + DataNodeLocations = new List(_list9.Count); + for(int _i10 = 0; _i10 < _list9.Count; ++_i10) { - TDataNodeLocation _elem26; - _elem26 = new TDataNodeLocation(); - await _elem26.ReadAsync(iprot, cancellationToken); - DataNodeLocations.Add(_elem26); + TDataNodeLocation _elem11; + _elem11 = new TDataNodeLocation(); + await _elem11.ReadAsync(iprot, cancellationToken); + DataNodeLocations.Add(_elem11); } await iprot.ReadListEndAsync(cancellationToken); } @@ -129,29 +128,29 @@ public TRegionReplicaSet(TConsensusGroupId regionId, List dat oprot.IncrementRecursionDepth(); try { - var tmp27 = new TStruct("TRegionReplicaSet"); - await oprot.WriteStructBeginAsync(tmp27, cancellationToken); - var tmp28 = new TField(); + var struc = new TStruct("TRegionReplicaSet"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((RegionId != null)) { - tmp28.Name = "regionId"; - tmp28.Type = TType.Struct; - tmp28.ID = 1; - await oprot.WriteFieldBeginAsync(tmp28, cancellationToken); + 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)) { - tmp28.Name = "dataNodeLocations"; - tmp28.Type = TType.List; - tmp28.ID = 2; - await oprot.WriteFieldBeginAsync(tmp28, 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 _iter29 in DataNodeLocations) + foreach (TDataNodeLocation _iter12 in DataNodeLocations) { - await _iter29.WriteAsync(oprot, cancellationToken); + await _iter12.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -191,19 +190,19 @@ public override int GetHashCode() { public override string ToString() { - var tmp30 = new StringBuilder("TRegionReplicaSet("); + var sb = new StringBuilder("TRegionReplicaSet("); if((RegionId != null)) { - tmp30.Append(", RegionId: "); - RegionId.ToString(tmp30); + sb.Append(", RegionId: "); + RegionId.ToString(sb); } if((DataNodeLocations != null)) { - tmp30.Append(", DataNodeLocations: "); - DataNodeLocations.ToString(tmp30); + sb.Append(", DataNodeLocations: "); + DataNodeLocations.ToString(sb); } - tmp30.Append(')'); - return tmp30.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSAggregationQueryReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSAggregationQueryReq.cs index 34f6907..815ae49 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSAggregationQueryReq : TBase @@ -211,13 +210,13 @@ public TSAggregationQueryReq(long sessionId, long statementId, List path if (field.Type == TType.List) { { - TList _list420 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list420.Count); - for(int _i421 = 0; _i421 < _list420.Count; ++_i421) + TList _list325 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list325.Count); + for(int _i326 = 0; _i326 < _list325.Count; ++_i326) { - string _elem422; - _elem422 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem422); + string _elem327; + _elem327 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem327); } await iprot.ReadListEndAsync(cancellationToken); } @@ -232,13 +231,13 @@ public TSAggregationQueryReq(long sessionId, long statementId, List path if (field.Type == TType.List) { { - TList _list423 = await iprot.ReadListBeginAsync(cancellationToken); - Aggregations = new List(_list423.Count); - for(int _i424 = 0; _i424 < _list423.Count; ++_i424) + TList _list328 = await iprot.ReadListBeginAsync(cancellationToken); + Aggregations = new List(_list328.Count); + for(int _i329 = 0; _i329 < _list328.Count; ++_i329) { - TAggregationType _elem425; - _elem425 = (TAggregationType)await iprot.ReadI32Async(cancellationToken); - Aggregations.Add(_elem425); + TAggregationType _elem330; + _elem330 = (TAggregationType)await iprot.ReadI32Async(cancellationToken); + Aggregations.Add(_elem330); } await iprot.ReadListEndAsync(cancellationToken); } @@ -356,32 +355,32 @@ public TSAggregationQueryReq(long sessionId, long statementId, List path oprot.IncrementRecursionDepth(); try { - var tmp426 = new TStruct("TSAggregationQueryReq"); - await oprot.WriteStructBeginAsync(tmp426, cancellationToken); - var tmp427 = new TField(); - tmp427.Name = "sessionId"; - tmp427.Type = TType.I64; - tmp427.ID = 1; - await oprot.WriteFieldBeginAsync(tmp427, cancellationToken); + 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); - tmp427.Name = "statementId"; - tmp427.Type = TType.I64; - tmp427.ID = 2; - await oprot.WriteFieldBeginAsync(tmp427, 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); if((Paths != null)) { - tmp427.Name = "paths"; - tmp427.Type = TType.List; - tmp427.ID = 3; - await oprot.WriteFieldBeginAsync(tmp427, 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 _iter428 in Paths) + foreach (string _iter331 in Paths) { - await oprot.WriteStringAsync(_iter428, cancellationToken); + await oprot.WriteStringAsync(_iter331, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -389,15 +388,15 @@ public TSAggregationQueryReq(long sessionId, long statementId, List path } if((Aggregations != null)) { - tmp427.Name = "aggregations"; - tmp427.Type = TType.List; - tmp427.ID = 4; - await oprot.WriteFieldBeginAsync(tmp427, 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 _iter429 in Aggregations) + foreach (TAggregationType _iter332 in Aggregations) { - await oprot.WriteI32Async((int)_iter429, cancellationToken); + await oprot.WriteI32Async((int)_iter332, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -405,64 +404,64 @@ public TSAggregationQueryReq(long sessionId, long statementId, List path } if(__isset.startTime) { - tmp427.Name = "startTime"; - tmp427.Type = TType.I64; - tmp427.ID = 5; - await oprot.WriteFieldBeginAsync(tmp427, cancellationToken); + 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) { - tmp427.Name = "endTime"; - tmp427.Type = TType.I64; - tmp427.ID = 6; - await oprot.WriteFieldBeginAsync(tmp427, cancellationToken); + 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) { - tmp427.Name = "interval"; - tmp427.Type = TType.I64; - tmp427.ID = 7; - await oprot.WriteFieldBeginAsync(tmp427, cancellationToken); + 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) { - tmp427.Name = "slidingStep"; - tmp427.Type = TType.I64; - tmp427.ID = 8; - await oprot.WriteFieldBeginAsync(tmp427, cancellationToken); + 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) { - tmp427.Name = "fetchSize"; - tmp427.Type = TType.I32; - tmp427.ID = 9; - await oprot.WriteFieldBeginAsync(tmp427, cancellationToken); + 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) { - tmp427.Name = "timeout"; - tmp427.Type = TType.I64; - tmp427.ID = 10; - await oprot.WriteFieldBeginAsync(tmp427, cancellationToken); + 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) { - tmp427.Name = "legalPathNodes"; - tmp427.Type = TType.Bool; - tmp427.ID = 11; - await oprot.WriteFieldBeginAsync(tmp427, cancellationToken); + field.Name = "legalPathNodes"; + field.Type = TType.Bool; + field.ID = 11; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(LegalPathNodes, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -539,58 +538,58 @@ public override int GetHashCode() { public override string ToString() { - var tmp430 = new StringBuilder("TSAggregationQueryReq("); - tmp430.Append(", SessionId: "); - SessionId.ToString(tmp430); - tmp430.Append(", StatementId: "); - StatementId.ToString(tmp430); + var sb = new StringBuilder("TSAggregationQueryReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); + sb.Append(", StatementId: "); + StatementId.ToString(sb); if((Paths != null)) { - tmp430.Append(", Paths: "); - Paths.ToString(tmp430); + sb.Append(", Paths: "); + Paths.ToString(sb); } if((Aggregations != null)) { - tmp430.Append(", Aggregations: "); - Aggregations.ToString(tmp430); + sb.Append(", Aggregations: "); + Aggregations.ToString(sb); } if(__isset.startTime) { - tmp430.Append(", StartTime: "); - StartTime.ToString(tmp430); + sb.Append(", StartTime: "); + StartTime.ToString(sb); } if(__isset.endTime) { - tmp430.Append(", EndTime: "); - EndTime.ToString(tmp430); + sb.Append(", EndTime: "); + EndTime.ToString(sb); } if(__isset.interval) { - tmp430.Append(", Interval: "); - Interval.ToString(tmp430); + sb.Append(", Interval: "); + Interval.ToString(sb); } if(__isset.slidingStep) { - tmp430.Append(", SlidingStep: "); - SlidingStep.ToString(tmp430); + sb.Append(", SlidingStep: "); + SlidingStep.ToString(sb); } if(__isset.fetchSize) { - tmp430.Append(", FetchSize: "); - FetchSize.ToString(tmp430); + sb.Append(", FetchSize: "); + FetchSize.ToString(sb); } if(__isset.timeout) { - tmp430.Append(", Timeout: "); - Timeout.ToString(tmp430); + sb.Append(", Timeout: "); + Timeout.ToString(sb); } if(__isset.legalPathNodes) { - tmp430.Append(", LegalPathNodes: "); - LegalPathNodes.ToString(tmp430); + sb.Append(", LegalPathNodes: "); + LegalPathNodes.ToString(sb); } - tmp430.Append(')'); - return tmp430.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSAppendSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSAppendSchemaTemplateReq.cs index 6a5ac19..f9c02ac 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSAppendSchemaTemplateReq : TBase @@ -123,13 +122,13 @@ public TSAppendSchemaTemplateReq(long sessionId, string name, bool isAligned, Li if (field.Type == TType.List) { { - TList _list503 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list503.Count); - for(int _i504 = 0; _i504 < _list503.Count; ++_i504) + TList _list390 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list390.Count); + for(int _i391 = 0; _i391 < _list390.Count; ++_i391) { - string _elem505; - _elem505 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem505); + string _elem392; + _elem392 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem392); } await iprot.ReadListEndAsync(cancellationToken); } @@ -144,13 +143,13 @@ public TSAppendSchemaTemplateReq(long sessionId, string name, bool isAligned, Li if (field.Type == TType.List) { { - TList _list506 = await iprot.ReadListBeginAsync(cancellationToken); - DataTypes = new List(_list506.Count); - for(int _i507 = 0; _i507 < _list506.Count; ++_i507) + TList _list393 = await iprot.ReadListBeginAsync(cancellationToken); + DataTypes = new List(_list393.Count); + for(int _i394 = 0; _i394 < _list393.Count; ++_i394) { - int _elem508; - _elem508 = await iprot.ReadI32Async(cancellationToken); - DataTypes.Add(_elem508); + int _elem395; + _elem395 = await iprot.ReadI32Async(cancellationToken); + DataTypes.Add(_elem395); } await iprot.ReadListEndAsync(cancellationToken); } @@ -165,13 +164,13 @@ public TSAppendSchemaTemplateReq(long sessionId, string name, bool isAligned, Li if (field.Type == TType.List) { { - TList _list509 = await iprot.ReadListBeginAsync(cancellationToken); - Encodings = new List(_list509.Count); - for(int _i510 = 0; _i510 < _list509.Count; ++_i510) + TList _list396 = await iprot.ReadListBeginAsync(cancellationToken); + Encodings = new List(_list396.Count); + for(int _i397 = 0; _i397 < _list396.Count; ++_i397) { - int _elem511; - _elem511 = await iprot.ReadI32Async(cancellationToken); - Encodings.Add(_elem511); + int _elem398; + _elem398 = await iprot.ReadI32Async(cancellationToken); + Encodings.Add(_elem398); } await iprot.ReadListEndAsync(cancellationToken); } @@ -186,13 +185,13 @@ public TSAppendSchemaTemplateReq(long sessionId, string name, bool isAligned, Li if (field.Type == TType.List) { { - TList _list512 = await iprot.ReadListBeginAsync(cancellationToken); - Compressors = new List(_list512.Count); - for(int _i513 = 0; _i513 < _list512.Count; ++_i513) + TList _list399 = await iprot.ReadListBeginAsync(cancellationToken); + Compressors = new List(_list399.Count); + for(int _i400 = 0; _i400 < _list399.Count; ++_i400) { - int _elem514; - _elem514 = await iprot.ReadI32Async(cancellationToken); - Compressors.Add(_elem514); + int _elem401; + _elem401 = await iprot.ReadI32Async(cancellationToken); + Compressors.Add(_elem401); } await iprot.ReadListEndAsync(cancellationToken); } @@ -252,41 +251,41 @@ public TSAppendSchemaTemplateReq(long sessionId, string name, bool isAligned, Li oprot.IncrementRecursionDepth(); try { - var tmp515 = new TStruct("TSAppendSchemaTemplateReq"); - await oprot.WriteStructBeginAsync(tmp515, cancellationToken); - var tmp516 = new TField(); - tmp516.Name = "sessionId"; - tmp516.Type = TType.I64; - tmp516.ID = 1; - await oprot.WriteFieldBeginAsync(tmp516, cancellationToken); + var struc = new TStruct("TSAppendSchemaTemplateReq"); + 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); if((Name != null)) { - tmp516.Name = "name"; - tmp516.Type = TType.String; - tmp516.ID = 2; - await oprot.WriteFieldBeginAsync(tmp516, 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); } - tmp516.Name = "isAligned"; - tmp516.Type = TType.Bool; - tmp516.ID = 3; - await oprot.WriteFieldBeginAsync(tmp516, 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)) { - tmp516.Name = "measurements"; - tmp516.Type = TType.List; - tmp516.ID = 4; - await oprot.WriteFieldBeginAsync(tmp516, 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 _iter517 in Measurements) + foreach (string _iter402 in Measurements) { - await oprot.WriteStringAsync(_iter517, cancellationToken); + await oprot.WriteStringAsync(_iter402, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -294,15 +293,15 @@ public TSAppendSchemaTemplateReq(long sessionId, string name, bool isAligned, Li } if((DataTypes != null)) { - tmp516.Name = "dataTypes"; - tmp516.Type = TType.List; - tmp516.ID = 5; - await oprot.WriteFieldBeginAsync(tmp516, 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 _iter518 in DataTypes) + foreach (int _iter403 in DataTypes) { - await oprot.WriteI32Async(_iter518, cancellationToken); + await oprot.WriteI32Async(_iter403, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -310,15 +309,15 @@ public TSAppendSchemaTemplateReq(long sessionId, string name, bool isAligned, Li } if((Encodings != null)) { - tmp516.Name = "encodings"; - tmp516.Type = TType.List; - tmp516.ID = 6; - await oprot.WriteFieldBeginAsync(tmp516, 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 _iter519 in Encodings) + foreach (int _iter404 in Encodings) { - await oprot.WriteI32Async(_iter519, cancellationToken); + await oprot.WriteI32Async(_iter404, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -326,15 +325,15 @@ public TSAppendSchemaTemplateReq(long sessionId, string name, bool isAligned, Li } if((Compressors != null)) { - tmp516.Name = "compressors"; - tmp516.Type = TType.List; - tmp516.ID = 7; - await oprot.WriteFieldBeginAsync(tmp516, 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 _iter520 in Compressors) + foreach (int _iter405 in Compressors) { - await oprot.WriteI32Async(_iter520, cancellationToken); + await oprot.WriteI32Async(_iter405, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -393,38 +392,38 @@ public override int GetHashCode() { public override string ToString() { - var tmp521 = new StringBuilder("TSAppendSchemaTemplateReq("); - tmp521.Append(", SessionId: "); - SessionId.ToString(tmp521); + var sb = new StringBuilder("TSAppendSchemaTemplateReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((Name != null)) { - tmp521.Append(", Name: "); - Name.ToString(tmp521); + sb.Append(", Name: "); + Name.ToString(sb); } - tmp521.Append(", IsAligned: "); - IsAligned.ToString(tmp521); + sb.Append(", IsAligned: "); + IsAligned.ToString(sb); if((Measurements != null)) { - tmp521.Append(", Measurements: "); - Measurements.ToString(tmp521); + sb.Append(", Measurements: "); + Measurements.ToString(sb); } if((DataTypes != null)) { - tmp521.Append(", DataTypes: "); - DataTypes.ToString(tmp521); + sb.Append(", DataTypes: "); + DataTypes.ToString(sb); } if((Encodings != null)) { - tmp521.Append(", Encodings: "); - Encodings.ToString(tmp521); + sb.Append(", Encodings: "); + Encodings.ToString(sb); } if((Compressors != null)) { - tmp521.Append(", Compressors: "); - Compressors.ToString(tmp521); + sb.Append(", Compressors: "); + Compressors.ToString(sb); } - tmp521.Append(')'); - return tmp521.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSBackupConfigurationResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSBackupConfigurationResp.cs index c520311..5cdb21f 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSBackupConfigurationResp : TBase @@ -180,42 +179,42 @@ public TSBackupConfigurationResp(TSStatus status) : this() oprot.IncrementRecursionDepth(); try { - var tmp583 = new TStruct("TSBackupConfigurationResp"); - await oprot.WriteStructBeginAsync(tmp583, cancellationToken); - var tmp584 = new TField(); + var struc = new TStruct("TSBackupConfigurationResp"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Status != null)) { - tmp584.Name = "status"; - tmp584.Type = TType.Struct; - tmp584.ID = 1; - await oprot.WriteFieldBeginAsync(tmp584, 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); } if(__isset.enableOperationSync) { - tmp584.Name = "enableOperationSync"; - tmp584.Type = TType.Bool; - tmp584.ID = 2; - await oprot.WriteFieldBeginAsync(tmp584, cancellationToken); + field.Name = "enableOperationSync"; + field.Type = TType.Bool; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(EnableOperationSync, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((SecondaryAddress != null) && __isset.secondaryAddress) { - tmp584.Name = "secondaryAddress"; - tmp584.Type = TType.String; - tmp584.ID = 3; - await oprot.WriteFieldBeginAsync(tmp584, cancellationToken); + field.Name = "secondaryAddress"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteStringAsync(SecondaryAddress, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.secondaryPort) { - tmp584.Name = "secondaryPort"; - tmp584.Type = TType.I32; - tmp584.ID = 4; - await oprot.WriteFieldBeginAsync(tmp584, cancellationToken); + field.Name = "secondaryPort"; + field.Type = TType.I32; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(SecondaryPort, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -263,29 +262,29 @@ public override int GetHashCode() { public override string ToString() { - var tmp585 = new StringBuilder("TSBackupConfigurationResp("); + var sb = new StringBuilder("TSBackupConfigurationResp("); if((Status != null)) { - tmp585.Append(", Status: "); - Status.ToString(tmp585); + sb.Append(", Status: "); + Status.ToString(sb); } if(__isset.enableOperationSync) { - tmp585.Append(", EnableOperationSync: "); - EnableOperationSync.ToString(tmp585); + sb.Append(", EnableOperationSync: "); + EnableOperationSync.ToString(sb); } if((SecondaryAddress != null) && __isset.secondaryAddress) { - tmp585.Append(", SecondaryAddress: "); - SecondaryAddress.ToString(tmp585); + sb.Append(", SecondaryAddress: "); + SecondaryAddress.ToString(sb); } if(__isset.secondaryPort) { - tmp585.Append(", SecondaryPort: "); - SecondaryPort.ToString(tmp585); + sb.Append(", SecondaryPort: "); + SecondaryPort.ToString(sb); } - tmp585.Append(')'); - return tmp585.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCancelOperationReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCancelOperationReq.cs index 5343aa4..6cd4f4a 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSCancelOperationReq : TBase @@ -117,19 +116,19 @@ public TSCancelOperationReq(long sessionId, long queryId) : this() oprot.IncrementRecursionDepth(); try { - var tmp107 = new TStruct("TSCancelOperationReq"); - await oprot.WriteStructBeginAsync(tmp107, cancellationToken); - var tmp108 = new TField(); - tmp108.Name = "sessionId"; - tmp108.Type = TType.I64; - tmp108.ID = 1; - await oprot.WriteFieldBeginAsync(tmp108, cancellationToken); + var struc = new TStruct("TSCancelOperationReq"); + 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); - tmp108.Name = "queryId"; - tmp108.Type = TType.I64; - tmp108.ID = 2; - await oprot.WriteFieldBeginAsync(tmp108, cancellationToken); + field.Name = "queryId"; + field.Type = TType.I64; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(QueryId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -160,13 +159,13 @@ public override int GetHashCode() { public override string ToString() { - var tmp109 = new StringBuilder("TSCancelOperationReq("); - tmp109.Append(", SessionId: "); - SessionId.ToString(tmp109); - tmp109.Append(", QueryId: "); - QueryId.ToString(tmp109); - tmp109.Append(')'); - return tmp109.ToString(); + var sb = new StringBuilder("TSCancelOperationReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); + sb.Append(", QueryId: "); + 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 054811d..c574d80 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSCloseOperationReq : TBase @@ -154,30 +153,30 @@ public TSCloseOperationReq(long sessionId) : this() oprot.IncrementRecursionDepth(); try { - var tmp111 = new TStruct("TSCloseOperationReq"); - await oprot.WriteStructBeginAsync(tmp111, cancellationToken); - var tmp112 = new TField(); - tmp112.Name = "sessionId"; - tmp112.Type = TType.I64; - tmp112.ID = 1; - await oprot.WriteFieldBeginAsync(tmp112, cancellationToken); + var struc = new TStruct("TSCloseOperationReq"); + 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); if(__isset.queryId) { - tmp112.Name = "queryId"; - tmp112.Type = TType.I64; - tmp112.ID = 2; - await oprot.WriteFieldBeginAsync(tmp112, cancellationToken); + field.Name = "queryId"; + field.Type = TType.I64; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(QueryId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.statementId) { - tmp112.Name = "statementId"; - tmp112.Type = TType.I64; - tmp112.ID = 3; - await oprot.WriteFieldBeginAsync(tmp112, 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); } @@ -217,21 +216,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp113 = new StringBuilder("TSCloseOperationReq("); - tmp113.Append(", SessionId: "); - SessionId.ToString(tmp113); + var sb = new StringBuilder("TSCloseOperationReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if(__isset.queryId) { - tmp113.Append(", QueryId: "); - QueryId.ToString(tmp113); + sb.Append(", QueryId: "); + QueryId.ToString(sb); } if(__isset.statementId) { - tmp113.Append(", StatementId: "); - StatementId.ToString(tmp113); + sb.Append(", StatementId: "); + StatementId.ToString(sb); } - tmp113.Append(')'); - return tmp113.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCloseSessionReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCloseSessionReq.cs index ff1c2c5..e0c3a44 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSCloseSessionReq : TBase @@ -98,13 +97,13 @@ public TSCloseSessionReq(long sessionId) : this() oprot.IncrementRecursionDepth(); try { - var tmp87 = new TStruct("TSCloseSessionReq"); - await oprot.WriteStructBeginAsync(tmp87, cancellationToken); - var tmp88 = new TField(); - tmp88.Name = "sessionId"; - tmp88.Type = TType.I64; - tmp88.ID = 1; - await oprot.WriteFieldBeginAsync(tmp88, cancellationToken); + var struc = new TStruct("TSCloseSessionReq"); + 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); await oprot.WriteFieldStopAsync(cancellationToken); @@ -133,11 +132,11 @@ public override int GetHashCode() { public override string ToString() { - var tmp89 = new StringBuilder("TSCloseSessionReq("); - tmp89.Append(", SessionId: "); - SessionId.ToString(tmp89); - tmp89.Append(')'); - return tmp89.ToString(); + var sb = new StringBuilder("TSCloseSessionReq("); + sb.Append(", SessionId: "); + 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 2ec28b0..95c1a2e 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSConnectionInfo : TBase @@ -159,37 +158,37 @@ public TSConnectionInfo(string userName, long logInTime, string connectionId, TS oprot.IncrementRecursionDepth(); try { - var tmp587 = new TStruct("TSConnectionInfo"); - await oprot.WriteStructBeginAsync(tmp587, cancellationToken); - var tmp588 = new TField(); + var struc = new TStruct("TSConnectionInfo"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((UserName != null)) { - tmp588.Name = "userName"; - tmp588.Type = TType.String; - tmp588.ID = 1; - await oprot.WriteFieldBeginAsync(tmp588, 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); } - tmp588.Name = "logInTime"; - tmp588.Type = TType.I64; - tmp588.ID = 2; - await oprot.WriteFieldBeginAsync(tmp588, 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)) { - tmp588.Name = "connectionId"; - tmp588.Type = TType.String; - tmp588.ID = 3; - await oprot.WriteFieldBeginAsync(tmp588, 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); } - tmp588.Name = "type"; - tmp588.Type = TType.I32; - tmp588.ID = 4; - await oprot.WriteFieldBeginAsync(tmp588, cancellationToken); + field.Name = "type"; + field.Type = TType.I32; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async((int)Type, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -230,23 +229,23 @@ public override int GetHashCode() { public override string ToString() { - var tmp589 = new StringBuilder("TSConnectionInfo("); + var sb = new StringBuilder("TSConnectionInfo("); if((UserName != null)) { - tmp589.Append(", UserName: "); - UserName.ToString(tmp589); + sb.Append(", UserName: "); + UserName.ToString(sb); } - tmp589.Append(", LogInTime: "); - LogInTime.ToString(tmp589); + sb.Append(", LogInTime: "); + LogInTime.ToString(sb); if((ConnectionId != null)) { - tmp589.Append(", ConnectionId: "); - ConnectionId.ToString(tmp589); + sb.Append(", ConnectionId: "); + ConnectionId.ToString(sb); } - tmp589.Append(", Type: "); - Type.ToString(tmp589); - tmp589.Append(')'); - return tmp589.ToString(); + sb.Append(", Type: "); + 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 c79957e..ae3b47a 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSConnectionInfoResp : TBase @@ -66,14 +65,14 @@ public TSConnectionInfoResp(List connectionInfoList) : this() if (field.Type == TType.List) { { - TList _list591 = await iprot.ReadListBeginAsync(cancellationToken); - ConnectionInfoList = new List(_list591.Count); - for(int _i592 = 0; _i592 < _list591.Count; ++_i592) + TList _list433 = await iprot.ReadListBeginAsync(cancellationToken); + ConnectionInfoList = new List(_list433.Count); + for(int _i434 = 0; _i434 < _list433.Count; ++_i434) { - TSConnectionInfo _elem593; - _elem593 = new TSConnectionInfo(); - await _elem593.ReadAsync(iprot, cancellationToken); - ConnectionInfoList.Add(_elem593); + TSConnectionInfo _elem435; + _elem435 = new TSConnectionInfo(); + await _elem435.ReadAsync(iprot, cancellationToken); + ConnectionInfoList.Add(_elem435); } await iprot.ReadListEndAsync(cancellationToken); } @@ -109,20 +108,20 @@ public TSConnectionInfoResp(List connectionInfoList) : this() oprot.IncrementRecursionDepth(); try { - var tmp594 = new TStruct("TSConnectionInfoResp"); - await oprot.WriteStructBeginAsync(tmp594, cancellationToken); - var tmp595 = new TField(); + var struc = new TStruct("TSConnectionInfoResp"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((ConnectionInfoList != null)) { - tmp595.Name = "connectionInfoList"; - tmp595.Type = TType.List; - tmp595.ID = 1; - await oprot.WriteFieldBeginAsync(tmp595, 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 _iter596 in ConnectionInfoList) + foreach (TSConnectionInfo _iter436 in ConnectionInfoList) { - await _iter596.WriteAsync(oprot, cancellationToken); + await _iter436.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -157,14 +156,14 @@ public override int GetHashCode() { public override string ToString() { - var tmp597 = new StringBuilder("TSConnectionInfoResp("); + var sb = new StringBuilder("TSConnectionInfoResp("); if((ConnectionInfoList != null)) { - tmp597.Append(", ConnectionInfoList: "); - ConnectionInfoList.ToString(tmp597); + sb.Append(", ConnectionInfoList: "); + ConnectionInfoList.ToString(sb); } - tmp597.Append(')'); - return tmp597.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSConnectionType.cs b/src/Apache.IoTDB/Rpc/Generated/TSConnectionType.cs index ea5238b..0e5435a 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSConnectionType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSConnectionType.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,7 +7,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum TSConnectionType { diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCreateAlignedTimeseriesReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCreateAlignedTimeseriesReq.cs index 97a5be1..869abf2 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSCreateAlignedTimeseriesReq : TBase @@ -159,13 +158,13 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List(_list346.Count); - for(int _i347 = 0; _i347 < _list346.Count; ++_i347) + TList _list266 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list266.Count); + for(int _i267 = 0; _i267 < _list266.Count; ++_i267) { - string _elem348; - _elem348 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem348); + string _elem268; + _elem268 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem268); } await iprot.ReadListEndAsync(cancellationToken); } @@ -180,13 +179,13 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List(_list349.Count); - for(int _i350 = 0; _i350 < _list349.Count; ++_i350) + TList _list269 = await iprot.ReadListBeginAsync(cancellationToken); + DataTypes = new List(_list269.Count); + for(int _i270 = 0; _i270 < _list269.Count; ++_i270) { - int _elem351; - _elem351 = await iprot.ReadI32Async(cancellationToken); - DataTypes.Add(_elem351); + int _elem271; + _elem271 = await iprot.ReadI32Async(cancellationToken); + DataTypes.Add(_elem271); } await iprot.ReadListEndAsync(cancellationToken); } @@ -201,13 +200,13 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List(_list352.Count); - for(int _i353 = 0; _i353 < _list352.Count; ++_i353) + TList _list272 = await iprot.ReadListBeginAsync(cancellationToken); + Encodings = new List(_list272.Count); + for(int _i273 = 0; _i273 < _list272.Count; ++_i273) { - int _elem354; - _elem354 = await iprot.ReadI32Async(cancellationToken); - Encodings.Add(_elem354); + int _elem274; + _elem274 = await iprot.ReadI32Async(cancellationToken); + Encodings.Add(_elem274); } await iprot.ReadListEndAsync(cancellationToken); } @@ -222,13 +221,13 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List(_list355.Count); - for(int _i356 = 0; _i356 < _list355.Count; ++_i356) + TList _list275 = await iprot.ReadListBeginAsync(cancellationToken); + Compressors = new List(_list275.Count); + for(int _i276 = 0; _i276 < _list275.Count; ++_i276) { - int _elem357; - _elem357 = await iprot.ReadI32Async(cancellationToken); - Compressors.Add(_elem357); + int _elem277; + _elem277 = await iprot.ReadI32Async(cancellationToken); + Compressors.Add(_elem277); } await iprot.ReadListEndAsync(cancellationToken); } @@ -243,13 +242,13 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List(_list358.Count); - for(int _i359 = 0; _i359 < _list358.Count; ++_i359) + TList _list278 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementAlias = new List(_list278.Count); + for(int _i279 = 0; _i279 < _list278.Count; ++_i279) { - string _elem360; - _elem360 = await iprot.ReadStringAsync(cancellationToken); - MeasurementAlias.Add(_elem360); + string _elem280; + _elem280 = await iprot.ReadStringAsync(cancellationToken); + MeasurementAlias.Add(_elem280); } await iprot.ReadListEndAsync(cancellationToken); } @@ -263,25 +262,25 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List>(_list361.Count); - for(int _i362 = 0; _i362 < _list361.Count; ++_i362) + TList _list281 = await iprot.ReadListBeginAsync(cancellationToken); + TagsList = new List>(_list281.Count); + for(int _i282 = 0; _i282 < _list281.Count; ++_i282) { - Dictionary _elem363; + Dictionary _elem283; { - TMap _map364 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem363 = new Dictionary(_map364.Count); - for(int _i365 = 0; _i365 < _map364.Count; ++_i365) + TMap _map284 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem283 = new Dictionary(_map284.Count); + for(int _i285 = 0; _i285 < _map284.Count; ++_i285) { - string _key366; - string _val367; - _key366 = await iprot.ReadStringAsync(cancellationToken); - _val367 = await iprot.ReadStringAsync(cancellationToken); - _elem363[_key366] = _val367; + string _key286; + string _val287; + _key286 = await iprot.ReadStringAsync(cancellationToken); + _val287 = await iprot.ReadStringAsync(cancellationToken); + _elem283[_key286] = _val287; } await iprot.ReadMapEndAsync(cancellationToken); } - TagsList.Add(_elem363); + TagsList.Add(_elem283); } await iprot.ReadListEndAsync(cancellationToken); } @@ -295,25 +294,25 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List>(_list368.Count); - for(int _i369 = 0; _i369 < _list368.Count; ++_i369) + TList _list288 = await iprot.ReadListBeginAsync(cancellationToken); + AttributesList = new List>(_list288.Count); + for(int _i289 = 0; _i289 < _list288.Count; ++_i289) { - Dictionary _elem370; + Dictionary _elem290; { - TMap _map371 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem370 = new Dictionary(_map371.Count); - for(int _i372 = 0; _i372 < _map371.Count; ++_i372) + TMap _map291 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem290 = new Dictionary(_map291.Count); + for(int _i292 = 0; _i292 < _map291.Count; ++_i292) { - string _key373; - string _val374; - _key373 = await iprot.ReadStringAsync(cancellationToken); - _val374 = await iprot.ReadStringAsync(cancellationToken); - _elem370[_key373] = _val374; + string _key293; + string _val294; + _key293 = await iprot.ReadStringAsync(cancellationToken); + _val294 = await iprot.ReadStringAsync(cancellationToken); + _elem290[_key293] = _val294; } await iprot.ReadMapEndAsync(cancellationToken); } - AttributesList.Add(_elem370); + AttributesList.Add(_elem290); } await iprot.ReadListEndAsync(cancellationToken); } @@ -368,35 +367,35 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List _iter382 in TagsList) + foreach (Dictionary _iter300 in TagsList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter382.Count), cancellationToken); - foreach (string _iter383 in _iter382.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter300.Count), cancellationToken); + foreach (string _iter301 in _iter300.Keys) { - await oprot.WriteStringAsync(_iter383, cancellationToken); - await oprot.WriteStringAsync(_iter382[_iter383], cancellationToken); + await oprot.WriteStringAsync(_iter301, cancellationToken); + await oprot.WriteStringAsync(_iter300[_iter301], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -492,20 +491,20 @@ public TSCreateAlignedTimeseriesReq(long sessionId, string prefixPath, List _iter384 in AttributesList) + foreach (Dictionary _iter302 in AttributesList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter384.Count), cancellationToken); - foreach (string _iter385 in _iter384.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter302.Count), cancellationToken); + foreach (string _iter303 in _iter302.Keys) { - await oprot.WriteStringAsync(_iter385, cancellationToken); - await oprot.WriteStringAsync(_iter384[_iter385], cancellationToken); + await oprot.WriteStringAsync(_iter303, cancellationToken); + await oprot.WriteStringAsync(_iter302[_iter303], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -580,51 +579,51 @@ public override int GetHashCode() { public override string ToString() { - var tmp386 = new StringBuilder("TSCreateAlignedTimeseriesReq("); - tmp386.Append(", SessionId: "); - SessionId.ToString(tmp386); + var sb = new StringBuilder("TSCreateAlignedTimeseriesReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((PrefixPath != null)) { - tmp386.Append(", PrefixPath: "); - PrefixPath.ToString(tmp386); + sb.Append(", PrefixPath: "); + PrefixPath.ToString(sb); } if((Measurements != null)) { - tmp386.Append(", Measurements: "); - Measurements.ToString(tmp386); + sb.Append(", Measurements: "); + Measurements.ToString(sb); } if((DataTypes != null)) { - tmp386.Append(", DataTypes: "); - DataTypes.ToString(tmp386); + sb.Append(", DataTypes: "); + DataTypes.ToString(sb); } if((Encodings != null)) { - tmp386.Append(", Encodings: "); - Encodings.ToString(tmp386); + sb.Append(", Encodings: "); + Encodings.ToString(sb); } if((Compressors != null)) { - tmp386.Append(", Compressors: "); - Compressors.ToString(tmp386); + sb.Append(", Compressors: "); + Compressors.ToString(sb); } if((MeasurementAlias != null) && __isset.measurementAlias) { - tmp386.Append(", MeasurementAlias: "); - MeasurementAlias.ToString(tmp386); + sb.Append(", MeasurementAlias: "); + MeasurementAlias.ToString(sb); } if((TagsList != null) && __isset.tagsList) { - tmp386.Append(", TagsList: "); - TagsList.ToString(tmp386); + sb.Append(", TagsList: "); + TagsList.ToString(sb); } if((AttributesList != null) && __isset.attributesList) { - tmp386.Append(", AttributesList: "); - AttributesList.ToString(tmp386); + sb.Append(", AttributesList: "); + AttributesList.ToString(sb); } - tmp386.Append(')'); - return tmp386.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCreateMultiTimeseriesReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCreateMultiTimeseriesReq.cs index 1bcb468..f1e427c 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSCreateMultiTimeseriesReq : TBase @@ -159,13 +158,13 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List if (field.Type == TType.List) { { - TList _list436 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list436.Count); - for(int _i437 = 0; _i437 < _list436.Count; ++_i437) + TList _list335 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list335.Count); + for(int _i336 = 0; _i336 < _list335.Count; ++_i336) { - string _elem438; - _elem438 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem438); + string _elem337; + _elem337 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem337); } await iprot.ReadListEndAsync(cancellationToken); } @@ -180,13 +179,13 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List if (field.Type == TType.List) { { - TList _list439 = await iprot.ReadListBeginAsync(cancellationToken); - DataTypes = new List(_list439.Count); - for(int _i440 = 0; _i440 < _list439.Count; ++_i440) + TList _list338 = await iprot.ReadListBeginAsync(cancellationToken); + DataTypes = new List(_list338.Count); + for(int _i339 = 0; _i339 < _list338.Count; ++_i339) { - int _elem441; - _elem441 = await iprot.ReadI32Async(cancellationToken); - DataTypes.Add(_elem441); + int _elem340; + _elem340 = await iprot.ReadI32Async(cancellationToken); + DataTypes.Add(_elem340); } await iprot.ReadListEndAsync(cancellationToken); } @@ -201,13 +200,13 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List if (field.Type == TType.List) { { - TList _list442 = await iprot.ReadListBeginAsync(cancellationToken); - Encodings = new List(_list442.Count); - for(int _i443 = 0; _i443 < _list442.Count; ++_i443) + TList _list341 = await iprot.ReadListBeginAsync(cancellationToken); + Encodings = new List(_list341.Count); + for(int _i342 = 0; _i342 < _list341.Count; ++_i342) { - int _elem444; - _elem444 = await iprot.ReadI32Async(cancellationToken); - Encodings.Add(_elem444); + int _elem343; + _elem343 = await iprot.ReadI32Async(cancellationToken); + Encodings.Add(_elem343); } await iprot.ReadListEndAsync(cancellationToken); } @@ -222,13 +221,13 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List if (field.Type == TType.List) { { - TList _list445 = await iprot.ReadListBeginAsync(cancellationToken); - Compressors = new List(_list445.Count); - for(int _i446 = 0; _i446 < _list445.Count; ++_i446) + TList _list344 = await iprot.ReadListBeginAsync(cancellationToken); + Compressors = new List(_list344.Count); + for(int _i345 = 0; _i345 < _list344.Count; ++_i345) { - int _elem447; - _elem447 = await iprot.ReadI32Async(cancellationToken); - Compressors.Add(_elem447); + int _elem346; + _elem346 = await iprot.ReadI32Async(cancellationToken); + Compressors.Add(_elem346); } await iprot.ReadListEndAsync(cancellationToken); } @@ -243,25 +242,25 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List if (field.Type == TType.List) { { - TList _list448 = await iprot.ReadListBeginAsync(cancellationToken); - PropsList = new List>(_list448.Count); - for(int _i449 = 0; _i449 < _list448.Count; ++_i449) + TList _list347 = await iprot.ReadListBeginAsync(cancellationToken); + PropsList = new List>(_list347.Count); + for(int _i348 = 0; _i348 < _list347.Count; ++_i348) { - Dictionary _elem450; + Dictionary _elem349; { - TMap _map451 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem450 = new Dictionary(_map451.Count); - for(int _i452 = 0; _i452 < _map451.Count; ++_i452) + TMap _map350 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem349 = new Dictionary(_map350.Count); + for(int _i351 = 0; _i351 < _map350.Count; ++_i351) { - string _key453; - string _val454; - _key453 = await iprot.ReadStringAsync(cancellationToken); - _val454 = await iprot.ReadStringAsync(cancellationToken); - _elem450[_key453] = _val454; + string _key352; + string _val353; + _key352 = await iprot.ReadStringAsync(cancellationToken); + _val353 = await iprot.ReadStringAsync(cancellationToken); + _elem349[_key352] = _val353; } await iprot.ReadMapEndAsync(cancellationToken); } - PropsList.Add(_elem450); + PropsList.Add(_elem349); } await iprot.ReadListEndAsync(cancellationToken); } @@ -275,25 +274,25 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List if (field.Type == TType.List) { { - TList _list455 = await iprot.ReadListBeginAsync(cancellationToken); - TagsList = new List>(_list455.Count); - for(int _i456 = 0; _i456 < _list455.Count; ++_i456) + TList _list354 = await iprot.ReadListBeginAsync(cancellationToken); + TagsList = new List>(_list354.Count); + for(int _i355 = 0; _i355 < _list354.Count; ++_i355) { - Dictionary _elem457; + Dictionary _elem356; { - TMap _map458 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem457 = new Dictionary(_map458.Count); - for(int _i459 = 0; _i459 < _map458.Count; ++_i459) + TMap _map357 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem356 = new Dictionary(_map357.Count); + for(int _i358 = 0; _i358 < _map357.Count; ++_i358) { - string _key460; - string _val461; - _key460 = await iprot.ReadStringAsync(cancellationToken); - _val461 = await iprot.ReadStringAsync(cancellationToken); - _elem457[_key460] = _val461; + string _key359; + string _val360; + _key359 = await iprot.ReadStringAsync(cancellationToken); + _val360 = await iprot.ReadStringAsync(cancellationToken); + _elem356[_key359] = _val360; } await iprot.ReadMapEndAsync(cancellationToken); } - TagsList.Add(_elem457); + TagsList.Add(_elem356); } await iprot.ReadListEndAsync(cancellationToken); } @@ -307,25 +306,25 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List if (field.Type == TType.List) { { - TList _list462 = await iprot.ReadListBeginAsync(cancellationToken); - AttributesList = new List>(_list462.Count); - for(int _i463 = 0; _i463 < _list462.Count; ++_i463) + TList _list361 = await iprot.ReadListBeginAsync(cancellationToken); + AttributesList = new List>(_list361.Count); + for(int _i362 = 0; _i362 < _list361.Count; ++_i362) { - Dictionary _elem464; + Dictionary _elem363; { - TMap _map465 = await iprot.ReadMapBeginAsync(cancellationToken); - _elem464 = new Dictionary(_map465.Count); - for(int _i466 = 0; _i466 < _map465.Count; ++_i466) + TMap _map364 = await iprot.ReadMapBeginAsync(cancellationToken); + _elem363 = new Dictionary(_map364.Count); + for(int _i365 = 0; _i365 < _map364.Count; ++_i365) { - string _key467; - string _val468; - _key467 = await iprot.ReadStringAsync(cancellationToken); - _val468 = await iprot.ReadStringAsync(cancellationToken); - _elem464[_key467] = _val468; + string _key366; + string _val367; + _key366 = await iprot.ReadStringAsync(cancellationToken); + _val367 = await iprot.ReadStringAsync(cancellationToken); + _elem363[_key366] = _val367; } await iprot.ReadMapEndAsync(cancellationToken); } - AttributesList.Add(_elem464); + AttributesList.Add(_elem363); } await iprot.ReadListEndAsync(cancellationToken); } @@ -339,13 +338,13 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List if (field.Type == TType.List) { { - TList _list469 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementAliasList = new List(_list469.Count); - for(int _i470 = 0; _i470 < _list469.Count; ++_i470) + TList _list368 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementAliasList = new List(_list368.Count); + for(int _i369 = 0; _i369 < _list368.Count; ++_i369) { - string _elem471; - _elem471 = await iprot.ReadStringAsync(cancellationToken); - MeasurementAliasList.Add(_elem471); + string _elem370; + _elem370 = await iprot.ReadStringAsync(cancellationToken); + MeasurementAliasList.Add(_elem370); } await iprot.ReadListEndAsync(cancellationToken); } @@ -396,26 +395,26 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List oprot.IncrementRecursionDepth(); try { - var tmp472 = new TStruct("TSCreateMultiTimeseriesReq"); - await oprot.WriteStructBeginAsync(tmp472, cancellationToken); - var tmp473 = new TField(); - tmp473.Name = "sessionId"; - tmp473.Type = TType.I64; - tmp473.ID = 1; - await oprot.WriteFieldBeginAsync(tmp473, cancellationToken); + var struc = new TStruct("TSCreateMultiTimeseriesReq"); + 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); if((Paths != null)) { - tmp473.Name = "paths"; - tmp473.Type = TType.List; - tmp473.ID = 2; - await oprot.WriteFieldBeginAsync(tmp473, 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 _iter474 in Paths) + foreach (string _iter371 in Paths) { - await oprot.WriteStringAsync(_iter474, cancellationToken); + await oprot.WriteStringAsync(_iter371, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -423,15 +422,15 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List } if((DataTypes != null)) { - tmp473.Name = "dataTypes"; - tmp473.Type = TType.List; - tmp473.ID = 3; - await oprot.WriteFieldBeginAsync(tmp473, 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 _iter475 in DataTypes) + foreach (int _iter372 in DataTypes) { - await oprot.WriteI32Async(_iter475, cancellationToken); + await oprot.WriteI32Async(_iter372, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -439,15 +438,15 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List } if((Encodings != null)) { - tmp473.Name = "encodings"; - tmp473.Type = TType.List; - tmp473.ID = 4; - await oprot.WriteFieldBeginAsync(tmp473, 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 _iter476 in Encodings) + foreach (int _iter373 in Encodings) { - await oprot.WriteI32Async(_iter476, cancellationToken); + await oprot.WriteI32Async(_iter373, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -455,15 +454,15 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List } if((Compressors != null)) { - tmp473.Name = "compressors"; - tmp473.Type = TType.List; - tmp473.ID = 5; - await oprot.WriteFieldBeginAsync(tmp473, 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 _iter477 in Compressors) + foreach (int _iter374 in Compressors) { - await oprot.WriteI32Async(_iter477, cancellationToken); + await oprot.WriteI32Async(_iter374, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -471,20 +470,20 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List } if((PropsList != null) && __isset.propsList) { - tmp473.Name = "propsList"; - tmp473.Type = TType.List; - tmp473.ID = 6; - await oprot.WriteFieldBeginAsync(tmp473, cancellationToken); + field.Name = "propsList"; + field.Type = TType.List; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, PropsList.Count), cancellationToken); - foreach (Dictionary _iter478 in PropsList) + foreach (Dictionary _iter375 in PropsList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter478.Count), cancellationToken); - foreach (string _iter479 in _iter478.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter375.Count), cancellationToken); + foreach (string _iter376 in _iter375.Keys) { - await oprot.WriteStringAsync(_iter479, cancellationToken); - await oprot.WriteStringAsync(_iter478[_iter479], cancellationToken); + await oprot.WriteStringAsync(_iter376, cancellationToken); + await oprot.WriteStringAsync(_iter375[_iter376], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -495,20 +494,20 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List } if((TagsList != null) && __isset.tagsList) { - tmp473.Name = "tagsList"; - tmp473.Type = TType.List; - tmp473.ID = 7; - await oprot.WriteFieldBeginAsync(tmp473, cancellationToken); + field.Name = "tagsList"; + field.Type = TType.List; + field.ID = 7; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, TagsList.Count), cancellationToken); - foreach (Dictionary _iter480 in TagsList) + foreach (Dictionary _iter377 in TagsList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter480.Count), cancellationToken); - foreach (string _iter481 in _iter480.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter377.Count), cancellationToken); + foreach (string _iter378 in _iter377.Keys) { - await oprot.WriteStringAsync(_iter481, cancellationToken); - await oprot.WriteStringAsync(_iter480[_iter481], cancellationToken); + await oprot.WriteStringAsync(_iter378, cancellationToken); + await oprot.WriteStringAsync(_iter377[_iter378], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -519,20 +518,20 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List } if((AttributesList != null) && __isset.attributesList) { - tmp473.Name = "attributesList"; - tmp473.Type = TType.List; - tmp473.ID = 8; - await oprot.WriteFieldBeginAsync(tmp473, cancellationToken); + field.Name = "attributesList"; + field.Type = TType.List; + field.ID = 8; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Map, AttributesList.Count), cancellationToken); - foreach (Dictionary _iter482 in AttributesList) + foreach (Dictionary _iter379 in AttributesList) { { - await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter482.Count), cancellationToken); - foreach (string _iter483 in _iter482.Keys) + await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, _iter379.Count), cancellationToken); + foreach (string _iter380 in _iter379.Keys) { - await oprot.WriteStringAsync(_iter483, cancellationToken); - await oprot.WriteStringAsync(_iter482[_iter483], cancellationToken); + await oprot.WriteStringAsync(_iter380, cancellationToken); + await oprot.WriteStringAsync(_iter379[_iter380], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -543,15 +542,15 @@ public TSCreateMultiTimeseriesReq(long sessionId, List paths, List } if((MeasurementAliasList != null) && __isset.measurementAliasList) { - tmp473.Name = "measurementAliasList"; - tmp473.Type = TType.List; - tmp473.ID = 9; - await oprot.WriteFieldBeginAsync(tmp473, cancellationToken); + field.Name = "measurementAliasList"; + field.Type = TType.List; + field.ID = 9; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, MeasurementAliasList.Count), cancellationToken); - foreach (string _iter484 in MeasurementAliasList) + foreach (string _iter381 in MeasurementAliasList) { - await oprot.WriteStringAsync(_iter484, cancellationToken); + await oprot.WriteStringAsync(_iter381, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -623,51 +622,51 @@ public override int GetHashCode() { public override string ToString() { - var tmp485 = new StringBuilder("TSCreateMultiTimeseriesReq("); - tmp485.Append(", SessionId: "); - SessionId.ToString(tmp485); + var sb = new StringBuilder("TSCreateMultiTimeseriesReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((Paths != null)) { - tmp485.Append(", Paths: "); - Paths.ToString(tmp485); + sb.Append(", Paths: "); + Paths.ToString(sb); } if((DataTypes != null)) { - tmp485.Append(", DataTypes: "); - DataTypes.ToString(tmp485); + sb.Append(", DataTypes: "); + DataTypes.ToString(sb); } if((Encodings != null)) { - tmp485.Append(", Encodings: "); - Encodings.ToString(tmp485); + sb.Append(", Encodings: "); + Encodings.ToString(sb); } if((Compressors != null)) { - tmp485.Append(", Compressors: "); - Compressors.ToString(tmp485); + sb.Append(", Compressors: "); + Compressors.ToString(sb); } if((PropsList != null) && __isset.propsList) { - tmp485.Append(", PropsList: "); - PropsList.ToString(tmp485); + sb.Append(", PropsList: "); + PropsList.ToString(sb); } if((TagsList != null) && __isset.tagsList) { - tmp485.Append(", TagsList: "); - TagsList.ToString(tmp485); + sb.Append(", TagsList: "); + TagsList.ToString(sb); } if((AttributesList != null) && __isset.attributesList) { - tmp485.Append(", AttributesList: "); - AttributesList.ToString(tmp485); + sb.Append(", AttributesList: "); + AttributesList.ToString(sb); } if((MeasurementAliasList != null) && __isset.measurementAliasList) { - tmp485.Append(", MeasurementAliasList: "); - MeasurementAliasList.ToString(tmp485); + sb.Append(", MeasurementAliasList: "); + MeasurementAliasList.ToString(sb); } - tmp485.Append(')'); - return tmp485.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCreateSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCreateSchemaTemplateReq.cs index b1a285e..8167de9 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSCreateSchemaTemplateReq : TBase @@ -136,30 +135,30 @@ public TSCreateSchemaTemplateReq(long sessionId, string name, byte[] serializedT oprot.IncrementRecursionDepth(); try { - var tmp499 = new TStruct("TSCreateSchemaTemplateReq"); - await oprot.WriteStructBeginAsync(tmp499, cancellationToken); - var tmp500 = new TField(); - tmp500.Name = "sessionId"; - tmp500.Type = TType.I64; - tmp500.ID = 1; - await oprot.WriteFieldBeginAsync(tmp500, cancellationToken); + var struc = new TStruct("TSCreateSchemaTemplateReq"); + 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); if((Name != null)) { - tmp500.Name = "name"; - tmp500.Type = TType.String; - tmp500.ID = 2; - await oprot.WriteFieldBeginAsync(tmp500, 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((SerializedTemplate != null)) { - tmp500.Name = "serializedTemplate"; - tmp500.Type = TType.String; - tmp500.ID = 3; - await oprot.WriteFieldBeginAsync(tmp500, 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); } @@ -199,21 +198,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp501 = new StringBuilder("TSCreateSchemaTemplateReq("); - tmp501.Append(", SessionId: "); - SessionId.ToString(tmp501); + var sb = new StringBuilder("TSCreateSchemaTemplateReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((Name != null)) { - tmp501.Append(", Name: "); - Name.ToString(tmp501); + sb.Append(", Name: "); + Name.ToString(sb); } if((SerializedTemplate != null)) { - tmp501.Append(", SerializedTemplate: "); - SerializedTemplate.ToString(tmp501); + sb.Append(", SerializedTemplate: "); + SerializedTemplate.ToString(sb); } - tmp501.Append(')'); - return tmp501.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSCreateTimeseriesReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSCreateTimeseriesReq.cs index 2c463d5..a83f025 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSCreateTimeseriesReq : TBase @@ -203,15 +202,15 @@ public TSCreateTimeseriesReq(long sessionId, string path, int dataType, int enco if (field.Type == TType.Map) { { - TMap _map327 = await iprot.ReadMapBeginAsync(cancellationToken); - Props = new Dictionary(_map327.Count); - for(int _i328 = 0; _i328 < _map327.Count; ++_i328) + TMap _map250 = await iprot.ReadMapBeginAsync(cancellationToken); + Props = new Dictionary(_map250.Count); + for(int _i251 = 0; _i251 < _map250.Count; ++_i251) { - string _key329; - string _val330; - _key329 = await iprot.ReadStringAsync(cancellationToken); - _val330 = await iprot.ReadStringAsync(cancellationToken); - Props[_key329] = _val330; + string _key252; + string _val253; + _key252 = await iprot.ReadStringAsync(cancellationToken); + _val253 = await iprot.ReadStringAsync(cancellationToken); + Props[_key252] = _val253; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -225,15 +224,15 @@ public TSCreateTimeseriesReq(long sessionId, string path, int dataType, int enco if (field.Type == TType.Map) { { - TMap _map331 = await iprot.ReadMapBeginAsync(cancellationToken); - Tags = new Dictionary(_map331.Count); - for(int _i332 = 0; _i332 < _map331.Count; ++_i332) + TMap _map254 = await iprot.ReadMapBeginAsync(cancellationToken); + Tags = new Dictionary(_map254.Count); + for(int _i255 = 0; _i255 < _map254.Count; ++_i255) { - string _key333; - string _val334; - _key333 = await iprot.ReadStringAsync(cancellationToken); - _val334 = await iprot.ReadStringAsync(cancellationToken); - Tags[_key333] = _val334; + string _key256; + string _val257; + _key256 = await iprot.ReadStringAsync(cancellationToken); + _val257 = await iprot.ReadStringAsync(cancellationToken); + Tags[_key256] = _val257; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -247,15 +246,15 @@ public TSCreateTimeseriesReq(long sessionId, string path, int dataType, int enco if (field.Type == TType.Map) { { - TMap _map335 = await iprot.ReadMapBeginAsync(cancellationToken); - Attributes = new Dictionary(_map335.Count); - for(int _i336 = 0; _i336 < _map335.Count; ++_i336) + TMap _map258 = await iprot.ReadMapBeginAsync(cancellationToken); + Attributes = new Dictionary(_map258.Count); + for(int _i259 = 0; _i259 < _map258.Count; ++_i259) { - string _key337; - string _val338; - _key337 = await iprot.ReadStringAsync(cancellationToken); - _val338 = await iprot.ReadStringAsync(cancellationToken); - Attributes[_key337] = _val338; + string _key260; + string _val261; + _key260 = await iprot.ReadStringAsync(cancellationToken); + _val261 = await iprot.ReadStringAsync(cancellationToken); + Attributes[_key260] = _val261; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -316,54 +315,54 @@ public TSCreateTimeseriesReq(long sessionId, string path, int dataType, int enco oprot.IncrementRecursionDepth(); try { - var tmp339 = new TStruct("TSCreateTimeseriesReq"); - await oprot.WriteStructBeginAsync(tmp339, cancellationToken); - var tmp340 = new TField(); - tmp340.Name = "sessionId"; - tmp340.Type = TType.I64; - tmp340.ID = 1; - await oprot.WriteFieldBeginAsync(tmp340, cancellationToken); + var struc = new TStruct("TSCreateTimeseriesReq"); + 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); if((Path != null)) { - tmp340.Name = "path"; - tmp340.Type = TType.String; - tmp340.ID = 2; - await oprot.WriteFieldBeginAsync(tmp340, 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); } - tmp340.Name = "dataType"; - tmp340.Type = TType.I32; - tmp340.ID = 3; - await oprot.WriteFieldBeginAsync(tmp340, cancellationToken); + field.Name = "dataType"; + field.Type = TType.I32; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(DataType, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - tmp340.Name = "encoding"; - tmp340.Type = TType.I32; - tmp340.ID = 4; - await oprot.WriteFieldBeginAsync(tmp340, cancellationToken); + field.Name = "encoding"; + field.Type = TType.I32; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(Encoding, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - tmp340.Name = "compressor"; - tmp340.Type = TType.I32; - tmp340.ID = 5; - await oprot.WriteFieldBeginAsync(tmp340, cancellationToken); + field.Name = "compressor"; + field.Type = TType.I32; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(Compressor, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if((Props != null) && __isset.props) { - tmp340.Name = "props"; - tmp340.Type = TType.Map; - tmp340.ID = 6; - await oprot.WriteFieldBeginAsync(tmp340, cancellationToken); + field.Name = "props"; + field.Type = TType.Map; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Props.Count), cancellationToken); - foreach (string _iter341 in Props.Keys) + foreach (string _iter262 in Props.Keys) { - await oprot.WriteStringAsync(_iter341, cancellationToken); - await oprot.WriteStringAsync(Props[_iter341], cancellationToken); + await oprot.WriteStringAsync(_iter262, cancellationToken); + await oprot.WriteStringAsync(Props[_iter262], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -371,16 +370,16 @@ public TSCreateTimeseriesReq(long sessionId, string path, int dataType, int enco } if((Tags != null) && __isset.tags) { - tmp340.Name = "tags"; - tmp340.Type = TType.Map; - tmp340.ID = 7; - await oprot.WriteFieldBeginAsync(tmp340, cancellationToken); + field.Name = "tags"; + field.Type = TType.Map; + field.ID = 7; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Tags.Count), cancellationToken); - foreach (string _iter342 in Tags.Keys) + foreach (string _iter263 in Tags.Keys) { - await oprot.WriteStringAsync(_iter342, cancellationToken); - await oprot.WriteStringAsync(Tags[_iter342], cancellationToken); + await oprot.WriteStringAsync(_iter263, cancellationToken); + await oprot.WriteStringAsync(Tags[_iter263], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -388,16 +387,16 @@ public TSCreateTimeseriesReq(long sessionId, string path, int dataType, int enco } if((Attributes != null) && __isset.attributes) { - tmp340.Name = "attributes"; - tmp340.Type = TType.Map; - tmp340.ID = 8; - await oprot.WriteFieldBeginAsync(tmp340, cancellationToken); + field.Name = "attributes"; + field.Type = TType.Map; + field.ID = 8; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Attributes.Count), cancellationToken); - foreach (string _iter343 in Attributes.Keys) + foreach (string _iter264 in Attributes.Keys) { - await oprot.WriteStringAsync(_iter343, cancellationToken); - await oprot.WriteStringAsync(Attributes[_iter343], cancellationToken); + await oprot.WriteStringAsync(_iter264, cancellationToken); + await oprot.WriteStringAsync(Attributes[_iter264], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -405,10 +404,10 @@ public TSCreateTimeseriesReq(long sessionId, string path, int dataType, int enco } if((MeasurementAlias != null) && __isset.measurementAlias) { - tmp340.Name = "measurementAlias"; - tmp340.Type = TType.String; - tmp340.ID = 9; - await oprot.WriteFieldBeginAsync(tmp340, cancellationToken); + field.Name = "measurementAlias"; + field.Type = TType.String; + field.ID = 9; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteStringAsync(MeasurementAlias, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -469,42 +468,42 @@ public override int GetHashCode() { public override string ToString() { - var tmp344 = new StringBuilder("TSCreateTimeseriesReq("); - tmp344.Append(", SessionId: "); - SessionId.ToString(tmp344); + var sb = new StringBuilder("TSCreateTimeseriesReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((Path != null)) { - tmp344.Append(", Path: "); - Path.ToString(tmp344); + sb.Append(", Path: "); + Path.ToString(sb); } - tmp344.Append(", DataType: "); - DataType.ToString(tmp344); - tmp344.Append(", Encoding: "); - Encoding.ToString(tmp344); - tmp344.Append(", Compressor: "); - Compressor.ToString(tmp344); + sb.Append(", DataType: "); + DataType.ToString(sb); + sb.Append(", Encoding: "); + Encoding.ToString(sb); + sb.Append(", Compressor: "); + Compressor.ToString(sb); if((Props != null) && __isset.props) { - tmp344.Append(", Props: "); - Props.ToString(tmp344); + sb.Append(", Props: "); + Props.ToString(sb); } if((Tags != null) && __isset.tags) { - tmp344.Append(", Tags: "); - Tags.ToString(tmp344); + sb.Append(", Tags: "); + Tags.ToString(sb); } if((Attributes != null) && __isset.attributes) { - tmp344.Append(", Attributes: "); - Attributes.ToString(tmp344); + sb.Append(", Attributes: "); + Attributes.ToString(sb); } if((MeasurementAlias != null) && __isset.measurementAlias) { - tmp344.Append(", MeasurementAlias: "); - MeasurementAlias.ToString(tmp344); + sb.Append(", MeasurementAlias: "); + MeasurementAlias.ToString(sb); } - tmp344.Append(')'); - return tmp344.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSDeleteDataReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSDeleteDataReq.cs index 038d2a0..1896890 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSDeleteDataReq : TBase @@ -89,13 +88,13 @@ public TSDeleteDataReq(long sessionId, List paths, long startTime, long 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 _list245 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list245.Count); + for(int _i246 = 0; _i246 < _list245.Count; ++_i246) { - string _elem321; - _elem321 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem321); + string _elem247; + _elem247 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem247); } await iprot.ReadListEndAsync(cancellationToken); } @@ -165,41 +164,41 @@ public TSDeleteDataReq(long sessionId, List paths, long startTime, long oprot.IncrementRecursionDepth(); try { - var tmp322 = new TStruct("TSDeleteDataReq"); - await oprot.WriteStructBeginAsync(tmp322, cancellationToken); - var tmp323 = new TField(); - tmp323.Name = "sessionId"; - tmp323.Type = TType.I64; - tmp323.ID = 1; - await oprot.WriteFieldBeginAsync(tmp323, cancellationToken); + var struc = new TStruct("TSDeleteDataReq"); + 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); if((Paths != null)) { - tmp323.Name = "paths"; - tmp323.Type = TType.List; - tmp323.ID = 2; - await oprot.WriteFieldBeginAsync(tmp323, 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 _iter324 in Paths) + foreach (string _iter248 in Paths) { - await oprot.WriteStringAsync(_iter324, cancellationToken); + await oprot.WriteStringAsync(_iter248, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - tmp323.Name = "startTime"; - tmp323.Type = TType.I64; - tmp323.ID = 3; - await oprot.WriteFieldBeginAsync(tmp323, cancellationToken); + field.Name = "startTime"; + field.Type = TType.I64; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(StartTime, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - tmp323.Name = "endTime"; - tmp323.Type = TType.I64; - tmp323.ID = 4; - await oprot.WriteFieldBeginAsync(tmp323, cancellationToken); + field.Name = "endTime"; + field.Type = TType.I64; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(EndTime, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -237,20 +236,20 @@ public override int GetHashCode() { public override string ToString() { - var tmp325 = new StringBuilder("TSDeleteDataReq("); - tmp325.Append(", SessionId: "); - SessionId.ToString(tmp325); + var sb = new StringBuilder("TSDeleteDataReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((Paths != null)) { - tmp325.Append(", Paths: "); - Paths.ToString(tmp325); + sb.Append(", Paths: "); + Paths.ToString(sb); } - tmp325.Append(", StartTime: "); - StartTime.ToString(tmp325); - tmp325.Append(", EndTime: "); - EndTime.ToString(tmp325); - tmp325.Append(')'); - return tmp325.ToString(); + sb.Append(", StartTime: "); + StartTime.ToString(sb); + sb.Append(", EndTime: "); + 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 8638eb5..8454585 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSDropSchemaTemplateReq : TBase @@ -117,21 +116,21 @@ public TSDropSchemaTemplateReq(long sessionId, string templateName) : this() oprot.IncrementRecursionDepth(); try { - var tmp543 = new TStruct("TSDropSchemaTemplateReq"); - await oprot.WriteStructBeginAsync(tmp543, cancellationToken); - var tmp544 = new TField(); - tmp544.Name = "sessionId"; - tmp544.Type = TType.I64; - tmp544.ID = 1; - await oprot.WriteFieldBeginAsync(tmp544, cancellationToken); + var struc = new TStruct("TSDropSchemaTemplateReq"); + 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); if((TemplateName != null)) { - tmp544.Name = "templateName"; - tmp544.Type = TType.String; - tmp544.ID = 2; - await oprot.WriteFieldBeginAsync(tmp544, 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); } @@ -166,16 +165,16 @@ public override int GetHashCode() { public override string ToString() { - var tmp545 = new StringBuilder("TSDropSchemaTemplateReq("); - tmp545.Append(", SessionId: "); - SessionId.ToString(tmp545); + var sb = new StringBuilder("TSDropSchemaTemplateReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((TemplateName != null)) { - tmp545.Append(", TemplateName: "); - TemplateName.ToString(tmp545); + sb.Append(", TemplateName: "); + TemplateName.ToString(sb); } - tmp545.Append(')'); - return tmp545.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSExecuteBatchStatementReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSExecuteBatchStatementReq.cs index 414cf41..9d4a1fe 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSExecuteBatchStatementReq : TBase @@ -81,13 +80,13 @@ public TSExecuteBatchStatementReq(long sessionId, List statements) : thi if (field.Type == TType.List) { { - TList _list95 = await iprot.ReadListBeginAsync(cancellationToken); - Statements = new List(_list95.Count); - for(int _i96 = 0; _i96 < _list95.Count; ++_i96) + TList _list71 = await iprot.ReadListBeginAsync(cancellationToken); + Statements = new List(_list71.Count); + for(int _i72 = 0; _i72 < _list71.Count; ++_i72) { - string _elem97; - _elem97 = await iprot.ReadStringAsync(cancellationToken); - Statements.Add(_elem97); + string _elem73; + _elem73 = await iprot.ReadStringAsync(cancellationToken); + Statements.Add(_elem73); } await iprot.ReadListEndAsync(cancellationToken); } @@ -127,26 +126,26 @@ public TSExecuteBatchStatementReq(long sessionId, List statements) : thi oprot.IncrementRecursionDepth(); try { - var tmp98 = new TStruct("TSExecuteBatchStatementReq"); - await oprot.WriteStructBeginAsync(tmp98, cancellationToken); - var tmp99 = new TField(); - tmp99.Name = "sessionId"; - tmp99.Type = TType.I64; - tmp99.ID = 1; - await oprot.WriteFieldBeginAsync(tmp99, cancellationToken); + var struc = new TStruct("TSExecuteBatchStatementReq"); + 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); if((Statements != null)) { - tmp99.Name = "statements"; - tmp99.Type = TType.List; - tmp99.ID = 2; - await oprot.WriteFieldBeginAsync(tmp99, 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 _iter100 in Statements) + foreach (string _iter74 in Statements) { - await oprot.WriteStringAsync(_iter100, cancellationToken); + await oprot.WriteStringAsync(_iter74, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -183,16 +182,16 @@ public override int GetHashCode() { public override string ToString() { - var tmp101 = new StringBuilder("TSExecuteBatchStatementReq("); - tmp101.Append(", SessionId: "); - SessionId.ToString(tmp101); + var sb = new StringBuilder("TSExecuteBatchStatementReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((Statements != null)) { - tmp101.Append(", Statements: "); - Statements.ToString(tmp101); + sb.Append(", Statements: "); + Statements.ToString(sb); } - tmp101.Append(')'); - return tmp101.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementReq.cs index 4f46e46..c626b3e 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSExecuteStatementReq : TBase @@ -242,63 +241,63 @@ public TSExecuteStatementReq(long sessionId, string statement, long statementId) oprot.IncrementRecursionDepth(); try { - var tmp91 = new TStruct("TSExecuteStatementReq"); - await oprot.WriteStructBeginAsync(tmp91, cancellationToken); - var tmp92 = new TField(); - tmp92.Name = "sessionId"; - tmp92.Type = TType.I64; - tmp92.ID = 1; - await oprot.WriteFieldBeginAsync(tmp92, cancellationToken); + var struc = new TStruct("TSExecuteStatementReq"); + 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); if((Statement != null)) { - tmp92.Name = "statement"; - tmp92.Type = TType.String; - tmp92.ID = 2; - await oprot.WriteFieldBeginAsync(tmp92, 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); } - tmp92.Name = "statementId"; - tmp92.Type = TType.I64; - tmp92.ID = 3; - await oprot.WriteFieldBeginAsync(tmp92, 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) { - tmp92.Name = "fetchSize"; - tmp92.Type = TType.I32; - tmp92.ID = 4; - await oprot.WriteFieldBeginAsync(tmp92, cancellationToken); + field.Name = "fetchSize"; + field.Type = TType.I32; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(FetchSize, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.timeout) { - tmp92.Name = "timeout"; - tmp92.Type = TType.I64; - tmp92.ID = 5; - await oprot.WriteFieldBeginAsync(tmp92, cancellationToken); + field.Name = "timeout"; + field.Type = TType.I64; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(Timeout, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.enableRedirectQuery) { - tmp92.Name = "enableRedirectQuery"; - tmp92.Type = TType.Bool; - tmp92.ID = 6; - await oprot.WriteFieldBeginAsync(tmp92, cancellationToken); + field.Name = "enableRedirectQuery"; + field.Type = TType.Bool; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(EnableRedirectQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.jdbcQuery) { - tmp92.Name = "jdbcQuery"; - tmp92.Type = TType.Bool; - tmp92.ID = 7; - await oprot.WriteFieldBeginAsync(tmp92, cancellationToken); + field.Name = "jdbcQuery"; + field.Type = TType.Bool; + field.ID = 7; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(JdbcQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -355,38 +354,38 @@ public override int GetHashCode() { public override string ToString() { - var tmp93 = new StringBuilder("TSExecuteStatementReq("); - tmp93.Append(", SessionId: "); - SessionId.ToString(tmp93); + var sb = new StringBuilder("TSExecuteStatementReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((Statement != null)) { - tmp93.Append(", Statement: "); - Statement.ToString(tmp93); + sb.Append(", Statement: "); + Statement.ToString(sb); } - tmp93.Append(", StatementId: "); - StatementId.ToString(tmp93); + sb.Append(", StatementId: "); + StatementId.ToString(sb); if(__isset.fetchSize) { - tmp93.Append(", FetchSize: "); - FetchSize.ToString(tmp93); + sb.Append(", FetchSize: "); + FetchSize.ToString(sb); } if(__isset.timeout) { - tmp93.Append(", Timeout: "); - Timeout.ToString(tmp93); + sb.Append(", Timeout: "); + Timeout.ToString(sb); } if(__isset.enableRedirectQuery) { - tmp93.Append(", EnableRedirectQuery: "); - EnableRedirectQuery.ToString(tmp93); + sb.Append(", EnableRedirectQuery: "); + EnableRedirectQuery.ToString(sb); } if(__isset.jdbcQuery) { - tmp93.Append(", JdbcQuery: "); - JdbcQuery.ToString(tmp93); + sb.Append(", JdbcQuery: "); + JdbcQuery.ToString(sb); } - tmp93.Append(')'); - return tmp93.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSExecuteStatementResp.cs index 96fbeb9..74a5042 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSExecuteStatementResp : TBase @@ -334,13 +333,13 @@ public TSExecuteStatementResp(TSStatus status) : this() if (field.Type == TType.List) { { - TList _list36 = await iprot.ReadListBeginAsync(cancellationToken); - Columns = new List(_list36.Count); - for(int _i37 = 0; _i37 < _list36.Count; ++_i37) + TList _list27 = await iprot.ReadListBeginAsync(cancellationToken); + Columns = new List(_list27.Count); + for(int _i28 = 0; _i28 < _list27.Count; ++_i28) { - string _elem38; - _elem38 = await iprot.ReadStringAsync(cancellationToken); - Columns.Add(_elem38); + string _elem29; + _elem29 = await iprot.ReadStringAsync(cancellationToken); + Columns.Add(_elem29); } await iprot.ReadListEndAsync(cancellationToken); } @@ -374,13 +373,13 @@ public TSExecuteStatementResp(TSStatus status) : this() if (field.Type == TType.List) { { - TList _list39 = await iprot.ReadListBeginAsync(cancellationToken); - DataTypeList = new List(_list39.Count); - for(int _i40 = 0; _i40 < _list39.Count; ++_i40) + TList _list30 = await iprot.ReadListBeginAsync(cancellationToken); + DataTypeList = new List(_list30.Count); + for(int _i31 = 0; _i31 < _list30.Count; ++_i31) { - string _elem41; - _elem41 = await iprot.ReadStringAsync(cancellationToken); - DataTypeList.Add(_elem41); + string _elem32; + _elem32 = await iprot.ReadStringAsync(cancellationToken); + DataTypeList.Add(_elem32); } await iprot.ReadListEndAsync(cancellationToken); } @@ -416,15 +415,15 @@ public TSExecuteStatementResp(TSStatus status) : this() if (field.Type == TType.Map) { { - TMap _map42 = await iprot.ReadMapBeginAsync(cancellationToken); - ColumnNameIndexMap = new Dictionary(_map42.Count); - for(int _i43 = 0; _i43 < _map42.Count; ++_i43) + TMap _map33 = await iprot.ReadMapBeginAsync(cancellationToken); + ColumnNameIndexMap = new Dictionary(_map33.Count); + for(int _i34 = 0; _i34 < _map33.Count; ++_i34) { - string _key44; - int _val45; - _key44 = await iprot.ReadStringAsync(cancellationToken); - _val45 = await iprot.ReadI32Async(cancellationToken); - ColumnNameIndexMap[_key44] = _val45; + string _key35; + int _val36; + _key35 = await iprot.ReadStringAsync(cancellationToken); + _val36 = await iprot.ReadI32Async(cancellationToken); + ColumnNameIndexMap[_key35] = _val36; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -438,13 +437,13 @@ public TSExecuteStatementResp(TSStatus status) : this() if (field.Type == TType.List) { { - TList _list46 = await iprot.ReadListBeginAsync(cancellationToken); - SgColumns = new List(_list46.Count); - for(int _i47 = 0; _i47 < _list46.Count; ++_i47) + TList _list37 = await iprot.ReadListBeginAsync(cancellationToken); + SgColumns = new List(_list37.Count); + for(int _i38 = 0; _i38 < _list37.Count; ++_i38) { - string _elem48; - _elem48 = await iprot.ReadStringAsync(cancellationToken); - SgColumns.Add(_elem48); + string _elem39; + _elem39 = await iprot.ReadStringAsync(cancellationToken); + SgColumns.Add(_elem39); } await iprot.ReadListEndAsync(cancellationToken); } @@ -458,13 +457,13 @@ public TSExecuteStatementResp(TSStatus status) : this() if (field.Type == TType.List) { { - TList _list49 = await iprot.ReadListBeginAsync(cancellationToken); - AliasColumns = new List(_list49.Count); - for(int _i50 = 0; _i50 < _list49.Count; ++_i50) + TList _list40 = await iprot.ReadListBeginAsync(cancellationToken); + AliasColumns = new List(_list40.Count); + for(int _i41 = 0; _i41 < _list40.Count; ++_i41) { - sbyte _elem51; - _elem51 = await iprot.ReadByteAsync(cancellationToken); - AliasColumns.Add(_elem51); + sbyte _elem42; + _elem42 = await iprot.ReadByteAsync(cancellationToken); + AliasColumns.Add(_elem42); } await iprot.ReadListEndAsync(cancellationToken); } @@ -489,13 +488,13 @@ public TSExecuteStatementResp(TSStatus status) : this() if (field.Type == TType.List) { { - TList _list52 = await iprot.ReadListBeginAsync(cancellationToken); - QueryResult = new List(_list52.Count); - for(int _i53 = 0; _i53 < _list52.Count; ++_i53) + TList _list43 = await iprot.ReadListBeginAsync(cancellationToken); + QueryResult = new List(_list43.Count); + for(int _i44 = 0; _i44 < _list43.Count; ++_i44) { - byte[] _elem54; - _elem54 = await iprot.ReadBinaryAsync(cancellationToken); - QueryResult.Add(_elem54); + byte[] _elem45; + _elem45 = await iprot.ReadBinaryAsync(cancellationToken); + QueryResult.Add(_elem45); } await iprot.ReadListEndAsync(cancellationToken); } @@ -539,13 +538,13 @@ public TSExecuteStatementResp(TSStatus status) : this() if (field.Type == TType.List) { { - TList _list55 = await iprot.ReadListBeginAsync(cancellationToken); - ColumnIndex2TsBlockColumnIndexList = new List(_list55.Count); - for(int _i56 = 0; _i56 < _list55.Count; ++_i56) + TList _list46 = await iprot.ReadListBeginAsync(cancellationToken); + ColumnIndex2TsBlockColumnIndexList = new List(_list46.Count); + for(int _i47 = 0; _i47 < _list46.Count; ++_i47) { - int _elem57; - _elem57 = await iprot.ReadI32Async(cancellationToken); - ColumnIndex2TsBlockColumnIndexList.Add(_elem57); + int _elem48; + _elem48 = await iprot.ReadI32Async(cancellationToken); + ColumnIndex2TsBlockColumnIndexList.Add(_elem48); } await iprot.ReadListEndAsync(cancellationToken); } @@ -580,38 +579,38 @@ public TSExecuteStatementResp(TSStatus status) : this() oprot.IncrementRecursionDepth(); try { - var tmp58 = new TStruct("TSExecuteStatementResp"); - await oprot.WriteStructBeginAsync(tmp58, cancellationToken); - var tmp59 = new TField(); + var struc = new TStruct("TSExecuteStatementResp"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Status != null)) { - tmp59.Name = "status"; - tmp59.Type = TType.Struct; - tmp59.ID = 1; - await oprot.WriteFieldBeginAsync(tmp59, 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); } if(__isset.queryId) { - tmp59.Name = "queryId"; - tmp59.Type = TType.I64; - tmp59.ID = 2; - await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); + field.Name = "queryId"; + field.Type = TType.I64; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(QueryId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((Columns != null) && __isset.columns) { - tmp59.Name = "columns"; - tmp59.Type = TType.List; - tmp59.ID = 3; - await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); + field.Name = "columns"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Columns.Count), cancellationToken); - foreach (string _iter60 in Columns) + foreach (string _iter49 in Columns) { - await oprot.WriteStringAsync(_iter60, cancellationToken); + await oprot.WriteStringAsync(_iter49, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -619,33 +618,33 @@ public TSExecuteStatementResp(TSStatus status) : this() } if((OperationType != null) && __isset.operationType) { - tmp59.Name = "operationType"; - tmp59.Type = TType.String; - tmp59.ID = 4; - await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); + field.Name = "operationType"; + field.Type = TType.String; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteStringAsync(OperationType, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.ignoreTimeStamp) { - tmp59.Name = "ignoreTimeStamp"; - tmp59.Type = TType.Bool; - tmp59.ID = 5; - await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); + field.Name = "ignoreTimeStamp"; + field.Type = TType.Bool; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(IgnoreTimeStamp, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((DataTypeList != null) && __isset.dataTypeList) { - tmp59.Name = "dataTypeList"; - tmp59.Type = TType.List; - tmp59.ID = 6; - await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); + field.Name = "dataTypeList"; + field.Type = TType.List; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, DataTypeList.Count), cancellationToken); - foreach (string _iter61 in DataTypeList) + foreach (string _iter50 in DataTypeList) { - await oprot.WriteStringAsync(_iter61, cancellationToken); + await oprot.WriteStringAsync(_iter50, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -653,34 +652,34 @@ public TSExecuteStatementResp(TSStatus status) : this() } if((QueryDataSet != null) && __isset.queryDataSet) { - tmp59.Name = "queryDataSet"; - tmp59.Type = TType.Struct; - tmp59.ID = 7; - await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); + field.Name = "queryDataSet"; + field.Type = TType.Struct; + field.ID = 7; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await QueryDataSet.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) { - tmp59.Name = "nonAlignQueryDataSet"; - tmp59.Type = TType.Struct; - tmp59.ID = 8; - await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); + field.Name = "nonAlignQueryDataSet"; + field.Type = TType.Struct; + field.ID = 8; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await NonAlignQueryDataSet.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((ColumnNameIndexMap != null) && __isset.columnNameIndexMap) { - tmp59.Name = "columnNameIndexMap"; - tmp59.Type = TType.Map; - tmp59.ID = 9; - await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); + field.Name = "columnNameIndexMap"; + field.Type = TType.Map; + field.ID = 9; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.I32, ColumnNameIndexMap.Count), cancellationToken); - foreach (string _iter62 in ColumnNameIndexMap.Keys) + foreach (string _iter51 in ColumnNameIndexMap.Keys) { - await oprot.WriteStringAsync(_iter62, cancellationToken); - await oprot.WriteI32Async(ColumnNameIndexMap[_iter62], cancellationToken); + await oprot.WriteStringAsync(_iter51, cancellationToken); + await oprot.WriteI32Async(ColumnNameIndexMap[_iter51], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -688,15 +687,15 @@ public TSExecuteStatementResp(TSStatus status) : this() } if((SgColumns != null) && __isset.sgColumns) { - tmp59.Name = "sgColumns"; - tmp59.Type = TType.List; - tmp59.ID = 10; - await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); + field.Name = "sgColumns"; + field.Type = TType.List; + field.ID = 10; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, SgColumns.Count), cancellationToken); - foreach (string _iter63 in SgColumns) + foreach (string _iter52 in SgColumns) { - await oprot.WriteStringAsync(_iter63, cancellationToken); + await oprot.WriteStringAsync(_iter52, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -704,15 +703,15 @@ public TSExecuteStatementResp(TSStatus status) : this() } if((AliasColumns != null) && __isset.aliasColumns) { - tmp59.Name = "aliasColumns"; - tmp59.Type = TType.List; - tmp59.ID = 11; - await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); + field.Name = "aliasColumns"; + field.Type = TType.List; + field.ID = 11; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Byte, AliasColumns.Count), cancellationToken); - foreach (sbyte _iter64 in AliasColumns) + foreach (sbyte _iter53 in AliasColumns) { - await oprot.WriteByteAsync(_iter64, cancellationToken); + await oprot.WriteByteAsync(_iter53, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -720,24 +719,24 @@ public TSExecuteStatementResp(TSStatus status) : this() } if((TracingInfo != null) && __isset.tracingInfo) { - tmp59.Name = "tracingInfo"; - tmp59.Type = TType.Struct; - tmp59.ID = 12; - await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); + field.Name = "tracingInfo"; + field.Type = TType.Struct; + field.ID = 12; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await TracingInfo.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((QueryResult != null) && __isset.queryResult) { - tmp59.Name = "queryResult"; - tmp59.Type = TType.List; - tmp59.ID = 13; - await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); + field.Name = "queryResult"; + field.Type = TType.List; + field.ID = 13; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, QueryResult.Count), cancellationToken); - foreach (byte[] _iter65 in QueryResult) + foreach (byte[] _iter54 in QueryResult) { - await oprot.WriteBinaryAsync(_iter65, cancellationToken); + await oprot.WriteBinaryAsync(_iter54, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -745,42 +744,42 @@ public TSExecuteStatementResp(TSStatus status) : this() } if(__isset.moreData) { - tmp59.Name = "moreData"; - tmp59.Type = TType.Bool; - tmp59.ID = 14; - await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); + field.Name = "moreData"; + field.Type = TType.Bool; + field.ID = 14; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(MoreData, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((Database != null) && __isset.database) { - tmp59.Name = "database"; - tmp59.Type = TType.String; - tmp59.ID = 15; - await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); + field.Name = "database"; + field.Type = TType.String; + field.ID = 15; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteStringAsync(Database, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.tableModel) { - tmp59.Name = "tableModel"; - tmp59.Type = TType.Bool; - tmp59.ID = 16; - await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); + field.Name = "tableModel"; + field.Type = TType.Bool; + field.ID = 16; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(TableModel, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((ColumnIndex2TsBlockColumnIndexList != null) && __isset.columnIndex2TsBlockColumnIndexList) { - tmp59.Name = "columnIndex2TsBlockColumnIndexList"; - tmp59.Type = TType.List; - tmp59.ID = 17; - await oprot.WriteFieldBeginAsync(tmp59, cancellationToken); + field.Name = "columnIndex2TsBlockColumnIndexList"; + field.Type = TType.List; + field.ID = 17; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.I32, ColumnIndex2TsBlockColumnIndexList.Count), cancellationToken); - foreach (int _iter66 in ColumnIndex2TsBlockColumnIndexList) + foreach (int _iter55 in ColumnIndex2TsBlockColumnIndexList) { - await oprot.WriteI32Async(_iter66, cancellationToken); + await oprot.WriteI32Async(_iter55, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -895,94 +894,94 @@ public override int GetHashCode() { public override string ToString() { - var tmp67 = new StringBuilder("TSExecuteStatementResp("); + var sb = new StringBuilder("TSExecuteStatementResp("); if((Status != null)) { - tmp67.Append(", Status: "); - Status.ToString(tmp67); + sb.Append(", Status: "); + Status.ToString(sb); } if(__isset.queryId) { - tmp67.Append(", QueryId: "); - QueryId.ToString(tmp67); + sb.Append(", QueryId: "); + QueryId.ToString(sb); } if((Columns != null) && __isset.columns) { - tmp67.Append(", Columns: "); - Columns.ToString(tmp67); + sb.Append(", Columns: "); + Columns.ToString(sb); } if((OperationType != null) && __isset.operationType) { - tmp67.Append(", OperationType: "); - OperationType.ToString(tmp67); + sb.Append(", OperationType: "); + OperationType.ToString(sb); } if(__isset.ignoreTimeStamp) { - tmp67.Append(", IgnoreTimeStamp: "); - IgnoreTimeStamp.ToString(tmp67); + sb.Append(", IgnoreTimeStamp: "); + IgnoreTimeStamp.ToString(sb); } if((DataTypeList != null) && __isset.dataTypeList) { - tmp67.Append(", DataTypeList: "); - DataTypeList.ToString(tmp67); + sb.Append(", DataTypeList: "); + DataTypeList.ToString(sb); } if((QueryDataSet != null) && __isset.queryDataSet) { - tmp67.Append(", QueryDataSet: "); - QueryDataSet.ToString(tmp67); + sb.Append(", QueryDataSet: "); + QueryDataSet.ToString(sb); } if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) { - tmp67.Append(", NonAlignQueryDataSet: "); - NonAlignQueryDataSet.ToString(tmp67); + sb.Append(", NonAlignQueryDataSet: "); + NonAlignQueryDataSet.ToString(sb); } if((ColumnNameIndexMap != null) && __isset.columnNameIndexMap) { - tmp67.Append(", ColumnNameIndexMap: "); - ColumnNameIndexMap.ToString(tmp67); + sb.Append(", ColumnNameIndexMap: "); + ColumnNameIndexMap.ToString(sb); } if((SgColumns != null) && __isset.sgColumns) { - tmp67.Append(", SgColumns: "); - SgColumns.ToString(tmp67); + sb.Append(", SgColumns: "); + SgColumns.ToString(sb); } if((AliasColumns != null) && __isset.aliasColumns) { - tmp67.Append(", AliasColumns: "); - AliasColumns.ToString(tmp67); + sb.Append(", AliasColumns: "); + AliasColumns.ToString(sb); } if((TracingInfo != null) && __isset.tracingInfo) { - tmp67.Append(", TracingInfo: "); - TracingInfo.ToString(tmp67); + sb.Append(", TracingInfo: "); + TracingInfo.ToString(sb); } if((QueryResult != null) && __isset.queryResult) { - tmp67.Append(", QueryResult: "); - QueryResult.ToString(tmp67); + sb.Append(", QueryResult: "); + QueryResult.ToString(sb); } if(__isset.moreData) { - tmp67.Append(", MoreData: "); - MoreData.ToString(tmp67); + sb.Append(", MoreData: "); + MoreData.ToString(sb); } if((Database != null) && __isset.database) { - tmp67.Append(", Database: "); - Database.ToString(tmp67); + sb.Append(", Database: "); + Database.ToString(sb); } if(__isset.tableModel) { - tmp67.Append(", TableModel: "); - TableModel.ToString(tmp67); + sb.Append(", TableModel: "); + TableModel.ToString(sb); } if((ColumnIndex2TsBlockColumnIndexList != null) && __isset.columnIndex2TsBlockColumnIndexList) { - tmp67.Append(", ColumnIndex2TsBlockColumnIndexList: "); - ColumnIndex2TsBlockColumnIndexList.ToString(tmp67); + sb.Append(", ColumnIndex2TsBlockColumnIndexList: "); + ColumnIndex2TsBlockColumnIndexList.ToString(sb); } - tmp67.Append(')'); - return tmp67.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOneDeviceReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOneDeviceReq.cs index 8d43e16..7952d98 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSFastLastDataQueryForOneDeviceReq : TBase @@ -196,13 +195,13 @@ public TSFastLastDataQueryForOneDeviceReq(long sessionId, string db, string devi if (field.Type == TType.List) { { - TList _list412 = await iprot.ReadListBeginAsync(cancellationToken); - Sensors = new List(_list412.Count); - for(int _i413 = 0; _i413 < _list412.Count; ++_i413) + TList _list320 = await iprot.ReadListBeginAsync(cancellationToken); + Sensors = new List(_list320.Count); + for(int _i321 = 0; _i321 < _list320.Count; ++_i321) { - string _elem414; - _elem414 = await iprot.ReadStringAsync(cancellationToken); - Sensors.Add(_elem414); + string _elem322; + _elem322 = await iprot.ReadStringAsync(cancellationToken); + Sensors.Add(_elem322); } await iprot.ReadListEndAsync(cancellationToken); } @@ -315,44 +314,44 @@ public TSFastLastDataQueryForOneDeviceReq(long sessionId, string db, string devi oprot.IncrementRecursionDepth(); try { - var tmp415 = new TStruct("TSFastLastDataQueryForOneDeviceReq"); - await oprot.WriteStructBeginAsync(tmp415, cancellationToken); - var tmp416 = new TField(); - tmp416.Name = "sessionId"; - tmp416.Type = TType.I64; - tmp416.ID = 1; - await oprot.WriteFieldBeginAsync(tmp416, cancellationToken); + 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); if((Db != null)) { - tmp416.Name = "db"; - tmp416.Type = TType.String; - tmp416.ID = 2; - await oprot.WriteFieldBeginAsync(tmp416, 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); } if((DeviceId != null)) { - tmp416.Name = "deviceId"; - tmp416.Type = TType.String; - tmp416.ID = 3; - await oprot.WriteFieldBeginAsync(tmp416, 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); } if((Sensors != null)) { - tmp416.Name = "sensors"; - tmp416.Type = TType.List; - tmp416.ID = 4; - await oprot.WriteFieldBeginAsync(tmp416, 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 _iter417 in Sensors) + foreach (string _iter323 in Sensors) { - await oprot.WriteStringAsync(_iter417, cancellationToken); + await oprot.WriteStringAsync(_iter323, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -360,52 +359,52 @@ public TSFastLastDataQueryForOneDeviceReq(long sessionId, string db, string devi } if(__isset.fetchSize) { - tmp416.Name = "fetchSize"; - tmp416.Type = TType.I32; - tmp416.ID = 5; - await oprot.WriteFieldBeginAsync(tmp416, cancellationToken); + field.Name = "fetchSize"; + field.Type = TType.I32; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(FetchSize, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - tmp416.Name = "statementId"; - tmp416.Type = TType.I64; - tmp416.ID = 6; - await oprot.WriteFieldBeginAsync(tmp416, 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) { - tmp416.Name = "enableRedirectQuery"; - tmp416.Type = TType.Bool; - tmp416.ID = 7; - await oprot.WriteFieldBeginAsync(tmp416, cancellationToken); + 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) { - tmp416.Name = "jdbcQuery"; - tmp416.Type = TType.Bool; - tmp416.ID = 8; - await oprot.WriteFieldBeginAsync(tmp416, cancellationToken); + 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) { - tmp416.Name = "timeout"; - tmp416.Type = TType.I64; - tmp416.ID = 9; - await oprot.WriteFieldBeginAsync(tmp416, cancellationToken); + 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) { - tmp416.Name = "legalPathNodes"; - tmp416.Type = TType.Bool; - tmp416.ID = 10; - await oprot.WriteFieldBeginAsync(tmp416, cancellationToken); + field.Name = "legalPathNodes"; + field.Type = TType.Bool; + field.ID = 10; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(LegalPathNodes, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -477,53 +476,53 @@ public override int GetHashCode() { public override string ToString() { - var tmp418 = new StringBuilder("TSFastLastDataQueryForOneDeviceReq("); - tmp418.Append(", SessionId: "); - SessionId.ToString(tmp418); + var sb = new StringBuilder("TSFastLastDataQueryForOneDeviceReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((Db != null)) { - tmp418.Append(", Db: "); - Db.ToString(tmp418); + sb.Append(", Db: "); + Db.ToString(sb); } if((DeviceId != null)) { - tmp418.Append(", DeviceId: "); - DeviceId.ToString(tmp418); + sb.Append(", DeviceId: "); + DeviceId.ToString(sb); } if((Sensors != null)) { - tmp418.Append(", Sensors: "); - Sensors.ToString(tmp418); + sb.Append(", Sensors: "); + Sensors.ToString(sb); } if(__isset.fetchSize) { - tmp418.Append(", FetchSize: "); - FetchSize.ToString(tmp418); + sb.Append(", FetchSize: "); + FetchSize.ToString(sb); } - tmp418.Append(", StatementId: "); - StatementId.ToString(tmp418); + sb.Append(", StatementId: "); + StatementId.ToString(sb); if(__isset.enableRedirectQuery) { - tmp418.Append(", EnableRedirectQuery: "); - EnableRedirectQuery.ToString(tmp418); + sb.Append(", EnableRedirectQuery: "); + EnableRedirectQuery.ToString(sb); } if(__isset.jdbcQuery) { - tmp418.Append(", JdbcQuery: "); - JdbcQuery.ToString(tmp418); + sb.Append(", JdbcQuery: "); + JdbcQuery.ToString(sb); } if(__isset.timeout) { - tmp418.Append(", Timeout: "); - Timeout.ToString(tmp418); + sb.Append(", Timeout: "); + Timeout.ToString(sb); } if(__isset.legalPathNodes) { - tmp418.Append(", LegalPathNodes: "); - LegalPathNodes.ToString(tmp418); + sb.Append(", LegalPathNodes: "); + LegalPathNodes.ToString(sb); } - tmp418.Append(')'); - return tmp418.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOnePrefixPathReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOnePrefixPathReq.cs index afefca3..4114268 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOnePrefixPathReq.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSFastLastDataQueryForOnePrefixPathReq.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSFastLastDataQueryForOnePrefixPathReq : TBase @@ -151,13 +150,13 @@ public TSFastLastDataQueryForOnePrefixPathReq(long sessionId, List prefi if (field.Type == TType.List) { { - TList _list404 = await iprot.ReadListBeginAsync(cancellationToken); - Prefixes = new List(_list404.Count); - for(int _i405 = 0; _i405 < _list404.Count; ++_i405) + TList _list315 = await iprot.ReadListBeginAsync(cancellationToken); + Prefixes = new List(_list315.Count); + for(int _i316 = 0; _i316 < _list315.Count; ++_i316) { - string _elem406; - _elem406 = await iprot.ReadStringAsync(cancellationToken); - Prefixes.Add(_elem406); + string _elem317; + _elem317 = await iprot.ReadStringAsync(cancellationToken); + Prefixes.Add(_elem317); } await iprot.ReadListEndAsync(cancellationToken); } @@ -252,26 +251,26 @@ public TSFastLastDataQueryForOnePrefixPathReq(long sessionId, List prefi oprot.IncrementRecursionDepth(); try { - var tmp407 = new TStruct("TSFastLastDataQueryForOnePrefixPathReq"); - await oprot.WriteStructBeginAsync(tmp407, cancellationToken); - var tmp408 = new TField(); - tmp408.Name = "sessionId"; - tmp408.Type = TType.I64; - tmp408.ID = 1; - await oprot.WriteFieldBeginAsync(tmp408, cancellationToken); + var struc = new TStruct("TSFastLastDataQueryForOnePrefixPathReq"); + 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); if((Prefixes != null)) { - tmp408.Name = "prefixes"; - tmp408.Type = TType.List; - tmp408.ID = 2; - await oprot.WriteFieldBeginAsync(tmp408, cancellationToken); + field.Name = "prefixes"; + field.Type = TType.List; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Prefixes.Count), cancellationToken); - foreach (string _iter409 in Prefixes) + foreach (string _iter318 in Prefixes) { - await oprot.WriteStringAsync(_iter409, cancellationToken); + await oprot.WriteStringAsync(_iter318, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -279,43 +278,43 @@ public TSFastLastDataQueryForOnePrefixPathReq(long sessionId, List prefi } if(__isset.fetchSize) { - tmp408.Name = "fetchSize"; - tmp408.Type = TType.I32; - tmp408.ID = 3; - await oprot.WriteFieldBeginAsync(tmp408, cancellationToken); + field.Name = "fetchSize"; + field.Type = TType.I32; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(FetchSize, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - tmp408.Name = "statementId"; - tmp408.Type = TType.I64; - tmp408.ID = 4; - await oprot.WriteFieldBeginAsync(tmp408, cancellationToken); + field.Name = "statementId"; + field.Type = TType.I64; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(StatementId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if(__isset.enableRedirectQuery) { - tmp408.Name = "enableRedirectQuery"; - tmp408.Type = TType.Bool; - tmp408.ID = 5; - await oprot.WriteFieldBeginAsync(tmp408, cancellationToken); + field.Name = "enableRedirectQuery"; + field.Type = TType.Bool; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(EnableRedirectQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.jdbcQuery) { - tmp408.Name = "jdbcQuery"; - tmp408.Type = TType.Bool; - tmp408.ID = 6; - await oprot.WriteFieldBeginAsync(tmp408, cancellationToken); + field.Name = "jdbcQuery"; + field.Type = TType.Bool; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(JdbcQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.timeout) { - tmp408.Name = "timeout"; - tmp408.Type = TType.I64; - tmp408.ID = 7; - await oprot.WriteFieldBeginAsync(tmp408, cancellationToken); + field.Name = "timeout"; + field.Type = TType.I64; + field.ID = 7; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(Timeout, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -372,38 +371,38 @@ public override int GetHashCode() { public override string ToString() { - var tmp410 = new StringBuilder("TSFastLastDataQueryForOnePrefixPathReq("); - tmp410.Append(", SessionId: "); - SessionId.ToString(tmp410); + var sb = new StringBuilder("TSFastLastDataQueryForOnePrefixPathReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((Prefixes != null)) { - tmp410.Append(", Prefixes: "); - Prefixes.ToString(tmp410); + sb.Append(", Prefixes: "); + Prefixes.ToString(sb); } if(__isset.fetchSize) { - tmp410.Append(", FetchSize: "); - FetchSize.ToString(tmp410); + sb.Append(", FetchSize: "); + FetchSize.ToString(sb); } - tmp410.Append(", StatementId: "); - StatementId.ToString(tmp410); + sb.Append(", StatementId: "); + StatementId.ToString(sb); if(__isset.enableRedirectQuery) { - tmp410.Append(", EnableRedirectQuery: "); - EnableRedirectQuery.ToString(tmp410); + sb.Append(", EnableRedirectQuery: "); + EnableRedirectQuery.ToString(sb); } if(__isset.jdbcQuery) { - tmp410.Append(", JdbcQuery: "); - JdbcQuery.ToString(tmp410); + sb.Append(", JdbcQuery: "); + JdbcQuery.ToString(sb); } if(__isset.timeout) { - tmp410.Append(", Timeout: "); - Timeout.ToString(tmp410); + sb.Append(", Timeout: "); + Timeout.ToString(sb); } - tmp410.Append(')'); - return tmp410.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataReq.cs index f4483f4..630fab7 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSFetchMetadataReq : TBase @@ -148,30 +147,30 @@ public TSFetchMetadataReq(long sessionId, string type) : this() oprot.IncrementRecursionDepth(); try { - var tmp135 = new TStruct("TSFetchMetadataReq"); - await oprot.WriteStructBeginAsync(tmp135, cancellationToken); - var tmp136 = new TField(); - tmp136.Name = "sessionId"; - tmp136.Type = TType.I64; - tmp136.ID = 1; - await oprot.WriteFieldBeginAsync(tmp136, cancellationToken); + var struc = new TStruct("TSFetchMetadataReq"); + 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); if((Type != null)) { - tmp136.Name = "type"; - tmp136.Type = TType.String; - tmp136.ID = 2; - await oprot.WriteFieldBeginAsync(tmp136, 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) { - tmp136.Name = "columnPath"; - tmp136.Type = TType.String; - tmp136.ID = 3; - await oprot.WriteFieldBeginAsync(tmp136, cancellationToken); + field.Name = "columnPath"; + field.Type = TType.String; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteStringAsync(ColumnPath, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -211,21 +210,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp137 = new StringBuilder("TSFetchMetadataReq("); - tmp137.Append(", SessionId: "); - SessionId.ToString(tmp137); + var sb = new StringBuilder("TSFetchMetadataReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((Type != null)) { - tmp137.Append(", Type: "); - Type.ToString(tmp137); + sb.Append(", Type: "); + Type.ToString(sb); } if((ColumnPath != null) && __isset.columnPath) { - tmp137.Append(", ColumnPath: "); - ColumnPath.ToString(tmp137); + sb.Append(", ColumnPath: "); + ColumnPath.ToString(sb); } - tmp137.Append(')'); - return tmp137.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSFetchMetadataResp.cs index 732b4b1..edf27ec 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSFetchMetadataResp : TBase @@ -139,13 +138,13 @@ public TSFetchMetadataResp(TSStatus status) : this() if (field.Type == TType.List) { { - TList _list127 = await iprot.ReadListBeginAsync(cancellationToken); - ColumnsList = new List(_list127.Count); - for(int _i128 = 0; _i128 < _list127.Count; ++_i128) + TList _list85 = await iprot.ReadListBeginAsync(cancellationToken); + ColumnsList = new List(_list85.Count); + for(int _i86 = 0; _i86 < _list85.Count; ++_i86) { - string _elem129; - _elem129 = await iprot.ReadStringAsync(cancellationToken); - ColumnsList.Add(_elem129); + string _elem87; + _elem87 = await iprot.ReadStringAsync(cancellationToken); + ColumnsList.Add(_elem87); } await iprot.ReadListEndAsync(cancellationToken); } @@ -190,38 +189,38 @@ public TSFetchMetadataResp(TSStatus status) : this() oprot.IncrementRecursionDepth(); try { - var tmp130 = new TStruct("TSFetchMetadataResp"); - await oprot.WriteStructBeginAsync(tmp130, cancellationToken); - var tmp131 = new TField(); + var struc = new TStruct("TSFetchMetadataResp"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Status != null)) { - tmp131.Name = "status"; - tmp131.Type = TType.Struct; - tmp131.ID = 1; - await oprot.WriteFieldBeginAsync(tmp131, 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); } if((MetadataInJson != null) && __isset.metadataInJson) { - tmp131.Name = "metadataInJson"; - tmp131.Type = TType.String; - tmp131.ID = 2; - await oprot.WriteFieldBeginAsync(tmp131, cancellationToken); + field.Name = "metadataInJson"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteStringAsync(MetadataInJson, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((ColumnsList != null) && __isset.columnsList) { - tmp131.Name = "columnsList"; - tmp131.Type = TType.List; - tmp131.ID = 3; - await oprot.WriteFieldBeginAsync(tmp131, cancellationToken); + field.Name = "columnsList"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, ColumnsList.Count), cancellationToken); - foreach (string _iter132 in ColumnsList) + foreach (string _iter88 in ColumnsList) { - await oprot.WriteStringAsync(_iter132, cancellationToken); + await oprot.WriteStringAsync(_iter88, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -229,10 +228,10 @@ public TSFetchMetadataResp(TSStatus status) : this() } if((DataType != null) && __isset.dataType) { - tmp131.Name = "dataType"; - tmp131.Type = TType.String; - tmp131.ID = 4; - await oprot.WriteFieldBeginAsync(tmp131, cancellationToken); + field.Name = "dataType"; + field.Type = TType.String; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteStringAsync(DataType, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -280,29 +279,29 @@ public override int GetHashCode() { public override string ToString() { - var tmp133 = new StringBuilder("TSFetchMetadataResp("); + var sb = new StringBuilder("TSFetchMetadataResp("); if((Status != null)) { - tmp133.Append(", Status: "); - Status.ToString(tmp133); + sb.Append(", Status: "); + Status.ToString(sb); } if((MetadataInJson != null) && __isset.metadataInJson) { - tmp133.Append(", MetadataInJson: "); - MetadataInJson.ToString(tmp133); + sb.Append(", MetadataInJson: "); + MetadataInJson.ToString(sb); } if((ColumnsList != null) && __isset.columnsList) { - tmp133.Append(", ColumnsList: "); - ColumnsList.ToString(tmp133); + sb.Append(", ColumnsList: "); + ColumnsList.ToString(sb); } if((DataType != null) && __isset.dataType) { - tmp133.Append(", DataType: "); - DataType.ToString(tmp133); + sb.Append(", DataType: "); + DataType.ToString(sb); } - tmp133.Append(')'); - return tmp133.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsReq.cs index e442e71..55da0c9 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSFetchResultsReq : TBase @@ -230,57 +229,57 @@ public TSFetchResultsReq(long sessionId, string statement, int fetchSize, long q oprot.IncrementRecursionDepth(); try { - var tmp115 = new TStruct("TSFetchResultsReq"); - await oprot.WriteStructBeginAsync(tmp115, cancellationToken); - var tmp116 = new TField(); - tmp116.Name = "sessionId"; - tmp116.Type = TType.I64; - tmp116.ID = 1; - await oprot.WriteFieldBeginAsync(tmp116, cancellationToken); + var struc = new TStruct("TSFetchResultsReq"); + 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); if((Statement != null)) { - tmp116.Name = "statement"; - tmp116.Type = TType.String; - tmp116.ID = 2; - await oprot.WriteFieldBeginAsync(tmp116, 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); } - tmp116.Name = "fetchSize"; - tmp116.Type = TType.I32; - tmp116.ID = 3; - await oprot.WriteFieldBeginAsync(tmp116, cancellationToken); + field.Name = "fetchSize"; + field.Type = TType.I32; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(FetchSize, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - tmp116.Name = "queryId"; - tmp116.Type = TType.I64; - tmp116.ID = 4; - await oprot.WriteFieldBeginAsync(tmp116, cancellationToken); + field.Name = "queryId"; + field.Type = TType.I64; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(QueryId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - tmp116.Name = "isAlign"; - tmp116.Type = TType.Bool; - tmp116.ID = 5; - await oprot.WriteFieldBeginAsync(tmp116, cancellationToken); + field.Name = "isAlign"; + field.Type = TType.Bool; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(IsAlign, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if(__isset.timeout) { - tmp116.Name = "timeout"; - tmp116.Type = TType.I64; - tmp116.ID = 6; - await oprot.WriteFieldBeginAsync(tmp116, cancellationToken); + field.Name = "timeout"; + field.Type = TType.I64; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(Timeout, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.statementId) { - tmp116.Name = "statementId"; - tmp116.Type = TType.I64; - tmp116.ID = 7; - await oprot.WriteFieldBeginAsync(tmp116, cancellationToken); + field.Name = "statementId"; + field.Type = TType.I64; + field.ID = 7; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(StatementId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -331,32 +330,32 @@ public override int GetHashCode() { public override string ToString() { - var tmp117 = new StringBuilder("TSFetchResultsReq("); - tmp117.Append(", SessionId: "); - SessionId.ToString(tmp117); + var sb = new StringBuilder("TSFetchResultsReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((Statement != null)) { - tmp117.Append(", Statement: "); - Statement.ToString(tmp117); + sb.Append(", Statement: "); + Statement.ToString(sb); } - tmp117.Append(", FetchSize: "); - FetchSize.ToString(tmp117); - tmp117.Append(", QueryId: "); - QueryId.ToString(tmp117); - tmp117.Append(", IsAlign: "); - IsAlign.ToString(tmp117); + sb.Append(", FetchSize: "); + FetchSize.ToString(sb); + sb.Append(", QueryId: "); + QueryId.ToString(sb); + sb.Append(", IsAlign: "); + IsAlign.ToString(sb); if(__isset.timeout) { - tmp117.Append(", Timeout: "); - Timeout.ToString(tmp117); + sb.Append(", Timeout: "); + Timeout.ToString(sb); } if(__isset.statementId) { - tmp117.Append(", StatementId: "); - StatementId.ToString(tmp117); + sb.Append(", StatementId: "); + StatementId.ToString(sb); } - tmp117.Append(')'); - return tmp117.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSFetchResultsResp.cs index 57d4166..687a230 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSFetchResultsResp : TBase @@ -196,13 +195,13 @@ public TSFetchResultsResp(TSStatus status, bool hasResultSet, bool isAlign) : th if (field.Type == TType.List) { { - TList _list119 = await iprot.ReadListBeginAsync(cancellationToken); - QueryResult = new List(_list119.Count); - for(int _i120 = 0; _i120 < _list119.Count; ++_i120) + TList _list80 = await iprot.ReadListBeginAsync(cancellationToken); + QueryResult = new List(_list80.Count); + for(int _i81 = 0; _i81 < _list80.Count; ++_i81) { - byte[] _elem121; - _elem121 = await iprot.ReadBinaryAsync(cancellationToken); - QueryResult.Add(_elem121); + byte[] _elem82; + _elem82 = await iprot.ReadBinaryAsync(cancellationToken); + QueryResult.Add(_elem82); } await iprot.ReadListEndAsync(cancellationToken); } @@ -255,59 +254,59 @@ public TSFetchResultsResp(TSStatus status, bool hasResultSet, bool isAlign) : th oprot.IncrementRecursionDepth(); try { - var tmp122 = new TStruct("TSFetchResultsResp"); - await oprot.WriteStructBeginAsync(tmp122, cancellationToken); - var tmp123 = new TField(); + var struc = new TStruct("TSFetchResultsResp"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Status != null)) { - tmp123.Name = "status"; - tmp123.Type = TType.Struct; - tmp123.ID = 1; - await oprot.WriteFieldBeginAsync(tmp123, 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); } - tmp123.Name = "hasResultSet"; - tmp123.Type = TType.Bool; - tmp123.ID = 2; - await oprot.WriteFieldBeginAsync(tmp123, cancellationToken); + field.Name = "hasResultSet"; + field.Type = TType.Bool; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(HasResultSet, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - tmp123.Name = "isAlign"; - tmp123.Type = TType.Bool; - tmp123.ID = 3; - await oprot.WriteFieldBeginAsync(tmp123, cancellationToken); + field.Name = "isAlign"; + field.Type = TType.Bool; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(IsAlign, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if((QueryDataSet != null) && __isset.queryDataSet) { - tmp123.Name = "queryDataSet"; - tmp123.Type = TType.Struct; - tmp123.ID = 4; - await oprot.WriteFieldBeginAsync(tmp123, cancellationToken); + field.Name = "queryDataSet"; + field.Type = TType.Struct; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await QueryDataSet.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) { - tmp123.Name = "nonAlignQueryDataSet"; - tmp123.Type = TType.Struct; - tmp123.ID = 5; - await oprot.WriteFieldBeginAsync(tmp123, cancellationToken); + field.Name = "nonAlignQueryDataSet"; + field.Type = TType.Struct; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await NonAlignQueryDataSet.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((QueryResult != null) && __isset.queryResult) { - tmp123.Name = "queryResult"; - tmp123.Type = TType.List; - tmp123.ID = 6; - await oprot.WriteFieldBeginAsync(tmp123, cancellationToken); + field.Name = "queryResult"; + field.Type = TType.List; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, QueryResult.Count), cancellationToken); - foreach (byte[] _iter124 in QueryResult) + foreach (byte[] _iter83 in QueryResult) { - await oprot.WriteBinaryAsync(_iter124, cancellationToken); + await oprot.WriteBinaryAsync(_iter83, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -315,10 +314,10 @@ public TSFetchResultsResp(TSStatus status, bool hasResultSet, bool isAlign) : th } if(__isset.moreData) { - tmp123.Name = "moreData"; - tmp123.Type = TType.Bool; - tmp123.ID = 7; - await oprot.WriteFieldBeginAsync(tmp123, cancellationToken); + field.Name = "moreData"; + field.Type = TType.Bool; + field.ID = 7; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(MoreData, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -375,38 +374,38 @@ public override int GetHashCode() { public override string ToString() { - var tmp125 = new StringBuilder("TSFetchResultsResp("); + var sb = new StringBuilder("TSFetchResultsResp("); if((Status != null)) { - tmp125.Append(", Status: "); - Status.ToString(tmp125); + sb.Append(", Status: "); + Status.ToString(sb); } - tmp125.Append(", HasResultSet: "); - HasResultSet.ToString(tmp125); - tmp125.Append(", IsAlign: "); - IsAlign.ToString(tmp125); + sb.Append(", HasResultSet: "); + HasResultSet.ToString(sb); + sb.Append(", IsAlign: "); + IsAlign.ToString(sb); if((QueryDataSet != null) && __isset.queryDataSet) { - tmp125.Append(", QueryDataSet: "); - QueryDataSet.ToString(tmp125); + sb.Append(", QueryDataSet: "); + QueryDataSet.ToString(sb); } if((NonAlignQueryDataSet != null) && __isset.nonAlignQueryDataSet) { - tmp125.Append(", NonAlignQueryDataSet: "); - NonAlignQueryDataSet.ToString(tmp125); + sb.Append(", NonAlignQueryDataSet: "); + NonAlignQueryDataSet.ToString(sb); } if((QueryResult != null) && __isset.queryResult) { - tmp125.Append(", QueryResult: "); - QueryResult.ToString(tmp125); + sb.Append(", QueryResult: "); + QueryResult.ToString(sb); } if(__isset.moreData) { - tmp125.Append(", MoreData: "); - MoreData.ToString(tmp125); + sb.Append(", MoreData: "); + MoreData.ToString(sb); } - tmp125.Append(')'); - return tmp125.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSGetOperationStatusReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSGetOperationStatusReq.cs index b3464ff..7369e01 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSGetOperationStatusReq : TBase @@ -117,19 +116,19 @@ public TSGetOperationStatusReq(long sessionId, long queryId) : this() oprot.IncrementRecursionDepth(); try { - var tmp103 = new TStruct("TSGetOperationStatusReq"); - await oprot.WriteStructBeginAsync(tmp103, cancellationToken); - var tmp104 = new TField(); - tmp104.Name = "sessionId"; - tmp104.Type = TType.I64; - tmp104.ID = 1; - await oprot.WriteFieldBeginAsync(tmp104, cancellationToken); + var struc = new TStruct("TSGetOperationStatusReq"); + 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); - tmp104.Name = "queryId"; - tmp104.Type = TType.I64; - tmp104.ID = 2; - await oprot.WriteFieldBeginAsync(tmp104, cancellationToken); + field.Name = "queryId"; + field.Type = TType.I64; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(QueryId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -160,13 +159,13 @@ public override int GetHashCode() { public override string ToString() { - var tmp105 = new StringBuilder("TSGetOperationStatusReq("); - tmp105.Append(", SessionId: "); - SessionId.ToString(tmp105); - tmp105.Append(", QueryId: "); - QueryId.ToString(tmp105); - tmp105.Append(')'); - return tmp105.ToString(); + var sb = new StringBuilder("TSGetOperationStatusReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); + sb.Append(", QueryId: "); + 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 8cba7f6..e10c613 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSGetTimeZoneResp : TBase @@ -118,24 +117,24 @@ public TSGetTimeZoneResp(TSStatus status, string timeZone) : this() oprot.IncrementRecursionDepth(); try { - var tmp139 = new TStruct("TSGetTimeZoneResp"); - await oprot.WriteStructBeginAsync(tmp139, cancellationToken); - var tmp140 = new TField(); + var struc = new TStruct("TSGetTimeZoneResp"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Status != null)) { - tmp140.Name = "status"; - tmp140.Type = TType.Struct; - tmp140.ID = 1; - await oprot.WriteFieldBeginAsync(tmp140, 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); } if((TimeZone != null)) { - tmp140.Name = "timeZone"; - tmp140.Type = TType.String; - tmp140.ID = 2; - await oprot.WriteFieldBeginAsync(tmp140, 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); } @@ -173,19 +172,19 @@ public override int GetHashCode() { public override string ToString() { - var tmp141 = new StringBuilder("TSGetTimeZoneResp("); + var sb = new StringBuilder("TSGetTimeZoneResp("); if((Status != null)) { - tmp141.Append(", Status: "); - Status.ToString(tmp141); + sb.Append(", Status: "); + Status.ToString(sb); } if((TimeZone != null)) { - tmp141.Append(", TimeZone: "); - TimeZone.ToString(tmp141); + sb.Append(", TimeZone: "); + TimeZone.ToString(sb); } - tmp141.Append(')'); - return tmp141.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSGroupByQueryIntervalReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSGroupByQueryIntervalReq.cs index cef01a9..9e4a9dd 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSGroupByQueryIntervalReq : TBase @@ -378,111 +377,111 @@ public TSGroupByQueryIntervalReq(long sessionId, long statementId, string device oprot.IncrementRecursionDepth(); try { - var tmp432 = new TStruct("TSGroupByQueryIntervalReq"); - await oprot.WriteStructBeginAsync(tmp432, cancellationToken); - var tmp433 = new TField(); - tmp433.Name = "sessionId"; - tmp433.Type = TType.I64; - tmp433.ID = 1; - await oprot.WriteFieldBeginAsync(tmp433, cancellationToken); + 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); - tmp433.Name = "statementId"; - tmp433.Type = TType.I64; - tmp433.ID = 2; - await oprot.WriteFieldBeginAsync(tmp433, 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); if((Device != null)) { - tmp433.Name = "device"; - tmp433.Type = TType.String; - tmp433.ID = 3; - await oprot.WriteFieldBeginAsync(tmp433, 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); } if((Measurement != null)) { - tmp433.Name = "measurement"; - tmp433.Type = TType.String; - tmp433.ID = 4; - await oprot.WriteFieldBeginAsync(tmp433, 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); } - tmp433.Name = "dataType"; - tmp433.Type = TType.I32; - tmp433.ID = 5; - await oprot.WriteFieldBeginAsync(tmp433, 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); - tmp433.Name = "aggregationType"; - tmp433.Type = TType.I32; - tmp433.ID = 6; - await oprot.WriteFieldBeginAsync(tmp433, 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) { - tmp433.Name = "database"; - tmp433.Type = TType.String; - tmp433.ID = 7; - await oprot.WriteFieldBeginAsync(tmp433, cancellationToken); + 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) { - tmp433.Name = "startTime"; - tmp433.Type = TType.I64; - tmp433.ID = 8; - await oprot.WriteFieldBeginAsync(tmp433, cancellationToken); + 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) { - tmp433.Name = "endTime"; - tmp433.Type = TType.I64; - tmp433.ID = 9; - await oprot.WriteFieldBeginAsync(tmp433, cancellationToken); + 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) { - tmp433.Name = "interval"; - tmp433.Type = TType.I64; - tmp433.ID = 10; - await oprot.WriteFieldBeginAsync(tmp433, cancellationToken); + 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) { - tmp433.Name = "fetchSize"; - tmp433.Type = TType.I32; - tmp433.ID = 11; - await oprot.WriteFieldBeginAsync(tmp433, cancellationToken); + 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) { - tmp433.Name = "timeout"; - tmp433.Type = TType.I64; - tmp433.ID = 12; - await oprot.WriteFieldBeginAsync(tmp433, cancellationToken); + field.Name = "timeout"; + field.Type = TType.I64; + field.ID = 12; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(Timeout, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.isAligned) { - tmp433.Name = "isAligned"; - tmp433.Type = TType.Bool; - tmp433.ID = 13; - await oprot.WriteFieldBeginAsync(tmp433, cancellationToken); + field.Name = "isAligned"; + field.Type = TType.Bool; + field.ID = 13; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(IsAligned, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -563,62 +562,62 @@ public override int GetHashCode() { public override string ToString() { - var tmp434 = new StringBuilder("TSGroupByQueryIntervalReq("); - tmp434.Append(", SessionId: "); - SessionId.ToString(tmp434); - tmp434.Append(", StatementId: "); - StatementId.ToString(tmp434); + var sb = new StringBuilder("TSGroupByQueryIntervalReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); + sb.Append(", StatementId: "); + StatementId.ToString(sb); if((Device != null)) { - tmp434.Append(", Device: "); - Device.ToString(tmp434); + sb.Append(", Device: "); + Device.ToString(sb); } if((Measurement != null)) { - tmp434.Append(", Measurement: "); - Measurement.ToString(tmp434); + sb.Append(", Measurement: "); + Measurement.ToString(sb); } - tmp434.Append(", DataType: "); - DataType.ToString(tmp434); - tmp434.Append(", AggregationType: "); - AggregationType.ToString(tmp434); + sb.Append(", DataType: "); + DataType.ToString(sb); + sb.Append(", AggregationType: "); + AggregationType.ToString(sb); if((Database != null) && __isset.database) { - tmp434.Append(", Database: "); - Database.ToString(tmp434); + sb.Append(", Database: "); + Database.ToString(sb); } if(__isset.startTime) { - tmp434.Append(", StartTime: "); - StartTime.ToString(tmp434); + sb.Append(", StartTime: "); + StartTime.ToString(sb); } if(__isset.endTime) { - tmp434.Append(", EndTime: "); - EndTime.ToString(tmp434); + sb.Append(", EndTime: "); + EndTime.ToString(sb); } if(__isset.interval) { - tmp434.Append(", Interval: "); - Interval.ToString(tmp434); + sb.Append(", Interval: "); + Interval.ToString(sb); } if(__isset.fetchSize) { - tmp434.Append(", FetchSize: "); - FetchSize.ToString(tmp434); + sb.Append(", FetchSize: "); + FetchSize.ToString(sb); } if(__isset.timeout) { - tmp434.Append(", Timeout: "); - Timeout.ToString(tmp434); + sb.Append(", Timeout: "); + Timeout.ToString(sb); } if(__isset.isAligned) { - tmp434.Append(", IsAligned: "); - IsAligned.ToString(tmp434); + sb.Append(", IsAligned: "); + IsAligned.ToString(sb); } - tmp434.Append(')'); - return tmp434.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordReq.cs index 45c00bc..4ac99eb 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSInsertRecordReq : TBase @@ -155,13 +154,13 @@ public TSInsertRecordReq(long sessionId, string prefixPath, List measure if (field.Type == TType.List) { { - TList _list147 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list147.Count); - for(int _i148 = 0; _i148 < _list147.Count; ++_i148) + TList _list93 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list93.Count); + for(int _i94 = 0; _i94 < _list93.Count; ++_i94) { - string _elem149; - _elem149 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem149); + string _elem95; + _elem95 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem95); } await iprot.ReadListEndAsync(cancellationToken); } @@ -218,13 +217,13 @@ public TSInsertRecordReq(long sessionId, string prefixPath, List measure if (field.Type == TType.List) { { - TList _list150 = await iprot.ReadListBeginAsync(cancellationToken); - ColumnCategoryies = new List(_list150.Count); - for(int _i151 = 0; _i151 < _list150.Count; ++_i151) + TList _list96 = await iprot.ReadListBeginAsync(cancellationToken); + ColumnCategoryies = new List(_list96.Count); + for(int _i97 = 0; _i97 < _list96.Count; ++_i97) { - sbyte _elem152; - _elem152 = await iprot.ReadByteAsync(cancellationToken); - ColumnCategoryies.Add(_elem152); + sbyte _elem98; + _elem98 = await iprot.ReadByteAsync(cancellationToken); + ColumnCategoryies.Add(_elem98); } await iprot.ReadListEndAsync(cancellationToken); } @@ -275,35 +274,35 @@ public TSInsertRecordReq(long sessionId, string prefixPath, List measure oprot.IncrementRecursionDepth(); try { - var tmp153 = new TStruct("TSInsertRecordReq"); - await oprot.WriteStructBeginAsync(tmp153, cancellationToken); - var tmp154 = new TField(); - tmp154.Name = "sessionId"; - tmp154.Type = TType.I64; - tmp154.ID = 1; - await oprot.WriteFieldBeginAsync(tmp154, cancellationToken); + var struc = new TStruct("TSInsertRecordReq"); + 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); if((PrefixPath != null)) { - tmp154.Name = "prefixPath"; - tmp154.Type = TType.String; - tmp154.ID = 2; - await oprot.WriteFieldBeginAsync(tmp154, 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); } if((Measurements != null)) { - tmp154.Name = "measurements"; - tmp154.Type = TType.List; - tmp154.ID = 3; - await oprot.WriteFieldBeginAsync(tmp154, 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 _iter155 in Measurements) + foreach (string _iter99 in Measurements) { - await oprot.WriteStringAsync(_iter155, cancellationToken); + await oprot.WriteStringAsync(_iter99, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -311,48 +310,48 @@ public TSInsertRecordReq(long sessionId, string prefixPath, List measure } if((Values != null)) { - tmp154.Name = "values"; - tmp154.Type = TType.String; - tmp154.ID = 4; - await oprot.WriteFieldBeginAsync(tmp154, 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); } - tmp154.Name = "timestamp"; - tmp154.Type = TType.I64; - tmp154.ID = 5; - await oprot.WriteFieldBeginAsync(tmp154, 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) { - tmp154.Name = "isAligned"; - tmp154.Type = TType.Bool; - tmp154.ID = 6; - await oprot.WriteFieldBeginAsync(tmp154, cancellationToken); + field.Name = "isAligned"; + field.Type = TType.Bool; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(IsAligned, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.isWriteToTable) { - tmp154.Name = "isWriteToTable"; - tmp154.Type = TType.Bool; - tmp154.ID = 7; - await oprot.WriteFieldBeginAsync(tmp154, cancellationToken); + field.Name = "isWriteToTable"; + field.Type = TType.Bool; + field.ID = 7; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(IsWriteToTable, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((ColumnCategoryies != null) && __isset.columnCategoryies) { - tmp154.Name = "columnCategoryies"; - tmp154.Type = TType.List; - tmp154.ID = 8; - await oprot.WriteFieldBeginAsync(tmp154, cancellationToken); + field.Name = "columnCategoryies"; + field.Type = TType.List; + field.ID = 8; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Byte, ColumnCategoryies.Count), cancellationToken); - foreach (sbyte _iter156 in ColumnCategoryies) + foreach (sbyte _iter100 in ColumnCategoryies) { - await oprot.WriteByteAsync(_iter156, cancellationToken); + await oprot.WriteByteAsync(_iter100, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -416,43 +415,43 @@ public override int GetHashCode() { public override string ToString() { - var tmp157 = new StringBuilder("TSInsertRecordReq("); - tmp157.Append(", SessionId: "); - SessionId.ToString(tmp157); + var sb = new StringBuilder("TSInsertRecordReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((PrefixPath != null)) { - tmp157.Append(", PrefixPath: "); - PrefixPath.ToString(tmp157); + sb.Append(", PrefixPath: "); + PrefixPath.ToString(sb); } if((Measurements != null)) { - tmp157.Append(", Measurements: "); - Measurements.ToString(tmp157); + sb.Append(", Measurements: "); + Measurements.ToString(sb); } if((Values != null)) { - tmp157.Append(", Values: "); - Values.ToString(tmp157); + sb.Append(", Values: "); + Values.ToString(sb); } - tmp157.Append(", Timestamp: "); - Timestamp.ToString(tmp157); + sb.Append(", Timestamp: "); + Timestamp.ToString(sb); if(__isset.isAligned) { - tmp157.Append(", IsAligned: "); - IsAligned.ToString(tmp157); + sb.Append(", IsAligned: "); + IsAligned.ToString(sb); } if(__isset.isWriteToTable) { - tmp157.Append(", IsWriteToTable: "); - IsWriteToTable.ToString(tmp157); + sb.Append(", IsWriteToTable: "); + IsWriteToTable.ToString(sb); } if((ColumnCategoryies != null) && __isset.columnCategoryies) { - tmp157.Append(", ColumnCategoryies: "); - ColumnCategoryies.ToString(tmp157); + sb.Append(", ColumnCategoryies: "); + ColumnCategoryies.ToString(sb); } - tmp157.Append(')'); - return tmp157.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsOfOneDeviceReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertRecordsOfOneDeviceReq.cs index 6080f82..4943835 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSInsertRecordsOfOneDeviceReq : TBase @@ -125,23 +124,23 @@ public TSInsertRecordsOfOneDeviceReq(long sessionId, string prefixPath, List>(_list247.Count); - for(int _i248 = 0; _i248 < _list247.Count; ++_i248) + TList _list182 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list182.Count); + for(int _i183 = 0; _i183 < _list182.Count; ++_i183) { - List _elem249; + List _elem184; { - TList _list250 = await iprot.ReadListBeginAsync(cancellationToken); - _elem249 = new List(_list250.Count); - for(int _i251 = 0; _i251 < _list250.Count; ++_i251) + TList _list185 = await iprot.ReadListBeginAsync(cancellationToken); + _elem184 = new List(_list185.Count); + for(int _i186 = 0; _i186 < _list185.Count; ++_i186) { - string _elem252; - _elem252 = await iprot.ReadStringAsync(cancellationToken); - _elem249.Add(_elem252); + string _elem187; + _elem187 = await iprot.ReadStringAsync(cancellationToken); + _elem184.Add(_elem187); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem249); + MeasurementsList.Add(_elem184); } await iprot.ReadListEndAsync(cancellationToken); } @@ -156,13 +155,13 @@ public TSInsertRecordsOfOneDeviceReq(long sessionId, string prefixPath, List(_list253.Count); - for(int _i254 = 0; _i254 < _list253.Count; ++_i254) + TList _list188 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List(_list188.Count); + for(int _i189 = 0; _i189 < _list188.Count; ++_i189) { - byte[] _elem255; - _elem255 = await iprot.ReadBinaryAsync(cancellationToken); - ValuesList.Add(_elem255); + byte[] _elem190; + _elem190 = await iprot.ReadBinaryAsync(cancellationToken); + ValuesList.Add(_elem190); } await iprot.ReadListEndAsync(cancellationToken); } @@ -177,13 +176,13 @@ public TSInsertRecordsOfOneDeviceReq(long sessionId, string prefixPath, List(_list256.Count); - for(int _i257 = 0; _i257 < _list256.Count; ++_i257) + TList _list191 = await iprot.ReadListBeginAsync(cancellationToken); + Timestamps = new List(_list191.Count); + for(int _i192 = 0; _i192 < _list191.Count; ++_i192) { - long _elem258; - _elem258 = await iprot.ReadI64Async(cancellationToken); - Timestamps.Add(_elem258); + long _elem193; + _elem193 = await iprot.ReadI64Async(cancellationToken); + Timestamps.Add(_elem193); } await iprot.ReadListEndAsync(cancellationToken); } @@ -245,39 +244,39 @@ public TSInsertRecordsOfOneDeviceReq(long sessionId, string prefixPath, List _iter261 in MeasurementsList) + foreach (List _iter194 in MeasurementsList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter261.Count), cancellationToken); - foreach (string _iter262 in _iter261) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter194.Count), cancellationToken); + foreach (string _iter195 in _iter194) { - await oprot.WriteStringAsync(_iter262, cancellationToken); + await oprot.WriteStringAsync(_iter195, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -288,15 +287,15 @@ public TSInsertRecordsOfOneDeviceReq(long sessionId, string prefixPath, List prefixPaths, List(_list223.Count); - for(int _i224 = 0; _i224 < _list223.Count; ++_i224) + TList _list161 = await iprot.ReadListBeginAsync(cancellationToken); + PrefixPaths = new List(_list161.Count); + for(int _i162 = 0; _i162 < _list161.Count; ++_i162) { - string _elem225; - _elem225 = await iprot.ReadStringAsync(cancellationToken); - PrefixPaths.Add(_elem225); + string _elem163; + _elem163 = await iprot.ReadStringAsync(cancellationToken); + PrefixPaths.Add(_elem163); } await iprot.ReadListEndAsync(cancellationToken); } @@ -135,23 +134,23 @@ public TSInsertRecordsReq(long sessionId, List prefixPaths, List>(_list226.Count); - for(int _i227 = 0; _i227 < _list226.Count; ++_i227) + TList _list164 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list164.Count); + for(int _i165 = 0; _i165 < _list164.Count; ++_i165) { - List _elem228; + List _elem166; { - TList _list229 = await iprot.ReadListBeginAsync(cancellationToken); - _elem228 = new List(_list229.Count); - for(int _i230 = 0; _i230 < _list229.Count; ++_i230) + TList _list167 = await iprot.ReadListBeginAsync(cancellationToken); + _elem166 = new List(_list167.Count); + for(int _i168 = 0; _i168 < _list167.Count; ++_i168) { - string _elem231; - _elem231 = await iprot.ReadStringAsync(cancellationToken); - _elem228.Add(_elem231); + string _elem169; + _elem169 = await iprot.ReadStringAsync(cancellationToken); + _elem166.Add(_elem169); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem228); + MeasurementsList.Add(_elem166); } await iprot.ReadListEndAsync(cancellationToken); } @@ -166,13 +165,13 @@ public TSInsertRecordsReq(long sessionId, List prefixPaths, List(_list232.Count); - for(int _i233 = 0; _i233 < _list232.Count; ++_i233) + TList _list170 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List(_list170.Count); + for(int _i171 = 0; _i171 < _list170.Count; ++_i171) { - byte[] _elem234; - _elem234 = await iprot.ReadBinaryAsync(cancellationToken); - ValuesList.Add(_elem234); + byte[] _elem172; + _elem172 = await iprot.ReadBinaryAsync(cancellationToken); + ValuesList.Add(_elem172); } await iprot.ReadListEndAsync(cancellationToken); } @@ -187,13 +186,13 @@ public TSInsertRecordsReq(long sessionId, List prefixPaths, List(_list235.Count); - for(int _i236 = 0; _i236 < _list235.Count; ++_i236) + TList _list173 = await iprot.ReadListBeginAsync(cancellationToken); + Timestamps = new List(_list173.Count); + for(int _i174 = 0; _i174 < _list173.Count; ++_i174) { - long _elem237; - _elem237 = await iprot.ReadI64Async(cancellationToken); - Timestamps.Add(_elem237); + long _elem175; + _elem175 = await iprot.ReadI64Async(cancellationToken); + Timestamps.Add(_elem175); } await iprot.ReadListEndAsync(cancellationToken); } @@ -255,26 +254,26 @@ public TSInsertRecordsReq(long sessionId, List prefixPaths, List prefixPaths, List _iter241 in MeasurementsList) + foreach (List _iter177 in MeasurementsList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter241.Count), cancellationToken); - foreach (string _iter242 in _iter241) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter177.Count), cancellationToken); + foreach (string _iter178 in _iter177) { - await oprot.WriteStringAsync(_iter242, cancellationToken); + await oprot.WriteStringAsync(_iter178, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -305,15 +304,15 @@ public TSInsertRecordsReq(long sessionId, List prefixPaths, List prefixPaths, List prefixPaths, List m if (field.Type == TType.List) { { - TList _list159 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list159.Count); - for(int _i160 = 0; _i160 < _list159.Count; ++_i160) + TList _list102 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list102.Count); + for(int _i103 = 0; _i103 < _list102.Count; ++_i103) { - string _elem161; - _elem161 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem161); + string _elem104; + _elem104 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem104); } await iprot.ReadListEndAsync(cancellationToken); } @@ -161,13 +160,13 @@ public TSInsertStringRecordReq(long sessionId, string prefixPath, List m if (field.Type == TType.List) { { - TList _list162 = await iprot.ReadListBeginAsync(cancellationToken); - Values = new List(_list162.Count); - for(int _i163 = 0; _i163 < _list162.Count; ++_i163) + TList _list105 = await iprot.ReadListBeginAsync(cancellationToken); + Values = new List(_list105.Count); + for(int _i106 = 0; _i106 < _list105.Count; ++_i106) { - string _elem164; - _elem164 = await iprot.ReadStringAsync(cancellationToken); - Values.Add(_elem164); + string _elem107; + _elem107 = await iprot.ReadStringAsync(cancellationToken); + Values.Add(_elem107); } await iprot.ReadListEndAsync(cancellationToken); } @@ -250,35 +249,35 @@ public TSInsertStringRecordReq(long sessionId, string prefixPath, List m oprot.IncrementRecursionDepth(); try { - var tmp165 = new TStruct("TSInsertStringRecordReq"); - await oprot.WriteStructBeginAsync(tmp165, cancellationToken); - var tmp166 = new TField(); - tmp166.Name = "sessionId"; - tmp166.Type = TType.I64; - tmp166.ID = 1; - await oprot.WriteFieldBeginAsync(tmp166, cancellationToken); + var struc = new TStruct("TSInsertStringRecordReq"); + 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); if((PrefixPath != null)) { - tmp166.Name = "prefixPath"; - tmp166.Type = TType.String; - tmp166.ID = 2; - await oprot.WriteFieldBeginAsync(tmp166, 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); } if((Measurements != null)) { - tmp166.Name = "measurements"; - tmp166.Type = TType.List; - tmp166.ID = 3; - await oprot.WriteFieldBeginAsync(tmp166, 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 _iter167 in Measurements) + foreach (string _iter108 in Measurements) { - await oprot.WriteStringAsync(_iter167, cancellationToken); + await oprot.WriteStringAsync(_iter108, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -286,41 +285,41 @@ public TSInsertStringRecordReq(long sessionId, string prefixPath, List m } if((Values != null)) { - tmp166.Name = "values"; - tmp166.Type = TType.List; - tmp166.ID = 4; - await oprot.WriteFieldBeginAsync(tmp166, 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 _iter168 in Values) + foreach (string _iter109 in Values) { - await oprot.WriteStringAsync(_iter168, cancellationToken); + await oprot.WriteStringAsync(_iter109, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - tmp166.Name = "timestamp"; - tmp166.Type = TType.I64; - tmp166.ID = 5; - await oprot.WriteFieldBeginAsync(tmp166, 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) { - tmp166.Name = "isAligned"; - tmp166.Type = TType.Bool; - tmp166.ID = 6; - await oprot.WriteFieldBeginAsync(tmp166, cancellationToken); + field.Name = "isAligned"; + field.Type = TType.Bool; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(IsAligned, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.timeout) { - tmp166.Name = "timeout"; - tmp166.Type = TType.I64; - tmp166.ID = 7; - await oprot.WriteFieldBeginAsync(tmp166, cancellationToken); + field.Name = "timeout"; + field.Type = TType.I64; + field.ID = 7; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(Timeout, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -377,38 +376,38 @@ public override int GetHashCode() { public override string ToString() { - var tmp169 = new StringBuilder("TSInsertStringRecordReq("); - tmp169.Append(", SessionId: "); - SessionId.ToString(tmp169); + var sb = new StringBuilder("TSInsertStringRecordReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((PrefixPath != null)) { - tmp169.Append(", PrefixPath: "); - PrefixPath.ToString(tmp169); + sb.Append(", PrefixPath: "); + PrefixPath.ToString(sb); } if((Measurements != null)) { - tmp169.Append(", Measurements: "); - Measurements.ToString(tmp169); + sb.Append(", Measurements: "); + Measurements.ToString(sb); } if((Values != null)) { - tmp169.Append(", Values: "); - Values.ToString(tmp169); + sb.Append(", Values: "); + Values.ToString(sb); } - tmp169.Append(", Timestamp: "); - Timestamp.ToString(tmp169); + sb.Append(", Timestamp: "); + Timestamp.ToString(sb); if(__isset.isAligned) { - tmp169.Append(", IsAligned: "); - IsAligned.ToString(tmp169); + sb.Append(", IsAligned: "); + IsAligned.ToString(sb); } if(__isset.timeout) { - tmp169.Append(", Timeout: "); - Timeout.ToString(tmp169); + sb.Append(", Timeout: "); + Timeout.ToString(sb); } - tmp169.Append(')'); - return tmp169.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsOfOneDeviceReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsOfOneDeviceReq.cs index 9788639..2d03cee 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSInsertStringRecordsOfOneDeviceReq : TBase @@ -125,23 +124,23 @@ public TSInsertStringRecordsOfOneDeviceReq(long sessionId, string prefixPath, Li if (field.Type == TType.List) { { - TList _list267 = await iprot.ReadListBeginAsync(cancellationToken); - MeasurementsList = new List>(_list267.Count); - for(int _i268 = 0; _i268 < _list267.Count; ++_i268) + TList _list199 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list199.Count); + for(int _i200 = 0; _i200 < _list199.Count; ++_i200) { - List _elem269; + List _elem201; { - TList _list270 = await iprot.ReadListBeginAsync(cancellationToken); - _elem269 = new List(_list270.Count); - for(int _i271 = 0; _i271 < _list270.Count; ++_i271) + TList _list202 = await iprot.ReadListBeginAsync(cancellationToken); + _elem201 = new List(_list202.Count); + for(int _i203 = 0; _i203 < _list202.Count; ++_i203) { - string _elem272; - _elem272 = await iprot.ReadStringAsync(cancellationToken); - _elem269.Add(_elem272); + string _elem204; + _elem204 = await iprot.ReadStringAsync(cancellationToken); + _elem201.Add(_elem204); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem269); + MeasurementsList.Add(_elem201); } await iprot.ReadListEndAsync(cancellationToken); } @@ -156,23 +155,23 @@ public TSInsertStringRecordsOfOneDeviceReq(long sessionId, string prefixPath, Li if (field.Type == TType.List) { { - TList _list273 = await iprot.ReadListBeginAsync(cancellationToken); - ValuesList = new List>(_list273.Count); - for(int _i274 = 0; _i274 < _list273.Count; ++_i274) + TList _list205 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List>(_list205.Count); + for(int _i206 = 0; _i206 < _list205.Count; ++_i206) { - List _elem275; + List _elem207; { - TList _list276 = await iprot.ReadListBeginAsync(cancellationToken); - _elem275 = new List(_list276.Count); - for(int _i277 = 0; _i277 < _list276.Count; ++_i277) + TList _list208 = await iprot.ReadListBeginAsync(cancellationToken); + _elem207 = new List(_list208.Count); + for(int _i209 = 0; _i209 < _list208.Count; ++_i209) { - string _elem278; - _elem278 = await iprot.ReadStringAsync(cancellationToken); - _elem275.Add(_elem278); + string _elem210; + _elem210 = await iprot.ReadStringAsync(cancellationToken); + _elem207.Add(_elem210); } await iprot.ReadListEndAsync(cancellationToken); } - ValuesList.Add(_elem275); + ValuesList.Add(_elem207); } await iprot.ReadListEndAsync(cancellationToken); } @@ -187,13 +186,13 @@ public TSInsertStringRecordsOfOneDeviceReq(long sessionId, string prefixPath, Li if (field.Type == TType.List) { { - TList _list279 = await iprot.ReadListBeginAsync(cancellationToken); - Timestamps = new List(_list279.Count); - for(int _i280 = 0; _i280 < _list279.Count; ++_i280) + TList _list211 = await iprot.ReadListBeginAsync(cancellationToken); + Timestamps = new List(_list211.Count); + for(int _i212 = 0; _i212 < _list211.Count; ++_i212) { - long _elem281; - _elem281 = await iprot.ReadI64Async(cancellationToken); - Timestamps.Add(_elem281); + long _elem213; + _elem213 = await iprot.ReadI64Async(cancellationToken); + Timestamps.Add(_elem213); } await iprot.ReadListEndAsync(cancellationToken); } @@ -255,39 +254,39 @@ public TSInsertStringRecordsOfOneDeviceReq(long sessionId, string prefixPath, Li oprot.IncrementRecursionDepth(); try { - var tmp282 = new TStruct("TSInsertStringRecordsOfOneDeviceReq"); - await oprot.WriteStructBeginAsync(tmp282, cancellationToken); - var tmp283 = new TField(); - tmp283.Name = "sessionId"; - tmp283.Type = TType.I64; - tmp283.ID = 1; - await oprot.WriteFieldBeginAsync(tmp283, cancellationToken); + var struc = new TStruct("TSInsertStringRecordsOfOneDeviceReq"); + 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); if((PrefixPath != null)) { - tmp283.Name = "prefixPath"; - tmp283.Type = TType.String; - tmp283.ID = 2; - await oprot.WriteFieldBeginAsync(tmp283, 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); } if((MeasurementsList != null)) { - tmp283.Name = "measurementsList"; - tmp283.Type = TType.List; - tmp283.ID = 3; - await oprot.WriteFieldBeginAsync(tmp283, 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 _iter284 in MeasurementsList) + foreach (List _iter214 in MeasurementsList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter284.Count), cancellationToken); - foreach (string _iter285 in _iter284) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter214.Count), cancellationToken); + foreach (string _iter215 in _iter214) { - await oprot.WriteStringAsync(_iter285, cancellationToken); + await oprot.WriteStringAsync(_iter215, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -298,19 +297,19 @@ public TSInsertStringRecordsOfOneDeviceReq(long sessionId, string prefixPath, Li } if((ValuesList != null)) { - tmp283.Name = "valuesList"; - tmp283.Type = TType.List; - tmp283.ID = 4; - await oprot.WriteFieldBeginAsync(tmp283, 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 _iter286 in ValuesList) + foreach (List _iter216 in ValuesList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter286.Count), cancellationToken); - foreach (string _iter287 in _iter286) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter216.Count), cancellationToken); + foreach (string _iter217 in _iter216) { - await oprot.WriteStringAsync(_iter287, cancellationToken); + await oprot.WriteStringAsync(_iter217, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -321,15 +320,15 @@ public TSInsertStringRecordsOfOneDeviceReq(long sessionId, string prefixPath, Li } if((Timestamps != null)) { - tmp283.Name = "timestamps"; - tmp283.Type = TType.List; - tmp283.ID = 5; - await oprot.WriteFieldBeginAsync(tmp283, 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 _iter288 in Timestamps) + foreach (long _iter218 in Timestamps) { - await oprot.WriteI64Async(_iter288, cancellationToken); + await oprot.WriteI64Async(_iter218, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -337,10 +336,10 @@ public TSInsertStringRecordsOfOneDeviceReq(long sessionId, string prefixPath, Li } if(__isset.isAligned) { - tmp283.Name = "isAligned"; - tmp283.Type = TType.Bool; - tmp283.ID = 6; - await oprot.WriteFieldBeginAsync(tmp283, cancellationToken); + field.Name = "isAligned"; + field.Type = TType.Bool; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(IsAligned, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -395,36 +394,36 @@ public override int GetHashCode() { public override string ToString() { - var tmp289 = new StringBuilder("TSInsertStringRecordsOfOneDeviceReq("); - tmp289.Append(", SessionId: "); - SessionId.ToString(tmp289); + var sb = new StringBuilder("TSInsertStringRecordsOfOneDeviceReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((PrefixPath != null)) { - tmp289.Append(", PrefixPath: "); - PrefixPath.ToString(tmp289); + sb.Append(", PrefixPath: "); + PrefixPath.ToString(sb); } if((MeasurementsList != null)) { - tmp289.Append(", MeasurementsList: "); - MeasurementsList.ToString(tmp289); + sb.Append(", MeasurementsList: "); + MeasurementsList.ToString(sb); } if((ValuesList != null)) { - tmp289.Append(", ValuesList: "); - ValuesList.ToString(tmp289); + sb.Append(", ValuesList: "); + ValuesList.ToString(sb); } if((Timestamps != null)) { - tmp289.Append(", Timestamps: "); - Timestamps.ToString(tmp289); + sb.Append(", Timestamps: "); + Timestamps.ToString(sb); } if(__isset.isAligned) { - tmp289.Append(", IsAligned: "); - IsAligned.ToString(tmp289); + sb.Append(", IsAligned: "); + IsAligned.ToString(sb); } - tmp289.Append(')'); - return tmp289.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertStringRecordsReq.cs index 60dcb0f..21be3e4 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSInsertStringRecordsReq : TBase @@ -114,13 +113,13 @@ public TSInsertStringRecordsReq(long sessionId, List prefixPaths, List(_list291.Count); - for(int _i292 = 0; _i292 < _list291.Count; ++_i292) + TList _list220 = await iprot.ReadListBeginAsync(cancellationToken); + PrefixPaths = new List(_list220.Count); + for(int _i221 = 0; _i221 < _list220.Count; ++_i221) { - string _elem293; - _elem293 = await iprot.ReadStringAsync(cancellationToken); - PrefixPaths.Add(_elem293); + string _elem222; + _elem222 = await iprot.ReadStringAsync(cancellationToken); + PrefixPaths.Add(_elem222); } await iprot.ReadListEndAsync(cancellationToken); } @@ -135,23 +134,23 @@ public TSInsertStringRecordsReq(long sessionId, List prefixPaths, List>(_list294.Count); - for(int _i295 = 0; _i295 < _list294.Count; ++_i295) + TList _list223 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list223.Count); + for(int _i224 = 0; _i224 < _list223.Count; ++_i224) { - List _elem296; + List _elem225; { - TList _list297 = await iprot.ReadListBeginAsync(cancellationToken); - _elem296 = new List(_list297.Count); - for(int _i298 = 0; _i298 < _list297.Count; ++_i298) + TList _list226 = await iprot.ReadListBeginAsync(cancellationToken); + _elem225 = new List(_list226.Count); + for(int _i227 = 0; _i227 < _list226.Count; ++_i227) { - string _elem299; - _elem299 = await iprot.ReadStringAsync(cancellationToken); - _elem296.Add(_elem299); + string _elem228; + _elem228 = await iprot.ReadStringAsync(cancellationToken); + _elem225.Add(_elem228); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem296); + MeasurementsList.Add(_elem225); } await iprot.ReadListEndAsync(cancellationToken); } @@ -166,23 +165,23 @@ public TSInsertStringRecordsReq(long sessionId, List prefixPaths, List>(_list300.Count); - for(int _i301 = 0; _i301 < _list300.Count; ++_i301) + TList _list229 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List>(_list229.Count); + for(int _i230 = 0; _i230 < _list229.Count; ++_i230) { - List _elem302; + List _elem231; { - TList _list303 = await iprot.ReadListBeginAsync(cancellationToken); - _elem302 = new List(_list303.Count); - for(int _i304 = 0; _i304 < _list303.Count; ++_i304) + TList _list232 = await iprot.ReadListBeginAsync(cancellationToken); + _elem231 = new List(_list232.Count); + for(int _i233 = 0; _i233 < _list232.Count; ++_i233) { - string _elem305; - _elem305 = await iprot.ReadStringAsync(cancellationToken); - _elem302.Add(_elem305); + string _elem234; + _elem234 = await iprot.ReadStringAsync(cancellationToken); + _elem231.Add(_elem234); } await iprot.ReadListEndAsync(cancellationToken); } - ValuesList.Add(_elem302); + ValuesList.Add(_elem231); } await iprot.ReadListEndAsync(cancellationToken); } @@ -197,13 +196,13 @@ public TSInsertStringRecordsReq(long sessionId, List prefixPaths, List(_list306.Count); - for(int _i307 = 0; _i307 < _list306.Count; ++_i307) + TList _list235 = await iprot.ReadListBeginAsync(cancellationToken); + Timestamps = new List(_list235.Count); + for(int _i236 = 0; _i236 < _list235.Count; ++_i236) { - long _elem308; - _elem308 = await iprot.ReadI64Async(cancellationToken); - Timestamps.Add(_elem308); + long _elem237; + _elem237 = await iprot.ReadI64Async(cancellationToken); + Timestamps.Add(_elem237); } await iprot.ReadListEndAsync(cancellationToken); } @@ -265,26 +264,26 @@ public TSInsertStringRecordsReq(long sessionId, List prefixPaths, List prefixPaths, List _iter312 in MeasurementsList) + foreach (List _iter239 in MeasurementsList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter312.Count), cancellationToken); - foreach (string _iter313 in _iter312) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter239.Count), cancellationToken); + foreach (string _iter240 in _iter239) { - await oprot.WriteStringAsync(_iter313, cancellationToken); + await oprot.WriteStringAsync(_iter240, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -315,19 +314,19 @@ public TSInsertStringRecordsReq(long sessionId, List prefixPaths, List _iter314 in ValuesList) + foreach (List _iter241 in ValuesList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter314.Count), cancellationToken); - foreach (string _iter315 in _iter314) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter241.Count), cancellationToken); + foreach (string _iter242 in _iter241) { - await oprot.WriteStringAsync(_iter315, cancellationToken); + await oprot.WriteStringAsync(_iter242, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -338,15 +337,15 @@ public TSInsertStringRecordsReq(long sessionId, List prefixPaths, List prefixPaths, List _columnCategories; + private bool _isCompressed; + private List _encodingTypes; + private sbyte _compressType; public long SessionId { get; set; } @@ -89,6 +91,45 @@ public List ColumnCategories } } + public bool IsCompressed + { + get + { + return _isCompressed; + } + set + { + __isset.isCompressed = true; + this._isCompressed = value; + } + } + + public List EncodingTypes + { + get + { + return _encodingTypes; + } + set + { + __isset.encodingTypes = true; + this._encodingTypes = value; + } + } + + public sbyte CompressType + { + get + { + return _compressType; + } + set + { + __isset.compressType = true; + this._compressType = value; + } + } + public Isset __isset; public struct Isset @@ -96,6 +137,9 @@ public struct Isset public bool isAligned; public bool writeToTable; public bool columnCategories; + public bool isCompressed; + public bool encodingTypes; + public bool compressType; } public TSInsertTabletReq() @@ -163,13 +207,13 @@ public TSInsertTabletReq(long sessionId, string prefixPath, List measure if (field.Type == TType.List) { { - TList _list171 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list171.Count); - for(int _i172 = 0; _i172 < _list171.Count; ++_i172) + TList _list111 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list111.Count); + for(int _i112 = 0; _i112 < _list111.Count; ++_i112) { - string _elem173; - _elem173 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem173); + string _elem113; + _elem113 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem113); } await iprot.ReadListEndAsync(cancellationToken); } @@ -206,13 +250,13 @@ public TSInsertTabletReq(long sessionId, string prefixPath, List measure if (field.Type == TType.List) { { - TList _list174 = await iprot.ReadListBeginAsync(cancellationToken); - Types = new List(_list174.Count); - for(int _i175 = 0; _i175 < _list174.Count; ++_i175) + TList _list114 = await iprot.ReadListBeginAsync(cancellationToken); + Types = new List(_list114.Count); + for(int _i115 = 0; _i115 < _list114.Count; ++_i115) { - int _elem176; - _elem176 = await iprot.ReadI32Async(cancellationToken); - Types.Add(_elem176); + int _elem116; + _elem116 = await iprot.ReadI32Async(cancellationToken); + Types.Add(_elem116); } await iprot.ReadListEndAsync(cancellationToken); } @@ -258,13 +302,13 @@ public TSInsertTabletReq(long sessionId, string prefixPath, List measure if (field.Type == TType.List) { { - TList _list177 = await iprot.ReadListBeginAsync(cancellationToken); - ColumnCategories = new List(_list177.Count); - for(int _i178 = 0; _i178 < _list177.Count; ++_i178) + TList _list117 = await iprot.ReadListBeginAsync(cancellationToken); + ColumnCategories = new List(_list117.Count); + for(int _i118 = 0; _i118 < _list117.Count; ++_i118) { - sbyte _elem179; - _elem179 = await iprot.ReadByteAsync(cancellationToken); - ColumnCategories.Add(_elem179); + sbyte _elem119; + _elem119 = await iprot.ReadByteAsync(cancellationToken); + ColumnCategories.Add(_elem119); } await iprot.ReadListEndAsync(cancellationToken); } @@ -274,6 +318,46 @@ public TSInsertTabletReq(long sessionId, string prefixPath, List measure await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; + case 11: + if (field.Type == TType.Bool) + { + IsCompressed = await iprot.ReadBoolAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 12: + if (field.Type == TType.List) + { + { + TList _list120 = await iprot.ReadListBeginAsync(cancellationToken); + EncodingTypes = new List(_list120.Count); + for(int _i121 = 0; _i121 < _list120.Count; ++_i121) + { + sbyte _elem122; + _elem122 = await iprot.ReadByteAsync(cancellationToken); + EncodingTypes.Add(_elem122); + } + await iprot.ReadListEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 13: + if (field.Type == TType.Byte) + { + CompressType = await iprot.ReadByteAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); break; @@ -323,35 +407,35 @@ public TSInsertTabletReq(long sessionId, string prefixPath, List measure oprot.IncrementRecursionDepth(); try { - var tmp180 = new TStruct("TSInsertTabletReq"); - await oprot.WriteStructBeginAsync(tmp180, cancellationToken); - var tmp181 = new TField(); - tmp181.Name = "sessionId"; - tmp181.Type = TType.I64; - tmp181.ID = 1; - await oprot.WriteFieldBeginAsync(tmp181, cancellationToken); + var struc = new TStruct("TSInsertTabletReq"); + 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); if((PrefixPath != null)) { - tmp181.Name = "prefixPath"; - tmp181.Type = TType.String; - tmp181.ID = 2; - await oprot.WriteFieldBeginAsync(tmp181, 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); } if((Measurements != null)) { - tmp181.Name = "measurements"; - tmp181.Type = TType.List; - tmp181.ID = 3; - await oprot.WriteFieldBeginAsync(tmp181, 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 _iter182 in Measurements) + foreach (string _iter123 in Measurements) { - await oprot.WriteStringAsync(_iter182, cancellationToken); + await oprot.WriteStringAsync(_iter123, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -359,78 +443,112 @@ public TSInsertTabletReq(long sessionId, string prefixPath, List measure } if((Values != null)) { - tmp181.Name = "values"; - tmp181.Type = TType.String; - tmp181.ID = 4; - await oprot.WriteFieldBeginAsync(tmp181, 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); } if((Timestamps != null)) { - tmp181.Name = "timestamps"; - tmp181.Type = TType.String; - tmp181.ID = 5; - await oprot.WriteFieldBeginAsync(tmp181, 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); } if((Types != null)) { - tmp181.Name = "types"; - tmp181.Type = TType.List; - tmp181.ID = 6; - await oprot.WriteFieldBeginAsync(tmp181, 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 _iter183 in Types) + foreach (int _iter124 in Types) { - await oprot.WriteI32Async(_iter183, cancellationToken); + await oprot.WriteI32Async(_iter124, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - tmp181.Name = "size"; - tmp181.Type = TType.I32; - tmp181.ID = 7; - await oprot.WriteFieldBeginAsync(tmp181, 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) { - tmp181.Name = "isAligned"; - tmp181.Type = TType.Bool; - tmp181.ID = 8; - await oprot.WriteFieldBeginAsync(tmp181, cancellationToken); + field.Name = "isAligned"; + field.Type = TType.Bool; + field.ID = 8; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(IsAligned, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.writeToTable) { - tmp181.Name = "writeToTable"; - tmp181.Type = TType.Bool; - tmp181.ID = 9; - await oprot.WriteFieldBeginAsync(tmp181, cancellationToken); + field.Name = "writeToTable"; + field.Type = TType.Bool; + field.ID = 9; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(WriteToTable, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((ColumnCategories != null) && __isset.columnCategories) { - tmp181.Name = "columnCategories"; - tmp181.Type = TType.List; - tmp181.ID = 10; - await oprot.WriteFieldBeginAsync(tmp181, cancellationToken); + field.Name = "columnCategories"; + field.Type = TType.List; + field.ID = 10; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Byte, ColumnCategories.Count), cancellationToken); - foreach (sbyte _iter184 in ColumnCategories) + foreach (sbyte _iter125 in ColumnCategories) + { + await oprot.WriteByteAsync(_iter125, cancellationToken); + } + await oprot.WriteListEndAsync(cancellationToken); + } + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.isCompressed) + { + field.Name = "isCompressed"; + field.Type = TType.Bool; + field.ID = 11; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteBoolAsync(IsCompressed, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((EncodingTypes != null) && __isset.encodingTypes) + { + field.Name = "encodingTypes"; + field.Type = TType.List; + field.ID = 12; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + { + await oprot.WriteListBeginAsync(new TList(TType.Byte, EncodingTypes.Count), cancellationToken); + foreach (sbyte _iter126 in EncodingTypes) { - await oprot.WriteByteAsync(_iter184, cancellationToken); + await oprot.WriteByteAsync(_iter126, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } + if(__isset.compressType) + { + field.Name = "compressType"; + field.Type = TType.Byte; + field.ID = 13; + await oprot.WriteFieldBeginAsync(field, cancellationToken); + await oprot.WriteByteAsync(CompressType, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } await oprot.WriteFieldStopAsync(cancellationToken); await oprot.WriteStructEndAsync(cancellationToken); } @@ -453,7 +571,10 @@ public override bool Equals(object that) && System.Object.Equals(Size, other.Size) && ((__isset.isAligned == other.__isset.isAligned) && ((!__isset.isAligned) || (System.Object.Equals(IsAligned, other.IsAligned)))) && ((__isset.writeToTable == other.__isset.writeToTable) && ((!__isset.writeToTable) || (System.Object.Equals(WriteToTable, other.WriteToTable)))) - && ((__isset.columnCategories == other.__isset.columnCategories) && ((!__isset.columnCategories) || (TCollections.Equals(ColumnCategories, other.ColumnCategories)))); + && ((__isset.columnCategories == other.__isset.columnCategories) && ((!__isset.columnCategories) || (TCollections.Equals(ColumnCategories, other.ColumnCategories)))) + && ((__isset.isCompressed == other.__isset.isCompressed) && ((!__isset.isCompressed) || (System.Object.Equals(IsCompressed, other.IsCompressed)))) + && ((__isset.encodingTypes == other.__isset.encodingTypes) && ((!__isset.encodingTypes) || (TCollections.Equals(EncodingTypes, other.EncodingTypes)))) + && ((__isset.compressType == other.__isset.compressType) && ((!__isset.compressType) || (System.Object.Equals(CompressType, other.CompressType)))); } public override int GetHashCode() { @@ -493,59 +614,86 @@ public override int GetHashCode() { { hashcode = (hashcode * 397) + TCollections.GetHashCode(ColumnCategories); } + if(__isset.isCompressed) + { + hashcode = (hashcode * 397) + IsCompressed.GetHashCode(); + } + if((EncodingTypes != null) && __isset.encodingTypes) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(EncodingTypes); + } + if(__isset.compressType) + { + hashcode = (hashcode * 397) + CompressType.GetHashCode(); + } } return hashcode; } public override string ToString() { - var tmp185 = new StringBuilder("TSInsertTabletReq("); - tmp185.Append(", SessionId: "); - SessionId.ToString(tmp185); + var sb = new StringBuilder("TSInsertTabletReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((PrefixPath != null)) { - tmp185.Append(", PrefixPath: "); - PrefixPath.ToString(tmp185); + sb.Append(", PrefixPath: "); + PrefixPath.ToString(sb); } if((Measurements != null)) { - tmp185.Append(", Measurements: "); - Measurements.ToString(tmp185); + sb.Append(", Measurements: "); + Measurements.ToString(sb); } if((Values != null)) { - tmp185.Append(", Values: "); - Values.ToString(tmp185); + sb.Append(", Values: "); + Values.ToString(sb); } if((Timestamps != null)) { - tmp185.Append(", Timestamps: "); - Timestamps.ToString(tmp185); + sb.Append(", Timestamps: "); + Timestamps.ToString(sb); } if((Types != null)) { - tmp185.Append(", Types: "); - Types.ToString(tmp185); + sb.Append(", Types: "); + Types.ToString(sb); } - tmp185.Append(", Size: "); - Size.ToString(tmp185); + sb.Append(", Size: "); + Size.ToString(sb); if(__isset.isAligned) { - tmp185.Append(", IsAligned: "); - IsAligned.ToString(tmp185); + sb.Append(", IsAligned: "); + IsAligned.ToString(sb); } if(__isset.writeToTable) { - tmp185.Append(", WriteToTable: "); - WriteToTable.ToString(tmp185); + sb.Append(", WriteToTable: "); + WriteToTable.ToString(sb); } if((ColumnCategories != null) && __isset.columnCategories) { - tmp185.Append(", ColumnCategories: "); - ColumnCategories.ToString(tmp185); + sb.Append(", ColumnCategories: "); + ColumnCategories.ToString(sb); + } + if(__isset.isCompressed) + { + sb.Append(", IsCompressed: "); + IsCompressed.ToString(sb); + } + if((EncodingTypes != null) && __isset.encodingTypes) + { + sb.Append(", EncodingTypes: "); + EncodingTypes.ToString(sb); + } + if(__isset.compressType) + { + sb.Append(", CompressType: "); + CompressType.ToString(sb); } - tmp185.Append(')'); - return tmp185.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletsReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSInsertTabletsReq.cs index 499a5db..837e405 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSInsertTabletsReq : TBase @@ -122,13 +121,13 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List(_list187.Count); - for(int _i188 = 0; _i188 < _list187.Count; ++_i188) + TList _list128 = await iprot.ReadListBeginAsync(cancellationToken); + PrefixPaths = new List(_list128.Count); + for(int _i129 = 0; _i129 < _list128.Count; ++_i129) { - string _elem189; - _elem189 = await iprot.ReadStringAsync(cancellationToken); - PrefixPaths.Add(_elem189); + string _elem130; + _elem130 = await iprot.ReadStringAsync(cancellationToken); + PrefixPaths.Add(_elem130); } await iprot.ReadListEndAsync(cancellationToken); } @@ -143,23 +142,23 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List>(_list190.Count); - for(int _i191 = 0; _i191 < _list190.Count; ++_i191) + TList _list131 = await iprot.ReadListBeginAsync(cancellationToken); + MeasurementsList = new List>(_list131.Count); + for(int _i132 = 0; _i132 < _list131.Count; ++_i132) { - List _elem192; + List _elem133; { - TList _list193 = await iprot.ReadListBeginAsync(cancellationToken); - _elem192 = new List(_list193.Count); - for(int _i194 = 0; _i194 < _list193.Count; ++_i194) + TList _list134 = await iprot.ReadListBeginAsync(cancellationToken); + _elem133 = new List(_list134.Count); + for(int _i135 = 0; _i135 < _list134.Count; ++_i135) { - string _elem195; - _elem195 = await iprot.ReadStringAsync(cancellationToken); - _elem192.Add(_elem195); + string _elem136; + _elem136 = await iprot.ReadStringAsync(cancellationToken); + _elem133.Add(_elem136); } await iprot.ReadListEndAsync(cancellationToken); } - MeasurementsList.Add(_elem192); + MeasurementsList.Add(_elem133); } await iprot.ReadListEndAsync(cancellationToken); } @@ -174,13 +173,13 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List(_list196.Count); - for(int _i197 = 0; _i197 < _list196.Count; ++_i197) + TList _list137 = await iprot.ReadListBeginAsync(cancellationToken); + ValuesList = new List(_list137.Count); + for(int _i138 = 0; _i138 < _list137.Count; ++_i138) { - byte[] _elem198; - _elem198 = await iprot.ReadBinaryAsync(cancellationToken); - ValuesList.Add(_elem198); + byte[] _elem139; + _elem139 = await iprot.ReadBinaryAsync(cancellationToken); + ValuesList.Add(_elem139); } await iprot.ReadListEndAsync(cancellationToken); } @@ -195,13 +194,13 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List(_list199.Count); - for(int _i200 = 0; _i200 < _list199.Count; ++_i200) + TList _list140 = await iprot.ReadListBeginAsync(cancellationToken); + TimestampsList = new List(_list140.Count); + for(int _i141 = 0; _i141 < _list140.Count; ++_i141) { - byte[] _elem201; - _elem201 = await iprot.ReadBinaryAsync(cancellationToken); - TimestampsList.Add(_elem201); + byte[] _elem142; + _elem142 = await iprot.ReadBinaryAsync(cancellationToken); + TimestampsList.Add(_elem142); } await iprot.ReadListEndAsync(cancellationToken); } @@ -216,23 +215,23 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List>(_list202.Count); - for(int _i203 = 0; _i203 < _list202.Count; ++_i203) + TList _list143 = await iprot.ReadListBeginAsync(cancellationToken); + TypesList = new List>(_list143.Count); + for(int _i144 = 0; _i144 < _list143.Count; ++_i144) { - List _elem204; + List _elem145; { - TList _list205 = await iprot.ReadListBeginAsync(cancellationToken); - _elem204 = new List(_list205.Count); - for(int _i206 = 0; _i206 < _list205.Count; ++_i206) + TList _list146 = await iprot.ReadListBeginAsync(cancellationToken); + _elem145 = new List(_list146.Count); + for(int _i147 = 0; _i147 < _list146.Count; ++_i147) { - int _elem207; - _elem207 = await iprot.ReadI32Async(cancellationToken); - _elem204.Add(_elem207); + int _elem148; + _elem148 = await iprot.ReadI32Async(cancellationToken); + _elem145.Add(_elem148); } await iprot.ReadListEndAsync(cancellationToken); } - TypesList.Add(_elem204); + TypesList.Add(_elem145); } await iprot.ReadListEndAsync(cancellationToken); } @@ -247,13 +246,13 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List(_list208.Count); - for(int _i209 = 0; _i209 < _list208.Count; ++_i209) + TList _list149 = await iprot.ReadListBeginAsync(cancellationToken); + SizeList = new List(_list149.Count); + for(int _i150 = 0; _i150 < _list149.Count; ++_i150) { - int _elem210; - _elem210 = await iprot.ReadI32Async(cancellationToken); - SizeList.Add(_elem210); + int _elem151; + _elem151 = await iprot.ReadI32Async(cancellationToken); + SizeList.Add(_elem151); } await iprot.ReadListEndAsync(cancellationToken); } @@ -323,26 +322,26 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List prefixPaths, List _iter214 in MeasurementsList) + foreach (List _iter153 in MeasurementsList) { { - await oprot.WriteListBeginAsync(new TList(TType.String, _iter214.Count), cancellationToken); - foreach (string _iter215 in _iter214) + await oprot.WriteListBeginAsync(new TList(TType.String, _iter153.Count), cancellationToken); + foreach (string _iter154 in _iter153) { - await oprot.WriteStringAsync(_iter215, cancellationToken); + await oprot.WriteStringAsync(_iter154, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -373,15 +372,15 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List prefixPaths, List prefixPaths, List _iter218 in TypesList) + foreach (List _iter157 in TypesList) { { - await oprot.WriteListBeginAsync(new TList(TType.I32, _iter218.Count), cancellationToken); - foreach (int _iter219 in _iter218) + await oprot.WriteListBeginAsync(new TList(TType.I32, _iter157.Count), cancellationToken); + foreach (int _iter158 in _iter157) { - await oprot.WriteI32Async(_iter219, cancellationToken); + await oprot.WriteI32Async(_iter158, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -428,15 +427,15 @@ public TSInsertTabletsReq(long sessionId, List prefixPaths, List prefixPaths, List paths, long time, long st if (field.Type == TType.List) { { - TList _list396 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list396.Count); - for(int _i397 = 0; _i397 < _list396.Count; ++_i397) + TList _list310 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list310.Count); + for(int _i311 = 0; _i311 < _list310.Count; ++_i311) { - string _elem398; - _elem398 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem398); + string _elem312; + _elem312 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem312); } await iprot.ReadListEndAsync(cancellationToken); } @@ -296,26 +295,26 @@ public TSLastDataQueryReq(long sessionId, List paths, long time, long st oprot.IncrementRecursionDepth(); try { - var tmp399 = new TStruct("TSLastDataQueryReq"); - await oprot.WriteStructBeginAsync(tmp399, cancellationToken); - var tmp400 = new TField(); - tmp400.Name = "sessionId"; - tmp400.Type = TType.I64; - tmp400.ID = 1; - await oprot.WriteFieldBeginAsync(tmp400, cancellationToken); + var struc = new TStruct("TSLastDataQueryReq"); + 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); if((Paths != null)) { - tmp400.Name = "paths"; - tmp400.Type = TType.List; - tmp400.ID = 2; - await oprot.WriteFieldBeginAsync(tmp400, 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 _iter401 in Paths) + foreach (string _iter313 in Paths) { - await oprot.WriteStringAsync(_iter401, cancellationToken); + await oprot.WriteStringAsync(_iter313, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -323,58 +322,58 @@ public TSLastDataQueryReq(long sessionId, List paths, long time, long st } if(__isset.fetchSize) { - tmp400.Name = "fetchSize"; - tmp400.Type = TType.I32; - tmp400.ID = 3; - await oprot.WriteFieldBeginAsync(tmp400, cancellationToken); + field.Name = "fetchSize"; + field.Type = TType.I32; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(FetchSize, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - tmp400.Name = "time"; - tmp400.Type = TType.I64; - tmp400.ID = 4; - await oprot.WriteFieldBeginAsync(tmp400, cancellationToken); + field.Name = "time"; + field.Type = TType.I64; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(Time, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - tmp400.Name = "statementId"; - tmp400.Type = TType.I64; - tmp400.ID = 5; - await oprot.WriteFieldBeginAsync(tmp400, cancellationToken); + field.Name = "statementId"; + field.Type = TType.I64; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(StatementId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if(__isset.enableRedirectQuery) { - tmp400.Name = "enableRedirectQuery"; - tmp400.Type = TType.Bool; - tmp400.ID = 6; - await oprot.WriteFieldBeginAsync(tmp400, cancellationToken); + field.Name = "enableRedirectQuery"; + field.Type = TType.Bool; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(EnableRedirectQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.jdbcQuery) { - tmp400.Name = "jdbcQuery"; - tmp400.Type = TType.Bool; - tmp400.ID = 7; - await oprot.WriteFieldBeginAsync(tmp400, cancellationToken); + field.Name = "jdbcQuery"; + field.Type = TType.Bool; + field.ID = 7; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(JdbcQuery, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.timeout) { - tmp400.Name = "timeout"; - tmp400.Type = TType.I64; - tmp400.ID = 8; - await oprot.WriteFieldBeginAsync(tmp400, cancellationToken); + field.Name = "timeout"; + field.Type = TType.I64; + field.ID = 8; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(Timeout, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.legalPathNodes) { - tmp400.Name = "legalPathNodes"; - tmp400.Type = TType.Bool; - tmp400.ID = 9; - await oprot.WriteFieldBeginAsync(tmp400, cancellationToken); + field.Name = "legalPathNodes"; + field.Type = TType.Bool; + field.ID = 9; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(LegalPathNodes, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -438,45 +437,45 @@ public override int GetHashCode() { public override string ToString() { - var tmp402 = new StringBuilder("TSLastDataQueryReq("); - tmp402.Append(", SessionId: "); - SessionId.ToString(tmp402); + var sb = new StringBuilder("TSLastDataQueryReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((Paths != null)) { - tmp402.Append(", Paths: "); - Paths.ToString(tmp402); + sb.Append(", Paths: "); + Paths.ToString(sb); } if(__isset.fetchSize) { - tmp402.Append(", FetchSize: "); - FetchSize.ToString(tmp402); + sb.Append(", FetchSize: "); + FetchSize.ToString(sb); } - tmp402.Append(", Time: "); - Time.ToString(tmp402); - tmp402.Append(", StatementId: "); - StatementId.ToString(tmp402); + sb.Append(", Time: "); + Time.ToString(sb); + sb.Append(", StatementId: "); + StatementId.ToString(sb); if(__isset.enableRedirectQuery) { - tmp402.Append(", EnableRedirectQuery: "); - EnableRedirectQuery.ToString(tmp402); + sb.Append(", EnableRedirectQuery: "); + EnableRedirectQuery.ToString(sb); } if(__isset.jdbcQuery) { - tmp402.Append(", JdbcQuery: "); - JdbcQuery.ToString(tmp402); + sb.Append(", JdbcQuery: "); + JdbcQuery.ToString(sb); } if(__isset.timeout) { - tmp402.Append(", Timeout: "); - Timeout.ToString(tmp402); + sb.Append(", Timeout: "); + Timeout.ToString(sb); } if(__isset.legalPathNodes) { - tmp402.Append(", LegalPathNodes: "); - LegalPathNodes.ToString(tmp402); + sb.Append(", LegalPathNodes: "); + LegalPathNodes.ToString(sb); } - tmp402.Append(')'); - return tmp402.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionReq.cs index 3f118a2..f39b75a 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSOpenSessionReq : TBase @@ -158,15 +157,15 @@ public TSOpenSessionReq(TSProtocolVersion client_protocol, string zoneId, string if (field.Type == TType.Map) { { - TMap _map78 = await iprot.ReadMapBeginAsync(cancellationToken); - Configuration = new Dictionary(_map78.Count); - for(int _i79 = 0; _i79 < _map78.Count; ++_i79) + TMap _map63 = await iprot.ReadMapBeginAsync(cancellationToken); + Configuration = new Dictionary(_map63.Count); + for(int _i64 = 0; _i64 < _map63.Count; ++_i64) { - string _key80; - string _val81; - _key80 = await iprot.ReadStringAsync(cancellationToken); - _val81 = await iprot.ReadStringAsync(cancellationToken); - Configuration[_key80] = _val81; + string _key65; + string _val66; + _key65 = await iprot.ReadStringAsync(cancellationToken); + _val66 = await iprot.ReadStringAsync(cancellationToken); + Configuration[_key65] = _val66; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -209,54 +208,54 @@ public TSOpenSessionReq(TSProtocolVersion client_protocol, string zoneId, string oprot.IncrementRecursionDepth(); try { - var tmp82 = new TStruct("TSOpenSessionReq"); - await oprot.WriteStructBeginAsync(tmp82, cancellationToken); - var tmp83 = new TField(); - tmp83.Name = "client_protocol"; - tmp83.Type = TType.I32; - tmp83.ID = 1; - await oprot.WriteFieldBeginAsync(tmp83, cancellationToken); + var struc = new TStruct("TSOpenSessionReq"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "client_protocol"; + field.Type = TType.I32; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async((int)Client_protocol, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if((ZoneId != null)) { - tmp83.Name = "zoneId"; - tmp83.Type = TType.String; - tmp83.ID = 2; - await oprot.WriteFieldBeginAsync(tmp83, 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); } if((Username != null)) { - tmp83.Name = "username"; - tmp83.Type = TType.String; - tmp83.ID = 3; - await oprot.WriteFieldBeginAsync(tmp83, 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) { - tmp83.Name = "password"; - tmp83.Type = TType.String; - tmp83.ID = 4; - await oprot.WriteFieldBeginAsync(tmp83, cancellationToken); + field.Name = "password"; + field.Type = TType.String; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteStringAsync(Password, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((Configuration != null) && __isset.configuration) { - tmp83.Name = "configuration"; - tmp83.Type = TType.Map; - tmp83.ID = 5; - await oprot.WriteFieldBeginAsync(tmp83, cancellationToken); + field.Name = "configuration"; + field.Type = TType.Map; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Configuration.Count), cancellationToken); - foreach (string _iter84 in Configuration.Keys) + foreach (string _iter67 in Configuration.Keys) { - await oprot.WriteStringAsync(_iter84, cancellationToken); - await oprot.WriteStringAsync(Configuration[_iter84], cancellationToken); + await oprot.WriteStringAsync(_iter67, cancellationToken); + await oprot.WriteStringAsync(Configuration[_iter67], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -308,31 +307,31 @@ public override int GetHashCode() { public override string ToString() { - var tmp85 = new StringBuilder("TSOpenSessionReq("); - tmp85.Append(", Client_protocol: "); - Client_protocol.ToString(tmp85); + var sb = new StringBuilder("TSOpenSessionReq("); + sb.Append(", Client_protocol: "); + Client_protocol.ToString(sb); if((ZoneId != null)) { - tmp85.Append(", ZoneId: "); - ZoneId.ToString(tmp85); + sb.Append(", ZoneId: "); + ZoneId.ToString(sb); } if((Username != null)) { - tmp85.Append(", Username: "); - Username.ToString(tmp85); + sb.Append(", Username: "); + Username.ToString(sb); } if((Password != null) && __isset.password) { - tmp85.Append(", Password: "); - Password.ToString(tmp85); + sb.Append(", Password: "); + Password.ToString(sb); } if((Configuration != null) && __isset.configuration) { - tmp85.Append(", Configuration: "); - Configuration.ToString(tmp85); + sb.Append(", Configuration: "); + Configuration.ToString(sb); } - tmp85.Append(')'); - return tmp85.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSOpenSessionResp.cs index 89e407d..759bdea 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSOpenSessionResp : TBase @@ -144,15 +143,15 @@ public TSOpenSessionResp(TSStatus status, TSProtocolVersion serverProtocolVersio if (field.Type == TType.Map) { { - TMap _map69 = await iprot.ReadMapBeginAsync(cancellationToken); - Configuration = new Dictionary(_map69.Count); - for(int _i70 = 0; _i70 < _map69.Count; ++_i70) + TMap _map57 = await iprot.ReadMapBeginAsync(cancellationToken); + Configuration = new Dictionary(_map57.Count); + for(int _i58 = 0; _i58 < _map57.Count; ++_i58) { - string _key71; - string _val72; - _key71 = await iprot.ReadStringAsync(cancellationToken); - _val72 = await iprot.ReadStringAsync(cancellationToken); - Configuration[_key71] = _val72; + string _key59; + string _val60; + _key59 = await iprot.ReadStringAsync(cancellationToken); + _val60 = await iprot.ReadStringAsync(cancellationToken); + Configuration[_key59] = _val60; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -191,45 +190,45 @@ public TSOpenSessionResp(TSStatus status, TSProtocolVersion serverProtocolVersio oprot.IncrementRecursionDepth(); try { - var tmp73 = new TStruct("TSOpenSessionResp"); - await oprot.WriteStructBeginAsync(tmp73, cancellationToken); - var tmp74 = new TField(); + var struc = new TStruct("TSOpenSessionResp"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Status != null)) { - tmp74.Name = "status"; - tmp74.Type = TType.Struct; - tmp74.ID = 1; - await oprot.WriteFieldBeginAsync(tmp74, 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); } - tmp74.Name = "serverProtocolVersion"; - tmp74.Type = TType.I32; - tmp74.ID = 2; - await oprot.WriteFieldBeginAsync(tmp74, 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) { - tmp74.Name = "sessionId"; - tmp74.Type = TType.I64; - tmp74.ID = 3; - await oprot.WriteFieldBeginAsync(tmp74, cancellationToken); + field.Name = "sessionId"; + field.Type = TType.I64; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SessionId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((Configuration != null) && __isset.configuration) { - tmp74.Name = "configuration"; - tmp74.Type = TType.Map; - tmp74.ID = 4; - await oprot.WriteFieldBeginAsync(tmp74, cancellationToken); + field.Name = "configuration"; + field.Type = TType.Map; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteMapBeginAsync(new TMap(TType.String, TType.String, Configuration.Count), cancellationToken); - foreach (string _iter75 in Configuration.Keys) + foreach (string _iter61 in Configuration.Keys) { - await oprot.WriteStringAsync(_iter75, cancellationToken); - await oprot.WriteStringAsync(Configuration[_iter75], cancellationToken); + await oprot.WriteStringAsync(_iter61, cancellationToken); + await oprot.WriteStringAsync(Configuration[_iter61], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -276,26 +275,26 @@ public override int GetHashCode() { public override string ToString() { - var tmp76 = new StringBuilder("TSOpenSessionResp("); + var sb = new StringBuilder("TSOpenSessionResp("); if((Status != null)) { - tmp76.Append(", Status: "); - Status.ToString(tmp76); + sb.Append(", Status: "); + Status.ToString(sb); } - tmp76.Append(", ServerProtocolVersion: "); - ServerProtocolVersion.ToString(tmp76); + sb.Append(", ServerProtocolVersion: "); + ServerProtocolVersion.ToString(sb); if(__isset.sessionId) { - tmp76.Append(", SessionId: "); - SessionId.ToString(tmp76); + sb.Append(", SessionId: "); + SessionId.ToString(sb); } if((Configuration != null) && __isset.configuration) { - tmp76.Append(", Configuration: "); - Configuration.ToString(tmp76); + sb.Append(", Configuration: "); + Configuration.ToString(sb); } - tmp76.Append(')'); - return tmp76.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSProtocolVersion.cs b/src/Apache.IoTDB/Rpc/Generated/TSProtocolVersion.cs index 8f4b02f..c243719 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TSProtocolVersion.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TSProtocolVersion.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,7 +7,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum TSProtocolVersion { diff --git a/src/Apache.IoTDB/Rpc/Generated/TSPruneSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSPruneSchemaTemplateReq.cs index 1836160..d377c88 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSPruneSchemaTemplateReq : TBase @@ -136,30 +135,30 @@ public TSPruneSchemaTemplateReq(long sessionId, string name, string path) : this oprot.IncrementRecursionDepth(); try { - var tmp523 = new TStruct("TSPruneSchemaTemplateReq"); - await oprot.WriteStructBeginAsync(tmp523, cancellationToken); - var tmp524 = new TField(); - tmp524.Name = "sessionId"; - tmp524.Type = TType.I64; - tmp524.ID = 1; - await oprot.WriteFieldBeginAsync(tmp524, cancellationToken); + var struc = new TStruct("TSPruneSchemaTemplateReq"); + 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); if((Name != null)) { - tmp524.Name = "name"; - tmp524.Type = TType.String; - tmp524.ID = 2; - await oprot.WriteFieldBeginAsync(tmp524, 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((Path != null)) { - tmp524.Name = "path"; - tmp524.Type = TType.String; - tmp524.ID = 3; - await oprot.WriteFieldBeginAsync(tmp524, 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); } @@ -199,21 +198,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp525 = new StringBuilder("TSPruneSchemaTemplateReq("); - tmp525.Append(", SessionId: "); - SessionId.ToString(tmp525); + var sb = new StringBuilder("TSPruneSchemaTemplateReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((Name != null)) { - tmp525.Append(", Name: "); - Name.ToString(tmp525); + sb.Append(", Name: "); + Name.ToString(sb); } if((Path != null)) { - tmp525.Append(", Path: "); - Path.ToString(tmp525); + sb.Append(", Path: "); + Path.ToString(sb); } - tmp525.Append(')'); - return tmp525.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSQueryDataSet.cs b/src/Apache.IoTDB/Rpc/Generated/TSQueryDataSet.cs index 6a63b95..4927f17 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSQueryDataSet : TBase @@ -156,29 +155,29 @@ public TSQueryDataSet(byte[] time, List valueList, List bitmapLi oprot.IncrementRecursionDepth(); try { - var tmp6 = new TStruct("TSQueryDataSet"); - await oprot.WriteStructBeginAsync(tmp6, cancellationToken); - var tmp7 = new TField(); + var struc = new TStruct("TSQueryDataSet"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Time != null)) { - tmp7.Name = "time"; - tmp7.Type = TType.String; - tmp7.ID = 1; - await oprot.WriteFieldBeginAsync(tmp7, cancellationToken); + 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)) { - tmp7.Name = "valueList"; - tmp7.Type = TType.List; - tmp7.ID = 2; - await oprot.WriteFieldBeginAsync(tmp7, 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[] _iter8 in ValueList) + foreach (byte[] _iter6 in ValueList) { - await oprot.WriteBinaryAsync(_iter8, cancellationToken); + await oprot.WriteBinaryAsync(_iter6, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -186,15 +185,15 @@ public TSQueryDataSet(byte[] time, List valueList, List bitmapLi } if((BitmapList != null)) { - tmp7.Name = "bitmapList"; - tmp7.Type = TType.List; - tmp7.ID = 3; - await oprot.WriteFieldBeginAsync(tmp7, 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[] _iter9 in BitmapList) + foreach (byte[] _iter7 in BitmapList) { - await oprot.WriteBinaryAsync(_iter9, cancellationToken); + await oprot.WriteBinaryAsync(_iter7, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -239,24 +238,24 @@ public override int GetHashCode() { public override string ToString() { - var tmp10 = new StringBuilder("TSQueryDataSet("); + var sb = new StringBuilder("TSQueryDataSet("); if((Time != null)) { - tmp10.Append(", Time: "); - Time.ToString(tmp10); + sb.Append(", Time: "); + Time.ToString(sb); } if((ValueList != null)) { - tmp10.Append(", ValueList: "); - ValueList.ToString(tmp10); + sb.Append(", ValueList: "); + ValueList.ToString(sb); } if((BitmapList != null)) { - tmp10.Append(", BitmapList: "); - BitmapList.ToString(tmp10); + sb.Append(", BitmapList: "); + BitmapList.ToString(sb); } - tmp10.Append(')'); - return tmp10.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSQueryNonAlignDataSet.cs b/src/Apache.IoTDB/Rpc/Generated/TSQueryNonAlignDataSet.cs index 767aef0..73fac7c 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSQueryNonAlignDataSet : TBase @@ -70,13 +69,13 @@ public TSQueryNonAlignDataSet(List timeList, List valueList) : t if (field.Type == TType.List) { { - TList _list12 = await iprot.ReadListBeginAsync(cancellationToken); - TimeList = new List(_list12.Count); - for(int _i13 = 0; _i13 < _list12.Count; ++_i13) + TList _list9 = await iprot.ReadListBeginAsync(cancellationToken); + TimeList = new List(_list9.Count); + for(int _i10 = 0; _i10 < _list9.Count; ++_i10) { - byte[] _elem14; - _elem14 = await iprot.ReadBinaryAsync(cancellationToken); - TimeList.Add(_elem14); + byte[] _elem11; + _elem11 = await iprot.ReadBinaryAsync(cancellationToken); + TimeList.Add(_elem11); } await iprot.ReadListEndAsync(cancellationToken); } @@ -91,13 +90,13 @@ public TSQueryNonAlignDataSet(List timeList, List valueList) : t if (field.Type == TType.List) { { - TList _list15 = await iprot.ReadListBeginAsync(cancellationToken); - ValueList = new List(_list15.Count); - for(int _i16 = 0; _i16 < _list15.Count; ++_i16) + TList _list12 = await iprot.ReadListBeginAsync(cancellationToken); + ValueList = new List(_list12.Count); + for(int _i13 = 0; _i13 < _list12.Count; ++_i13) { - byte[] _elem17; - _elem17 = await iprot.ReadBinaryAsync(cancellationToken); - ValueList.Add(_elem17); + byte[] _elem14; + _elem14 = await iprot.ReadBinaryAsync(cancellationToken); + ValueList.Add(_elem14); } await iprot.ReadListEndAsync(cancellationToken); } @@ -137,20 +136,20 @@ public TSQueryNonAlignDataSet(List timeList, List valueList) : t oprot.IncrementRecursionDepth(); try { - var tmp18 = new TStruct("TSQueryNonAlignDataSet"); - await oprot.WriteStructBeginAsync(tmp18, cancellationToken); - var tmp19 = new TField(); + var struc = new TStruct("TSQueryNonAlignDataSet"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((TimeList != null)) { - tmp19.Name = "timeList"; - tmp19.Type = TType.List; - tmp19.ID = 1; - await oprot.WriteFieldBeginAsync(tmp19, 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[] _iter20 in TimeList) + foreach (byte[] _iter15 in TimeList) { - await oprot.WriteBinaryAsync(_iter20, cancellationToken); + await oprot.WriteBinaryAsync(_iter15, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -158,15 +157,15 @@ public TSQueryNonAlignDataSet(List timeList, List valueList) : t } if((ValueList != null)) { - tmp19.Name = "valueList"; - tmp19.Type = TType.List; - tmp19.ID = 2; - await oprot.WriteFieldBeginAsync(tmp19, 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[] _iter21 in ValueList) + foreach (byte[] _iter16 in ValueList) { - await oprot.WriteBinaryAsync(_iter21, cancellationToken); + await oprot.WriteBinaryAsync(_iter16, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -206,19 +205,19 @@ public override int GetHashCode() { public override string ToString() { - var tmp22 = new StringBuilder("TSQueryNonAlignDataSet("); + var sb = new StringBuilder("TSQueryNonAlignDataSet("); if((TimeList != null)) { - tmp22.Append(", TimeList: "); - TimeList.ToString(tmp22); + sb.Append(", TimeList: "); + TimeList.ToString(sb); } if((ValueList != null)) { - tmp22.Append(", ValueList: "); - ValueList.ToString(tmp22); + sb.Append(", ValueList: "); + ValueList.ToString(sb); } - tmp22.Append(')'); - return tmp22.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateReq.cs index 0a98938..5073c0e 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSQueryTemplateReq : TBase @@ -167,36 +166,36 @@ public TSQueryTemplateReq(long sessionId, string name, int queryType) : this() oprot.IncrementRecursionDepth(); try { - var tmp527 = new TStruct("TSQueryTemplateReq"); - await oprot.WriteStructBeginAsync(tmp527, cancellationToken); - var tmp528 = new TField(); - tmp528.Name = "sessionId"; - tmp528.Type = TType.I64; - tmp528.ID = 1; - await oprot.WriteFieldBeginAsync(tmp528, cancellationToken); + var struc = new TStruct("TSQueryTemplateReq"); + 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); if((Name != null)) { - tmp528.Name = "name"; - tmp528.Type = TType.String; - tmp528.ID = 2; - await oprot.WriteFieldBeginAsync(tmp528, 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); } - tmp528.Name = "queryType"; - tmp528.Type = TType.I32; - tmp528.ID = 3; - await oprot.WriteFieldBeginAsync(tmp528, 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) { - tmp528.Name = "measurement"; - tmp528.Type = TType.String; - tmp528.ID = 4; - await oprot.WriteFieldBeginAsync(tmp528, 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); } @@ -238,23 +237,23 @@ public override int GetHashCode() { public override string ToString() { - var tmp529 = new StringBuilder("TSQueryTemplateReq("); - tmp529.Append(", SessionId: "); - SessionId.ToString(tmp529); + var sb = new StringBuilder("TSQueryTemplateReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((Name != null)) { - tmp529.Append(", Name: "); - Name.ToString(tmp529); + sb.Append(", Name: "); + Name.ToString(sb); } - tmp529.Append(", QueryType: "); - QueryType.ToString(tmp529); + sb.Append(", QueryType: "); + QueryType.ToString(sb); if((Measurement != null) && __isset.measurement) { - tmp529.Append(", Measurement: "); - Measurement.ToString(tmp529); + sb.Append(", Measurement: "); + Measurement.ToString(sb); } - tmp529.Append(')'); - return tmp529.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateResp.cs b/src/Apache.IoTDB/Rpc/Generated/TSQueryTemplateResp.cs index c0b0ebd..2c567b4 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSQueryTemplateResp : TBase @@ -164,13 +163,13 @@ public TSQueryTemplateResp(TSStatus status, int queryType) : this() if (field.Type == TType.List) { { - TList _list531 = await iprot.ReadListBeginAsync(cancellationToken); - Measurements = new List(_list531.Count); - for(int _i532 = 0; _i532 < _list531.Count; ++_i532) + TList _list409 = await iprot.ReadListBeginAsync(cancellationToken); + Measurements = new List(_list409.Count); + for(int _i410 = 0; _i410 < _list409.Count; ++_i410) { - string _elem533; - _elem533 = await iprot.ReadStringAsync(cancellationToken); - Measurements.Add(_elem533); + string _elem411; + _elem411 = await iprot.ReadStringAsync(cancellationToken); + Measurements.Add(_elem411); } await iprot.ReadListEndAsync(cancellationToken); } @@ -209,53 +208,53 @@ public TSQueryTemplateResp(TSStatus status, int queryType) : this() oprot.IncrementRecursionDepth(); try { - var tmp534 = new TStruct("TSQueryTemplateResp"); - await oprot.WriteStructBeginAsync(tmp534, cancellationToken); - var tmp535 = new TField(); + var struc = new TStruct("TSQueryTemplateResp"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Status != null)) { - tmp535.Name = "status"; - tmp535.Type = TType.Struct; - tmp535.ID = 1; - await oprot.WriteFieldBeginAsync(tmp535, 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); } - tmp535.Name = "queryType"; - tmp535.Type = TType.I32; - tmp535.ID = 2; - await oprot.WriteFieldBeginAsync(tmp535, 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) { - tmp535.Name = "result"; - tmp535.Type = TType.Bool; - tmp535.ID = 3; - await oprot.WriteFieldBeginAsync(tmp535, cancellationToken); + field.Name = "result"; + field.Type = TType.Bool; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(Result, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.count) { - tmp535.Name = "count"; - tmp535.Type = TType.I32; - tmp535.ID = 4; - await oprot.WriteFieldBeginAsync(tmp535, cancellationToken); + field.Name = "count"; + field.Type = TType.I32; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(Count, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((Measurements != null) && __isset.measurements) { - tmp535.Name = "measurements"; - tmp535.Type = TType.List; - tmp535.ID = 5; - await oprot.WriteFieldBeginAsync(tmp535, cancellationToken); + field.Name = "measurements"; + field.Type = TType.List; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.String, Measurements.Count), cancellationToken); - foreach (string _iter536 in Measurements) + foreach (string _iter412 in Measurements) { - await oprot.WriteStringAsync(_iter536, cancellationToken); + await oprot.WriteStringAsync(_iter412, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -307,31 +306,31 @@ public override int GetHashCode() { public override string ToString() { - var tmp537 = new StringBuilder("TSQueryTemplateResp("); + var sb = new StringBuilder("TSQueryTemplateResp("); if((Status != null)) { - tmp537.Append(", Status: "); - Status.ToString(tmp537); + sb.Append(", Status: "); + Status.ToString(sb); } - tmp537.Append(", QueryType: "); - QueryType.ToString(tmp537); + sb.Append(", QueryType: "); + QueryType.ToString(sb); if(__isset.result) { - tmp537.Append(", Result: "); - Result.ToString(tmp537); + sb.Append(", Result: "); + Result.ToString(sb); } if(__isset.count) { - tmp537.Append(", Count: "); - Count.ToString(tmp537); + sb.Append(", Count: "); + Count.ToString(sb); } if((Measurements != null) && __isset.measurements) { - tmp537.Append(", Measurements: "); - Measurements.ToString(tmp537); + sb.Append(", Measurements: "); + Measurements.ToString(sb); } - tmp537.Append(')'); - return tmp537.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSRawDataQueryReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSRawDataQueryReq.cs index 1f5060a..e6ffe52 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSRawDataQueryReq : TBase @@ -174,13 +173,13 @@ public TSRawDataQueryReq(long sessionId, List paths, long startTime, lon if (field.Type == TType.List) { { - TList _list388 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list388.Count); - for(int _i389 = 0; _i389 < _list388.Count; ++_i389) + TList _list305 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list305.Count); + for(int _i306 = 0; _i306 < _list305.Count; ++_i306) { - string _elem390; - _elem390 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem390); + string _elem307; + _elem307 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem307); } await iprot.ReadListEndAsync(cancellationToken); } @@ -315,26 +314,26 @@ public TSRawDataQueryReq(long sessionId, List paths, long startTime, lon oprot.IncrementRecursionDepth(); try { - var tmp391 = new TStruct("TSRawDataQueryReq"); - await oprot.WriteStructBeginAsync(tmp391, cancellationToken); - var tmp392 = new TField(); - tmp392.Name = "sessionId"; - tmp392.Type = TType.I64; - tmp392.ID = 1; - await oprot.WriteFieldBeginAsync(tmp392, cancellationToken); + var struc = new TStruct("TSRawDataQueryReq"); + 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); if((Paths != null)) { - tmp392.Name = "paths"; - tmp392.Type = TType.List; - tmp392.ID = 2; - await oprot.WriteFieldBeginAsync(tmp392, 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 _iter393 in Paths) + foreach (string _iter308 in Paths) { - await oprot.WriteStringAsync(_iter393, cancellationToken); + await oprot.WriteStringAsync(_iter308, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -342,64 +341,64 @@ public TSRawDataQueryReq(long sessionId, List paths, long startTime, lon } if(__isset.fetchSize) { - tmp392.Name = "fetchSize"; - tmp392.Type = TType.I32; - tmp392.ID = 3; - await oprot.WriteFieldBeginAsync(tmp392, cancellationToken); + field.Name = "fetchSize"; + field.Type = TType.I32; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(FetchSize, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - tmp392.Name = "startTime"; - tmp392.Type = TType.I64; - tmp392.ID = 4; - await oprot.WriteFieldBeginAsync(tmp392, cancellationToken); + field.Name = "startTime"; + field.Type = TType.I64; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(StartTime, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - tmp392.Name = "endTime"; - tmp392.Type = TType.I64; - tmp392.ID = 5; - await oprot.WriteFieldBeginAsync(tmp392, cancellationToken); + field.Name = "endTime"; + field.Type = TType.I64; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(EndTime, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); - tmp392.Name = "statementId"; - tmp392.Type = TType.I64; - tmp392.ID = 6; - await oprot.WriteFieldBeginAsync(tmp392, 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) { - tmp392.Name = "enableRedirectQuery"; - tmp392.Type = TType.Bool; - tmp392.ID = 7; - await oprot.WriteFieldBeginAsync(tmp392, cancellationToken); + 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) { - tmp392.Name = "jdbcQuery"; - tmp392.Type = TType.Bool; - tmp392.ID = 8; - await oprot.WriteFieldBeginAsync(tmp392, cancellationToken); + 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) { - tmp392.Name = "timeout"; - tmp392.Type = TType.I64; - tmp392.ID = 9; - await oprot.WriteFieldBeginAsync(tmp392, cancellationToken); + 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) { - tmp392.Name = "legalPathNodes"; - tmp392.Type = TType.Bool; - tmp392.ID = 10; - await oprot.WriteFieldBeginAsync(tmp392, cancellationToken); + field.Name = "legalPathNodes"; + field.Type = TType.Bool; + field.ID = 10; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(LegalPathNodes, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -465,47 +464,47 @@ public override int GetHashCode() { public override string ToString() { - var tmp394 = new StringBuilder("TSRawDataQueryReq("); - tmp394.Append(", SessionId: "); - SessionId.ToString(tmp394); + var sb = new StringBuilder("TSRawDataQueryReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((Paths != null)) { - tmp394.Append(", Paths: "); - Paths.ToString(tmp394); + sb.Append(", Paths: "); + Paths.ToString(sb); } if(__isset.fetchSize) { - tmp394.Append(", FetchSize: "); - FetchSize.ToString(tmp394); + sb.Append(", FetchSize: "); + FetchSize.ToString(sb); } - tmp394.Append(", StartTime: "); - StartTime.ToString(tmp394); - tmp394.Append(", EndTime: "); - EndTime.ToString(tmp394); - tmp394.Append(", StatementId: "); - StatementId.ToString(tmp394); + sb.Append(", StartTime: "); + StartTime.ToString(sb); + sb.Append(", EndTime: "); + EndTime.ToString(sb); + sb.Append(", StatementId: "); + StatementId.ToString(sb); if(__isset.enableRedirectQuery) { - tmp394.Append(", EnableRedirectQuery: "); - EnableRedirectQuery.ToString(tmp394); + sb.Append(", EnableRedirectQuery: "); + EnableRedirectQuery.ToString(sb); } if(__isset.jdbcQuery) { - tmp394.Append(", JdbcQuery: "); - JdbcQuery.ToString(tmp394); + sb.Append(", JdbcQuery: "); + JdbcQuery.ToString(sb); } if(__isset.timeout) { - tmp394.Append(", Timeout: "); - Timeout.ToString(tmp394); + sb.Append(", Timeout: "); + Timeout.ToString(sb); } if(__isset.legalPathNodes) { - tmp394.Append(", LegalPathNodes: "); - LegalPathNodes.ToString(tmp394); + sb.Append(", LegalPathNodes: "); + LegalPathNodes.ToString(sb); } - tmp394.Append(')'); - return tmp394.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSSetSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSSetSchemaTemplateReq.cs index 433c14a..7d7e213 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSSetSchemaTemplateReq : TBase @@ -136,30 +135,30 @@ public TSSetSchemaTemplateReq(long sessionId, string templateName, string prefix oprot.IncrementRecursionDepth(); try { - var tmp495 = new TStruct("TSSetSchemaTemplateReq"); - await oprot.WriteStructBeginAsync(tmp495, cancellationToken); - var tmp496 = new TField(); - tmp496.Name = "sessionId"; - tmp496.Type = TType.I64; - tmp496.ID = 1; - await oprot.WriteFieldBeginAsync(tmp496, cancellationToken); + var struc = new TStruct("TSSetSchemaTemplateReq"); + 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); if((TemplateName != null)) { - tmp496.Name = "templateName"; - tmp496.Type = TType.String; - tmp496.ID = 2; - await oprot.WriteFieldBeginAsync(tmp496, 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((PrefixPath != null)) { - tmp496.Name = "prefixPath"; - tmp496.Type = TType.String; - tmp496.ID = 3; - await oprot.WriteFieldBeginAsync(tmp496, 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); } @@ -199,21 +198,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp497 = new StringBuilder("TSSetSchemaTemplateReq("); - tmp497.Append(", SessionId: "); - SessionId.ToString(tmp497); + var sb = new StringBuilder("TSSetSchemaTemplateReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((TemplateName != null)) { - tmp497.Append(", TemplateName: "); - TemplateName.ToString(tmp497); + sb.Append(", TemplateName: "); + TemplateName.ToString(sb); } if((PrefixPath != null)) { - tmp497.Append(", PrefixPath: "); - PrefixPath.ToString(tmp497); + sb.Append(", PrefixPath: "); + PrefixPath.ToString(sb); } - tmp497.Append(')'); - return tmp497.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSSetTimeZoneReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSSetTimeZoneReq.cs index 199f400..f9f2d84 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSSetTimeZoneReq : TBase @@ -117,21 +116,21 @@ public TSSetTimeZoneReq(long sessionId, string timeZone) : this() oprot.IncrementRecursionDepth(); try { - var tmp143 = new TStruct("TSSetTimeZoneReq"); - await oprot.WriteStructBeginAsync(tmp143, cancellationToken); - var tmp144 = new TField(); - tmp144.Name = "sessionId"; - tmp144.Type = TType.I64; - tmp144.ID = 1; - await oprot.WriteFieldBeginAsync(tmp144, cancellationToken); + var struc = new TStruct("TSSetTimeZoneReq"); + 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); if((TimeZone != null)) { - tmp144.Name = "timeZone"; - tmp144.Type = TType.String; - tmp144.ID = 2; - await oprot.WriteFieldBeginAsync(tmp144, 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); } @@ -166,16 +165,16 @@ public override int GetHashCode() { public override string ToString() { - var tmp145 = new StringBuilder("TSSetTimeZoneReq("); - tmp145.Append(", SessionId: "); - SessionId.ToString(tmp145); + var sb = new StringBuilder("TSSetTimeZoneReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((TimeZone != null)) { - tmp145.Append(", TimeZone: "); - TimeZone.ToString(tmp145); + sb.Append(", TimeZone: "); + TimeZone.ToString(sb); } - tmp145.Append(')'); - return tmp145.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSStatus.cs b/src/Apache.IoTDB/Rpc/Generated/TSStatus.cs index f52db8e..3575330 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSStatus : TBase @@ -153,14 +152,14 @@ public TSStatus(int code) : this() if (field.Type == TType.List) { { - TList _list4 = await iprot.ReadListBeginAsync(cancellationToken); - SubStatus = new List(_list4.Count); - for(int _i5 = 0; _i5 < _list4.Count; ++_i5) + TList _list1 = await iprot.ReadListBeginAsync(cancellationToken); + SubStatus = new List(_list1.Count); + for(int _i2 = 0; _i2 < _list1.Count; ++_i2) { - TSStatus _elem6; - _elem6 = new TSStatus(); - await _elem6.ReadAsync(iprot, cancellationToken); - SubStatus.Add(_elem6); + TSStatus _elem3; + _elem3 = new TSStatus(); + await _elem3.ReadAsync(iprot, cancellationToken); + SubStatus.Add(_elem3); } await iprot.ReadListEndAsync(cancellationToken); } @@ -216,35 +215,35 @@ public TSStatus(int code) : this() oprot.IncrementRecursionDepth(); try { - var tmp7 = new TStruct("TSStatus"); - await oprot.WriteStructBeginAsync(tmp7, cancellationToken); - var tmp8 = new TField(); - tmp8.Name = "code"; - tmp8.Type = TType.I32; - tmp8.ID = 1; - await oprot.WriteFieldBeginAsync(tmp8, cancellationToken); + var struc = new TStruct("TSStatus"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "code"; + field.Type = TType.I32; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(Code, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); if((Message != null) && __isset.message) { - tmp8.Name = "message"; - tmp8.Type = TType.String; - tmp8.ID = 2; - await oprot.WriteFieldBeginAsync(tmp8, cancellationToken); + field.Name = "message"; + field.Type = TType.String; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteStringAsync(Message, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if((SubStatus != null) && __isset.subStatus) { - tmp8.Name = "subStatus"; - tmp8.Type = TType.List; - tmp8.ID = 3; - await oprot.WriteFieldBeginAsync(tmp8, cancellationToken); + field.Name = "subStatus"; + field.Type = TType.List; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); { await oprot.WriteListBeginAsync(new TList(TType.Struct, SubStatus.Count), cancellationToken); - foreach (TSStatus _iter9 in SubStatus) + foreach (TSStatus _iter4 in SubStatus) { - await _iter9.WriteAsync(oprot, cancellationToken); + await _iter4.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -252,19 +251,19 @@ public TSStatus(int code) : this() } if((RedirectNode != null) && __isset.redirectNode) { - tmp8.Name = "redirectNode"; - tmp8.Type = TType.Struct; - tmp8.ID = 4; - await oprot.WriteFieldBeginAsync(tmp8, cancellationToken); + field.Name = "redirectNode"; + field.Type = TType.Struct; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await RedirectNode.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.needRetry) { - tmp8.Name = "needRetry"; - tmp8.Type = TType.Bool; - tmp8.ID = 5; - await oprot.WriteFieldBeginAsync(tmp8, cancellationToken); + field.Name = "needRetry"; + field.Type = TType.Bool; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteBoolAsync(NeedRetry, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -314,31 +313,31 @@ public override int GetHashCode() { public override string ToString() { - var tmp10 = new StringBuilder("TSStatus("); - tmp10.Append(", Code: "); - Code.ToString(tmp10); + var sb = new StringBuilder("TSStatus("); + sb.Append(", Code: "); + Code.ToString(sb); if((Message != null) && __isset.message) { - tmp10.Append(", Message: "); - Message.ToString(tmp10); + sb.Append(", Message: "); + Message.ToString(sb); } if((SubStatus != null) && __isset.subStatus) { - tmp10.Append(", SubStatus: "); - SubStatus.ToString(tmp10); + sb.Append(", SubStatus: "); + SubStatus.ToString(sb); } if((RedirectNode != null) && __isset.redirectNode) { - tmp10.Append(", RedirectNode: "); - RedirectNode.ToString(tmp10); + sb.Append(", RedirectNode: "); + RedirectNode.ToString(sb); } if(__isset.needRetry) { - tmp10.Append(", NeedRetry: "); - NeedRetry.ToString(tmp10); + sb.Append(", NeedRetry: "); + NeedRetry.ToString(sb); } - tmp10.Append(')'); - return tmp10.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSTracingInfo.cs b/src/Apache.IoTDB/Rpc/Generated/TSTracingInfo.cs index 8b729dd..a5029a9 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSTracingInfo : TBase @@ -211,13 +210,13 @@ public TSTracingInfo(List activityList, List elapsedTimeList) : th if (field.Type == TType.List) { { - TList _list24 = await iprot.ReadListBeginAsync(cancellationToken); - ActivityList = new List(_list24.Count); - for(int _i25 = 0; _i25 < _list24.Count; ++_i25) + TList _list18 = await iprot.ReadListBeginAsync(cancellationToken); + ActivityList = new List(_list18.Count); + for(int _i19 = 0; _i19 < _list18.Count; ++_i19) { - string _elem26; - _elem26 = await iprot.ReadStringAsync(cancellationToken); - ActivityList.Add(_elem26); + string _elem20; + _elem20 = await iprot.ReadStringAsync(cancellationToken); + ActivityList.Add(_elem20); } await iprot.ReadListEndAsync(cancellationToken); } @@ -232,13 +231,13 @@ public TSTracingInfo(List activityList, List elapsedTimeList) : th if (field.Type == TType.List) { { - TList _list27 = await iprot.ReadListBeginAsync(cancellationToken); - ElapsedTimeList = new List(_list27.Count); - for(int _i28 = 0; _i28 < _list27.Count; ++_i28) + TList _list21 = await iprot.ReadListBeginAsync(cancellationToken); + ElapsedTimeList = new List(_list21.Count); + for(int _i22 = 0; _i22 < _list21.Count; ++_i22) { - long _elem29; - _elem29 = await iprot.ReadI64Async(cancellationToken); - ElapsedTimeList.Add(_elem29); + long _elem23; + _elem23 = await iprot.ReadI64Async(cancellationToken); + ElapsedTimeList.Add(_elem23); } await iprot.ReadListEndAsync(cancellationToken); } @@ -368,20 +367,20 @@ public TSTracingInfo(List activityList, List elapsedTimeList) : th oprot.IncrementRecursionDepth(); try { - var tmp30 = new TStruct("TSTracingInfo"); - await oprot.WriteStructBeginAsync(tmp30, cancellationToken); - var tmp31 = new TField(); + var struc = new TStruct("TSTracingInfo"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((ActivityList != null)) { - tmp31.Name = "activityList"; - tmp31.Type = TType.List; - tmp31.ID = 1; - await oprot.WriteFieldBeginAsync(tmp31, 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 _iter32 in ActivityList) + foreach (string _iter24 in ActivityList) { - await oprot.WriteStringAsync(_iter32, cancellationToken); + await oprot.WriteStringAsync(_iter24, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -389,15 +388,15 @@ public TSTracingInfo(List activityList, List elapsedTimeList) : th } if((ElapsedTimeList != null)) { - tmp31.Name = "elapsedTimeList"; - tmp31.Type = TType.List; - tmp31.ID = 2; - await oprot.WriteFieldBeginAsync(tmp31, 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 _iter33 in ElapsedTimeList) + foreach (long _iter25 in ElapsedTimeList) { - await oprot.WriteI64Async(_iter33, cancellationToken); + await oprot.WriteI64Async(_iter25, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -405,82 +404,82 @@ public TSTracingInfo(List activityList, List elapsedTimeList) : th } if(__isset.seriesPathNum) { - tmp31.Name = "seriesPathNum"; - tmp31.Type = TType.I32; - tmp31.ID = 3; - await oprot.WriteFieldBeginAsync(tmp31, cancellationToken); + field.Name = "seriesPathNum"; + field.Type = TType.I32; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(SeriesPathNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.seqFileNum) { - tmp31.Name = "seqFileNum"; - tmp31.Type = TType.I32; - tmp31.ID = 4; - await oprot.WriteFieldBeginAsync(tmp31, cancellationToken); + field.Name = "seqFileNum"; + field.Type = TType.I32; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(SeqFileNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.unSeqFileNum) { - tmp31.Name = "unSeqFileNum"; - tmp31.Type = TType.I32; - tmp31.ID = 5; - await oprot.WriteFieldBeginAsync(tmp31, cancellationToken); + field.Name = "unSeqFileNum"; + field.Type = TType.I32; + field.ID = 5; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(UnSeqFileNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.sequenceChunkNum) { - tmp31.Name = "sequenceChunkNum"; - tmp31.Type = TType.I32; - tmp31.ID = 6; - await oprot.WriteFieldBeginAsync(tmp31, cancellationToken); + field.Name = "sequenceChunkNum"; + field.Type = TType.I32; + field.ID = 6; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(SequenceChunkNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.sequenceChunkPointNum) { - tmp31.Name = "sequenceChunkPointNum"; - tmp31.Type = TType.I64; - tmp31.ID = 7; - await oprot.WriteFieldBeginAsync(tmp31, cancellationToken); + field.Name = "sequenceChunkPointNum"; + field.Type = TType.I64; + field.ID = 7; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(SequenceChunkPointNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.unsequenceChunkNum) { - tmp31.Name = "unsequenceChunkNum"; - tmp31.Type = TType.I32; - tmp31.ID = 8; - await oprot.WriteFieldBeginAsync(tmp31, cancellationToken); + field.Name = "unsequenceChunkNum"; + field.Type = TType.I32; + field.ID = 8; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(UnsequenceChunkNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.unsequenceChunkPointNum) { - tmp31.Name = "unsequenceChunkPointNum"; - tmp31.Type = TType.I64; - tmp31.ID = 9; - await oprot.WriteFieldBeginAsync(tmp31, cancellationToken); + field.Name = "unsequenceChunkPointNum"; + field.Type = TType.I64; + field.ID = 9; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(UnsequenceChunkPointNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.totalPageNum) { - tmp31.Name = "totalPageNum"; - tmp31.Type = TType.I32; - tmp31.ID = 10; - await oprot.WriteFieldBeginAsync(tmp31, cancellationToken); + field.Name = "totalPageNum"; + field.Type = TType.I32; + field.ID = 10; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(TotalPageNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } if(__isset.overlappedPageNum) { - tmp31.Name = "overlappedPageNum"; - tmp31.Type = TType.I32; - tmp31.ID = 11; - await oprot.WriteFieldBeginAsync(tmp31, cancellationToken); + field.Name = "overlappedPageNum"; + field.Type = TType.I32; + field.ID = 11; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(OverlappedPageNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -563,64 +562,64 @@ public override int GetHashCode() { public override string ToString() { - var tmp34 = new StringBuilder("TSTracingInfo("); + var sb = new StringBuilder("TSTracingInfo("); if((ActivityList != null)) { - tmp34.Append(", ActivityList: "); - ActivityList.ToString(tmp34); + sb.Append(", ActivityList: "); + ActivityList.ToString(sb); } if((ElapsedTimeList != null)) { - tmp34.Append(", ElapsedTimeList: "); - ElapsedTimeList.ToString(tmp34); + sb.Append(", ElapsedTimeList: "); + ElapsedTimeList.ToString(sb); } if(__isset.seriesPathNum) { - tmp34.Append(", SeriesPathNum: "); - SeriesPathNum.ToString(tmp34); + sb.Append(", SeriesPathNum: "); + SeriesPathNum.ToString(sb); } if(__isset.seqFileNum) { - tmp34.Append(", SeqFileNum: "); - SeqFileNum.ToString(tmp34); + sb.Append(", SeqFileNum: "); + SeqFileNum.ToString(sb); } if(__isset.unSeqFileNum) { - tmp34.Append(", UnSeqFileNum: "); - UnSeqFileNum.ToString(tmp34); + sb.Append(", UnSeqFileNum: "); + UnSeqFileNum.ToString(sb); } if(__isset.sequenceChunkNum) { - tmp34.Append(", SequenceChunkNum: "); - SequenceChunkNum.ToString(tmp34); + sb.Append(", SequenceChunkNum: "); + SequenceChunkNum.ToString(sb); } if(__isset.sequenceChunkPointNum) { - tmp34.Append(", SequenceChunkPointNum: "); - SequenceChunkPointNum.ToString(tmp34); + sb.Append(", SequenceChunkPointNum: "); + SequenceChunkPointNum.ToString(sb); } if(__isset.unsequenceChunkNum) { - tmp34.Append(", UnsequenceChunkNum: "); - UnsequenceChunkNum.ToString(tmp34); + sb.Append(", UnsequenceChunkNum: "); + UnsequenceChunkNum.ToString(sb); } if(__isset.unsequenceChunkPointNum) { - tmp34.Append(", UnsequenceChunkPointNum: "); - UnsequenceChunkPointNum.ToString(tmp34); + sb.Append(", UnsequenceChunkPointNum: "); + UnsequenceChunkPointNum.ToString(sb); } if(__isset.totalPageNum) { - tmp34.Append(", TotalPageNum: "); - TotalPageNum.ToString(tmp34); + sb.Append(", TotalPageNum: "); + TotalPageNum.ToString(sb); } if(__isset.overlappedPageNum) { - tmp34.Append(", OverlappedPageNum: "); - OverlappedPageNum.ToString(tmp34); + sb.Append(", OverlappedPageNum: "); + OverlappedPageNum.ToString(sb); } - tmp34.Append(')'); - return tmp34.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSUnsetSchemaTemplateReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSUnsetSchemaTemplateReq.cs index ece6424..7aa04f4 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSUnsetSchemaTemplateReq : TBase @@ -136,30 +135,30 @@ public TSUnsetSchemaTemplateReq(long sessionId, string prefixPath, string templa oprot.IncrementRecursionDepth(); try { - var tmp539 = new TStruct("TSUnsetSchemaTemplateReq"); - await oprot.WriteStructBeginAsync(tmp539, cancellationToken); - var tmp540 = new TField(); - tmp540.Name = "sessionId"; - tmp540.Type = TType.I64; - tmp540.ID = 1; - await oprot.WriteFieldBeginAsync(tmp540, cancellationToken); + var struc = new TStruct("TSUnsetSchemaTemplateReq"); + 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); if((PrefixPath != null)) { - tmp540.Name = "prefixPath"; - tmp540.Type = TType.String; - tmp540.ID = 2; - await oprot.WriteFieldBeginAsync(tmp540, 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); } if((TemplateName != null)) { - tmp540.Name = "templateName"; - tmp540.Type = TType.String; - tmp540.ID = 3; - await oprot.WriteFieldBeginAsync(tmp540, 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); } @@ -199,21 +198,21 @@ public override int GetHashCode() { public override string ToString() { - var tmp541 = new StringBuilder("TSUnsetSchemaTemplateReq("); - tmp541.Append(", SessionId: "); - SessionId.ToString(tmp541); + var sb = new StringBuilder("TSUnsetSchemaTemplateReq("); + sb.Append(", SessionId: "); + SessionId.ToString(sb); if((PrefixPath != null)) { - tmp541.Append(", PrefixPath: "); - PrefixPath.ToString(tmp541); + sb.Append(", PrefixPath: "); + PrefixPath.ToString(sb); } if((TemplateName != null)) { - tmp541.Append(", TemplateName: "); - TemplateName.ToString(tmp541); + sb.Append(", TemplateName: "); + TemplateName.ToString(sb); } - tmp541.Append(')'); - return tmp541.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs b/src/Apache.IoTDB/Rpc/Generated/TSchemaNode.cs index 2ff205d..1cc55f7 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSchemaNode : TBase @@ -117,22 +116,22 @@ public TSchemaNode(string nodeName, sbyte nodeType) : this() oprot.IncrementRecursionDepth(); try { - var tmp76 = new TStruct("TSchemaNode"); - await oprot.WriteStructBeginAsync(tmp76, cancellationToken); - var tmp77 = new TField(); + var struc = new TStruct("TSchemaNode"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((NodeName != null)) { - tmp77.Name = "nodeName"; - tmp77.Type = TType.String; - tmp77.ID = 1; - await oprot.WriteFieldBeginAsync(tmp77, 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); } - tmp77.Name = "nodeType"; - tmp77.Type = TType.Byte; - tmp77.ID = 2; - await oprot.WriteFieldBeginAsync(tmp77, cancellationToken); + field.Name = "nodeType"; + field.Type = TType.Byte; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteByteAsync(NodeType, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -166,16 +165,16 @@ public override int GetHashCode() { public override string ToString() { - var tmp78 = new StringBuilder("TSchemaNode("); + var sb = new StringBuilder("TSchemaNode("); if((NodeName != null)) { - tmp78.Append(", NodeName: "); - NodeName.ToString(tmp78); + sb.Append(", NodeName: "); + NodeName.ToString(sb); } - tmp78.Append(", NodeType: "); - NodeType.ToString(tmp78); - tmp78.Append(')'); - return tmp78.ToString(); + sb.Append(", NodeType: "); + 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 f712999..f370683 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSender : TBase @@ -133,24 +132,24 @@ public TSender() oprot.IncrementRecursionDepth(); try { - var tmp158 = new TStruct("TSender"); - await oprot.WriteStructBeginAsync(tmp158, cancellationToken); - var tmp159 = new TField(); + var struc = new TStruct("TSender"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((DataNodeLocation != null) && __isset.dataNodeLocation) { - tmp159.Name = "dataNodeLocation"; - tmp159.Type = TType.Struct; - tmp159.ID = 1; - await oprot.WriteFieldBeginAsync(tmp159, cancellationToken); + 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) { - tmp159.Name = "configNodeLocation"; - tmp159.Type = TType.Struct; - tmp159.ID = 2; - await oprot.WriteFieldBeginAsync(tmp159, cancellationToken); + field.Name = "configNodeLocation"; + field.Type = TType.Struct; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await ConfigNodeLocation.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -188,22 +187,22 @@ public override int GetHashCode() { public override string ToString() { - var tmp160 = new StringBuilder("TSender("); - int tmp161 = 0; + var sb = new StringBuilder("TSender("); + int tmp91 = 0; if((DataNodeLocation != null) && __isset.dataNodeLocation) { - if(0 < tmp161++) { tmp160.Append(", "); } - tmp160.Append("DataNodeLocation: "); - DataNodeLocation.ToString(tmp160); + if(0 < tmp91++) { sb.Append(", "); } + sb.Append("DataNodeLocation: "); + DataNodeLocation.ToString(sb); } if((ConfigNodeLocation != null) && __isset.configNodeLocation) { - if(0 < tmp161++) { tmp160.Append(", "); } - tmp160.Append("ConfigNodeLocation: "); - ConfigNodeLocation.ToString(tmp160); + if(0 < tmp91++) { sb.Append(", "); } + sb.Append("ConfigNodeLocation: "); + ConfigNodeLocation.ToString(sb); } - tmp160.Append(')'); - return tmp160.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 8d91fdf..3f14d2b 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSeriesPartitionSlot : TBase @@ -98,13 +97,13 @@ public TSeriesPartitionSlot(int slotId) : this() oprot.IncrementRecursionDepth(); try { - var tmp16 = new TStruct("TSeriesPartitionSlot"); - await oprot.WriteStructBeginAsync(tmp16, cancellationToken); - var tmp17 = new TField(); - tmp17.Name = "slotId"; - tmp17.Type = TType.I32; - tmp17.ID = 1; - await oprot.WriteFieldBeginAsync(tmp17, cancellationToken); + var struc = new TStruct("TSeriesPartitionSlot"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "slotId"; + field.Type = TType.I32; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(SlotId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -133,11 +132,11 @@ public override int GetHashCode() { public override string ToString() { - var tmp18 = new StringBuilder("TSeriesPartitionSlot("); - tmp18.Append(", SlotId: "); - SlotId.ToString(tmp18); - tmp18.Append(')'); - return tmp18.ToString(); + var sb = new StringBuilder("TSeriesPartitionSlot("); + sb.Append(", SlotId: "); + 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 67eb6bb..b190aa5 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TServiceProvider : TBase @@ -141,28 +140,28 @@ public TServiceProvider(TEndPoint endPoint, TServiceType serviceType, int nodeId oprot.IncrementRecursionDepth(); try { - var tmp154 = new TStruct("TServiceProvider"); - await oprot.WriteStructBeginAsync(tmp154, cancellationToken); - var tmp155 = new TField(); + var struc = new TStruct("TServiceProvider"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((EndPoint != null)) { - tmp155.Name = "endPoint"; - tmp155.Type = TType.Struct; - tmp155.ID = 1; - await oprot.WriteFieldBeginAsync(tmp155, cancellationToken); + field.Name = "endPoint"; + field.Type = TType.Struct; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await EndPoint.WriteAsync(oprot, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } - tmp155.Name = "serviceType"; - tmp155.Type = TType.I32; - tmp155.ID = 2; - await oprot.WriteFieldBeginAsync(tmp155, 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); - tmp155.Name = "nodeId"; - tmp155.Type = TType.I32; - tmp155.ID = 3; - await oprot.WriteFieldBeginAsync(tmp155, cancellationToken); + field.Name = "nodeId"; + field.Type = TType.I32; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(NodeId, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -198,18 +197,18 @@ public override int GetHashCode() { public override string ToString() { - var tmp156 = new StringBuilder("TServiceProvider("); + var sb = new StringBuilder("TServiceProvider("); if((EndPoint != null)) { - tmp156.Append(", EndPoint: "); - EndPoint.ToString(tmp156); + sb.Append(", EndPoint: "); + EndPoint.ToString(sb); } - tmp156.Append(", ServiceType: "); - ServiceType.ToString(tmp156); - tmp156.Append(", NodeId: "); - NodeId.ToString(tmp156); - tmp156.Append(')'); - return tmp156.ToString(); + sb.Append(", ServiceType: "); + ServiceType.ToString(sb); + sb.Append(", NodeId: "); + NodeId.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 ba27d73..757c67a 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TServiceType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TServiceType.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,7 +7,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum TServiceType { diff --git a/src/Apache.IoTDB/Rpc/Generated/TSetConfigurationReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSetConfigurationReq.cs index 473d259..4302ff1 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSetConfigurationReq : TBase @@ -70,15 +69,15 @@ public TSetConfigurationReq(Dictionary configs, int nodeId) : th if (field.Type == TType.Map) { { - TMap _map80 = await iprot.ReadMapBeginAsync(cancellationToken); - Configs = new Dictionary(_map80.Count); - for(int _i81 = 0; _i81 < _map80.Count; ++_i81) + TMap _map35 = await iprot.ReadMapBeginAsync(cancellationToken); + Configs = new Dictionary(_map35.Count); + for(int _i36 = 0; _i36 < _map35.Count; ++_i36) { - string _key82; - string _val83; - _key82 = await iprot.ReadStringAsync(cancellationToken); - _val83 = await iprot.ReadStringAsync(cancellationToken); - Configs[_key82] = _val83; + string _key37; + string _val38; + _key37 = await iprot.ReadStringAsync(cancellationToken); + _val38 = await iprot.ReadStringAsync(cancellationToken); + Configs[_key37] = _val38; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -129,30 +128,30 @@ public TSetConfigurationReq(Dictionary configs, int nodeId) : th oprot.IncrementRecursionDepth(); try { - var tmp84 = new TStruct("TSetConfigurationReq"); - await oprot.WriteStructBeginAsync(tmp84, cancellationToken); - var tmp85 = new TField(); + var struc = new TStruct("TSetConfigurationReq"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Configs != null)) { - tmp85.Name = "configs"; - tmp85.Type = TType.Map; - tmp85.ID = 1; - await oprot.WriteFieldBeginAsync(tmp85, cancellationToken); + 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 _iter86 in Configs.Keys) + foreach (string _iter39 in Configs.Keys) { - await oprot.WriteStringAsync(_iter86, cancellationToken); - await oprot.WriteStringAsync(Configs[_iter86], cancellationToken); + await oprot.WriteStringAsync(_iter39, cancellationToken); + await oprot.WriteStringAsync(Configs[_iter39], cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - tmp85.Name = "nodeId"; - tmp85.Type = TType.I32; - tmp85.ID = 2; - await oprot.WriteFieldBeginAsync(tmp85, 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); @@ -186,16 +185,16 @@ public override int GetHashCode() { public override string ToString() { - var tmp87 = new StringBuilder("TSetConfigurationReq("); + var sb = new StringBuilder("TSetConfigurationReq("); if((Configs != null)) { - tmp87.Append(", Configs: "); - Configs.ToString(tmp87); + sb.Append(", Configs: "); + Configs.ToString(sb); } - tmp87.Append(", NodeId: "); - NodeId.ToString(tmp87); - tmp87.Append(')'); - return tmp87.ToString(); + sb.Append(", NodeId: "); + 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 c701e77..aae497f 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSetSpaceQuotaReq : TBase @@ -70,13 +69,13 @@ public TSetSpaceQuotaReq(List database, TSpaceQuota spaceLimit) : this() if (field.Type == TType.List) { { - TList _list134 = await iprot.ReadListBeginAsync(cancellationToken); - Database = new List(_list134.Count); - for(int _i135 = 0; _i135 < _list134.Count; ++_i135) + TList _list65 = await iprot.ReadListBeginAsync(cancellationToken); + Database = new List(_list65.Count); + for(int _i66 = 0; _i66 < _list65.Count; ++_i66) { - string _elem136; - _elem136 = await iprot.ReadStringAsync(cancellationToken); - Database.Add(_elem136); + string _elem67; + _elem67 = await iprot.ReadStringAsync(cancellationToken); + Database.Add(_elem67); } await iprot.ReadListEndAsync(cancellationToken); } @@ -128,20 +127,20 @@ public TSetSpaceQuotaReq(List database, TSpaceQuota spaceLimit) : this() oprot.IncrementRecursionDepth(); try { - var tmp137 = new TStruct("TSetSpaceQuotaReq"); - await oprot.WriteStructBeginAsync(tmp137, cancellationToken); - var tmp138 = new TField(); + var struc = new TStruct("TSetSpaceQuotaReq"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Database != null)) { - tmp138.Name = "database"; - tmp138.Type = TType.List; - tmp138.ID = 1; - await oprot.WriteFieldBeginAsync(tmp138, cancellationToken); + 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 _iter139 in Database) + foreach (string _iter68 in Database) { - await oprot.WriteStringAsync(_iter139, cancellationToken); + await oprot.WriteStringAsync(_iter68, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -149,10 +148,10 @@ public TSetSpaceQuotaReq(List database, TSpaceQuota spaceLimit) : this() } if((SpaceLimit != null)) { - tmp138.Name = "spaceLimit"; - tmp138.Type = TType.Struct; - tmp138.ID = 2; - await oprot.WriteFieldBeginAsync(tmp138, 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); } @@ -190,19 +189,19 @@ public override int GetHashCode() { public override string ToString() { - var tmp140 = new StringBuilder("TSetSpaceQuotaReq("); + var sb = new StringBuilder("TSetSpaceQuotaReq("); if((Database != null)) { - tmp140.Append(", Database: "); - Database.ToString(tmp140); + sb.Append(", Database: "); + Database.ToString(sb); } if((SpaceLimit != null)) { - tmp140.Append(", SpaceLimit: "); - SpaceLimit.ToString(tmp140); + sb.Append(", SpaceLimit: "); + SpaceLimit.ToString(sb); } - tmp140.Append(')'); - return tmp140.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 29abc18..907ba23 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSetTTLReq : TBase @@ -74,13 +73,13 @@ public TSetTTLReq(List pathPattern, long TTL, bool isDataBase) : this() if (field.Type == TType.List) { { - TList _list89 = await iprot.ReadListBeginAsync(cancellationToken); - PathPattern = new List(_list89.Count); - for(int _i90 = 0; _i90 < _list89.Count; ++_i90) + TList _list41 = await iprot.ReadListBeginAsync(cancellationToken); + PathPattern = new List(_list41.Count); + for(int _i42 = 0; _i42 < _list41.Count; ++_i42) { - string _elem91; - _elem91 = await iprot.ReadStringAsync(cancellationToken); - PathPattern.Add(_elem91); + string _elem43; + _elem43 = await iprot.ReadStringAsync(cancellationToken); + PathPattern.Add(_elem43); } await iprot.ReadListEndAsync(cancellationToken); } @@ -146,35 +145,35 @@ public TSetTTLReq(List pathPattern, long TTL, bool isDataBase) : this() oprot.IncrementRecursionDepth(); try { - var tmp92 = new TStruct("TSetTTLReq"); - await oprot.WriteStructBeginAsync(tmp92, cancellationToken); - var tmp93 = new TField(); + var struc = new TStruct("TSetTTLReq"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((PathPattern != null)) { - tmp93.Name = "pathPattern"; - tmp93.Type = TType.List; - tmp93.ID = 1; - await oprot.WriteFieldBeginAsync(tmp93, cancellationToken); + 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 _iter94 in PathPattern) + foreach (string _iter44 in PathPattern) { - await oprot.WriteStringAsync(_iter94, cancellationToken); + await oprot.WriteStringAsync(_iter44, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } await oprot.WriteFieldEndAsync(cancellationToken); } - tmp93.Name = "TTL"; - tmp93.Type = TType.I64; - tmp93.ID = 2; - await oprot.WriteFieldBeginAsync(tmp93, 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); - tmp93.Name = "isDataBase"; - tmp93.Type = TType.Bool; - tmp93.ID = 3; - await oprot.WriteFieldBeginAsync(tmp93, 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); @@ -210,18 +209,18 @@ public override int GetHashCode() { public override string ToString() { - var tmp95 = new StringBuilder("TSetTTLReq("); + var sb = new StringBuilder("TSetTTLReq("); if((PathPattern != null)) { - tmp95.Append(", PathPattern: "); - PathPattern.ToString(tmp95); + sb.Append(", PathPattern: "); + PathPattern.ToString(sb); } - tmp95.Append(", TTL: "); - TTL.ToString(tmp95); - tmp95.Append(", IsDataBase: "); - IsDataBase.ToString(tmp95); - tmp95.Append(')'); - return tmp95.ToString(); + sb.Append(", TTL: "); + TTL.ToString(sb); + sb.Append(", IsDataBase: "); + 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 21ad2d6..651db17 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSetThrottleQuotaReq : TBase @@ -118,24 +117,24 @@ public TSetThrottleQuotaReq(string userName, TThrottleQuota throttleQuota) : thi oprot.IncrementRecursionDepth(); try { - var tmp142 = new TStruct("TSetThrottleQuotaReq"); - await oprot.WriteStructBeginAsync(tmp142, cancellationToken); - var tmp143 = new TField(); + var struc = new TStruct("TSetThrottleQuotaReq"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((UserName != null)) { - tmp143.Name = "userName"; - tmp143.Type = TType.String; - tmp143.ID = 1; - await oprot.WriteFieldBeginAsync(tmp143, 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); } if((ThrottleQuota != null)) { - tmp143.Name = "throttleQuota"; - tmp143.Type = TType.Struct; - tmp143.ID = 2; - await oprot.WriteFieldBeginAsync(tmp143, 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); } @@ -173,19 +172,19 @@ public override int GetHashCode() { public override string ToString() { - var tmp144 = new StringBuilder("TSetThrottleQuotaReq("); + var sb = new StringBuilder("TSetThrottleQuotaReq("); if((UserName != null)) { - tmp144.Append(", UserName: "); - UserName.ToString(tmp144); + sb.Append(", UserName: "); + UserName.ToString(sb); } if((ThrottleQuota != null)) { - tmp144.Append(", ThrottleQuota: "); - ThrottleQuota.ToString(tmp144); + sb.Append(", ThrottleQuota: "); + ThrottleQuota.ToString(sb); } - tmp144.Append(')'); - return tmp144.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs b/src/Apache.IoTDB/Rpc/Generated/TSettleReq.cs index 32852ec..c3d5f81 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSettleReq : TBase @@ -66,13 +65,13 @@ public TSettleReq(List paths) : this() if (field.Type == TType.List) { { - TList _list68 = await iprot.ReadListBeginAsync(cancellationToken); - Paths = new List(_list68.Count); - for(int _i69 = 0; _i69 < _list68.Count; ++_i69) + TList _list29 = await iprot.ReadListBeginAsync(cancellationToken); + Paths = new List(_list29.Count); + for(int _i30 = 0; _i30 < _list29.Count; ++_i30) { - string _elem70; - _elem70 = await iprot.ReadStringAsync(cancellationToken); - Paths.Add(_elem70); + string _elem31; + _elem31 = await iprot.ReadStringAsync(cancellationToken); + Paths.Add(_elem31); } await iprot.ReadListEndAsync(cancellationToken); } @@ -108,20 +107,20 @@ public TSettleReq(List paths) : this() oprot.IncrementRecursionDepth(); try { - var tmp71 = new TStruct("TSettleReq"); - await oprot.WriteStructBeginAsync(tmp71, cancellationToken); - var tmp72 = new TField(); + var struc = new TStruct("TSettleReq"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Paths != null)) { - tmp72.Name = "paths"; - tmp72.Type = TType.List; - tmp72.ID = 1; - await oprot.WriteFieldBeginAsync(tmp72, cancellationToken); + 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 _iter73 in Paths) + foreach (string _iter32 in Paths) { - await oprot.WriteStringAsync(_iter73, cancellationToken); + await oprot.WriteStringAsync(_iter32, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -156,14 +155,14 @@ public override int GetHashCode() { public override string ToString() { - var tmp74 = new StringBuilder("TSettleReq("); + var sb = new StringBuilder("TSettleReq("); if((Paths != null)) { - tmp74.Append(", Paths: "); - Paths.ToString(tmp74); + sb.Append(", Paths: "); + Paths.ToString(sb); } - tmp74.Append(')'); - return tmp74.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationResp.cs b/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationResp.cs index 56031aa..0fa4bb9 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TShowConfigurationResp : TBase @@ -118,24 +117,24 @@ public TShowConfigurationResp(TSStatus status, string content) : this() oprot.IncrementRecursionDepth(); try { - var tmp190 = new TStruct("TShowConfigurationResp"); - await oprot.WriteStructBeginAsync(tmp190, cancellationToken); - var tmp191 = new TField(); + var struc = new TStruct("TShowConfigurationResp"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Status != null)) { - tmp191.Name = "status"; - tmp191.Type = TType.Struct; - tmp191.ID = 1; - await oprot.WriteFieldBeginAsync(tmp191, 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); } if((Content != null)) { - tmp191.Name = "content"; - tmp191.Type = TType.String; - tmp191.ID = 2; - await oprot.WriteFieldBeginAsync(tmp191, 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); } @@ -173,19 +172,19 @@ public override int GetHashCode() { public override string ToString() { - var tmp192 = new StringBuilder("TShowConfigurationResp("); + var sb = new StringBuilder("TShowConfigurationResp("); if((Status != null)) { - tmp192.Append(", Status: "); - Status.ToString(tmp192); + sb.Append(", Status: "); + Status.ToString(sb); } if((Content != null)) { - tmp192.Append(", Content: "); - Content.ToString(tmp192); + sb.Append(", Content: "); + Content.ToString(sb); } - tmp192.Append(')'); - return tmp192.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationTemplateResp.cs b/src/Apache.IoTDB/Rpc/Generated/TShowConfigurationTemplateResp.cs index 69d8946..79ab277 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TShowConfigurationTemplateResp : TBase @@ -118,24 +117,24 @@ public TShowConfigurationTemplateResp(TSStatus status, string content) : this() oprot.IncrementRecursionDepth(); try { - var tmp186 = new TStruct("TShowConfigurationTemplateResp"); - await oprot.WriteStructBeginAsync(tmp186, cancellationToken); - var tmp187 = new TField(); + var struc = new TStruct("TShowConfigurationTemplateResp"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Status != null)) { - tmp187.Name = "status"; - tmp187.Type = TType.Struct; - tmp187.ID = 1; - await oprot.WriteFieldBeginAsync(tmp187, 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); } if((Content != null)) { - tmp187.Name = "content"; - tmp187.Type = TType.String; - tmp187.ID = 2; - await oprot.WriteFieldBeginAsync(tmp187, 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); } @@ -173,19 +172,19 @@ public override int GetHashCode() { public override string ToString() { - var tmp188 = new StringBuilder("TShowConfigurationTemplateResp("); + var sb = new StringBuilder("TShowConfigurationTemplateResp("); if((Status != null)) { - tmp188.Append(", Status: "); - Status.ToString(tmp188); + sb.Append(", Status: "); + Status.ToString(sb); } if((Content != null)) { - tmp188.Append(", Content: "); - Content.ToString(tmp188); + sb.Append(", Content: "); + Content.ToString(sb); } - tmp188.Append(')'); - return tmp188.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs b/src/Apache.IoTDB/Rpc/Generated/TShowTTLReq.cs index 8272bbb..5d22cec 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TShowTTLReq : TBase @@ -66,13 +65,13 @@ public TShowTTLReq(List pathPattern) : this() if (field.Type == TType.List) { { - TList _list97 = await iprot.ReadListBeginAsync(cancellationToken); - PathPattern = new List(_list97.Count); - for(int _i98 = 0; _i98 < _list97.Count; ++_i98) + TList _list46 = await iprot.ReadListBeginAsync(cancellationToken); + PathPattern = new List(_list46.Count); + for(int _i47 = 0; _i47 < _list46.Count; ++_i47) { - string _elem99; - _elem99 = await iprot.ReadStringAsync(cancellationToken); - PathPattern.Add(_elem99); + string _elem48; + _elem48 = await iprot.ReadStringAsync(cancellationToken); + PathPattern.Add(_elem48); } await iprot.ReadListEndAsync(cancellationToken); } @@ -108,20 +107,20 @@ public TShowTTLReq(List pathPattern) : this() oprot.IncrementRecursionDepth(); try { - var tmp100 = new TStruct("TShowTTLReq"); - await oprot.WriteStructBeginAsync(tmp100, cancellationToken); - var tmp101 = new TField(); + var struc = new TStruct("TShowTTLReq"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((PathPattern != null)) { - tmp101.Name = "pathPattern"; - tmp101.Type = TType.List; - tmp101.ID = 1; - await oprot.WriteFieldBeginAsync(tmp101, cancellationToken); + 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 _iter102 in PathPattern) + foreach (string _iter49 in PathPattern) { - await oprot.WriteStringAsync(_iter102, cancellationToken); + await oprot.WriteStringAsync(_iter49, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -156,14 +155,14 @@ public override int GetHashCode() { public override string ToString() { - var tmp103 = new StringBuilder("TShowTTLReq("); + var sb = new StringBuilder("TShowTTLReq("); if((PathPattern != null)) { - tmp103.Append(", PathPattern: "); - PathPattern.ToString(tmp103); + sb.Append(", PathPattern: "); + PathPattern.ToString(sb); } - tmp103.Append(')'); - return tmp103.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs b/src/Apache.IoTDB/Rpc/Generated/TSpaceQuota.cs index dec5b73..bbcd2ed 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSpaceQuota : TBase @@ -156,33 +155,33 @@ public TSpaceQuota() oprot.IncrementRecursionDepth(); try { - var tmp117 = new TStruct("TSpaceQuota"); - await oprot.WriteStructBeginAsync(tmp117, cancellationToken); - var tmp118 = new TField(); + var struc = new TStruct("TSpaceQuota"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if(__isset.diskSize) { - tmp118.Name = "diskSize"; - tmp118.Type = TType.I64; - tmp118.ID = 1; - await oprot.WriteFieldBeginAsync(tmp118, cancellationToken); + 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) { - tmp118.Name = "deviceNum"; - tmp118.Type = TType.I64; - tmp118.ID = 2; - await oprot.WriteFieldBeginAsync(tmp118, cancellationToken); + 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) { - tmp118.Name = "timeserieNum"; - tmp118.Type = TType.I64; - tmp118.ID = 3; - await oprot.WriteFieldBeginAsync(tmp118, cancellationToken); + field.Name = "timeserieNum"; + field.Type = TType.I64; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(TimeserieNum, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -225,28 +224,28 @@ public override int GetHashCode() { public override string ToString() { - var tmp119 = new StringBuilder("TSpaceQuota("); - int tmp120 = 0; + var sb = new StringBuilder("TSpaceQuota("); + int tmp57 = 0; if(__isset.diskSize) { - if(0 < tmp120++) { tmp119.Append(", "); } - tmp119.Append("DiskSize: "); - DiskSize.ToString(tmp119); + if(0 < tmp57++) { sb.Append(", "); } + sb.Append("DiskSize: "); + DiskSize.ToString(sb); } if(__isset.deviceNum) { - if(0 < tmp120++) { tmp119.Append(", "); } - tmp119.Append("DeviceNum: "); - DeviceNum.ToString(tmp119); + if(0 < tmp57++) { sb.Append(", "); } + sb.Append("DeviceNum: "); + DeviceNum.ToString(sb); } if(__isset.timeserieNum) { - if(0 < tmp120++) { tmp119.Append(", "); } - tmp119.Append("TimeserieNum: "); - TimeserieNum.ToString(tmp119); + if(0 < tmp57++) { sb.Append(", "); } + sb.Append("TimeserieNum: "); + TimeserieNum.ToString(sb); } - tmp119.Append(')'); - return tmp119.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSyncIdentityInfo.cs b/src/Apache.IoTDB/Rpc/Generated/TSyncIdentityInfo.cs index 5c8d708..ccf7bc5 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSyncIdentityInfo : TBase @@ -155,39 +154,39 @@ public TSyncIdentityInfo(string pipeName, long createTime, string version, strin oprot.IncrementRecursionDepth(); try { - var tmp555 = new TStruct("TSyncIdentityInfo"); - await oprot.WriteStructBeginAsync(tmp555, cancellationToken); - var tmp556 = new TField(); + var struc = new TStruct("TSyncIdentityInfo"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((PipeName != null)) { - tmp556.Name = "pipeName"; - tmp556.Type = TType.String; - tmp556.ID = 1; - await oprot.WriteFieldBeginAsync(tmp556, 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); } - tmp556.Name = "createTime"; - tmp556.Type = TType.I64; - tmp556.ID = 2; - await oprot.WriteFieldBeginAsync(tmp556, 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)) { - tmp556.Name = "version"; - tmp556.Type = TType.String; - tmp556.ID = 3; - await oprot.WriteFieldBeginAsync(tmp556, 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); } if((Database != null)) { - tmp556.Name = "database"; - tmp556.Type = TType.String; - tmp556.ID = 4; - await oprot.WriteFieldBeginAsync(tmp556, 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); } @@ -232,26 +231,26 @@ public override int GetHashCode() { public override string ToString() { - var tmp557 = new StringBuilder("TSyncIdentityInfo("); + var sb = new StringBuilder("TSyncIdentityInfo("); if((PipeName != null)) { - tmp557.Append(", PipeName: "); - PipeName.ToString(tmp557); + sb.Append(", PipeName: "); + PipeName.ToString(sb); } - tmp557.Append(", CreateTime: "); - CreateTime.ToString(tmp557); + sb.Append(", CreateTime: "); + CreateTime.ToString(sb); if((Version != null)) { - tmp557.Append(", Version: "); - Version.ToString(tmp557); + sb.Append(", Version: "); + Version.ToString(sb); } if((Database != null)) { - tmp557.Append(", Database: "); - Database.ToString(tmp557); + sb.Append(", Database: "); + Database.ToString(sb); } - tmp557.Append(')'); - return tmp557.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TSyncTransportMetaInfo.cs b/src/Apache.IoTDB/Rpc/Generated/TSyncTransportMetaInfo.cs index 411b60c..ef840cc 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TSyncTransportMetaInfo : TBase @@ -117,22 +116,22 @@ public TSyncTransportMetaInfo(string fileName, long startIndex) : this() oprot.IncrementRecursionDepth(); try { - var tmp559 = new TStruct("TSyncTransportMetaInfo"); - await oprot.WriteStructBeginAsync(tmp559, cancellationToken); - var tmp560 = new TField(); + var struc = new TStruct("TSyncTransportMetaInfo"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((FileName != null)) { - tmp560.Name = "fileName"; - tmp560.Type = TType.String; - tmp560.ID = 1; - await oprot.WriteFieldBeginAsync(tmp560, 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); } - tmp560.Name = "startIndex"; - tmp560.Type = TType.I64; - tmp560.ID = 2; - await oprot.WriteFieldBeginAsync(tmp560, cancellationToken); + field.Name = "startIndex"; + field.Type = TType.I64; + field.ID = 2; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(StartIndex, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -166,16 +165,16 @@ public override int GetHashCode() { public override string ToString() { - var tmp561 = new StringBuilder("TSyncTransportMetaInfo("); + var sb = new StringBuilder("TSyncTransportMetaInfo("); if((FileName != null)) { - tmp561.Append(", FileName: "); - FileName.ToString(tmp561); + sb.Append(", FileName: "); + FileName.ToString(sb); } - tmp561.Append(", StartIndex: "); - StartIndex.ToString(tmp561); - tmp561.Append(')'); - return tmp561.ToString(); + sb.Append(", StartIndex: "); + 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 9ec36a3..ee615dd 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TTestConnectionResp : TBase @@ -82,14 +81,14 @@ public TTestConnectionResp(TSStatus status, List resultLi if (field.Type == TType.List) { { - TList _list166 = await iprot.ReadListBeginAsync(cancellationToken); - ResultList = new List(_list166.Count); - for(int _i167 = 0; _i167 < _list166.Count; ++_i167) + TList _list93 = await iprot.ReadListBeginAsync(cancellationToken); + ResultList = new List(_list93.Count); + for(int _i94 = 0; _i94 < _list93.Count; ++_i94) { - TTestConnectionResult _elem168; - _elem168 = new TTestConnectionResult(); - await _elem168.ReadAsync(iprot, cancellationToken); - ResultList.Add(_elem168); + TTestConnectionResult _elem95; + _elem95 = new TTestConnectionResult(); + await _elem95.ReadAsync(iprot, cancellationToken); + ResultList.Add(_elem95); } await iprot.ReadListEndAsync(cancellationToken); } @@ -129,29 +128,29 @@ public TTestConnectionResp(TSStatus status, List resultLi oprot.IncrementRecursionDepth(); try { - var tmp169 = new TStruct("TTestConnectionResp"); - await oprot.WriteStructBeginAsync(tmp169, cancellationToken); - var tmp170 = new TField(); + var struc = new TStruct("TTestConnectionResp"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((Status != null)) { - tmp170.Name = "status"; - tmp170.Type = TType.Struct; - tmp170.ID = 1; - await oprot.WriteFieldBeginAsync(tmp170, 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); } if((ResultList != null)) { - tmp170.Name = "resultList"; - tmp170.Type = TType.List; - tmp170.ID = 2; - await oprot.WriteFieldBeginAsync(tmp170, 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 _iter171 in ResultList) + foreach (TTestConnectionResult _iter96 in ResultList) { - await _iter171.WriteAsync(oprot, cancellationToken); + await _iter96.WriteAsync(oprot, cancellationToken); } await oprot.WriteListEndAsync(cancellationToken); } @@ -191,19 +190,19 @@ public override int GetHashCode() { public override string ToString() { - var tmp172 = new StringBuilder("TTestConnectionResp("); + var sb = new StringBuilder("TTestConnectionResp("); if((Status != null)) { - tmp172.Append(", Status: "); - Status.ToString(tmp172); + sb.Append(", Status: "); + Status.ToString(sb); } if((ResultList != null)) { - tmp172.Append(", ResultList: "); - ResultList.ToString(tmp172); + sb.Append(", ResultList: "); + ResultList.ToString(sb); } - tmp172.Append(')'); - return tmp172.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResult.cs b/src/Apache.IoTDB/Rpc/Generated/TTestConnectionResult.cs index ec5807d..b4117b9 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TTestConnectionResult : TBase @@ -169,39 +168,39 @@ public TTestConnectionResult(TServiceProvider serviceProvider, TSender sender, b oprot.IncrementRecursionDepth(); try { - var tmp162 = new TStruct("TTestConnectionResult"); - await oprot.WriteStructBeginAsync(tmp162, cancellationToken); - var tmp163 = new TField(); + var struc = new TStruct("TTestConnectionResult"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((ServiceProvider != null)) { - tmp163.Name = "serviceProvider"; - tmp163.Type = TType.Struct; - tmp163.ID = 1; - await oprot.WriteFieldBeginAsync(tmp163, cancellationToken); + 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)) { - tmp163.Name = "sender"; - tmp163.Type = TType.Struct; - tmp163.ID = 2; - await oprot.WriteFieldBeginAsync(tmp163, 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); } - tmp163.Name = "success"; - tmp163.Type = TType.Bool; - tmp163.ID = 3; - await oprot.WriteFieldBeginAsync(tmp163, 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) { - tmp163.Name = "reason"; - tmp163.Type = TType.String; - tmp163.ID = 4; - await oprot.WriteFieldBeginAsync(tmp163, cancellationToken); + field.Name = "reason"; + field.Type = TType.String; + field.ID = 4; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteStringAsync(Reason, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -246,26 +245,26 @@ public override int GetHashCode() { public override string ToString() { - var tmp164 = new StringBuilder("TTestConnectionResult("); + var sb = new StringBuilder("TTestConnectionResult("); if((ServiceProvider != null)) { - tmp164.Append(", ServiceProvider: "); - ServiceProvider.ToString(tmp164); + sb.Append(", ServiceProvider: "); + ServiceProvider.ToString(sb); } if((Sender != null)) { - tmp164.Append(", Sender: "); - Sender.ToString(tmp164); + sb.Append(", Sender: "); + Sender.ToString(sb); } - tmp164.Append(", Success: "); - Success.ToString(tmp164); + sb.Append(", Success: "); + Success.ToString(sb); if((Reason != null) && __isset.reason) { - tmp164.Append(", Reason: "); - Reason.ToString(tmp164); + sb.Append(", Reason: "); + Reason.ToString(sb); } - tmp164.Append(')'); - return tmp164.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TThrottleQuota.cs b/src/Apache.IoTDB/Rpc/Generated/TThrottleQuota.cs index 0803de8..3556cd6 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TThrottleQuota : TBase @@ -109,16 +108,16 @@ public TThrottleQuota() if (field.Type == TType.Map) { { - TMap _map125 = await iprot.ReadMapBeginAsync(cancellationToken); - ThrottleLimit = new Dictionary(_map125.Count); - for(int _i126 = 0; _i126 < _map125.Count; ++_i126) + TMap _map59 = await iprot.ReadMapBeginAsync(cancellationToken); + ThrottleLimit = new Dictionary(_map59.Count); + for(int _i60 = 0; _i60 < _map59.Count; ++_i60) { - ThrottleType _key127; - TTimedQuota _val128; - _key127 = (ThrottleType)await iprot.ReadI32Async(cancellationToken); - _val128 = new TTimedQuota(); - await _val128.ReadAsync(iprot, cancellationToken); - ThrottleLimit[_key127] = _val128; + ThrottleType _key61; + TTimedQuota _val62; + _key61 = (ThrottleType)await iprot.ReadI32Async(cancellationToken); + _val62 = new TTimedQuota(); + await _val62.ReadAsync(iprot, cancellationToken); + ThrottleLimit[_key61] = _val62; } await iprot.ReadMapEndAsync(cancellationToken); } @@ -169,21 +168,21 @@ public TThrottleQuota() oprot.IncrementRecursionDepth(); try { - var tmp129 = new TStruct("TThrottleQuota"); - await oprot.WriteStructBeginAsync(tmp129, cancellationToken); - var tmp130 = new TField(); + var struc = new TStruct("TThrottleQuota"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); if((ThrottleLimit != null) && __isset.throttleLimit) { - tmp130.Name = "throttleLimit"; - tmp130.Type = TType.Map; - tmp130.ID = 1; - await oprot.WriteFieldBeginAsync(tmp130, cancellationToken); + 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 _iter131 in ThrottleLimit.Keys) + foreach (ThrottleType _iter63 in ThrottleLimit.Keys) { - await oprot.WriteI32Async((int)_iter131, cancellationToken); - await ThrottleLimit[_iter131].WriteAsync(oprot, cancellationToken); + await oprot.WriteI32Async((int)_iter63, cancellationToken); + await ThrottleLimit[_iter63].WriteAsync(oprot, cancellationToken); } await oprot.WriteMapEndAsync(cancellationToken); } @@ -191,19 +190,19 @@ public TThrottleQuota() } if(__isset.memLimit) { - tmp130.Name = "memLimit"; - tmp130.Type = TType.I64; - tmp130.ID = 2; - await oprot.WriteFieldBeginAsync(tmp130, cancellationToken); + 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) { - tmp130.Name = "cpuLimit"; - tmp130.Type = TType.I32; - tmp130.ID = 3; - await oprot.WriteFieldBeginAsync(tmp130, cancellationToken); + field.Name = "cpuLimit"; + field.Type = TType.I32; + field.ID = 3; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI32Async(CpuLimit, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); } @@ -246,28 +245,28 @@ public override int GetHashCode() { public override string ToString() { - var tmp132 = new StringBuilder("TThrottleQuota("); - int tmp133 = 0; + var sb = new StringBuilder("TThrottleQuota("); + int tmp64 = 0; if((ThrottleLimit != null) && __isset.throttleLimit) { - if(0 < tmp133++) { tmp132.Append(", "); } - tmp132.Append("ThrottleLimit: "); - ThrottleLimit.ToString(tmp132); + if(0 < tmp64++) { sb.Append(", "); } + sb.Append("ThrottleLimit: "); + ThrottleLimit.ToString(sb); } if(__isset.memLimit) { - if(0 < tmp133++) { tmp132.Append(", "); } - tmp132.Append("MemLimit: "); - MemLimit.ToString(tmp132); + if(0 < tmp64++) { sb.Append(", "); } + sb.Append("MemLimit: "); + MemLimit.ToString(sb); } if(__isset.cpuLimit) { - if(0 < tmp133++) { tmp132.Append(", "); } - tmp132.Append("CpuLimit: "); - CpuLimit.ToString(tmp132); + if(0 < tmp64++) { sb.Append(", "); } + sb.Append("CpuLimit: "); + CpuLimit.ToString(sb); } - tmp132.Append(')'); - return tmp132.ToString(); + sb.Append(')'); + return sb.ToString(); } } diff --git a/src/Apache.IoTDB/Rpc/Generated/TTimePartitionSlot.cs b/src/Apache.IoTDB/Rpc/Generated/TTimePartitionSlot.cs index 21f6b03..abf1d79 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TTimePartitionSlot : TBase @@ -98,13 +97,13 @@ public TTimePartitionSlot(long startTime) : this() oprot.IncrementRecursionDepth(); try { - var tmp20 = new TStruct("TTimePartitionSlot"); - await oprot.WriteStructBeginAsync(tmp20, cancellationToken); - var tmp21 = new TField(); - tmp21.Name = "startTime"; - tmp21.Type = TType.I64; - tmp21.ID = 1; - await oprot.WriteFieldBeginAsync(tmp21, cancellationToken); + var struc = new TStruct("TTimePartitionSlot"); + await oprot.WriteStructBeginAsync(struc, cancellationToken); + var field = new TField(); + field.Name = "startTime"; + field.Type = TType.I64; + field.ID = 1; + await oprot.WriteFieldBeginAsync(field, cancellationToken); await oprot.WriteI64Async(StartTime, cancellationToken); await oprot.WriteFieldEndAsync(cancellationToken); await oprot.WriteFieldStopAsync(cancellationToken); @@ -133,11 +132,11 @@ public override int GetHashCode() { public override string ToString() { - var tmp22 = new StringBuilder("TTimePartitionSlot("); - tmp22.Append(", StartTime: "); - StartTime.ToString(tmp22); - tmp22.Append(')'); - return tmp22.ToString(); + var sb = new StringBuilder("TTimePartitionSlot("); + sb.Append(", StartTime: "); + 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 b667002..282ac91 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.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -27,7 +27,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public partial class TTimedQuota : TBase @@ -117,19 +116,19 @@ public TTimedQuota(long timeUnit, long softLimit) : this() oprot.IncrementRecursionDepth(); try { - var tmp121 = new TStruct("TTimedQuota"); - await oprot.WriteStructBeginAsync(tmp121, cancellationToken); - var tmp122 = new TField(); - tmp122.Name = "timeUnit"; - tmp122.Type = TType.I64; - tmp122.ID = 1; - await oprot.WriteFieldBeginAsync(tmp122, cancellationToken); + 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); - tmp122.Name = "softLimit"; - tmp122.Type = TType.I64; - tmp122.ID = 2; - await oprot.WriteFieldBeginAsync(tmp122, 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); @@ -160,13 +159,13 @@ public override int GetHashCode() { public override string ToString() { - var tmp123 = new StringBuilder("TTimedQuota("); - tmp123.Append(", TimeUnit: "); - TimeUnit.ToString(tmp123); - tmp123.Append(", SoftLimit: "); - SoftLimit.ToString(tmp123); - tmp123.Append(')'); - return tmp123.ToString(); + var sb = new StringBuilder("TTimedQuota("); + sb.Append(", TimeUnit: "); + TimeUnit.ToString(sb); + sb.Append(", SoftLimit: "); + 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 bbac3d3..425a016 100644 --- a/src/Apache.IoTDB/Rpc/Generated/ThrottleType.cs +++ b/src/Apache.IoTDB/Rpc/Generated/ThrottleType.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,7 +7,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum ThrottleType { diff --git a/src/Apache.IoTDB/Rpc/Generated/TrainingState.cs b/src/Apache.IoTDB/Rpc/Generated/TrainingState.cs index 6491b1b..4a68d2d 100644 --- a/src/Apache.IoTDB/Rpc/Generated/TrainingState.cs +++ b/src/Apache.IoTDB/Rpc/Generated/TrainingState.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,7 +7,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public enum TrainingState { diff --git a/src/Apache.IoTDB/Rpc/Generated/client.Extensions.cs b/src/Apache.IoTDB/Rpc/Generated/client.Extensions.cs index e2431e2..49c8a7e 100644 --- a/src/Apache.IoTDB/Rpc/Generated/client.Extensions.cs +++ b/src/Apache.IoTDB/Rpc/Generated/client.Extensions.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -19,7 +19,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public static class clientExtensions { diff --git a/src/Apache.IoTDB/Rpc/Generated/common.Extensions.cs b/src/Apache.IoTDB/Rpc/Generated/common.Extensions.cs index 3744506..5ef4386 100644 --- a/src/Apache.IoTDB/Rpc/Generated/common.Extensions.cs +++ b/src/Apache.IoTDB/Rpc/Generated/common.Extensions.cs @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.15.0) + * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -19,7 +19,6 @@ #pragma warning disable IDE0079 // remove unnecessary pragmas #pragma warning disable IDE1006 // parts of the code use IDL spelling -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions public static class commonExtensions { @@ -128,6 +127,66 @@ public static int GetHashCode(this List instance) } + 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 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 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 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 bool Equals(this List instance, object that) { if (!(that is List other)) return false; From f21193377b47cd2408386124ebe16415998e75cc Mon Sep 17 00:00:00 2001 From: lausannel <513964121@qq.com> Date: Sun, 24 Aug 2025 18:42:17 +0100 Subject: [PATCH 04/14] fix compilation issue caused by 0.14.1 --- .../DataStructure/SessionDataSet.cs | 2 +- src/Apache.IoTDB/SessionPool.cs | 100 +++++++++--------- 2 files changed, 51 insertions(+), 51 deletions(-) diff --git a/src/Apache.IoTDB/DataStructure/SessionDataSet.cs b/src/Apache.IoTDB/DataStructure/SessionDataSet.cs index 5a0e853..02c8aea 100644 --- a/src/Apache.IoTDB/DataStructure/SessionDataSet.cs +++ b/src/Apache.IoTDB/DataStructure/SessionDataSet.cs @@ -131,7 +131,7 @@ public async Task Close() try { - var status = await _client.ServiceClient.closeOperation(req); + var status = await _client.ServiceClient.closeOperationAsync(req); } catch (TException e) { diff --git a/src/Apache.IoTDB/SessionPool.cs b/src/Apache.IoTDB/SessionPool.cs index f08ccf8..135199b 100644 --- a/src/Apache.IoTDB/SessionPool.cs +++ b/src/Apache.IoTDB/SessionPool.cs @@ -361,7 +361,7 @@ public async Task Close() var closeSessionRequest = new TSCloseSessionReq(client.SessionId); try { - await client.ServiceClient.closeSession(closeSessionRequest); + await client.ServiceClient.closeSessionAsync(closeSessionRequest); } catch (TException e) { @@ -385,7 +385,7 @@ public async Task SetTimeZone(string zoneId) var req = new TSSetTimeZoneReq(client.SessionId, zoneId); try { - var resp = await client.ServiceClient.setTimeZone(req); + var resp = await client.ServiceClient.setTimeZoneAsync(req); if (_debugMode) { _logger.LogInformation("setting time zone_id as {0}, server message:{1}", zoneId, resp.Message); @@ -409,7 +409,7 @@ public async Task GetTimeZone() try { - var response = await client.ServiceClient.getTimeZone(client.SessionId); + var response = await client.ServiceClient.getTimeZoneAsync(client.SessionId); return response?.TimeZone; } @@ -455,7 +455,7 @@ private async Task CreateAndOpen(string host, int port, bool enableRpcCo try { - var openResp = await client.openSession(openReq, cancellationToken); + var openResp = await client.openSessionAsync(openReq, cancellationToken); if (openResp.ServerProtocolVersion != ProtocolVersion) { @@ -468,7 +468,7 @@ private async Task CreateAndOpen(string host, int port, bool enableRpcCo } var sessionId = openResp.SessionId; - var statementId = await client.requestStatementId(sessionId, cancellationToken); + var statementId = await client.requestStatementIdAsync(sessionId, cancellationToken); var endpoint = new TEndPoint(host, port); @@ -494,7 +494,7 @@ public async Task CreateDatabase(string dbName) return await ExecuteClientOperationAsync( async client => { - var status = await client.ServiceClient.setStorageGroup(client.SessionId, dbName); + var status = await client.ServiceClient.setStorageGroupAsync(client.SessionId, dbName); if (_debugMode) { @@ -513,7 +513,7 @@ public async Task SetStorageGroup(string groupName) return await ExecuteClientOperationAsync( async client => { - var status = await client.ServiceClient.setStorageGroup(client.SessionId, groupName); + 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); @@ -539,7 +539,7 @@ public async Task CreateTimeSeries( (int)encoding, (int)compressor); - var status = await client.ServiceClient.createTimeseries(req); + var status = await client.ServiceClient.createTimeseriesAsync(req); if (_debugMode) { @@ -573,7 +573,7 @@ public async Task CreateAlignedTimeseriesAsync( encodings, compressors); - var status = await client.ServiceClient.createAlignedTimeseries(req); + var status = await client.ServiceClient.createAlignedTimeseriesAsync(req); if (_debugMode) { @@ -590,7 +590,7 @@ public async Task DeleteDatabaseAsync(string dbName) return await ExecuteClientOperationAsync( async client => { - var status = await client.ServiceClient.deleteStorageGroups(client.SessionId, new List { dbName }); + var status = await client.ServiceClient.deleteStorageGroupsAsync(client.SessionId, new List { dbName }); if (_debugMode) { @@ -608,7 +608,7 @@ public async Task DeleteStorageGroupAsync(string groupName) return await ExecuteClientOperationAsync( async client => { - var status = await client.ServiceClient.deleteStorageGroups(client.SessionId, new List { groupName }); + var status = await client.ServiceClient.deleteStorageGroupsAsync(client.SessionId, new List { groupName }); if (_debugMode) { @@ -625,7 +625,7 @@ public async Task DeleteDatabasesAsync(List dbNames) return await ExecuteClientOperationAsync( async client => { - var status = await client.ServiceClient.deleteStorageGroups(client.SessionId, dbNames); + var status = await client.ServiceClient.deleteStorageGroupsAsync(client.SessionId, dbNames); if (_debugMode) { @@ -643,7 +643,7 @@ public async Task DeleteStorageGroupsAsync(List groupNames) return await ExecuteClientOperationAsync( async client => { - var status = await client.ServiceClient.deleteStorageGroups(client.SessionId, groupNames); + var status = await client.ServiceClient.deleteStorageGroupsAsync(client.SessionId, groupNames); if (_debugMode) { @@ -670,7 +670,7 @@ public async Task CreateMultiTimeSeriesAsync( var req = new TSCreateMultiTimeseriesReq(client.SessionId, tsPathLst, dataTypes, encodings, compressors); - var status = await client.ServiceClient.createMultiTimeseries(req); + var status = await client.ServiceClient.createMultiTimeseriesAsync(req); if (_debugMode) { @@ -687,7 +687,7 @@ public async Task DeleteTimeSeriesAsync(List pathList) return await ExecuteClientOperationAsync( async client => { - var status = await client.ServiceClient.deleteTimeseries(client.SessionId, pathList); + var status = await client.ServiceClient.deleteTimeseriesAsync(client.SessionId, pathList); if (_debugMode) { @@ -727,7 +727,7 @@ public async Task DeleteDataAsync(List tsPathLst, long startTime, l { var req = new TSDeleteDataReq(client.SessionId, tsPathLst, startTime, endTime); - var status = await client.ServiceClient.deleteData(req); + var status = await client.ServiceClient.deleteDataAsync(req); if (_debugMode) { @@ -749,7 +749,7 @@ public async Task InsertRecordAsync(string deviceId, RowRecord record) { var req = new TSInsertRecordReq(client.SessionId, deviceId, record.Measurements, record.ToBytes(), record.Timestamps); - var status = await client.ServiceClient.insertRecord(req); + var status = await client.ServiceClient.insertRecordAsync(req); if (_debugMode) { @@ -771,7 +771,7 @@ public async Task InsertAlignedRecordAsync(string deviceId, RowRecord recor // ASSERT that the insert plan is aligned System.Diagnostics.Debug.Assert(req.IsAligned == true); - var status = await client.ServiceClient.insertRecord(req); + var status = await client.ServiceClient.insertRecordAsync(req); if (_debugMode) { @@ -828,7 +828,7 @@ public async Task InsertStringRecordAsync(string deviceId, List mea { var req = GenInsertStrRecordReq(deviceId, measurements, values, timestamp, client.SessionId); - var status = await client.ServiceClient.insertStringRecord(req); + var status = await client.ServiceClient.insertStringRecordAsync(req); if (_debugMode) { @@ -848,7 +848,7 @@ public async Task InsertAlignedStringRecordAsync(string deviceId, List InsertStringRecordsAsync(List deviceIds, List InsertAlignedStringRecordsAsync(List deviceIds, L { var req = GenInsertStringRecordsReq(deviceIds, measurements, values, timestamps, client.SessionId, true); - var status = await client.ServiceClient.insertStringRecords(req); + var status = await client.ServiceClient.insertStringRecordsAsync(req); if (_debugMode) { @@ -907,7 +907,7 @@ public async Task InsertRecordsAsync(List deviceId, List { var req = GenInsertRecordsReq(deviceId, rowRecords, client.SessionId); - var status = await client.ServiceClient.insertRecords(req); + var status = await client.ServiceClient.insertRecordsAsync(req); if (_debugMode) { @@ -929,7 +929,7 @@ public async Task InsertAlignedRecordsAsync(List deviceId, List InsertTabletAsync(Tablet tablet) { var req = GenInsertTabletReq(tablet, client.SessionId); - var status = await client.ServiceClient.insertTablet(req); + var status = await client.ServiceClient.insertTabletAsync(req); if (_debugMode) { @@ -979,7 +979,7 @@ public async Task InsertAlignedTabletAsync(Tablet tablet) var req = GenInsertTabletReq(tablet, client.SessionId); req.IsAligned = true; - var status = await client.ServiceClient.insertTablet(req); + var status = await client.ServiceClient.insertTabletAsync(req); if (_debugMode) { @@ -1001,7 +1001,7 @@ protected internal async Task InsertRelationalTabletAsync(Tablet tablet) req.ColumnCategories = tablet.GetColumnColumnCategories(); req.WriteToTable = true; - var status = await client.ServiceClient.insertTablet(req); + var status = await client.ServiceClient.insertTabletAsync(req); if (_debugMode) { @@ -1051,7 +1051,7 @@ public async Task InsertTabletsAsync(List tabletLst) { var req = GenInsertTabletsReq(tabletLst, client.SessionId); - var status = await client.ServiceClient.insertTablets(req); + var status = await client.ServiceClient.insertTabletsAsync(req); if (_debugMode) { @@ -1071,7 +1071,7 @@ public async Task InsertAlignedTabletsAsync(List tabletLst) var req = GenInsertTabletsReq(tabletLst, client.SessionId); req.IsAligned = true; - var status = await client.ServiceClient.insertTablets(req); + var status = await client.ServiceClient.insertTabletsAsync(req); if (_debugMode) { @@ -1133,7 +1133,7 @@ public async Task InsertStringRecordsOfOneDeviceSortedAsync(string deviceId var req = GenInsertStringRecordsOfOneDeviceReq(deviceId, timestamps, measurementsList, valuesList, client.SessionId, isAligned); - var status = await client.ServiceClient.insertStringRecordsOfOneDevice(req); + var status = await client.ServiceClient.insertStringRecordsOfOneDeviceAsync(req); if (_debugMode) { @@ -1189,7 +1189,7 @@ public async Task InsertRecordsOfOneDeviceSortedAsync(string deviceId, List var req = GenInsertRecordsOfOneDeviceRequest(deviceId, rowRecords, client.SessionId); - var status = await client.ServiceClient.insertRecordsOfOneDevice(req); + var status = await client.ServiceClient.insertRecordsOfOneDeviceAsync(req); if (_debugMode) { @@ -1216,7 +1216,7 @@ public async Task InsertAlignedRecordsOfOneDeviceSortedAsync(string deviceI var req = GenInsertRecordsOfOneDeviceRequest(deviceId, rowRecords, client.SessionId); req.IsAligned = true; - var status = await client.ServiceClient.insertRecordsOfOneDevice(req); + var status = await client.ServiceClient.insertRecordsOfOneDeviceAsync(req); if (_debugMode) { @@ -1240,7 +1240,7 @@ public async Task TestInsertRecordAsync(string deviceId, RowRecord record) record.ToBytes(), record.Timestamps); - var status = await client.ServiceClient.testInsertRecord(req); + var status = await client.ServiceClient.testInsertRecordAsync(req); if (_debugMode) { @@ -1259,7 +1259,7 @@ public async Task TestInsertRecordsAsync(List deviceId, List TestInsertTabletAsync(Tablet tablet) { var req = GenInsertTabletReq(tablet, client.SessionId); - var status = await client.ServiceClient.testInsertTablet(req); + var status = await client.ServiceClient.testInsertTabletAsync(req); if (_debugMode) { @@ -1297,7 +1297,7 @@ public async Task TestInsertTabletsAsync(List tabletLst) { var req = GenInsertTabletsReq(tabletLst, client.SessionId); - var status = await client.ServiceClient.testInsertTablets(req); + var status = await client.ServiceClient.testInsertTabletsAsync(req); if (_debugMode) { @@ -1391,7 +1391,7 @@ public async Task ExecuteNonQueryStatementAsync(string sql) String previousDB = _database; var req = new TSExecuteStatementReq(client.SessionId, sql, client.StatementId); - var resp = await client.ServiceClient.executeUpdateStatement(req); + var resp = await client.ServiceClient.executeUpdateStatementAsync(req); var status = resp.Status; if (resp.__isset.database) @@ -1408,7 +1408,7 @@ public async Task ExecuteNonQueryStatementAsync(string sql) if (c != client) { var switchReq = new TSExecuteStatementReq(c.SessionId, sql, c.StatementId); - await c.ServiceClient.executeUpdateStatement(switchReq); + await c.ServiceClient.executeUpdateStatementAsync(switchReq); } } catch (Exception e) @@ -1501,7 +1501,7 @@ public async Task CreateSchemaTemplateAsync(Template template) { var req = new TSCreateSchemaTemplateReq(client.SessionId, template.Name, template.ToBytes()); - var status = await client.ServiceClient.createSchemaTemplate(req); + var status = await client.ServiceClient.createSchemaTemplateAsync(req); if (_debugMode) { @@ -1522,7 +1522,7 @@ public async Task DropSchemaTemplateAsync(string templateName) { var req = new TSDropSchemaTemplateReq(client.SessionId, templateName); - var status = await client.ServiceClient.dropSchemaTemplate(req); + var status = await client.ServiceClient.dropSchemaTemplateAsync(req); if (_debugMode) { @@ -1542,7 +1542,7 @@ public async Task SetSchemaTemplateAsync(string templateName, string prefix { var req = new TSSetSchemaTemplateReq(client.SessionId, templateName, prefixPath); - var status = await client.ServiceClient.setSchemaTemplate(req); + var status = await client.ServiceClient.setSchemaTemplateAsync(req); if (_debugMode) { @@ -1562,7 +1562,7 @@ public async Task UnsetSchemaTemplateAsync(string prefixPath, string templa { var req = new TSUnsetSchemaTemplateReq(client.SessionId, prefixPath, templateName); - var status = await client.ServiceClient.unsetSchemaTemplate(req); + var status = await client.ServiceClient.unsetSchemaTemplateAsync(req); if (_debugMode) { @@ -1582,7 +1582,7 @@ public async Task DeleteNodeInTemplateAsync(string templateName, string pat { var req = new TSPruneSchemaTemplateReq(client.SessionId, templateName, path); - var status = await client.ServiceClient.pruneSchemaTemplate(req); + var status = await client.ServiceClient.pruneSchemaTemplateAsync(req); if (_debugMode) { @@ -1602,7 +1602,7 @@ public async Task CountMeasurementsInTemplateAsync(string name) { var req = new TSQueryTemplateReq(client.SessionId, name, (int)TemplateQueryType.COUNT_MEASUREMENTS); - var resp = await client.ServiceClient.querySchemaTemplate(req); + var resp = await client.ServiceClient.querySchemaTemplateAsync(req); var status = resp.Status; if (_debugMode) @@ -1628,7 +1628,7 @@ public async Task IsMeasurementInTemplateAsync(string templateName, string var req = new TSQueryTemplateReq(client.SessionId, templateName, (int)TemplateQueryType.IS_MEASUREMENT); req.Measurement = path; - var resp = await client.ServiceClient.querySchemaTemplate(req); + var resp = await client.ServiceClient.querySchemaTemplateAsync(req); var status = resp.Status; if (_debugMode) @@ -1654,7 +1654,7 @@ public async Task IsPathExistInTemplateAsync(string templateName, string p var req = new TSQueryTemplateReq(client.SessionId, templateName, (int)TemplateQueryType.PATH_EXIST); req.Measurement = path; - var resp = await client.ServiceClient.querySchemaTemplate(req); + var resp = await client.ServiceClient.querySchemaTemplateAsync(req); var status = resp.Status; if (_debugMode) @@ -1680,7 +1680,7 @@ public async Task> ShowMeasurementsInTemplateAsync(string templateN var req = new TSQueryTemplateReq(client.SessionId, templateName, (int)TemplateQueryType.SHOW_MEASUREMENTS); req.Measurement = pattern; - var resp = await client.ServiceClient.querySchemaTemplate(req); + var resp = await client.ServiceClient.querySchemaTemplateAsync(req); var status = resp.Status; if (_debugMode) @@ -1705,7 +1705,7 @@ public async Task> ShowAllTemplatesAsync() { var req = new TSQueryTemplateReq(client.SessionId, "", (int)TemplateQueryType.SHOW_TEMPLATES); - var resp = await client.ServiceClient.querySchemaTemplate(req); + var resp = await client.ServiceClient.querySchemaTemplateAsync(req); var status = resp.Status; if (_debugMode) @@ -1731,7 +1731,7 @@ public async Task> ShowPathsTemplateSetOnAsync(string templateName) { var req = new TSQueryTemplateReq(client.SessionId, templateName, (int)TemplateQueryType.SHOW_SET_TEMPLATES); - var resp = await client.ServiceClient.querySchemaTemplate(req); + var resp = await client.ServiceClient.querySchemaTemplateAsync(req); var status = resp.Status; if (_debugMode) @@ -1756,7 +1756,7 @@ public async Task> ShowPathsTemplateUsingOnAsync(string templateNam { var req = new TSQueryTemplateReq(client.SessionId, templateName, (int)TemplateQueryType.SHOW_USING_TEMPLATES); - var resp = await client.ServiceClient.querySchemaTemplate(req); + var resp = await client.ServiceClient.querySchemaTemplateAsync(req); var status = resp.Status; if (_debugMode) From 9f53e360a8f95d165b7e5af0884a34c2a449d0bb Mon Sep 17 00:00:00 2001 From: lausannel <513964121@qq.com> Date: Sun, 24 Aug 2025 18:47:55 +0100 Subject: [PATCH 05/14] fix samples and other compilation error --- src/Apache.IoTDB.Data/IoTDBDataReader.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Apache.IoTDB.Data/IoTDBDataReader.cs b/src/Apache.IoTDB.Data/IoTDBDataReader.cs index fa01449..8f96841 100644 --- a/src/Apache.IoTDB.Data/IoTDBDataReader.cs +++ b/src/Apache.IoTDB.Data/IoTDBDataReader.cs @@ -137,9 +137,9 @@ public override bool Read() { throw new InvalidOperationException($"DataReaderClosed{nameof(Read)}"); } - if (_dataSet.Next()) + if (_dataSet.HasNext()) { - rowdata = _dataSet.GetRow(); + rowdata = _dataSet.Next(); } else { @@ -455,7 +455,7 @@ public override int GetValues(object[] values) /// A System.Data.DataTable that describes the column metadata. public override DataTable GetSchemaTable() { - if (_dataSet.Next()) + if (_dataSet.HasNext()) { rowdata = _dataSet.Next(); } From 00158d01380d25f52079d4994b3143bdb91c3b7b Mon Sep 17 00:00:00 2001 From: lausannel <513964121@qq.com> Date: Sun, 24 Aug 2025 18:55:12 +0100 Subject: [PATCH 06/14] fix samples build error --- .../SessionPoolTest.AlignedRecord.cs | 13 ++++++---- .../SessionPoolTest.AlignedTablet.cs | 6 +++-- .../SessionPoolTest.Record.cs | 25 +++++++++++-------- .../SessionPoolTest.Tablet.cs | 14 ++++++----- .../SessionPoolTest.TestNetwork.cs | 9 ++++--- .../Apache.IoTDB.Samples/SessionPoolTest.cs | 6 +++-- .../TableSessionPoolTest.cs | 14 +++++------ 7 files changed, 52 insertions(+), 35 deletions(-) diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedRecord.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedRecord.cs index ecad735..c7b622e 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedRecord.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedRecord.cs @@ -98,9 +98,10 @@ public async Task TestInsertAlignedStringRecord() Console.WriteLine(string.Format("total insert aligned string record time is {0}", end_ms - start_ms)); var res = await session_pool.ExecuteQueryStatementAsync("select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); var res_cnt = 0; - while (res.Next()) + while (res.HasNext()) { res_cnt++; + res.Next(); } Console.WriteLine(res_cnt + " " + fetchSize * processedSize); System.Diagnostics.Debug.Assert(res_cnt == fetchSize * processedSize); @@ -215,7 +216,7 @@ public async Task TestInsertAlignedRecords() res.ShowTableNames(); var record_count = fetchSize * processedSize; var res_count = 0; - while (res.Next()) + while (res.HasNext()) { res_count += 1; Console.WriteLine(res.Next()); @@ -297,7 +298,7 @@ public async Task TestInsertAlignedStringRecords() "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); res.ShowTableNames(); var res_count = 0; - while (res.Next()) + while (res.HasNext()) { Console.WriteLine(res.Next()); res_count += 1; @@ -406,9 +407,10 @@ public async Task TestInsertAlignedRecordsOfOneDevice() res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); var res_count = 0; - while (res.Next()) + while (res.HasNext()) { res_count += 1; + res.Next(); } await res.Close(); @@ -478,9 +480,10 @@ public async Task TestInsertAlignedStringRecordsOfOneDevice() res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); var res_count = 0; - while (res.Next()) + while (res.HasNext()) { res_count += 1; + res.Next(); } await res.Close(); diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedTablet.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedTablet.cs index 1b80b09..dbc11b4 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedTablet.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedTablet.cs @@ -83,9 +83,10 @@ public async Task TestInsertAlignedTablet() "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); res.ShowTableNames(); var res_count = 0; - while (res.Next()) + while (res.HasNext()) { res_count += 1; + res.Next(); } await res.Close(); @@ -174,9 +175,10 @@ public async Task TestInsertAlignedTablets() "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevices[1])); res.ShowTableNames(); var res_count = 0; - while (res.Next()) + while (res.HasNext()) { res_count += 1; + res.Next(); } await res.Close(); diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.Record.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.Record.cs index 544692a..9fdf4d4 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.Record.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.Record.cs @@ -111,9 +111,10 @@ public async Task TestInsertStringRecord() Console.WriteLine(string.Format("total insert string record time is {0}", end_ms - start_ms)); var res = await session_pool.ExecuteQueryStatementAsync("select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); var res_cnt = 0; - while (res.Next()) + while (res.HasNext()) { res_cnt++; + res.Next(); } Console.WriteLine(res_cnt + " " + fetchSize * processedSize); System.Diagnostics.Debug.Assert(res_cnt == fetchSize * processedSize); @@ -169,9 +170,10 @@ public async Task TestInsertStrRecord() res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); var res_count = 0; - while (res.Next()) + while (res.HasNext()) { res_count += 1; + res.Next(); } await res.Close(); @@ -283,9 +285,10 @@ public async Task TestInsertRecords() res.ShowTableNames(); var res_count = 0; - while (res.Next()) + while (res.HasNext()) { res_count += 1; + res.Next(); } await res.Close(); @@ -297,9 +300,9 @@ public async Task TestInsertRecords() res = await session_pool.ExecuteQueryStatementAsync(sql); res.ShowTableNames(); RowRecord row = null; - while (res.Next()) + while (res.HasNext()) { - row = res.GetRow(); + row = res.Next(); break; } @@ -380,7 +383,7 @@ public async Task TestInsertStringRecords() res.ShowTableNames(); var record_count = fetchSize * processedSize; var res_count = 0; - while (res.Next()) + while (res.HasNext()) { Console.WriteLine(res.Next()); res_count += 1; @@ -485,9 +488,10 @@ public async Task TestInsertRecordsOfOneDevice() res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); var res_count = 0; - while (res.Next()) + while (res.HasNext()) { res_count += 1; + res.Next(); } await res.Close(); @@ -563,9 +567,10 @@ public async Task TestInsertStringRecordsOfOneDevice() res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); var res_count = 0; - while (res.Next()) + while (res.HasNext()) { res_count += 1; + res.Next(); } await res.Close(); @@ -643,9 +648,9 @@ public async Task TestInsertRecordsWithAllType() "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); res.ShowTableNames(); var res_count = 0; - while (res.Next()) + while (res.HasNext()) { - Console.WriteLine(res.GetRow()); + Console.WriteLine(res.Next()); res_count += 1; } diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.Tablet.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.Tablet.cs index d4739c2..ee5f769 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.Tablet.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.Tablet.cs @@ -83,9 +83,10 @@ public async Task TestInsertTablet() "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); res.ShowTableNames(); var res_count = 0; - while (res.Next()) + while (res.HasNext()) { res_count += 1; + res.Next(); } await res.Close(); @@ -175,9 +176,10 @@ public async Task TestInsertTablets() "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevices[1])); res.ShowTableNames(); var res_count = 0; - while (res.Next()) + while (res.HasNext()) { res_count += 1; + res.Next(); } await res.Close(); @@ -213,9 +215,9 @@ public async Task TestInsertTabletWithNullValue() "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); res.ShowTableNames(); var res_count = 0; - while (res.Next()) + while (res.HasNext()) { - Console.WriteLine(res.GetRow()); + Console.WriteLine(res.Next()); res_count += 1; } @@ -276,9 +278,9 @@ public async Task TestInsertTabletWithAllType() "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); res.ShowTableNames(); var res_count = 0; - while (res.Next()) + while (res.HasNext()) { - Console.WriteLine(res.GetRow()); + Console.WriteLine(res.Next()); res_count += 1; } diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.TestNetwork.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.TestNetwork.cs index 56b66ca..6bfeea6 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.TestNetwork.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.TestNetwork.cs @@ -171,9 +171,10 @@ public async Task TestTestInsertRecords() res.ShowTableNames(); var record_count = fetchSize * processedSize; var res_count = 0; - while (res.Next()) + while (res.HasNext()) { res_count += 1; + res.Next(); } await res.Close(); @@ -240,9 +241,10 @@ public async Task TestTestInsertTablet() "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice)); res.ShowTableNames(); var res_count = 0; - while (res.Next()) + while (res.HasNext()) { res_count += 1; + res.Next(); } await res.Close(); @@ -331,9 +333,10 @@ public async Task TestTestInsertTablets() "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevices[1])); res.ShowTableNames(); var res_count = 0; - while (res.Next()) + while (res.HasNext()) { res_count += 1; + res.Next(); } await res.Close(); diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.cs index 5783268..ef8324c 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.cs @@ -512,9 +512,10 @@ public async Task TestRawDataQuery() var res = await session_pool.ExecuteRawDataQuery(paths, 10, fetchSize * processedSize); var count = 0; - while (res.Next()) + while (res.HasNext()) { count++; + res.Next(); } Console.WriteLine(count + " " + (fetchSize * processedSize - 10)); System.Diagnostics.Debug.Assert(count == fetchSize * processedSize - 10); @@ -558,9 +559,10 @@ public async Task TestLastDataQuery() var res = await session_pool.ExecuteLastDataQueryAsync(paths, fetchSize * processedSize - 10); var count = 0; - while (res.Next()) + while (res.HasNext()) { Console.WriteLine(count); + res.Next(); count++; } Console.WriteLine(count + " " + (fetchSize * processedSize - 10)); diff --git a/samples/Apache.IoTDB.Samples/TableSessionPoolTest.cs b/samples/Apache.IoTDB.Samples/TableSessionPoolTest.cs index 97ae404..cebcd2f 100644 --- a/samples/Apache.IoTDB.Samples/TableSessionPoolTest.cs +++ b/samples/Apache.IoTDB.Samples/TableSessionPoolTest.cs @@ -73,14 +73,14 @@ await tableSessionPool.ExecuteNonQueryStatementAsync( // show tables from current database var res = await tableSessionPool.ExecuteQueryStatementAsync("SHOW TABLES"); res.ShowTableNames(); - while (res.Next()) Console.WriteLine(res.GetRow()); + while (res.HasNext()) Console.WriteLine(res.Next()); await res.Close(); // show tables by specifying another database // using SHOW tables FROM res = await tableSessionPool.ExecuteQueryStatementAsync("SHOW TABLES FROM test1"); res.ShowTableNames(); - while (res.Next()) Console.WriteLine(res.GetRow()); + while (res.HasNext()) Console.WriteLine(res.Next()); await res.Close(); var tableName = "testTable1"; @@ -123,7 +123,7 @@ await tableSessionPool.ExecuteNonQueryStatementAsync( res = await tableSessionPool.ExecuteQueryStatementAsync("select * from testTable1 " + "where region_id = '1' and plant_id in ('3', '5') and device_id = '3'"); res.ShowTableNames(); - while (res.Next()) Console.WriteLine(res.GetRow()); + while (res.HasNext()) Console.WriteLine(res.Next()); await res.Close(); await tableSessionPool.Close(); @@ -148,7 +148,7 @@ public async Task TestUseDatabase() // show tables from current database var res = await tableSessionPool.ExecuteQueryStatementAsync("SHOW TABLES"); res.ShowTableNames(); - while (res.Next()) Console.WriteLine(res.GetRow()); + while (res.HasNext()) Console.WriteLine(res.Next()); await res.Close(); await tableSessionPool.ExecuteNonQueryStatementAsync("use test2"); @@ -156,7 +156,7 @@ public async Task TestUseDatabase() // show tables from current database res = await tableSessionPool.ExecuteQueryStatementAsync("SHOW TABLES"); res.ShowTableNames(); - while (res.Next()) Console.WriteLine(res.GetRow()); + while (res.HasNext()) Console.WriteLine(res.Next()); await res.Close(); await tableSessionPool.Close(); @@ -225,9 +225,9 @@ await tableSessionPool.ExecuteNonQueryStatementAsync( var res = await tableSessionPool.ExecuteQueryStatementAsync("select count(*) from " + tableName + " where f1 is null"); - while (res.Next()) + while (res.HasNext()) { - var row = res.GetRow(); + var row = res.Next(); Console.WriteLine(row); var value = row.Values[0]; if (value is long longValue) From d0470ba91a25b7d6603cbaffd06847112a6d7139 Mon Sep 17 00:00:00 2001 From: lausannel <513964121@qq.com> Date: Sun, 24 Aug 2025 18:57:23 +0100 Subject: [PATCH 07/14] format code --- src/Apache.IoTDB/DataStructure/SessionDataSet.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Apache.IoTDB/DataStructure/SessionDataSet.cs b/src/Apache.IoTDB/DataStructure/SessionDataSet.cs index 02c8aea..3d08843 100644 --- a/src/Apache.IoTDB/DataStructure/SessionDataSet.cs +++ b/src/Apache.IoTDB/DataStructure/SessionDataSet.cs @@ -61,7 +61,7 @@ public SessionDataSet( _columnTypeLst = ColumnTypeList; _zoneId = zoneId; _clientQueue = clientQueue; - + _rpcDataSet = new RpcDataSet( _sql, _columnNames, _columnTypeLst, _columnNameIndexMap, IgnoreTimeStamp, MoreData, _queryId, _statementId, _client, _client.SessionId, QueryResult, FetchSize, From 792a6359ecccd90e485300362a00bd73f1d3abd1 Mon Sep 17 00:00:00 2001 From: lausannel <513964121@qq.com> Date: Sun, 24 Aug 2025 19:08:01 +0100 Subject: [PATCH 08/14] remove unused UtilsTest and Tests files; add UtilsTests in NUnit for endpoint parsing and utility functions --- samples/Apache.IoTDB.Samples/Program.cs | 3 - samples/Apache.IoTDB.Samples/UtilsTest.cs | 184 --------------- tests/Apache.IoTDB.Tests/Tests.cs | 37 --- tests/Apache.IoTDB.Tests/UtilsTests.cs | 266 ++++++++++++++++++++++ 4 files changed, 266 insertions(+), 224 deletions(-) delete mode 100644 samples/Apache.IoTDB.Samples/UtilsTest.cs delete mode 100644 tests/Apache.IoTDB.Tests/Tests.cs create mode 100644 tests/Apache.IoTDB.Tests/UtilsTests.cs diff --git a/samples/Apache.IoTDB.Samples/Program.cs b/samples/Apache.IoTDB.Samples/Program.cs index 3bdc715..29d3d45 100644 --- a/samples/Apache.IoTDB.Samples/Program.cs +++ b/samples/Apache.IoTDB.Samples/Program.cs @@ -50,9 +50,6 @@ public static async Task Main(string[] args) rootCommand.SetHandler(async (string single, List multi) => { - var utilsTest = new UtilsTest(); - utilsTest.TestParseEndPoint(); - SessionPoolTest sessionPoolTest; if (!string.IsNullOrEmpty(single) && (multi == null || multi.Count == 0)) diff --git a/samples/Apache.IoTDB.Samples/UtilsTest.cs b/samples/Apache.IoTDB.Samples/UtilsTest.cs deleted file mode 100644 index af3a46f..0000000 --- a/samples/Apache.IoTDB.Samples/UtilsTest.cs +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using Apache.IoTDB.DataStructure; - -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."); - } - - static public void PrintDataSetByType(SessionDataSet sessionDataSet) - { - IReadOnlyList columns = sessionDataSet.GetColumnNames(); - - foreach (string columnName in columns) - { - Console.Write($"{columnName}\t"); - } - Console.WriteLine(); - - while (sessionDataSet.HasNext()) - { - for (int i = 0; i < columns.Count; i++) - { - string columnName = columns[i]; - string typeStr = sessionDataSet.GetColumnTypes()[i]; - TSDataType dataType = Client.GetDataTypeByStr(typeStr); - - switch (dataType) - { - case TSDataType.BOOLEAN: - bool boolValue = sessionDataSet.GetBoolean(columnName); - Console.Write(boolValue); - break; - case TSDataType.INT32: - int intValue = sessionDataSet.GetInt(columnName); - Console.Write(intValue); - break; - case TSDataType.INT64: - case TSDataType.TIMESTAMP: - long longValue = sessionDataSet.GetLong(columnName); - Console.Write(longValue); - break; - case TSDataType.FLOAT: - float floatValue = sessionDataSet.GetFloat(columnName); - Console.Write(floatValue); - break; - case TSDataType.DOUBLE: - double doubleValue = sessionDataSet.GetDouble(columnName); - Console.Write(doubleValue); - break; - case TSDataType.TEXT: - case TSDataType.STRING: - case TSDataType.BLOB: - case TSDataType.DATE: - string stringValue = sessionDataSet.GetString(columnName); - Console.Write(stringValue); - break; - default: - break; - } - Console.Write("\t\t"); - } - Console.WriteLine(); - } - } - - static public void PrintDataSetByObject(SessionDataSet sessionDataSet) - { - IReadOnlyList columns = sessionDataSet.GetColumnNames(); - - foreach (string columnName in columns) - { - Console.Write($"{columnName}\t"); - } - Console.WriteLine(); - - while (sessionDataSet.HasNext()) - { - for (int i = 0; i < columns.Count; i++) - { - string columnName = columns[i]; - Console.Write(sessionDataSet.GetObject(columnName)); - Console.Write("\t\t"); - } - Console.WriteLine(); - } - } - - static public void PrintDataSetByString(SessionDataSet sessionDataSet) - { - IReadOnlyList columns = sessionDataSet.GetColumnNames(); - - foreach (string columnName in columns) - { - Console.Write($"{columnName}\t"); - } - Console.WriteLine(); - - while (sessionDataSet.HasNext()) - { - for (int i = 0; i < columns.Count; i++) - { - string columnName = columns[i]; - Console.Write(sessionDataSet.GetString(columnName)); - Console.Write("\t\t"); - } - Console.WriteLine(); - } - } - } -} diff --git a/tests/Apache.IoTDB.Tests/Tests.cs b/tests/Apache.IoTDB.Tests/Tests.cs deleted file mode 100644 index d796fa7..0000000 --- a/tests/Apache.IoTDB.Tests/Tests.cs +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -using NUnit.Framework; - -namespace Apache.IoTDB.Tests -{ - public class Tests - { - [SetUp] - public void Setup() - { - } - - [Test] - public void Test1() - { - Assert.Pass(); - } - } -} diff --git a/tests/Apache.IoTDB.Tests/UtilsTests.cs b/tests/Apache.IoTDB.Tests/UtilsTests.cs new file mode 100644 index 0000000..da4f424 --- /dev/null +++ b/tests/Apache.IoTDB.Tests/UtilsTests.cs @@ -0,0 +1,266 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; +using System.Collections.Generic; +using NUnit.Framework; + +namespace Apache.IoTDB.Tests +{ + [TestFixture] + public class UtilsTests + { + private Utils _utils; + + [SetUp] + public void Setup() + { + _utils = new Utils(); + } + + [TestFixture] + public class ParseTEndPointIpv4AndIpv6UrlTests : UtilsTests + { + [Test] + public void ParseTEndPointIpv4AndIpv6Url_ValidIPv4Address_ReturnsCorrectEndpoint() + { + // Arrange + string correctEndpointIPv4 = "192.168.1.1:8080"; + + // Act + var endpoint = _utils.ParseTEndPointIpv4AndIpv6Url(correctEndpointIPv4); + + // Assert + Assert.That(endpoint.Ip, Is.EqualTo("192.168.1.1"), "IPv4 address mismatch."); + Assert.That(endpoint.Port, Is.EqualTo(8080), "IPv4 port mismatch."); + } + + [Test] + public void ParseTEndPointIpv4AndIpv6Url_ValidIPv6Address_ReturnsCorrectEndpoint() + { + // Arrange + string correctEndpointIPv6 = "[2001:db8:85a3::8a2e:370:7334]:443"; + + // Act + var endpoint = _utils.ParseTEndPointIpv4AndIpv6Url(correctEndpointIPv6); + + // Assert + Assert.That(endpoint.Ip, Is.EqualTo("2001:db8:85a3::8a2e:370:7334"), "IPv6 address mismatch."); + Assert.That(endpoint.Port, Is.EqualTo(443), "IPv6 port mismatch."); + } + + [Test] + public void ParseTEndPointIpv4AndIpv6Url_NoPort_ReturnsEmptyEndpoint() + { + // Arrange + string noPort = "192.168.1.1"; + + // Act + var endpoint = _utils.ParseTEndPointIpv4AndIpv6Url(noPort); + + // Assert + Assert.That(string.IsNullOrEmpty(endpoint.Ip) && endpoint.Port == 0, + Is.True, "Failed to handle missing port."); + } + + [Test] + public void ParseTEndPointIpv4AndIpv6Url_EmptyInput_ReturnsEmptyEndpoint() + { + // Arrange + string emptyInput = ""; + + // Act + var endpoint = _utils.ParseTEndPointIpv4AndIpv6Url(emptyInput); + + // Assert + Assert.That(string.IsNullOrEmpty(endpoint.Ip) && endpoint.Port == 0, + Is.True, "Failed to handle empty input."); + } + + [Test] + public void ParseTEndPointIpv4AndIpv6Url_InvalidPortFormat_ThrowsFormatException() + { + // Arrange + string invalidFormat = "192.168.1.1:port"; + + // Act & Assert + Assert.Throws(() => _utils.ParseTEndPointIpv4AndIpv6Url(invalidFormat), + "Should have thrown an exception due to invalid port."); + } + } + + [TestFixture] + public class ParseSeedNodeUrlsTests : UtilsTests + { + [Test] + public void ParseSeedNodeUrls_ValidUrls_ReturnsCorrectEndpoints() + { + // Arrange + var urls = new List { "192.168.1.1:8080", "[2001:db8::1]:443" }; + + // Act + var endpoints = _utils.ParseSeedNodeUrls(urls); + + // Assert + Assert.That(endpoints, Has.Count.EqualTo(2)); + Assert.That(endpoints[0].Ip, Is.EqualTo("192.168.1.1")); + Assert.That(endpoints[0].Port, Is.EqualTo(8080)); + Assert.That(endpoints[1].Ip, Is.EqualTo("2001:db8::1")); + Assert.That(endpoints[1].Port, Is.EqualTo(443)); + } + + [Test] + public void ParseSeedNodeUrls_NullInput_ThrowsArgumentException() + { + // Act & Assert + Assert.Throws(() => _utils.ParseSeedNodeUrls(null), + "Should throw ArgumentException for null input."); + } + + [Test] + public void ParseSeedNodeUrls_EmptyList_ThrowsArgumentException() + { + // Arrange + var emptyList = new List(); + + // Act & Assert + Assert.Throws(() => _utils.ParseSeedNodeUrls(emptyList), + "Should throw ArgumentException for empty list."); + } + } + + [TestFixture] + public class IsSortedTests : UtilsTests + { + [Test] + public void IsSorted_SortedList_ReturnsTrue() + { + // Arrange + var sortedList = new List { 1, 2, 3, 4, 5 }; + + // Act + var result = _utils.IsSorted(sortedList); + + // Assert + Assert.That(result, Is.True, "Should return true for sorted list."); + } + + [Test] + public void IsSorted_UnsortedList_ReturnsFalse() + { + // Arrange + var unsortedList = new List { 1, 3, 2, 4, 5 }; + + // Act + var result = _utils.IsSorted(unsortedList); + + // Assert + Assert.That(result, Is.False, "Should return false for unsorted list."); + } + + [Test] + public void IsSorted_EmptyList_ReturnsTrue() + { + // Arrange + var emptyList = new List(); + + // Act + var result = _utils.IsSorted(emptyList); + + // Assert + Assert.That(result, Is.True, "Should return true for empty list."); + } + + [Test] + public void IsSorted_SingleElementList_ReturnsTrue() + { + // Arrange + var singleElementList = new List { 42 }; + + // Act + var result = _utils.IsSorted(singleElementList); + + // Assert + Assert.That(result, Is.True, "Should return true for single element list."); + } + } + + [TestFixture] + public class DateUtilsTests : UtilsTests + { + [Test] + public void ParseIntToDate_ValidDate_ReturnsCorrectDateTime() + { + // Arrange + int dateInt = 20231225; + + // Act + var result = Utils.ParseIntToDate(dateInt); + + // Assert + Assert.That(result.Year, Is.EqualTo(2023)); + Assert.That(result.Month, Is.EqualTo(12)); + Assert.That(result.Day, Is.EqualTo(25)); + } + + [Test] + public void ParseIntToDate_InvalidDate_ThrowsArgumentException() + { + // Arrange + int invalidDate = 123; + + // Act & Assert + Assert.Throws(() => Utils.ParseIntToDate(invalidDate), + "Should throw ArgumentException for invalid date."); + } + + [Test] + public void ParseDateToInt_ValidDateTime_ReturnsCorrectInt() + { + // Arrange + var dateTime = new DateTime(2023, 12, 25); + + // Act + var result = Utils.ParseDateToInt(dateTime); + + // Assert + Assert.That(result, Is.EqualTo(20231225)); + } + + [Test] + public void ParseDateToInt_NullDateTime_ThrowsArgumentException() + { + // Act & Assert + Assert.Throws(() => Utils.ParseDateToInt(null), + "Should throw ArgumentException for null DateTime."); + } + + [Test] + public void ParseDateToInt_YearLessThan1000_ThrowsArgumentException() + { + // Arrange + var dateTime = new DateTime(999, 12, 25); + + // Act & Assert + Assert.Throws(() => Utils.ParseDateToInt(dateTime), + "Should throw ArgumentException for year less than 1000."); + } + } + } +} From d3c43d79d0f864fc72ecad75a45bce844eb39735 Mon Sep 17 00:00:00 2001 From: lausannel <513964121@qq.com> Date: Sun, 24 Aug 2025 19:10:51 +0100 Subject: [PATCH 09/14] format and add restore before format --- .pre-commit-config.yaml | 2 +- tests/Apache.IoTDB.Tests/UtilsTests.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 630051f..36009f6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: hooks: - id: dotnet-format name: dotnet format - entry: dotnet format --include + entry: bash -lc "dotnet restore && dotnet format --include --no-restore" language: system pass_filenames: true files: '\.(cs|vb|fs|sln|csproj|fsproj)$' diff --git a/tests/Apache.IoTDB.Tests/UtilsTests.cs b/tests/Apache.IoTDB.Tests/UtilsTests.cs index da4f424..8efe423 100644 --- a/tests/Apache.IoTDB.Tests/UtilsTests.cs +++ b/tests/Apache.IoTDB.Tests/UtilsTests.cs @@ -75,7 +75,7 @@ public void ParseTEndPointIpv4AndIpv6Url_NoPort_ReturnsEmptyEndpoint() var endpoint = _utils.ParseTEndPointIpv4AndIpv6Url(noPort); // Assert - Assert.That(string.IsNullOrEmpty(endpoint.Ip) && endpoint.Port == 0, + Assert.That(string.IsNullOrEmpty(endpoint.Ip) && endpoint.Port == 0, Is.True, "Failed to handle missing port."); } @@ -89,7 +89,7 @@ public void ParseTEndPointIpv4AndIpv6Url_EmptyInput_ReturnsEmptyEndpoint() var endpoint = _utils.ParseTEndPointIpv4AndIpv6Url(emptyInput); // Assert - Assert.That(string.IsNullOrEmpty(endpoint.Ip) && endpoint.Port == 0, + Assert.That(string.IsNullOrEmpty(endpoint.Ip) && endpoint.Port == 0, Is.True, "Failed to handle empty input."); } From c2548001c7685e048050c981060a57dd6adf7608 Mon Sep 17 00:00:00 2001 From: lausannel <513964121@qq.com> Date: Sun, 24 Aug 2025 19:14:21 +0100 Subject: [PATCH 10/14] fix compilation error --- .../SessionPoolTest.Utils.cs | 54 +++++++++++++++++++ .../Apache.IoTDB.Samples/SessionPoolTest.cs | 16 +++--- 2 files changed, 62 insertions(+), 8 deletions(-) create mode 100644 samples/Apache.IoTDB.Samples/SessionPoolTest.Utils.cs diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.Utils.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.Utils.cs new file mode 100644 index 0000000..2ca9a19 --- /dev/null +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.Utils.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using Apache.IoTDB.DataStructure; + +namespace Apache.IoTDB.Samples +{ + public partial class SessionPoolTest + { + public static void PrintDataSetByObject(SessionDataSet sessionDataSet) + { + IReadOnlyList columns = sessionDataSet.GetColumnNames(); + + foreach (string columnName in columns) + { + Console.Write($"{columnName}\t"); + } + Console.WriteLine(); + + while (sessionDataSet.HasNext()) + { + for (int i = 0; i < columns.Count; i++) + { + string columnName = columns[i]; + Console.Write(sessionDataSet.GetObject(columnName)); + Console.Write("\t\t"); + } + Console.WriteLine(); + } + } + + public static void PrintDataSetByString(SessionDataSet sessionDataSet) + { + IReadOnlyList columns = sessionDataSet.GetColumnNames(); + + foreach (string columnName in columns) + { + Console.Write($"{columnName}\t"); + } + Console.WriteLine(); + + while (sessionDataSet.HasNext()) + { + for (int i = 0; i < columns.Count; i++) + { + string columnName = columns[i]; + Console.Write(sessionDataSet.GetString(columnName)); + Console.Write("\t\t"); + } + Console.WriteLine(); + } + } + + } +} \ No newline at end of file diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.cs index ef8324c..c561c96 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.cs @@ -324,7 +324,7 @@ public async Task TestDeleteData() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); var ts_path_lst = new List() @@ -335,7 +335,7 @@ public async Task TestDeleteData() await session_pool.DeleteDataAsync(ts_path_lst, 2, 3); res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); status = await session_pool.DeleteDatabaseAsync(testDatabaseName); @@ -373,7 +373,7 @@ await session_pool.ExecuteNonQueryStatementAsync( var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); status = await session_pool.DeleteDatabaseAsync(testDatabaseName); @@ -450,28 +450,28 @@ await session_pool.ExecuteNonQueryStatementAsync( "insert into " + string.Format("{0}.{1}", testDatabaseName, testDevice) + "(timestamp, status, hardware) VALUES (7, true,'lz')"); var res = await session_pool.ExecuteQueryStatementAsync("show timeseries root"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); Console.WriteLine("SHOW TIMESERIES ROOT sql passed!"); res = await session_pool.ExecuteQueryStatementAsync("show devices"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); Console.WriteLine("SHOW DEVICES sql passed!"); res = await session_pool.ExecuteQueryStatementAsync($"COUNT TIMESERIES {testDatabaseName}"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); Console.WriteLine("COUNT TIMESERIES root sql Passed"); res = await session_pool.ExecuteQueryStatementAsync("select * from root.ln.wf01 where time<10"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); Console.WriteLine("SELECT sql Passed"); res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); status = await session_pool.DeleteDatabaseAsync(testDatabaseName); From 46edf7a0480629b46e92e3a73a9d8c8ddf25faee Mon Sep 17 00:00:00 2001 From: lausannel <513964121@qq.com> Date: Sun, 24 Aug 2025 19:18:38 +0100 Subject: [PATCH 11/14] fix compilation error --- .../SessionPoolTest.AlignedRecord.cs | 8 +++---- .../SessionPoolTest.AlignedTablet.cs | 4 ++-- .../SessionPoolTest.Record.cs | 10 ++++---- .../SessionPoolTest.Tablet.cs | 4 ++-- .../SessionPoolTest.TestNetwork.cs | 6 ++--- .../SessionPoolTest.Utils.cs | 23 +++++++++++++++++-- 6 files changed, 37 insertions(+), 18 deletions(-) diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedRecord.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedRecord.cs index c7b622e..3126d1f 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedRecord.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedRecord.cs @@ -185,7 +185,7 @@ public async Task TestInsertAlignedRecords() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); Console.WriteLine(rowRecords); System.Diagnostics.Debug.Assert(true); @@ -267,7 +267,7 @@ public async Task TestInsertAlignedStringRecords() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); @@ -387,7 +387,7 @@ public async Task TestInsertAlignedRecordsOfOneDevice() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); rowRecords = new List() { }; @@ -454,7 +454,7 @@ public async Task TestInsertAlignedStringRecordsOfOneDevice() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); // large data test diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedTablet.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedTablet.cs index dbc11b4..0229cf8 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedTablet.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.AlignedTablet.cs @@ -54,7 +54,7 @@ public async Task TestInsertAlignedTablet() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<15"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); // large data test @@ -148,7 +148,7 @@ public async Task TestInsertAlignedTablets() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevices[1]) + " where time<15"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); // large data test var tasks = new List>(); diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.Record.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.Record.cs index 9fdf4d4..a09d796 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.Record.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.Record.cs @@ -149,7 +149,7 @@ public async Task TestInsertStrRecord() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<2"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); @@ -255,7 +255,7 @@ public async Task TestInsertRecords() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); Console.WriteLine(status); @@ -351,7 +351,7 @@ public async Task TestInsertStringRecords() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); @@ -467,7 +467,7 @@ public async Task TestInsertRecordsOfOneDevice() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); // large data test @@ -541,7 +541,7 @@ public async Task TestInsertStringRecordsOfOneDevice() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); // large data test diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.Tablet.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.Tablet.cs index ee5f769..b200b20 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.Tablet.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.Tablet.cs @@ -55,7 +55,7 @@ public async Task TestInsertTablet() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<15"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); // large data test @@ -148,7 +148,7 @@ public async Task TestInsertTablets() // System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevices[1]) + " where time<15"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); // large data test diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.TestNetwork.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.TestNetwork.cs index 6bfeea6..fffd540 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.TestNetwork.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.TestNetwork.cs @@ -144,7 +144,7 @@ public async Task TestTestInsertRecords() // System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<10"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); @@ -213,7 +213,7 @@ public async Task TestTestInsertTablet() System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevice) + " where time<15"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); // large data test @@ -305,7 +305,7 @@ public async Task TestTestInsertTablets() // System.Diagnostics.Debug.Assert(status == 0); var res = await session_pool.ExecuteQueryStatementAsync( "select * from " + string.Format("{0}.{1}", testDatabaseName, testDevices[1]) + " where time<15"); - UtilsTest.PrintDataSetByString(res); + SessionPoolTest.PrintDataSetByString(res); await res.Close(); // large data test diff --git a/samples/Apache.IoTDB.Samples/SessionPoolTest.Utils.cs b/samples/Apache.IoTDB.Samples/SessionPoolTest.Utils.cs index 2ca9a19..94f1e85 100644 --- a/samples/Apache.IoTDB.Samples/SessionPoolTest.Utils.cs +++ b/samples/Apache.IoTDB.Samples/SessionPoolTest.Utils.cs @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + using System; using System.Collections.Generic; using Apache.IoTDB.DataStructure; @@ -49,6 +68,6 @@ public static void PrintDataSetByString(SessionDataSet sessionDataSet) Console.WriteLine(); } } - + } -} \ No newline at end of file +} From 3aa001866122289805675fa3c4af4ff27ec877f3 Mon Sep 17 00:00:00 2001 From: lausannel <513964121@qq.com> Date: Sun, 24 Aug 2025 19:21:48 +0100 Subject: [PATCH 12/14] fix `GetRow` in Use Case --- Apache-IoTDB-Client-CSharp-UserCase/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Apache-IoTDB-Client-CSharp-UserCase/Program.cs b/Apache-IoTDB-Client-CSharp-UserCase/Program.cs index 54635b5..281104d 100644 --- a/Apache-IoTDB-Client-CSharp-UserCase/Program.cs +++ b/Apache-IoTDB-Client-CSharp-UserCase/Program.cs @@ -99,9 +99,9 @@ static async Task ExecuteQueryStatement() await session_pool.Open(false); var res = await session_pool.ExecuteQueryStatementAsync("select * from root.ln.wf01.wt01"); res.ShowTableNames(); - while (res.Next()) + while (res.HasNext()) { - Console.WriteLine(res.GetRow()); + Console.WriteLine(res.Next()); } await res.Close(); await session_pool.Close(); From 14b3afe1c7f51d5078441622cff57f74a6cc52e0 Mon Sep 17 00:00:00 2001 From: lausannel <513964121@qq.com> Date: Sun, 24 Aug 2025 19:22:58 +0100 Subject: [PATCH 13/14] fix spell --- .../DataStructure/ColumnDecoder.cs | 4 +- src/Apache.IoTDB/Rpc/client.thrift | 690 ++++++++++++++++++ src/Apache.IoTDB/Rpc/common.thrift | 328 +++++++++ 3 files changed, 1020 insertions(+), 2 deletions(-) create mode 100644 src/Apache.IoTDB/Rpc/client.thrift create mode 100644 src/Apache.IoTDB/Rpc/common.thrift diff --git a/src/Apache.IoTDB/DataStructure/ColumnDecoder.cs b/src/Apache.IoTDB/DataStructure/ColumnDecoder.cs index a903498..f1267b5 100644 --- a/src/Apache.IoTDB/DataStructure/ColumnDecoder.cs +++ b/src/Apache.IoTDB/DataStructure/ColumnDecoder.cs @@ -68,7 +68,7 @@ public static bool[] DeserializeNullIndicators(ByteBuffer reader, int positionCo public static bool[] DeserializeBooleanArray(ByteBuffer reader, int size) { int packedSize = (size + 7) / 8; - byte[] packedBytes = reader.GetBytesByLengthh(packedSize); + byte[] packedBytes = reader.GetBytesByLength(packedSize); if (packedBytes.Length < packedSize) throw new InvalidDataException( $"Boolean array decoding failed: expected {packedSize} bytes for {size} bits, but only received {packedBytes.Length} bytes from buffer." @@ -199,7 +199,7 @@ public Column ReadColumn(ByteBuffer reader, TSDataType dataType, int positionCou if (nullIndicators != null && nullIndicators[i]) continue; int length = reader.GetInt(); - byte[] value = reader.GetBytesByLengthh(length); + byte[] value = reader.GetBytesByLength(length); values[i] = new Binary(value); } diff --git a/src/Apache.IoTDB/Rpc/client.thrift b/src/Apache.IoTDB/Rpc/client.thrift new file mode 100644 index 0000000..3ea4ac3 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/client.thrift @@ -0,0 +1,690 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +include "common.thrift" +namespace java org.apache.iotdb.service.rpc.thrift +namespace py iotdb.thrift.rpc +namespace go rpc + +struct TSQueryDataSet{ + // ByteBuffer for time column + 1: required binary time + // ByteBuffer for each column values + 2: required list valueList + // Bitmap for each column to indicate whether it is a null value + 3: required list bitmapList +} + +struct TSQueryNonAlignDataSet{ + // ByteBuffer for each time column + 1: required list timeList + // ByteBuffer for each column values + 2: required list valueList +} + +struct TSTracingInfo{ + 1: required list activityList + 2: required list elapsedTimeList + 3: optional i32 seriesPathNum + 4: optional i32 seqFileNum + 5: optional i32 unSeqFileNum + 6: optional i32 sequenceChunkNum + 7: optional i64 sequenceChunkPointNum + 8: optional i32 unsequenceChunkNum + 9: optional i64 unsequenceChunkPointNum + 10: optional i32 totalPageNum + 11: optional i32 overlappedPageNum +} + +struct TSExecuteStatementResp { + 1: required common.TSStatus status + 2: optional i64 queryId + // Column names in select statement of SQL + 3: optional list columns + 4: optional string operationType + 5: optional bool ignoreTimeStamp + // Data type list of columns in select statement of SQL + 6: optional list dataTypeList + 7: optional TSQueryDataSet queryDataSet + // for disable align statements, queryDataSet is null and nonAlignQueryDataSet is not null + 8: optional TSQueryNonAlignDataSet nonAlignQueryDataSet + 9: optional map columnNameIndexMap + 10: optional list sgColumns + 11: optional list aliasColumns + 12: optional TSTracingInfo tracingInfo + 13: optional list queryResult + 14: optional bool moreData + // only be set while executing use XXX successfully + 15: optional string database + 16: optional bool tableModel + 17: optional list columnIndex2TsBlockColumnIndexList +} + +enum TSProtocolVersion { + IOTDB_SERVICE_PROTOCOL_V1, + IOTDB_SERVICE_PROTOCOL_V2,//V2 is the first version that we can check version compatibility + IOTDB_SERVICE_PROTOCOL_V3,//V3 is incompatible with V2 +} + +struct TSOpenSessionResp { + 1: required common.TSStatus status + + // The protocol version that the server is using. + 2: required TSProtocolVersion serverProtocolVersion = TSProtocolVersion.IOTDB_SERVICE_PROTOCOL_V1 + + // Session id + 3: optional i64 sessionId + + // The configuration settings for this session. + 4: optional map configuration +} + +// OpenSession() +// Open a session (connection) on the server against which operations may be executed. +struct TSOpenSessionReq { + 1: required TSProtocolVersion client_protocol = TSProtocolVersion.IOTDB_SERVICE_PROTOCOL_V3 + 2: required string zoneId + 3: required string username + 4: optional string password + 5: optional map configuration +} + +// CloseSession() +// Closes the specified session and frees any resources currently allocated to that session. +// Any open operations in that session will be canceled. +struct TSCloseSessionReq { + 1: required i64 sessionId +} + +// ExecuteStatement() +// +// Execute a statement. +// The returned OperationHandle can be used to check on the status of the statement, and to fetch results once the +// statement has finished executing. +struct TSExecuteStatementReq { + // The session to execute the statement against + 1: required i64 sessionId + + // The statement to be executed (DML, DDL, SET, etc) + 2: required string statement + + // statementId + 3: required i64 statementId + + 4: optional i32 fetchSize + + 5: optional i64 timeout + + 6: optional bool enableRedirectQuery; + + 7: optional bool jdbcQuery; +} + +struct TSExecuteBatchStatementReq{ + // The session to execute the statement against + 1: required i64 sessionId + + // The statements to be executed (DML, DDL, SET, etc) + 2: required list statements +} + +struct TSGetOperationStatusReq { + 1: required i64 sessionId + // Session to run this request against + 2: required i64 queryId +} + +// CancelOperation() +// +// Cancels processing on the specified operation handle and frees any resources which were allocated. +struct TSCancelOperationReq { + 1: required i64 sessionId + // Operation to cancel + 2: required i64 queryId +} + +// CloseOperation() +struct TSCloseOperationReq { + 1: required i64 sessionId + 2: optional i64 queryId + 3: optional i64 statementId +} + +struct TSFetchResultsReq{ + 1: required i64 sessionId + 2: required string statement + 3: required i32 fetchSize + 4: required i64 queryId + 5: required bool isAlign + 6: optional i64 timeout + 7: optional i64 statementId +} + +struct TSFetchResultsResp{ + 1: required common.TSStatus status + 2: required bool hasResultSet + 3: required bool isAlign + 4: optional TSQueryDataSet queryDataSet + 5: optional TSQueryNonAlignDataSet nonAlignQueryDataSet + 6: optional list queryResult + 7: optional bool moreData +} + +struct TSFetchMetadataResp{ + 1: required common.TSStatus status + 2: optional string metadataInJson + 3: optional list columnsList + 4: optional string dataType +} + +struct TSFetchMetadataReq{ + 1: required i64 sessionId + 2: required string type + 3: optional string columnPath +} + +struct TSGetTimeZoneResp { + 1: required common.TSStatus status + 2: required string timeZone +} + +struct TSSetTimeZoneReq { + 1: required i64 sessionId + 2: required string timeZone +} + +// for session +struct TSInsertRecordReq { + 1: required i64 sessionId + 2: required string prefixPath + 3: required list measurements + 4: required binary values + 5: required i64 timestamp + 6: optional bool isAligned + 7: optional bool isWriteToTable + 8: optional list columnCategoryies +} + +struct TSInsertStringRecordReq { + 1: required i64 sessionId + 2: required string prefixPath + 3: required list measurements + 4: required list values + 5: required i64 timestamp + 6: optional bool isAligned + 7: optional i64 timeout +} + +struct TSInsertTabletReq { + 1: required i64 sessionId + 2: required string prefixPath + 3: required list measurements + 4: required binary values + 5: required binary timestamps + 6: required list types + 7: required i32 size + 8: optional bool isAligned + 9: optional bool writeToTable + 10: optional list columnCategories + 11: optional bool isCompressed + 12: optional list encodingTypes + 13: optional byte compressType +} + +struct TSInsertTabletsReq { + 1: required i64 sessionId + 2: required list prefixPaths + 3: required list> measurementsList + 4: required list valuesList + 5: required list timestampsList + 6: required list> typesList + 7: required list sizeList + 8: optional bool isAligned +} + +struct TSInsertRecordsReq { + 1: required i64 sessionId + 2: required list prefixPaths + 3: required list> measurementsList + 4: required list valuesList + 5: required list timestamps + 6: optional bool isAligned +} + +struct TSInsertRecordsOfOneDeviceReq { + 1: required i64 sessionId + 2: required string prefixPath + 3: required list> measurementsList + 4: required list valuesList + 5: required list timestamps + 6: optional bool isAligned +} + +struct TSInsertStringRecordsOfOneDeviceReq { + 1: required i64 sessionId + 2: required string prefixPath + 3: required list> measurementsList + 4: required list> valuesList + 5: required list timestamps + 6: optional bool isAligned +} + +struct TSInsertStringRecordsReq { + 1: required i64 sessionId + 2: required list prefixPaths + 3: required list> measurementsList + 4: required list> valuesList + 5: required list timestamps + 6: optional bool isAligned +} + +struct TSDeleteDataReq { + 1: required i64 sessionId + 2: required list paths + 3: required i64 startTime + 4: required i64 endTime +} + +struct TSCreateTimeseriesReq { + 1: required i64 sessionId + 2: required string path + 3: required i32 dataType + 4: required i32 encoding + 5: required i32 compressor + 6: optional map props + 7: optional map tags + 8: optional map attributes + 9: optional string measurementAlias +} + +struct TSCreateAlignedTimeseriesReq { + 1: required i64 sessionId + 2: required string prefixPath + 3: required list measurements + 4: required list dataTypes + 5: required list encodings + 6: required list compressors + 7: optional list measurementAlias + 8: optional list> tagsList + 9: optional list> attributesList +} + +struct TSRawDataQueryReq { + 1: required i64 sessionId + 2: required list paths + 3: optional i32 fetchSize + 4: required i64 startTime + 5: required i64 endTime + 6: required i64 statementId + 7: optional bool enableRedirectQuery + 8: optional bool jdbcQuery + 9: optional i64 timeout + 10: optional bool legalPathNodes +} + +struct TSLastDataQueryReq { + 1: required i64 sessionId + 2: required list paths + 3: optional i32 fetchSize + 4: required i64 time + 5: required i64 statementId + 6: optional bool enableRedirectQuery + 7: optional bool jdbcQuery + 8: optional i64 timeout + 9: optional bool legalPathNodes +} + +struct TSFastLastDataQueryForOnePrefixPathReq { + 1: required i64 sessionId + 2: required list prefixes + 3: optional i32 fetchSize + 4: required i64 statementId + 5: optional bool enableRedirectQuery + 6: optional bool jdbcQuery + 7: optional i64 timeout +} + +struct TSFastLastDataQueryForOneDeviceReq { + 1: required i64 sessionId + 2: required string db + 3: required string deviceId + 4: required list sensors + 5: optional i32 fetchSize + 6: required i64 statementId + 7: optional bool enableRedirectQuery + 8: optional bool jdbcQuery + 9: optional i64 timeout + 10: optional bool legalPathNodes +} + +struct TSAggregationQueryReq { + 1: required i64 sessionId + 2: required i64 statementId + 3: required list paths + 4: required list aggregations + 5: optional i64 startTime + 6: optional i64 endTime + 7: optional i64 interval + 8: optional i64 slidingStep + 9: optional i32 fetchSize + 10: optional i64 timeout + 11: optional bool legalPathNodes +} + +struct TSGroupByQueryIntervalReq { + 1: required i64 sessionId + 2: required i64 statementId + 3: required string device + 4: required string measurement + 5: required i32 dataType + 6: required common.TAggregationType aggregationType + 7: optional string database + 8: optional i64 startTime + 9: optional i64 endTime + 10: optional i64 interval + 11: optional i32 fetchSize + 12: optional i64 timeout + 13: optional bool isAligned +} + +struct TSCreateMultiTimeseriesReq { + 1: required i64 sessionId + 2: required list paths + 3: required list dataTypes + 4: required list encodings + 5: required list compressors + 6: optional list> propsList + 7: optional list> tagsList + 8: optional list> attributesList + 9: optional list measurementAliasList +} + +struct ServerProperties { + 1: required string version; + 2: required list supportedTimeAggregationOperations; + 3: required string timestampPrecision; + 4: i32 maxConcurrentClientNum; + 5: optional i32 thriftMaxFrameSize; + 6: optional bool isReadOnly; + 7: optional string buildInfo; + 8: optional string logo; +} + +struct TSSetSchemaTemplateReq { + 1: required i64 sessionId + 2: required string templateName + 3: required string prefixPath +} + +struct TSCreateSchemaTemplateReq { + 1: required i64 sessionId + 2: required string name + 3: required binary serializedTemplate +} + +struct TSAppendSchemaTemplateReq { + 1: required i64 sessionId + 2: required string name + 3: required bool isAligned + 4: required list measurements + 5: required list dataTypes + 6: required list encodings + 7: required list compressors +} + +struct TSPruneSchemaTemplateReq { + 1: required i64 sessionId + 2: required string name + 3: required string path +} + +struct TSQueryTemplateReq { + 1: required i64 sessionId + 2: required string name + 3: required i32 queryType + 4: optional string measurement +} + +struct TSQueryTemplateResp { + 1: required common.TSStatus status + 2: required i32 queryType + 3: optional bool result + 4: optional i32 count + 5: optional list measurements +} + +struct TSUnsetSchemaTemplateReq { + 1: required i64 sessionId + 2: required string prefixPath + 3: required string templateName +} + +struct TSDropSchemaTemplateReq { + 1: required i64 sessionId + 2: required string templateName +} + +struct TCreateTimeseriesUsingSchemaTemplateReq{ + 1: required i64 sessionId + 2: required list devicePathList +} + +// The sender and receiver need to check some info to confirm validity +struct TSyncIdentityInfo{ + // Sender needs to tell receiver its identity. + 1:required string pipeName + 2:required i64 createTime + // The version of sender and receiver need to be the same. + 3:required string version + 4:required string database +} + +struct TSyncTransportMetaInfo{ + // The name of the file in sending. + 1:required string fileName + // The start index of the file slice in sending. + 2:required i64 startIndex +} + +struct TPipeTransferReq { + 1:required i8 version + 2:required i16 type + 3:required binary body +} + +struct TPipeTransferResp { + 1:required common.TSStatus status + 2:optional binary body +} + +struct TPipeSubscribeReq { + 1:required i8 version + 2:required i16 type + 3:optional binary body +} + +struct TPipeSubscribeResp { + 1:required common.TSStatus status + 2:required i8 version + 3:required i16 type + 4:optional list body +} + +struct TSBackupConfigurationResp { + 1: required common.TSStatus status + 2: optional bool enableOperationSync + 3: optional string secondaryAddress + 4: optional i32 secondaryPort +} + +enum TSConnectionType { + THRIFT_BASED + MQTT_BASED + INTERNAL + REST_BASED +} + +struct TSConnectionInfo { + 1: required string userName + 2: required i64 logInTime + 3: required string connectionId // ip:port for thrift-based service and clientId for mqtt-based service + 4: required TSConnectionType type +} + +struct TSConnectionInfoResp { + 1: required list connectionInfoList +} + +service IClientRPCService { + + TSExecuteStatementResp executeQueryStatementV2(1:TSExecuteStatementReq req); + + TSExecuteStatementResp executeUpdateStatementV2(1:TSExecuteStatementReq req); + + TSExecuteStatementResp executeStatementV2(1:TSExecuteStatementReq req); + + TSExecuteStatementResp executeRawDataQueryV2(1:TSRawDataQueryReq req); + + TSExecuteStatementResp executeLastDataQueryV2(1:TSLastDataQueryReq req); + + TSExecuteStatementResp executeFastLastDataQueryForOnePrefixPath(1:TSFastLastDataQueryForOnePrefixPathReq req); + + TSExecuteStatementResp executeFastLastDataQueryForOneDeviceV2(1:TSFastLastDataQueryForOneDeviceReq req); + + TSExecuteStatementResp executeAggregationQueryV2(1:TSAggregationQueryReq req); + + TSExecuteStatementResp executeGroupByQueryIntervalQuery(1:TSGroupByQueryIntervalReq req); + + TSFetchResultsResp fetchResultsV2(1:TSFetchResultsReq req); + + TSOpenSessionResp openSession(1:TSOpenSessionReq req); + + common.TSStatus closeSession(1:TSCloseSessionReq req); + + TSExecuteStatementResp executeStatement(1:TSExecuteStatementReq req); + + common.TSStatus executeBatchStatement(1:TSExecuteBatchStatementReq req); + + TSExecuteStatementResp executeQueryStatement(1:TSExecuteStatementReq req); + + TSExecuteStatementResp executeUpdateStatement(1:TSExecuteStatementReq req); + + TSFetchResultsResp fetchResults(1:TSFetchResultsReq req); + + TSFetchMetadataResp fetchMetadata(1:TSFetchMetadataReq req); + + common.TSStatus cancelOperation(1:TSCancelOperationReq req); + + common.TSStatus closeOperation(1:TSCloseOperationReq req); + + TSGetTimeZoneResp getTimeZone(1:i64 sessionId); + + common.TSStatus setTimeZone(1:TSSetTimeZoneReq req); + + ServerProperties getProperties(); + + common.TSStatus setStorageGroup(1:i64 sessionId, 2:string storageGroup); + + common.TSStatus createTimeseries(1:TSCreateTimeseriesReq req); + + common.TSStatus createAlignedTimeseries(1:TSCreateAlignedTimeseriesReq req); + + common.TSStatus createMultiTimeseries(1:TSCreateMultiTimeseriesReq req); + + common.TSStatus deleteTimeseries(1:i64 sessionId, 2:list path) + + common.TSStatus deleteStorageGroups(1:i64 sessionId, 2:list storageGroup); + + common.TSStatus insertRecord(1:TSInsertRecordReq req); + + common.TSStatus insertStringRecord(1:TSInsertStringRecordReq req); + + common.TSStatus insertTablet(1:TSInsertTabletReq req); + + common.TSStatus insertTablets(1:TSInsertTabletsReq req); + + common.TSStatus insertRecords(1:TSInsertRecordsReq req); + + common.TSStatus insertRecordsOfOneDevice(1:TSInsertRecordsOfOneDeviceReq req); + + common.TSStatus insertStringRecordsOfOneDevice(1:TSInsertStringRecordsOfOneDeviceReq req); + + common.TSStatus insertStringRecords(1:TSInsertStringRecordsReq req); + + common.TSStatus testInsertTablet(1:TSInsertTabletReq req); + + common.TSStatus testInsertTablets(1:TSInsertTabletsReq req); + + common.TSStatus testInsertRecord(1:TSInsertRecordReq req); + + common.TSStatus testInsertStringRecord(1:TSInsertStringRecordReq req); + + common.TSStatus testInsertRecords(1:TSInsertRecordsReq req); + + common.TSStatus testInsertRecordsOfOneDevice(1:TSInsertRecordsOfOneDeviceReq req); + + common.TSStatus testInsertStringRecords(1:TSInsertStringRecordsReq req); + + common.TSStatus deleteData(1:TSDeleteDataReq req); + + TSExecuteStatementResp executeRawDataQuery(1:TSRawDataQueryReq req); + + TSExecuteStatementResp executeLastDataQuery(1:TSLastDataQueryReq req); + + TSExecuteStatementResp executeAggregationQuery(1:TSAggregationQueryReq req); + + i64 requestStatementId(1:i64 sessionId); + + common.TSStatus createSchemaTemplate(1:TSCreateSchemaTemplateReq req); + + common.TSStatus appendSchemaTemplate(1:TSAppendSchemaTemplateReq req); + + common.TSStatus pruneSchemaTemplate(1:TSPruneSchemaTemplateReq req); + + TSQueryTemplateResp querySchemaTemplate(1:TSQueryTemplateReq req); + + common.TShowConfigurationTemplateResp showConfigurationTemplate(); + + common.TShowConfigurationResp showConfiguration(1:i32 nodeId); + + common.TSStatus setSchemaTemplate(1:TSSetSchemaTemplateReq req); + + common.TSStatus unsetSchemaTemplate(1:TSUnsetSchemaTemplateReq req); + + common.TSStatus dropSchemaTemplate(1:TSDropSchemaTemplateReq req); + + common.TSStatus createTimeseriesUsingSchemaTemplate(1:TCreateTimeseriesUsingSchemaTemplateReq req); + + common.TSStatus handshake(TSyncIdentityInfo info); + + common.TSStatus sendPipeData(1:binary buff); + + common.TSStatus sendFile(1:TSyncTransportMetaInfo metaInfo, 2:binary buff); + + TPipeTransferResp pipeTransfer(TPipeTransferReq req); + + TPipeSubscribeResp pipeSubscribe(TPipeSubscribeReq req); + + TSBackupConfigurationResp getBackupConfiguration(); + + TSConnectionInfoResp fetchAllConnectionsInfo(); + + /** For other node's call */ + common.TSStatus testConnectionEmptyRPC() +} \ No newline at end of file diff --git a/src/Apache.IoTDB/Rpc/common.thrift b/src/Apache.IoTDB/Rpc/common.thrift new file mode 100644 index 0000000..3287f35 --- /dev/null +++ b/src/Apache.IoTDB/Rpc/common.thrift @@ -0,0 +1,328 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +namespace java org.apache.iotdb.common.rpc.thrift +namespace py iotdb.thrift.common +namespace go common + +// Define a set of ip:port address +struct TEndPoint { + 1: required string ip + 2: required i32 port +} + +// The return status code and message in each response. +struct TSStatus { + 1: required i32 code + 2: optional string message + 3: optional list subStatus + 4: optional TEndPoint redirectNode + 5: optional bool needRetry +} + +enum TConsensusGroupType { + ConfigRegion, + DataRegion, + SchemaRegion +} + +struct TConsensusGroupId { + 1: required TConsensusGroupType type + 2: required i32 id +} + +struct TSeriesPartitionSlot { + 1: required i32 slotId +} + +struct TTimePartitionSlot { + 1: required i64 startTime +} + +struct TRegionReplicaSet { + 1: required TConsensusGroupId regionId + 2: required list dataNodeLocations +} + +struct TNodeResource { + 1: required i32 cpuCoreNum + 2: required i64 maxMemory +} + +struct TConfigNodeLocation { + 1: required i32 configNodeId + 2: required TEndPoint internalEndPoint + 3: required TEndPoint consensusEndPoint +} + +struct TDataNodeLocation { + 1: required i32 dataNodeId + // TEndPoint for DataNode's client rpc + 2: required TEndPoint clientRpcEndPoint + // TEndPoint for DataNode's cluster internal rpc + 3: required TEndPoint internalEndPoint + // TEndPoint for exchange data between DataNodes + 4: required TEndPoint mPPDataExchangeEndPoint + // TEndPoint for DataNode's dataRegion consensus protocol + 5: required TEndPoint dataRegionConsensusEndPoint + // TEndPoint for DataNode's schemaRegion consensus protocol + 6: required TEndPoint schemaRegionConsensusEndPoint +} + +struct TAINodeLocation{ + 1: required i32 aiNodeId + 2: required TEndPoint internalEndPoint +} + +struct TDataNodeConfiguration { + 1: required TDataNodeLocation location + 2: required TNodeResource resource +} + +struct TAINodeConfiguration{ + 1: required TAINodeLocation location + 2: required TNodeResource resource +} + +enum TRegionMigrateFailedType { + AddPeerFailed, + RemovePeerFailed, + RemoveConsensusGroupFailed, + DeleteRegionFailed, + CreateRegionFailed, + Disconnect, +} + +enum TRegionMaintainTaskStatus { + TASK_NOT_EXIST, + PROCESSING, + SUCCESS, + FAIL, +} + +struct TFlushReq { + 1: optional string isSeq + 2: optional list storageGroups + 3: optional list regionIds +} + +struct TSettleReq { + 1: required list paths +} + +// for node management +struct TSchemaNode { + 1: required string nodeName + 2: required byte nodeType +} + +struct TSetConfigurationReq { + 1: required map configs + 2: required i32 nodeId +} + +// for TTL +struct TSetTTLReq { + 1: required list pathPattern + 2: required i64 TTL + 3: required bool isDataBase +} + +struct TShowTTLReq { + 1: required list pathPattern +} + +// for File +struct TFile { + 1: required string fileName + 2: required binary file +} + +struct TFilesResp { + 1: required TSStatus status + 2: required list files +} + +// quota +struct TSpaceQuota { + 1: optional i64 diskSize + 2: optional i64 deviceNum + 3: optional i64 timeserieNum +} + +enum ThrottleType { + REQUEST_NUMBER, + REQUEST_SIZE, + WRITE_NUMBER, + WRITE_SIZE, + READ_NUMBER, + READ_SIZE +} + +struct TTimedQuota { + 1: required i64 timeUnit + 2: required i64 softLimit +} + +struct TThrottleQuota { + 1: optional map throttleLimit + 2: optional i64 memLimit + 3: optional i32 cpuLimit +} + +struct TSetSpaceQuotaReq { + 1: required list database + 2: required TSpaceQuota spaceLimit +} + +struct TSetThrottleQuotaReq { + 1: required string userName + 2: required TThrottleQuota throttleQuota +} + +struct TPipeHeartbeatResp { + 1: required list pipeMetaList + 2: optional list pipeCompletedList + 3: optional list pipeRemainingEventCountList + 4: optional list pipeRemainingTimeList +} + +struct TLicense { + 1: required i64 licenseIssueTimestamp + 2: required i64 expireTimestamp + 4: required i16 dataNodeNumLimit + 5: required i32 cpuCoreNumLimit + 6: required i64 deviceNumLimit + 7: required i64 sensorNumLimit + 8: required i64 disconnectionFromActiveNodeTimeLimit + 9: required i16 mlNodeNumLimit +} + +struct TLoadSample { + // Percentage of occupied cpu in Node + 1: required double cpuUsageRate + // Percentage of occupied memory space in Node + 2: required double memoryUsageRate + // Percentage of occupied disk space in Node + 3: required double diskUsageRate + // The size of free disk space + // Unit: Byte + 4: required double freeDiskSpace +} + +enum TServiceType { + ConfigNodeInternalService, + DataNodeInternalService, + DataNodeMPPService, + DataNodeExternalService, +} + +struct TServiceProvider { + 1: required TEndPoint endPoint + 2: required TServiceType serviceType + 3: required i32 nodeId +} + +struct TSender { + 1: optional TDataNodeLocation dataNodeLocation + 2: optional TConfigNodeLocation configNodeLocation +} + +struct TTestConnectionResult { + 1: required TServiceProvider serviceProvider + 2: required TSender sender + 3: required bool success + 4: optional string reason +} + +struct TTestConnectionResp { + 1: required TSStatus status + 2: required list resultList +} + +struct TNodeLocations { + 1: optional list configNodeLocations + 2: optional list dataNodeLocations +} + +enum TAggregationType { + COUNT, + AVG, + SUM, + FIRST_VALUE, + LAST_VALUE, + MAX_TIME, + MIN_TIME, + MAX_VALUE, + MIN_VALUE, + EXTREME, + COUNT_IF, + TIME_DURATION, + MODE, + COUNT_TIME, + STDDEV, + STDDEV_POP, + STDDEV_SAMP, + VARIANCE, + VAR_POP, + VAR_SAMP, + MAX_BY, + MIN_BY, + UDAF, + FIRST, + LAST, + FIRST_BY, + LAST_BY, + MIN, + MAX, + COUNT_ALL, + APPROX_COUNT_DISTINCT, + APPROX_MOST_FREQUENT +} + +struct TShowConfigurationTemplateResp { + 1: required TSStatus status + 2: required string content +} + +struct TShowConfigurationResp { + 1: required TSStatus status + 2: required string content +} + +// for AINode +enum TrainingState { + PENDING, + RUNNING, + FINISHED, + FAILED, + DROPPING +} + +enum Model{ + TREE=0, + TABLE=1 +} + +enum FunctionType{ + NONE=0, + SCALAR=1, + AGGREGATE=2, + TABLE=3 +} \ No newline at end of file From f1ed57950378f9b182c0807902add315530639ce Mon Sep 17 00:00:00 2001 From: lausannel <513964121@qq.com> Date: Sun, 24 Aug 2025 19:24:22 +0100 Subject: [PATCH 14/14] fix spell --- src/Apache.IoTDB/DataStructure/ByteBuffer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Apache.IoTDB/DataStructure/ByteBuffer.cs b/src/Apache.IoTDB/DataStructure/ByteBuffer.cs index 7fade31..a66a7ac 100644 --- a/src/Apache.IoTDB/DataStructure/ByteBuffer.cs +++ b/src/Apache.IoTDB/DataStructure/ByteBuffer.cs @@ -146,7 +146,7 @@ public byte[] GetBuffer() return _buffer[.._writePos]; } - public byte[] GetBytesByLengthh(int length) + public byte[] GetBytesByLength(int length) { if (_readPos + length > _buffer.Length) throw new ArgumentOutOfRangeException(nameof(length),