public void MergeFrom(LifecycleRule other) { if (other == null) { return; } if (other.Description.Length != 0) { Description = other.Description; } if (other.expirePeriod_ != null) { if (expirePeriod_ == null) { ExpirePeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); } ExpirePeriod.MergeFrom(other.ExpirePeriod); } if (other.TagRegexp.Length != 0) { TagRegexp = other.TagRegexp; } if (other.Untagged != false) { Untagged = other.Untagged; } if (other.RetainedTop != 0L) { RetainedTop = other.RetainedTop; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (Description.Length != 0) { hash ^= Description.GetHashCode(); } if (expirePeriod_ != null) { hash ^= ExpirePeriod.GetHashCode(); } if (TagRegexp.Length != 0) { hash ^= TagRegexp.GetHashCode(); } if (Untagged != false) { hash ^= Untagged.GetHashCode(); } if (RetainedTop != 0L) { hash ^= RetainedTop.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }