public void MergeFrom(BigQueryConnectionSpec other) { if (other == null) { return; } if (other.ConnectionType != global::Google.Cloud.DataCatalog.V1.BigQueryConnectionSpec.Types.ConnectionType.Unspecified) { ConnectionType = other.ConnectionType; } if (other.HasCredential != false) { HasCredential = other.HasCredential; } switch (other.ConnectionSpecCase) { case ConnectionSpecOneofCase.CloudSql: if (CloudSql == null) { CloudSql = new global::Google.Cloud.DataCatalog.V1.CloudSqlBigQueryConnectionSpec(); } CloudSql.MergeFrom(other.CloudSql); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (ConnectionType != global::Google.Cloud.DataCatalog.V1.BigQueryConnectionSpec.Types.ConnectionType.Unspecified) { hash ^= ConnectionType.GetHashCode(); } if (connectionSpecCase_ == ConnectionSpecOneofCase.CloudSql) { hash ^= CloudSql.GetHashCode(); } if (HasCredential != false) { hash ^= HasCredential.GetHashCode(); } hash ^= (int)connectionSpecCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }