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;