Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

966 B
Raw Blame
// Code generated by protoc-gen-equal-go. DO NOT EDIT.
// source: store/subscription.proto

package store

func (x *SubscriptionPayload) Equal(y *SubscriptionPayload) bool {
	if x == y {
		return true
	}
	if x == nil || y == nil {
		return x == nil && y == nil
	}
	if x.Status != y.Status {
		return false
	}
	if p, q := x.StartedAt, y.StartedAt; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
		return false
	}
	if p, q := x.ExpiresAt, y.ExpiresAt; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
		return false
	}
	if x.Plan != y.Plan {
		return false
	}
	if x.Interval != y.Interval {
		return false
	}
	if x.Seat != y.Seat {
		return false
	}
	if x.InstanceCount != y.InstanceCount {
		return false
	}
	if x.StripeSubscriptionId != y.StripeSubscriptionId {
		return false
	}
	if x.StripeCustomerId != y.StripeCustomerId {
		return false
	}
	return true
}