public override int GetHashCode() { int hash = 1; if (Cluster.Length != 0) { hash ^= Cluster.GetHashCode(); } if (attachmentTemplate_ != null) { hash ^= AttachmentTemplate.GetHashCode(); } if (requestTimeout_ != null) { hash ^= RequestTimeout.GetHashCode(); } if (attachmentTimeout_ != null) { hash ^= AttachmentTimeout.GetHashCode(); } if (attachmentPollPeriod_ != null) { hash ^= AttachmentPollPeriod.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(Squash other) { if (other == null) { return; } if (other.Cluster.Length != 0) { Cluster = other.Cluster; } if (other.attachmentTemplate_ != null) { if (attachmentTemplate_ == null) { AttachmentTemplate = new global::Google.Protobuf.WellKnownTypes.Struct(); } AttachmentTemplate.MergeFrom(other.AttachmentTemplate); } if (other.requestTimeout_ != null) { if (requestTimeout_ == null) { RequestTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); } RequestTimeout.MergeFrom(other.RequestTimeout); } if (other.attachmentTimeout_ != null) { if (attachmentTimeout_ == null) { AttachmentTimeout = new global::Google.Protobuf.WellKnownTypes.Duration(); } AttachmentTimeout.MergeFrom(other.AttachmentTimeout); } if (other.attachmentPollPeriod_ != null) { if (attachmentPollPeriod_ == null) { AttachmentPollPeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); } AttachmentPollPeriod.MergeFrom(other.AttachmentPollPeriod); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }