blob: 306f9b7fc771a109a85fd9242d2b98cb34053b1e [file] [log] [blame]
/**
* Autogenerated by Thrift Compiler (0.14.1)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Thrift;
using Thrift.Collections;
#pragma warning disable IDE0079 // remove unnecessary pragmas
#pragma warning disable IDE1006 // parts of the code use IDL spelling
public static class commonExtensions
{
public static bool Equals(this Dictionary<ThrottleType, TTimedQuota> instance, object that)
{
if (!(that is Dictionary<ThrottleType, TTimedQuota> other)) return false;
if (ReferenceEquals(instance, other)) return true;
return TCollections.Equals(instance, other);
}
public static int GetHashCode(this Dictionary<ThrottleType, TTimedQuota> instance)
{
return TCollections.GetHashCode(instance);
}
public static Dictionary<ThrottleType, TTimedQuota> DeepCopy(this Dictionary<ThrottleType, TTimedQuota> source)
{
if (source == null)
return null;
var tmp122 = new Dictionary<ThrottleType, TTimedQuota>(source.Count);
foreach (var pair in source)
tmp122.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null);
return tmp122;
}
public static bool Equals(this Dictionary<string, string> instance, object that)
{
if (!(that is Dictionary<string, string> other)) return false;
if (ReferenceEquals(instance, other)) return true;
return TCollections.Equals(instance, other);
}
public static int GetHashCode(this Dictionary<string, string> instance)
{
return TCollections.GetHashCode(instance);
}
public static bool Equals(this List<TConfigNodeLocation> instance, object that)
{
if (!(that is List<TConfigNodeLocation> other)) return false;
if (ReferenceEquals(instance, other)) return true;
return TCollections.Equals(instance, other);
}
public static int GetHashCode(this List<TConfigNodeLocation> instance)
{
return TCollections.GetHashCode(instance);
}
public static List<TConfigNodeLocation> DeepCopy(this List<TConfigNodeLocation> source)
{
if (source == null)
return null;
var tmp124 = new List<TConfigNodeLocation>(source.Count);
foreach (var elem in source)
tmp124.Add((elem != null) ? elem.DeepCopy() : null);
return tmp124;
}
public static bool Equals(this List<TDataNodeLocation> instance, object that)
{
if (!(that is List<TDataNodeLocation> other)) return false;
if (ReferenceEquals(instance, other)) return true;
return TCollections.Equals(instance, other);
}
public static int GetHashCode(this List<TDataNodeLocation> instance)
{
return TCollections.GetHashCode(instance);
}
public static List<TDataNodeLocation> DeepCopy(this List<TDataNodeLocation> source)
{
if (source == null)
return null;
var tmp125 = new List<TDataNodeLocation>(source.Count);
foreach (var elem in source)
tmp125.Add((elem != null) ? elem.DeepCopy() : null);
return tmp125;
}
public static bool Equals(this List<TFile> instance, object that)
{
if (!(that is List<TFile> other)) return false;
if (ReferenceEquals(instance, other)) return true;
return TCollections.Equals(instance, other);
}
public static int GetHashCode(this List<TFile> instance)
{
return TCollections.GetHashCode(instance);
}
public static List<TFile> DeepCopy(this List<TFile> source)
{
if (source == null)
return null;
var tmp126 = new List<TFile>(source.Count);
foreach (var elem in source)
tmp126.Add((elem != null) ? elem.DeepCopy() : null);
return tmp126;
}
public static bool Equals(this List<TSStatus> instance, object that)
{
if (!(that is List<TSStatus> other)) return false;
if (ReferenceEquals(instance, other)) return true;
return TCollections.Equals(instance, other);
}
public static int GetHashCode(this List<TSStatus> instance)
{
return TCollections.GetHashCode(instance);
}
public static bool Equals(this List<TTestConnectionResult> instance, object that)
{
if (!(that is List<TTestConnectionResult> other)) return false;
if (ReferenceEquals(instance, other)) return true;
return TCollections.Equals(instance, other);
}
public static int GetHashCode(this List<TTestConnectionResult> instance)
{
return TCollections.GetHashCode(instance);
}
public static List<TTestConnectionResult> DeepCopy(this List<TTestConnectionResult> source)
{
if (source == null)
return null;
var tmp128 = new List<TTestConnectionResult>(source.Count);
foreach (var elem in source)
tmp128.Add((elem != null) ? elem.DeepCopy() : null);
return tmp128;
}
public static bool Equals(this List<string> instance, object that)
{
if (!(that is List<string> other)) return false;
if (ReferenceEquals(instance, other)) return true;
return TCollections.Equals(instance, other);
}
public static int GetHashCode(this List<string> instance)
{
return TCollections.GetHashCode(instance);
}
}