public void MergeFrom(Invitation other) { if (other == null) { return; } if (other.HasId) { Id = other.Id; } if (other.HasInviterIdentity) { if (!HasInviterIdentity) { InviterIdentity = new global::Bgs.Protocol.Identity(); } InviterIdentity.MergeFrom(other.InviterIdentity); } if (other.HasInviteeIdentity) { if (!HasInviteeIdentity) { InviteeIdentity = new global::Bgs.Protocol.Identity(); } InviteeIdentity.MergeFrom(other.InviteeIdentity); } if (other.HasInviterName) { InviterName = other.InviterName; } if (other.HasInviteeName) { InviteeName = other.InviteeName; } if (other.HasInvitationMessage) { InvitationMessage = other.InvitationMessage; } if (other.HasCreationTime) { CreationTime = other.CreationTime; } if (other.HasExpirationTime) { ExpirationTime = other.ExpirationTime; } pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (HasId) { hash ^= Id.GetHashCode(); } if (HasInviterIdentity) { hash ^= InviterIdentity.GetHashCode(); } if (HasInviteeIdentity) { hash ^= InviteeIdentity.GetHashCode(); } if (HasInviterName) { hash ^= InviterName.GetHashCode(); } if (HasInviteeName) { hash ^= InviteeName.GetHashCode(); } if (HasInvitationMessage) { hash ^= InvitationMessage.GetHashCode(); } if (HasCreationTime) { hash ^= CreationTime.GetHashCode(); } if (HasExpirationTime) { hash ^= ExpirationTime.GetHashCode(); } if (_extensions != null) { hash ^= _extensions.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }