Skip to content

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

2.5 KB
Raw Blame
// Code generated by protoc-gen-equal-go. DO NOT EDIT.
// source: v1/actuator_service.proto

package v1

func (x *GetActuatorInfoRequest) Equal(y *GetActuatorInfoRequest) bool {
	if x == y {
		return true
	}
	if x == nil || y == nil {
		return x == nil && y == nil
	}
	return true
}

func (x *SampleInfo_Instance) Equal(y *SampleInfo_Instance) bool {
	if x == y {
		return true
	}
	if x == nil || y == nil {
		return x == nil && y == nil
	}
	if x.Instance != y.Instance {
		return false
	}
	if p, q := x.ExpireTime, y.ExpireTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
		return false
	}
	return true
}

func (x *SampleInfo) Equal(y *SampleInfo) bool {
	if x == y {
		return true
	}
	if x == nil || y == nil {
		return x == nil && y == nil
	}
	if x.Available != y.Available {
		return false
	}
	if len(x.Instances) != len(y.Instances) {
		return false
	}
	for i := 0; i < len(x.Instances); i++ {
		if !x.Instances[i].Equal(y.Instances[i]) {
			return false
		}
	}
	return true
}

func (x *ActuatorInfo) Equal(y *ActuatorInfo) bool {
	if x == y {
		return true
	}
	if x == nil || y == nil {
		return x == nil && y == nil
	}
	if x.Version != y.Version {
		return false
	}
	if x.GitCommit != y.GitCommit {
		return false
	}
	if x.Saas != y.Saas {
		return false
	}
	if x.ExternalUrl != y.ExternalUrl {
		return false
	}
	if p, q := x.LastActiveTime, y.LastActiveTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
		return false
	}
	if x.Workspace != y.Workspace {
		return false
	}
	if len(x.UnlicensedFeatures) != len(y.UnlicensedFeatures) {
		return false
	}
	for i := 0; i < len(x.UnlicensedFeatures); i++ {
		if x.UnlicensedFeatures[i] != y.UnlicensedFeatures[i] {
			return false
		}
	}
	if x.ActivatedInstanceCount != y.ActivatedInstanceCount {
		return false
	}
	if x.TotalInstanceCount != y.TotalInstanceCount {
		return false
	}
	if x.ExternalUrlFromFlag != y.ExternalUrlFromFlag {
		return false
	}
	if x.ReplicaCount != y.ReplicaCount {
		return false
	}
	if x.DefaultProject != y.DefaultProject {
		return false
	}
	if x.UserCountInIam != y.UserCountInIam {
		return false
	}
	if x.ActiveVcsUserCount != y.ActiveVcsUserCount {
		return false
	}
	if !x.Sample.Equal(y.Sample) {
		return false
	}
	if !x.McpSetting.Equal(y.McpSetting) {
		return false
	}
	if x.AiEnabled != y.AiEnabled {
		return false
	}
	if x.AiSqlReviewEnabled != y.AiSqlReviewEnabled {
		return false
	}
	return true
}