|
1 | 1 | /** |
2 | | - * Autogenerated by Thrift Compiler (0.15.0) |
| 2 | + * Autogenerated by Thrift Compiler (0.14.1) |
3 | 3 | * |
4 | 4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING |
5 | 5 | * @generated |
|
27 | 27 |
|
28 | 28 | #pragma warning disable IDE0079 // remove unnecessary pragmas |
29 | 29 | #pragma warning disable IDE1006 // parts of the code use IDL spelling |
30 | | -#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions |
31 | 30 |
|
32 | 31 |
|
33 | 32 | public partial class ServerProperties : TBase |
@@ -166,13 +165,13 @@ public ServerProperties(string version, List<string> supportedTimeAggregationOpe |
166 | 165 | if (field.Type == TType.List) |
167 | 166 | { |
168 | 167 | { |
169 | | - TList _list487 = await iprot.ReadListBeginAsync(cancellationToken); |
170 | | - SupportedTimeAggregationOperations = new List<string>(_list487.Count); |
171 | | - for(int _i488 = 0; _i488 < _list487.Count; ++_i488) |
| 168 | + TList _list383 = await iprot.ReadListBeginAsync(cancellationToken); |
| 169 | + SupportedTimeAggregationOperations = new List<string>(_list383.Count); |
| 170 | + for(int _i384 = 0; _i384 < _list383.Count; ++_i384) |
172 | 171 | { |
173 | | - string _elem489; |
174 | | - _elem489 = await iprot.ReadStringAsync(cancellationToken); |
175 | | - SupportedTimeAggregationOperations.Add(_elem489); |
| 172 | + string _elem385; |
| 173 | + _elem385 = await iprot.ReadStringAsync(cancellationToken); |
| 174 | + SupportedTimeAggregationOperations.Add(_elem385); |
176 | 175 | } |
177 | 176 | await iprot.ReadListEndAsync(cancellationToken); |
178 | 177 | } |
@@ -277,85 +276,85 @@ public ServerProperties(string version, List<string> supportedTimeAggregationOpe |
277 | 276 | oprot.IncrementRecursionDepth(); |
278 | 277 | try |
279 | 278 | { |
280 | | - var tmp490 = new TStruct("ServerProperties"); |
281 | | - await oprot.WriteStructBeginAsync(tmp490, cancellationToken); |
282 | | - var tmp491 = new TField(); |
| 279 | + var struc = new TStruct("ServerProperties"); |
| 280 | + await oprot.WriteStructBeginAsync(struc, cancellationToken); |
| 281 | + var field = new TField(); |
283 | 282 | if((Version != null)) |
284 | 283 | { |
285 | | - tmp491.Name = "version"; |
286 | | - tmp491.Type = TType.String; |
287 | | - tmp491.ID = 1; |
288 | | - await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); |
| 284 | + field.Name = "version"; |
| 285 | + field.Type = TType.String; |
| 286 | + field.ID = 1; |
| 287 | + await oprot.WriteFieldBeginAsync(field, cancellationToken); |
289 | 288 | await oprot.WriteStringAsync(Version, cancellationToken); |
290 | 289 | await oprot.WriteFieldEndAsync(cancellationToken); |
291 | 290 | } |
292 | 291 | if((SupportedTimeAggregationOperations != null)) |
293 | 292 | { |
294 | | - tmp491.Name = "supportedTimeAggregationOperations"; |
295 | | - tmp491.Type = TType.List; |
296 | | - tmp491.ID = 2; |
297 | | - await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); |
| 293 | + field.Name = "supportedTimeAggregationOperations"; |
| 294 | + field.Type = TType.List; |
| 295 | + field.ID = 2; |
| 296 | + await oprot.WriteFieldBeginAsync(field, cancellationToken); |
298 | 297 | { |
299 | 298 | await oprot.WriteListBeginAsync(new TList(TType.String, SupportedTimeAggregationOperations.Count), cancellationToken); |
300 | | - foreach (string _iter492 in SupportedTimeAggregationOperations) |
| 299 | + foreach (string _iter386 in SupportedTimeAggregationOperations) |
301 | 300 | { |
302 | | - await oprot.WriteStringAsync(_iter492, cancellationToken); |
| 301 | + await oprot.WriteStringAsync(_iter386, cancellationToken); |
303 | 302 | } |
304 | 303 | await oprot.WriteListEndAsync(cancellationToken); |
305 | 304 | } |
306 | 305 | await oprot.WriteFieldEndAsync(cancellationToken); |
307 | 306 | } |
308 | 307 | if((TimestampPrecision != null)) |
309 | 308 | { |
310 | | - tmp491.Name = "timestampPrecision"; |
311 | | - tmp491.Type = TType.String; |
312 | | - tmp491.ID = 3; |
313 | | - await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); |
| 309 | + field.Name = "timestampPrecision"; |
| 310 | + field.Type = TType.String; |
| 311 | + field.ID = 3; |
| 312 | + await oprot.WriteFieldBeginAsync(field, cancellationToken); |
314 | 313 | await oprot.WriteStringAsync(TimestampPrecision, cancellationToken); |
315 | 314 | await oprot.WriteFieldEndAsync(cancellationToken); |
316 | 315 | } |
317 | 316 | if(__isset.maxConcurrentClientNum) |
318 | 317 | { |
319 | | - tmp491.Name = "maxConcurrentClientNum"; |
320 | | - tmp491.Type = TType.I32; |
321 | | - tmp491.ID = 4; |
322 | | - await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); |
| 318 | + field.Name = "maxConcurrentClientNum"; |
| 319 | + field.Type = TType.I32; |
| 320 | + field.ID = 4; |
| 321 | + await oprot.WriteFieldBeginAsync(field, cancellationToken); |
323 | 322 | await oprot.WriteI32Async(MaxConcurrentClientNum, cancellationToken); |
324 | 323 | await oprot.WriteFieldEndAsync(cancellationToken); |
325 | 324 | } |
326 | 325 | if(__isset.thriftMaxFrameSize) |
327 | 326 | { |
328 | | - tmp491.Name = "thriftMaxFrameSize"; |
329 | | - tmp491.Type = TType.I32; |
330 | | - tmp491.ID = 5; |
331 | | - await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); |
| 327 | + field.Name = "thriftMaxFrameSize"; |
| 328 | + field.Type = TType.I32; |
| 329 | + field.ID = 5; |
| 330 | + await oprot.WriteFieldBeginAsync(field, cancellationToken); |
332 | 331 | await oprot.WriteI32Async(ThriftMaxFrameSize, cancellationToken); |
333 | 332 | await oprot.WriteFieldEndAsync(cancellationToken); |
334 | 333 | } |
335 | 334 | if(__isset.isReadOnly) |
336 | 335 | { |
337 | | - tmp491.Name = "isReadOnly"; |
338 | | - tmp491.Type = TType.Bool; |
339 | | - tmp491.ID = 6; |
340 | | - await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); |
| 336 | + field.Name = "isReadOnly"; |
| 337 | + field.Type = TType.Bool; |
| 338 | + field.ID = 6; |
| 339 | + await oprot.WriteFieldBeginAsync(field, cancellationToken); |
341 | 340 | await oprot.WriteBoolAsync(IsReadOnly, cancellationToken); |
342 | 341 | await oprot.WriteFieldEndAsync(cancellationToken); |
343 | 342 | } |
344 | 343 | if((BuildInfo != null) && __isset.buildInfo) |
345 | 344 | { |
346 | | - tmp491.Name = "buildInfo"; |
347 | | - tmp491.Type = TType.String; |
348 | | - tmp491.ID = 7; |
349 | | - await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); |
| 345 | + field.Name = "buildInfo"; |
| 346 | + field.Type = TType.String; |
| 347 | + field.ID = 7; |
| 348 | + await oprot.WriteFieldBeginAsync(field, cancellationToken); |
350 | 349 | await oprot.WriteStringAsync(BuildInfo, cancellationToken); |
351 | 350 | await oprot.WriteFieldEndAsync(cancellationToken); |
352 | 351 | } |
353 | 352 | if((Logo != null) && __isset.logo) |
354 | 353 | { |
355 | | - tmp491.Name = "logo"; |
356 | | - tmp491.Type = TType.String; |
357 | | - tmp491.ID = 8; |
358 | | - await oprot.WriteFieldBeginAsync(tmp491, cancellationToken); |
| 354 | + field.Name = "logo"; |
| 355 | + field.Type = TType.String; |
| 356 | + field.ID = 8; |
| 357 | + await oprot.WriteFieldBeginAsync(field, cancellationToken); |
359 | 358 | await oprot.WriteStringAsync(Logo, cancellationToken); |
360 | 359 | await oprot.WriteFieldEndAsync(cancellationToken); |
361 | 360 | } |
@@ -423,49 +422,49 @@ public override int GetHashCode() { |
423 | 422 |
|
424 | 423 | public override string ToString() |
425 | 424 | { |
426 | | - var tmp493 = new StringBuilder("ServerProperties("); |
| 425 | + var sb = new StringBuilder("ServerProperties("); |
427 | 426 | if((Version != null)) |
428 | 427 | { |
429 | | - tmp493.Append(", Version: "); |
430 | | - Version.ToString(tmp493); |
| 428 | + sb.Append(", Version: "); |
| 429 | + Version.ToString(sb); |
431 | 430 | } |
432 | 431 | if((SupportedTimeAggregationOperations != null)) |
433 | 432 | { |
434 | | - tmp493.Append(", SupportedTimeAggregationOperations: "); |
435 | | - SupportedTimeAggregationOperations.ToString(tmp493); |
| 433 | + sb.Append(", SupportedTimeAggregationOperations: "); |
| 434 | + SupportedTimeAggregationOperations.ToString(sb); |
436 | 435 | } |
437 | 436 | if((TimestampPrecision != null)) |
438 | 437 | { |
439 | | - tmp493.Append(", TimestampPrecision: "); |
440 | | - TimestampPrecision.ToString(tmp493); |
| 438 | + sb.Append(", TimestampPrecision: "); |
| 439 | + TimestampPrecision.ToString(sb); |
441 | 440 | } |
442 | 441 | if(__isset.maxConcurrentClientNum) |
443 | 442 | { |
444 | | - tmp493.Append(", MaxConcurrentClientNum: "); |
445 | | - MaxConcurrentClientNum.ToString(tmp493); |
| 443 | + sb.Append(", MaxConcurrentClientNum: "); |
| 444 | + MaxConcurrentClientNum.ToString(sb); |
446 | 445 | } |
447 | 446 | if(__isset.thriftMaxFrameSize) |
448 | 447 | { |
449 | | - tmp493.Append(", ThriftMaxFrameSize: "); |
450 | | - ThriftMaxFrameSize.ToString(tmp493); |
| 448 | + sb.Append(", ThriftMaxFrameSize: "); |
| 449 | + ThriftMaxFrameSize.ToString(sb); |
451 | 450 | } |
452 | 451 | if(__isset.isReadOnly) |
453 | 452 | { |
454 | | - tmp493.Append(", IsReadOnly: "); |
455 | | - IsReadOnly.ToString(tmp493); |
| 453 | + sb.Append(", IsReadOnly: "); |
| 454 | + IsReadOnly.ToString(sb); |
456 | 455 | } |
457 | 456 | if((BuildInfo != null) && __isset.buildInfo) |
458 | 457 | { |
459 | | - tmp493.Append(", BuildInfo: "); |
460 | | - BuildInfo.ToString(tmp493); |
| 458 | + sb.Append(", BuildInfo: "); |
| 459 | + BuildInfo.ToString(sb); |
461 | 460 | } |
462 | 461 | if((Logo != null) && __isset.logo) |
463 | 462 | { |
464 | | - tmp493.Append(", Logo: "); |
465 | | - Logo.ToString(tmp493); |
| 463 | + sb.Append(", Logo: "); |
| 464 | + Logo.ToString(sb); |
466 | 465 | } |
467 | | - tmp493.Append(')'); |
468 | | - return tmp493.ToString(); |
| 466 | + sb.Append(')'); |
| 467 | + return sb.ToString(); |
469 | 468 | } |
470 | 469 | } |
471 | 470 |
|
0 commit comments