public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (dataType_ != null) { hash ^= DataType.GetHashCode(); } if (DisplayName.Length != 0) { hash ^= DisplayName.GetHashCode(); } if (dataStats_ != null) { hash ^= DataStats.GetHashCode(); } hash ^= topCorrelatedColumns_.GetHashCode(); if (Etag.Length != 0) { hash ^= Etag.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
private void Awake() { // if the singleton hasn't been initialized yet if (instance != null && instance != this) { Destroy(this.gameObject); return;//Avoid doing anything else } instance = this; DontDestroyOnLoad(this.gameObject); }
public void MergeFrom(ColumnSpec other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.dataType_ != null) { if (dataType_ == null) { DataType = new global::Google.Cloud.Automl.V1Beta1.DataType(); } DataType.MergeFrom(other.DataType); } if (other.DisplayName.Length != 0) { DisplayName = other.DisplayName; } if (other.dataStats_ != null) { if (dataStats_ == null) { DataStats = new global::Google.Cloud.Automl.V1Beta1.DataStats(); } DataStats.MergeFrom(other.DataStats); } topCorrelatedColumns_.Add(other.topCorrelatedColumns_); if (other.Etag.Length != 0) { Etag = other.Etag; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }