public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (securityCenterProperties_ != null) { hash ^= SecurityCenterProperties.GetHashCode(); } hash ^= ResourceProperties.GetHashCode(); if (securityMarks_ != null) { hash ^= SecurityMarks.GetHashCode(); } if (createTime_ != null) { hash ^= CreateTime.GetHashCode(); } if (updateTime_ != null) { hash ^= UpdateTime.GetHashCode(); } if (iamPolicy_ != null) { hash ^= IamPolicy.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(Asset other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.securityCenterProperties_ != null) { if (securityCenterProperties_ == null) { SecurityCenterProperties = new global::Google.Cloud.SecurityCenter.V1P1Beta1.Asset.Types.SecurityCenterProperties(); } SecurityCenterProperties.MergeFrom(other.SecurityCenterProperties); } resourceProperties_.Add(other.resourceProperties_); if (other.securityMarks_ != null) { if (securityMarks_ == null) { SecurityMarks = new global::Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks(); } SecurityMarks.MergeFrom(other.SecurityMarks); } if (other.createTime_ != null) { if (createTime_ == null) { CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreateTime.MergeFrom(other.CreateTime); } if (other.updateTime_ != null) { if (updateTime_ == null) { UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } UpdateTime.MergeFrom(other.UpdateTime); } if (other.iamPolicy_ != null) { if (iamPolicy_ == null) { IamPolicy = new global::Google.Cloud.SecurityCenter.V1P1Beta1.Asset.Types.IamPolicy(); } IamPolicy.MergeFrom(other.IamPolicy); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }