Skip to content

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

chore: gen equal method for go proto messages (#17471)

p0ny0ef6d720aee2
diff --git a/backend/api/v1/project_service_test.go b/backend/api/v1/project_service_test.go
index 284453ef80..a6b9b6dbe2 100644
--- a/backend/api/v1/project_service_test.go
+++ b/backend/api/v1/project_service_test.go
@@ -8,11 +8,11 @@ import (
"connectrpc.com/connect"
"github.com/google/go-cmp/cmp"
- "github.com/google/go-cmp/cmp/cmpopts"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"google.golang.org/genproto/googleapis/type/expr"
+ "google.golang.org/protobuf/testing/protocmp"
"google.golang.org/protobuf/types/known/durationpb"
"github.com/bytebase/bytebase/backend/common"
@@ -365,10 +365,10 @@ func TestFindIamPolicyDeltas(t *testing.T) {
},
}
- for _, test := range tests {
+ for i, test := range tests {
deltas := findIamPolicyDeltas(test.oldPolicy, test.newIamPolicy)
- if !cmp.Equal(test.want, deltas, cmpopts.IgnoreUnexported(v1pb.BindingDelta{}, expr.Expr{})) {
- t.Fatalf("%v != %v", test.want, deltas)
+ if !cmp.Equal(test.want, deltas, protocmp.Transform()) {
+ t.Fatalf("index %d\n%s", i, cmp.Diff(test.want, deltas, protocmp.Transform()))
}
}
}
diff --git a/backend/generated-go/store/advice_equal.pb.go b/backend/generated-go/store/advice_equal.pb.go
new file mode 100644
index 0000000000..df86147fbc
--- /dev/null
+++ b/backend/generated-go/store/advice_equal.pb.go
@@ -0,0 +1,32 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/advice.proto
+
+package store
+
+func (x *Advice) Equal(y *Advice) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Status != y.Status {
+ return false
+ }
+ if x.Code != y.Code {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Content != y.Content {
+ return false
+ }
+ if !x.StartPosition.Equal(y.StartPosition) {
+ return false
+ }
+ if !x.EndPosition.Equal(y.EndPosition) {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/approval_equal.pb.go b/backend/generated-go/store/approval_equal.pb.go
new file mode 100644
index 0000000000..e3239c00c5
--- /dev/null
+++ b/backend/generated-go/store/approval_equal.pb.go
@@ -0,0 +1,129 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/approval.proto
+
+package store
+
+func (x *IssuePayloadApproval_Approver) Equal(y *IssuePayloadApproval_Approver) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Status != y.Status {
+ return false
+ }
+ if x.PrincipalId != y.PrincipalId {
+ return false
+ }
+ return true
+}
+
+func (x *IssuePayloadApproval) Equal(y *IssuePayloadApproval) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.ApprovalTemplates) != len(y.ApprovalTemplates) {
+ return false
+ }
+ for i := 0; i < len(x.ApprovalTemplates); i++ {
+ if !x.ApprovalTemplates[i].Equal(y.ApprovalTemplates[i]) {
+ return false
+ }
+ }
+ if len(x.Approvers) != len(y.Approvers) {
+ return false
+ }
+ for i := 0; i < len(x.Approvers); i++ {
+ if !x.Approvers[i].Equal(y.Approvers[i]) {
+ return false
+ }
+ }
+ if x.ApprovalFindingDone != y.ApprovalFindingDone {
+ return false
+ }
+ if x.ApprovalFindingError != y.ApprovalFindingError {
+ return false
+ }
+ if x.RiskLevel != y.RiskLevel {
+ return false
+ }
+ return true
+}
+
+func (x *ApprovalTemplate) Equal(y *ApprovalTemplate) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Flow.Equal(y.Flow) {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Description != y.Description {
+ return false
+ }
+ return true
+}
+
+func (x *ApprovalFlow) Equal(y *ApprovalFlow) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Steps) != len(y.Steps) {
+ return false
+ }
+ for i := 0; i < len(x.Steps); i++ {
+ if !x.Steps[i].Equal(y.Steps[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ApprovalStep) Equal(y *ApprovalStep) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if len(x.Nodes) != len(y.Nodes) {
+ return false
+ }
+ for i := 0; i < len(x.Nodes); i++ {
+ if !x.Nodes[i].Equal(y.Nodes[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ApprovalNode) Equal(y *ApprovalNode) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Role != y.Role {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/audit_log_equal.pb.go b/backend/generated-go/store/audit_log_equal.pb.go
new file mode 100644
index 0000000000..88bf2d2f71
--- /dev/null
+++ b/backend/generated-go/store/audit_log_equal.pb.go
@@ -0,0 +1,70 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/audit_log.proto
+
+package store
+
+import (
+ status "google.golang.org/genproto/googleapis/rpc/status"
+ proto "google.golang.org/protobuf/proto"
+)
+
+func (x *AuditLog) Equal(y *AuditLog) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if x.Method != y.Method {
+ return false
+ }
+ if x.Resource != y.Resource {
+ return false
+ }
+ if x.User != y.User {
+ return false
+ }
+ if x.Severity != y.Severity {
+ return false
+ }
+ if x.Request != y.Request {
+ return false
+ }
+ if x.Response != y.Response {
+ return false
+ }
+ if equal, ok := interface{}(x.Status).(interface{ Equal(*status.Status) bool }); !ok || !equal.Equal(y.Status) {
+ return false
+ } else if !proto.Equal(x.Status, y.Status) {
+ return false
+ }
+ if p, q := x.Latency, y.Latency; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if p, q := x.ServiceData, y.ServiceData; (p == nil && q != nil) || (p != nil && (q == nil || p.TypeUrl != q.TypeUrl || string(p.Value) != string(q.Value))) {
+ return false
+ }
+ if !x.RequestMetadata.Equal(y.RequestMetadata) {
+ return false
+ }
+ return true
+}
+
+func (x *RequestMetadata) Equal(y *RequestMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.CallerIp != y.CallerIp {
+ return false
+ }
+ if x.CallerSuppliedUserAgent != y.CallerSuppliedUserAgent {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/changelist_equal.pb.go b/backend/generated-go/store/changelist_equal.pb.go
new file mode 100644
index 0000000000..4e84da1dcc
--- /dev/null
+++ b/backend/generated-go/store/changelist_equal.pb.go
@@ -0,0 +1,41 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/changelist.proto
+
+package store
+
+func (x *Changelist_Change) Equal(y *Changelist_Change) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Sheet != y.Sheet {
+ return false
+ }
+ if x.Source != y.Source {
+ return false
+ }
+ return true
+}
+
+func (x *Changelist) Equal(y *Changelist) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Description != y.Description {
+ return false
+ }
+ if len(x.Changes) != len(y.Changes) {
+ return false
+ }
+ for i := 0; i < len(x.Changes); i++ {
+ if !x.Changes[i].Equal(y.Changes[i]) {
+ return false
+ }
+ }
+ return true
+}
diff --git a/backend/generated-go/store/changelog_equal.pb.go b/backend/generated-go/store/changelog_equal.pb.go
new file mode 100644
index 0000000000..d0998d1bcc
--- /dev/null
+++ b/backend/generated-go/store/changelog_equal.pb.go
@@ -0,0 +1,209 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/changelog.proto
+
+package store
+
+func (x *ChangelogPayload) Equal(y *ChangelogPayload) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.TaskRun != y.TaskRun {
+ return false
+ }
+ if x.Issue != y.Issue {
+ return false
+ }
+ if x.Revision != y.Revision {
+ return false
+ }
+ if !x.ChangedResources.Equal(y.ChangedResources) {
+ return false
+ }
+ if x.Sheet != y.Sheet {
+ return false
+ }
+ if x.Version != y.Version {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.GitCommit != y.GitCommit {
+ return false
+ }
+ return true
+}
+
+func (x *ChangedResources) Equal(y *ChangedResources) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Databases) != len(y.Databases) {
+ return false
+ }
+ for i := 0; i < len(x.Databases); i++ {
+ if !x.Databases[i].Equal(y.Databases[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ChangedResourceDatabase) Equal(y *ChangedResourceDatabase) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Schemas) != len(y.Schemas) {
+ return false
+ }
+ for i := 0; i < len(x.Schemas); i++ {
+ if !x.Schemas[i].Equal(y.Schemas[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ChangedResourceSchema) Equal(y *ChangedResourceSchema) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Tables) != len(y.Tables) {
+ return false
+ }
+ for i := 0; i < len(x.Tables); i++ {
+ if !x.Tables[i].Equal(y.Tables[i]) {
+ return false
+ }
+ }
+ if len(x.Views) != len(y.Views) {
+ return false
+ }
+ for i := 0; i < len(x.Views); i++ {
+ if !x.Views[i].Equal(y.Views[i]) {
+ return false
+ }
+ }
+ if len(x.Functions) != len(y.Functions) {
+ return false
+ }
+ for i := 0; i < len(x.Functions); i++ {
+ if !x.Functions[i].Equal(y.Functions[i]) {
+ return false
+ }
+ }
+ if len(x.Procedures) != len(y.Procedures) {
+ return false
+ }
+ for i := 0; i < len(x.Procedures); i++ {
+ if !x.Procedures[i].Equal(y.Procedures[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ChangedResourceTable) Equal(y *ChangedResourceTable) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.TableRows != y.TableRows {
+ return false
+ }
+ if len(x.Ranges) != len(y.Ranges) {
+ return false
+ }
+ for i := 0; i < len(x.Ranges); i++ {
+ if !x.Ranges[i].Equal(y.Ranges[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ChangedResourceView) Equal(y *ChangedResourceView) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Ranges) != len(y.Ranges) {
+ return false
+ }
+ for i := 0; i < len(x.Ranges); i++ {
+ if !x.Ranges[i].Equal(y.Ranges[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ChangedResourceFunction) Equal(y *ChangedResourceFunction) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Ranges) != len(y.Ranges) {
+ return false
+ }
+ for i := 0; i < len(x.Ranges); i++ {
+ if !x.Ranges[i].Equal(y.Ranges[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ChangedResourceProcedure) Equal(y *ChangedResourceProcedure) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Ranges) != len(y.Ranges) {
+ return false
+ }
+ for i := 0; i < len(x.Ranges); i++ {
+ if !x.Ranges[i].Equal(y.Ranges[i]) {
+ return false
+ }
+ }
+ return true
+}
diff --git a/backend/generated-go/store/common_equal.pb.go b/backend/generated-go/store/common_equal.pb.go
new file mode 100644
index 0000000000..ddb4201cdc
--- /dev/null
+++ b/backend/generated-go/store/common_equal.pb.go
@@ -0,0 +1,52 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/common.proto
+
+package store
+
+func (x *PageToken) Equal(y *PageToken) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Limit != y.Limit {
+ return false
+ }
+ if x.Offset != y.Offset {
+ return false
+ }
+ return true
+}
+
+func (x *Position) Equal(y *Position) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Line != y.Line {
+ return false
+ }
+ if x.Column != y.Column {
+ return false
+ }
+ return true
+}
+
+func (x *Range) Equal(y *Range) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Start != y.Start {
+ return false
+ }
+ if x.End != y.End {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/data_source_equal.pb.go b/backend/generated-go/store/data_source_equal.pb.go
new file mode 100644
index 0000000000..aaee95d6aa
--- /dev/null
+++ b/backend/generated-go/store/data_source_equal.pb.go
@@ -0,0 +1,4 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/data_source.proto
+
+package store
diff --git a/backend/generated-go/store/database_equal.pb.go b/backend/generated-go/store/database_equal.pb.go
new file mode 100644
index 0000000000..75e98ba8c9
--- /dev/null
+++ b/backend/generated-go/store/database_equal.pb.go
@@ -0,0 +1,1531 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/database.proto
+
+package store
+
+import (
+ math "math"
+)
+
+func (x *DatabaseMetadata) Equal(y *DatabaseMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Labels) != len(y.Labels) {
+ return false
+ }
+ for k := range x.Labels {
+ _, ok := y.Labels[k]
+ if !ok {
+ return false
+ }
+ if x.Labels[k] != y.Labels[k] {
+ return false
+ }
+ }
+ if p, q := x.LastSyncTime, y.LastSyncTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.BackupAvailable != y.BackupAvailable {
+ return false
+ }
+ if x.Datashare != y.Datashare {
+ return false
+ }
+ if x.Drifted != y.Drifted {
+ return false
+ }
+ if x.Version != y.Version {
+ return false
+ }
+ return true
+}
+
+func (x *DatabaseSchemaMetadata) Equal(y *DatabaseSchemaMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Schemas) != len(y.Schemas) {
+ return false
+ }
+ for i := 0; i < len(x.Schemas); i++ {
+ if !x.Schemas[i].Equal(y.Schemas[i]) {
+ return false
+ }
+ }
+ if x.CharacterSet != y.CharacterSet {
+ return false
+ }
+ if x.Collation != y.Collation {
+ return false
+ }
+ if len(x.Extensions) != len(y.Extensions) {
+ return false
+ }
+ for i := 0; i < len(x.Extensions); i++ {
+ if !x.Extensions[i].Equal(y.Extensions[i]) {
+ return false
+ }
+ }
+ if x.Datashare != y.Datashare {
+ return false
+ }
+ if x.ServiceName != y.ServiceName {
+ return false
+ }
+ if len(x.LinkedDatabases) != len(y.LinkedDatabases) {
+ return false
+ }
+ for i := 0; i < len(x.LinkedDatabases); i++ {
+ if !x.LinkedDatabases[i].Equal(y.LinkedDatabases[i]) {
+ return false
+ }
+ }
+ if x.Owner != y.Owner {
+ return false
+ }
+ if x.SearchPath != y.SearchPath {
+ return false
+ }
+ return true
+}
+
+func (x *LinkedDatabaseMetadata) Equal(y *LinkedDatabaseMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Username != y.Username {
+ return false
+ }
+ if x.Host != y.Host {
+ return false
+ }
+ return true
+}
+
+func (x *SchemaMetadata) Equal(y *SchemaMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Tables) != len(y.Tables) {
+ return false
+ }
+ for i := 0; i < len(x.Tables); i++ {
+ if !x.Tables[i].Equal(y.Tables[i]) {
+ return false
+ }
+ }
+ if len(x.ExternalTables) != len(y.ExternalTables) {
+ return false
+ }
+ for i := 0; i < len(x.ExternalTables); i++ {
+ if !x.ExternalTables[i].Equal(y.ExternalTables[i]) {
+ return false
+ }
+ }
+ if len(x.Views) != len(y.Views) {
+ return false
+ }
+ for i := 0; i < len(x.Views); i++ {
+ if !x.Views[i].Equal(y.Views[i]) {
+ return false
+ }
+ }
+ if len(x.Functions) != len(y.Functions) {
+ return false
+ }
+ for i := 0; i < len(x.Functions); i++ {
+ if !x.Functions[i].Equal(y.Functions[i]) {
+ return false
+ }
+ }
+ if len(x.Procedures) != len(y.Procedures) {
+ return false
+ }
+ for i := 0; i < len(x.Procedures); i++ {
+ if !x.Procedures[i].Equal(y.Procedures[i]) {
+ return false
+ }
+ }
+ if len(x.Streams) != len(y.Streams) {
+ return false
+ }
+ for i := 0; i < len(x.Streams); i++ {
+ if !x.Streams[i].Equal(y.Streams[i]) {
+ return false
+ }
+ }
+ if len(x.Tasks) != len(y.Tasks) {
+ return false
+ }
+ for i := 0; i < len(x.Tasks); i++ {
+ if !x.Tasks[i].Equal(y.Tasks[i]) {
+ return false
+ }
+ }
+ if len(x.MaterializedViews) != len(y.MaterializedViews) {
+ return false
+ }
+ for i := 0; i < len(x.MaterializedViews); i++ {
+ if !x.MaterializedViews[i].Equal(y.MaterializedViews[i]) {
+ return false
+ }
+ }
+ if len(x.Sequences) != len(y.Sequences) {
+ return false
+ }
+ for i := 0; i < len(x.Sequences); i++ {
+ if !x.Sequences[i].Equal(y.Sequences[i]) {
+ return false
+ }
+ }
+ if len(x.Packages) != len(y.Packages) {
+ return false
+ }
+ for i := 0; i < len(x.Packages); i++ {
+ if !x.Packages[i].Equal(y.Packages[i]) {
+ return false
+ }
+ }
+ if x.Owner != y.Owner {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if len(x.Events) != len(y.Events) {
+ return false
+ }
+ for i := 0; i < len(x.Events); i++ {
+ if !x.Events[i].Equal(y.Events[i]) {
+ return false
+ }
+ }
+ if len(x.EnumTypes) != len(y.EnumTypes) {
+ return false
+ }
+ for i := 0; i < len(x.EnumTypes); i++ {
+ if !x.EnumTypes[i].Equal(y.EnumTypes[i]) {
+ return false
+ }
+ }
+ if x.SkipDump != y.SkipDump {
+ return false
+ }
+ return true
+}
+
+func (x *EnumTypeMetadata) Equal(y *EnumTypeMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Values) != len(y.Values) {
+ return false
+ }
+ for i := 0; i < len(x.Values); i++ {
+ if x.Values[i] != y.Values[i] {
+ return false
+ }
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if x.SkipDump != y.SkipDump {
+ return false
+ }
+ return true
+}
+
+func (x *EventMetadata) Equal(y *EventMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Definition != y.Definition {
+ return false
+ }
+ if x.TimeZone != y.TimeZone {
+ return false
+ }
+ if x.SqlMode != y.SqlMode {
+ return false
+ }
+ if x.CharacterSetClient != y.CharacterSetClient {
+ return false
+ }
+ if x.CollationConnection != y.CollationConnection {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ return true
+}
+
+func (x *SequenceMetadata) Equal(y *SequenceMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.DataType != y.DataType {
+ return false
+ }
+ if x.Start != y.Start {
+ return false
+ }
+ if x.MinValue != y.MinValue {
+ return false
+ }
+ if x.MaxValue != y.MaxValue {
+ return false
+ }
+ if x.Increment != y.Increment {
+ return false
+ }
+ if x.Cycle != y.Cycle {
+ return false
+ }
+ if x.CacheSize != y.CacheSize {
+ return false
+ }
+ if x.LastValue != y.LastValue {
+ return false
+ }
+ if x.OwnerTable != y.OwnerTable {
+ return false
+ }
+ if x.OwnerColumn != y.OwnerColumn {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if x.SkipDump != y.SkipDump {
+ return false
+ }
+ return true
+}
+
+func (x *TriggerMetadata) Equal(y *TriggerMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Event != y.Event {
+ return false
+ }
+ if x.Timing != y.Timing {
+ return false
+ }
+ if x.Body != y.Body {
+ return false
+ }
+ if x.SqlMode != y.SqlMode {
+ return false
+ }
+ if x.CharacterSetClient != y.CharacterSetClient {
+ return false
+ }
+ if x.CollationConnection != y.CollationConnection {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if x.SkipDump != y.SkipDump {
+ return false
+ }
+ return true
+}
+
+func (x *RuleMetadata) Equal(y *RuleMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Event != y.Event {
+ return false
+ }
+ if x.Condition != y.Condition {
+ return false
+ }
+ if x.Action != y.Action {
+ return false
+ }
+ if x.IsInstead != y.IsInstead {
+ return false
+ }
+ if x.IsEnabled != y.IsEnabled {
+ return false
+ }
+ if x.Definition != y.Definition {
+ return false
+ }
+ return true
+}
+
+func (x *TaskMetadata) Equal(y *TaskMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Owner != y.Owner {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if x.Warehouse != y.Warehouse {
+ return false
+ }
+ if x.Schedule != y.Schedule {
+ return false
+ }
+ if len(x.Predecessors) != len(y.Predecessors) {
+ return false
+ }
+ for i := 0; i < len(x.Predecessors); i++ {
+ if x.Predecessors[i] != y.Predecessors[i] {
+ return false
+ }
+ }
+ if x.State != y.State {
+ return false
+ }
+ if x.Condition != y.Condition {
+ return false
+ }
+ if x.Definition != y.Definition {
+ return false
+ }
+ return true
+}
+
+func (x *StreamMetadata) Equal(y *StreamMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.TableName != y.TableName {
+ return false
+ }
+ if x.Owner != y.Owner {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Stale != y.Stale {
+ return false
+ }
+ if x.Mode != y.Mode {
+ return false
+ }
+ if x.Definition != y.Definition {
+ return false
+ }
+ return true
+}
+
+func (x *TableMetadata) Equal(y *TableMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Columns) != len(y.Columns) {
+ return false
+ }
+ for i := 0; i < len(x.Columns); i++ {
+ if !x.Columns[i].Equal(y.Columns[i]) {
+ return false
+ }
+ }
+ if len(x.Indexes) != len(y.Indexes) {
+ return false
+ }
+ for i := 0; i < len(x.Indexes); i++ {
+ if !x.Indexes[i].Equal(y.Indexes[i]) {
+ return false
+ }
+ }
+ if x.Engine != y.Engine {
+ return false
+ }
+ if x.Collation != y.Collation {
+ return false
+ }
+ if x.Charset != y.Charset {
+ return false
+ }
+ if x.RowCount != y.RowCount {
+ return false
+ }
+ if x.DataSize != y.DataSize {
+ return false
+ }
+ if x.IndexSize != y.IndexSize {
+ return false
+ }
+ if x.DataFree != y.DataFree {
+ return false
+ }
+ if x.CreateOptions != y.CreateOptions {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if x.UserComment != y.UserComment {
+ return false
+ }
+ if len(x.ForeignKeys) != len(y.ForeignKeys) {
+ return false
+ }
+ for i := 0; i < len(x.ForeignKeys); i++ {
+ if !x.ForeignKeys[i].Equal(y.ForeignKeys[i]) {
+ return false
+ }
+ }
+ if len(x.Partitions) != len(y.Partitions) {
+ return false
+ }
+ for i := 0; i < len(x.Partitions); i++ {
+ if !x.Partitions[i].Equal(y.Partitions[i]) {
+ return false
+ }
+ }
+ if len(x.CheckConstraints) != len(y.CheckConstraints) {
+ return false
+ }
+ for i := 0; i < len(x.CheckConstraints); i++ {
+ if !x.CheckConstraints[i].Equal(y.CheckConstraints[i]) {
+ return false
+ }
+ }
+ if x.Owner != y.Owner {
+ return false
+ }
+ if len(x.SortingKeys) != len(y.SortingKeys) {
+ return false
+ }
+ for i := 0; i < len(x.SortingKeys); i++ {
+ if x.SortingKeys[i] != y.SortingKeys[i] {
+ return false
+ }
+ }
+ if len(x.Triggers) != len(y.Triggers) {
+ return false
+ }
+ for i := 0; i < len(x.Triggers); i++ {
+ if !x.Triggers[i].Equal(y.Triggers[i]) {
+ return false
+ }
+ }
+ if x.SkipDump != y.SkipDump {
+ return false
+ }
+ if len(x.Rules) != len(y.Rules) {
+ return false
+ }
+ for i := 0; i < len(x.Rules); i++ {
+ if !x.Rules[i].Equal(y.Rules[i]) {
+ return false
+ }
+ }
+ if x.ShardingInfo != y.ShardingInfo {
+ return false
+ }
+ if x.PrimaryKeyType != y.PrimaryKeyType {
+ return false
+ }
+ return true
+}
+
+func (x *CheckConstraintMetadata) Equal(y *CheckConstraintMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Expression != y.Expression {
+ return false
+ }
+ return true
+}
+
+func (x *ExternalTableMetadata) Equal(y *ExternalTableMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.ExternalServerName != y.ExternalServerName {
+ return false
+ }
+ if x.ExternalDatabaseName != y.ExternalDatabaseName {
+ return false
+ }
+ if len(x.Columns) != len(y.Columns) {
+ return false
+ }
+ for i := 0; i < len(x.Columns); i++ {
+ if !x.Columns[i].Equal(y.Columns[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *TablePartitionMetadata) Equal(y *TablePartitionMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Expression != y.Expression {
+ return false
+ }
+ if x.Value != y.Value {
+ return false
+ }
+ if x.UseDefault != y.UseDefault {
+ return false
+ }
+ if len(x.Subpartitions) != len(y.Subpartitions) {
+ return false
+ }
+ for i := 0; i < len(x.Subpartitions); i++ {
+ if !x.Subpartitions[i].Equal(y.Subpartitions[i]) {
+ return false
+ }
+ }
+ if len(x.Indexes) != len(y.Indexes) {
+ return false
+ }
+ for i := 0; i < len(x.Indexes); i++ {
+ if !x.Indexes[i].Equal(y.Indexes[i]) {
+ return false
+ }
+ }
+ if len(x.CheckConstraints) != len(y.CheckConstraints) {
+ return false
+ }
+ for i := 0; i < len(x.CheckConstraints); i++ {
+ if !x.CheckConstraints[i].Equal(y.CheckConstraints[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ColumnMetadata) Equal(y *ColumnMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Position != y.Position {
+ return false
+ }
+ if x.Default != y.Default {
+ return false
+ }
+ if x.DefaultNull != y.DefaultNull {
+ return false
+ }
+ if x.DefaultExpression != y.DefaultExpression {
+ return false
+ }
+ if x.DefaultOnNull != y.DefaultOnNull {
+ return false
+ }
+ if x.OnUpdate != y.OnUpdate {
+ return false
+ }
+ if x.Nullable != y.Nullable {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.CharacterSet != y.CharacterSet {
+ return false
+ }
+ if x.Collation != y.Collation {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if x.UserComment != y.UserComment {
+ return false
+ }
+ if !x.Generation.Equal(y.Generation) {
+ return false
+ }
+ if x.IsIdentity != y.IsIdentity {
+ return false
+ }
+ if x.IdentityGeneration != y.IdentityGeneration {
+ return false
+ }
+ if x.IdentitySeed != y.IdentitySeed {
+ return false
+ }
+ if x.IdentityIncrement != y.IdentityIncrement {
+ return false
+ }
+ if x.DefaultConstraintName != y.DefaultConstraintName {
+ return false
+ }
+ return true
+}
+
+func (x *GenerationMetadata) Equal(y *GenerationMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Expression != y.Expression {
+ return false
+ }
+ return true
+}
+
+func (x *ViewMetadata) Equal(y *ViewMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Definition != y.Definition {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if len(x.DependencyColumns) != len(y.DependencyColumns) {
+ return false
+ }
+ for i := 0; i < len(x.DependencyColumns); i++ {
+ if !x.DependencyColumns[i].Equal(y.DependencyColumns[i]) {
+ return false
+ }
+ }
+ if len(x.Columns) != len(y.Columns) {
+ return false
+ }
+ for i := 0; i < len(x.Columns); i++ {
+ if !x.Columns[i].Equal(y.Columns[i]) {
+ return false
+ }
+ }
+ if len(x.Triggers) != len(y.Triggers) {
+ return false
+ }
+ for i := 0; i < len(x.Triggers); i++ {
+ if !x.Triggers[i].Equal(y.Triggers[i]) {
+ return false
+ }
+ }
+ if x.SkipDump != y.SkipDump {
+ return false
+ }
+ if len(x.Rules) != len(y.Rules) {
+ return false
+ }
+ for i := 0; i < len(x.Rules); i++ {
+ if !x.Rules[i].Equal(y.Rules[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *DependencyColumn) Equal(y *DependencyColumn) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Schema != y.Schema {
+ return false
+ }
+ if x.Table != y.Table {
+ return false
+ }
+ if x.Column != y.Column {
+ return false
+ }
+ return true
+}
+
+func (x *MaterializedViewMetadata) Equal(y *MaterializedViewMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Definition != y.Definition {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if len(x.DependencyColumns) != len(y.DependencyColumns) {
+ return false
+ }
+ for i := 0; i < len(x.DependencyColumns); i++ {
+ if !x.DependencyColumns[i].Equal(y.DependencyColumns[i]) {
+ return false
+ }
+ }
+ if len(x.Triggers) != len(y.Triggers) {
+ return false
+ }
+ for i := 0; i < len(x.Triggers); i++ {
+ if !x.Triggers[i].Equal(y.Triggers[i]) {
+ return false
+ }
+ }
+ if len(x.Indexes) != len(y.Indexes) {
+ return false
+ }
+ for i := 0; i < len(x.Indexes); i++ {
+ if !x.Indexes[i].Equal(y.Indexes[i]) {
+ return false
+ }
+ }
+ if x.SkipDump != y.SkipDump {
+ return false
+ }
+ return true
+}
+
+func (x *DependencyTable) Equal(y *DependencyTable) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Schema != y.Schema {
+ return false
+ }
+ if x.Table != y.Table {
+ return false
+ }
+ return true
+}
+
+func (x *FunctionMetadata) Equal(y *FunctionMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Definition != y.Definition {
+ return false
+ }
+ if x.Signature != y.Signature {
+ return false
+ }
+ if x.CharacterSetClient != y.CharacterSetClient {
+ return false
+ }
+ if x.CollationConnection != y.CollationConnection {
+ return false
+ }
+ if x.DatabaseCollation != y.DatabaseCollation {
+ return false
+ }
+ if x.SqlMode != y.SqlMode {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if len(x.DependencyTables) != len(y.DependencyTables) {
+ return false
+ }
+ for i := 0; i < len(x.DependencyTables); i++ {
+ if !x.DependencyTables[i].Equal(y.DependencyTables[i]) {
+ return false
+ }
+ }
+ if x.SkipDump != y.SkipDump {
+ return false
+ }
+ return true
+}
+
+func (x *ProcedureMetadata) Equal(y *ProcedureMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Definition != y.Definition {
+ return false
+ }
+ if x.Signature != y.Signature {
+ return false
+ }
+ if x.CharacterSetClient != y.CharacterSetClient {
+ return false
+ }
+ if x.CollationConnection != y.CollationConnection {
+ return false
+ }
+ if x.DatabaseCollation != y.DatabaseCollation {
+ return false
+ }
+ if x.SqlMode != y.SqlMode {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if x.SkipDump != y.SkipDump {
+ return false
+ }
+ return true
+}
+
+func (x *PackageMetadata) Equal(y *PackageMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Definition != y.Definition {
+ return false
+ }
+ return true
+}
+
+func (x *IndexMetadata) Equal(y *IndexMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Expressions) != len(y.Expressions) {
+ return false
+ }
+ for i := 0; i < len(x.Expressions); i++ {
+ if x.Expressions[i] != y.Expressions[i] {
+ return false
+ }
+ }
+ if len(x.KeyLength) != len(y.KeyLength) {
+ return false
+ }
+ for i := 0; i < len(x.KeyLength); i++ {
+ if x.KeyLength[i] != y.KeyLength[i] {
+ return false
+ }
+ }
+ if len(x.Descending) != len(y.Descending) {
+ return false
+ }
+ for i := 0; i < len(x.Descending); i++ {
+ if x.Descending[i] != y.Descending[i] {
+ return false
+ }
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Unique != y.Unique {
+ return false
+ }
+ if x.Primary != y.Primary {
+ return false
+ }
+ if x.Visible != y.Visible {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if x.Definition != y.Definition {
+ return false
+ }
+ if x.ParentIndexSchema != y.ParentIndexSchema {
+ return false
+ }
+ if x.ParentIndexName != y.ParentIndexName {
+ return false
+ }
+ if x.Granularity != y.Granularity {
+ return false
+ }
+ if x.IsConstraint != y.IsConstraint {
+ return false
+ }
+ if !x.SpatialConfig.Equal(y.SpatialConfig) {
+ return false
+ }
+ if len(x.OpclassNames) != len(y.OpclassNames) {
+ return false
+ }
+ for i := 0; i < len(x.OpclassNames); i++ {
+ if x.OpclassNames[i] != y.OpclassNames[i] {
+ return false
+ }
+ }
+ if len(x.OpclassDefaults) != len(y.OpclassDefaults) {
+ return false
+ }
+ for i := 0; i < len(x.OpclassDefaults); i++ {
+ if x.OpclassDefaults[i] != y.OpclassDefaults[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *SpatialIndexConfig) Equal(y *SpatialIndexConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Method != y.Method {
+ return false
+ }
+ if !x.Tessellation.Equal(y.Tessellation) {
+ return false
+ }
+ if !x.Storage.Equal(y.Storage) {
+ return false
+ }
+ if !x.Dimensional.Equal(y.Dimensional) {
+ return false
+ }
+ if len(x.EngineSpecific) != len(y.EngineSpecific) {
+ return false
+ }
+ for k := range x.EngineSpecific {
+ _, ok := y.EngineSpecific[k]
+ if !ok {
+ return false
+ }
+ if x.EngineSpecific[k] != y.EngineSpecific[k] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *TessellationConfig) Equal(y *TessellationConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Scheme != y.Scheme {
+ return false
+ }
+ if !x.BoundingBox.Equal(y.BoundingBox) {
+ return false
+ }
+ if len(x.GridLevels) != len(y.GridLevels) {
+ return false
+ }
+ for i := 0; i < len(x.GridLevels); i++ {
+ if !x.GridLevels[i].Equal(y.GridLevels[i]) {
+ return false
+ }
+ }
+ if x.CellsPerObject != y.CellsPerObject {
+ return false
+ }
+ return true
+}
+
+func (x *BoundingBox) Equal(y *BoundingBox) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if (math.IsNaN(float64(x.Xmin)) && !math.IsNaN(float64(y.Xmin)) || !math.IsNaN(float64(x.Xmin)) && math.IsNaN(float64(y.Xmin))) || (!math.IsNaN(float64(x.Xmin)) && !math.IsNaN(float64(y.Xmin)) && x.Xmin != y.Xmin) {
+ return false
+ }
+ if (math.IsNaN(float64(x.Ymin)) && !math.IsNaN(float64(y.Ymin)) || !math.IsNaN(float64(x.Ymin)) && math.IsNaN(float64(y.Ymin))) || (!math.IsNaN(float64(x.Ymin)) && !math.IsNaN(float64(y.Ymin)) && x.Ymin != y.Ymin) {
+ return false
+ }
+ if (math.IsNaN(float64(x.Xmax)) && !math.IsNaN(float64(y.Xmax)) || !math.IsNaN(float64(x.Xmax)) && math.IsNaN(float64(y.Xmax))) || (!math.IsNaN(float64(x.Xmax)) && !math.IsNaN(float64(y.Xmax)) && x.Xmax != y.Xmax) {
+ return false
+ }
+ if (math.IsNaN(float64(x.Ymax)) && !math.IsNaN(float64(y.Ymax)) || !math.IsNaN(float64(x.Ymax)) && math.IsNaN(float64(y.Ymax))) || (!math.IsNaN(float64(x.Ymax)) && !math.IsNaN(float64(y.Ymax)) && x.Ymax != y.Ymax) {
+ return false
+ }
+ return true
+}
+
+func (x *GridLevel) Equal(y *GridLevel) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Level != y.Level {
+ return false
+ }
+ if x.Density != y.Density {
+ return false
+ }
+ return true
+}
+
+func (x *StorageConfig) Equal(y *StorageConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Fillfactor != y.Fillfactor {
+ return false
+ }
+ if x.Buffering != y.Buffering {
+ return false
+ }
+ if x.Tablespace != y.Tablespace {
+ return false
+ }
+ if x.WorkTablespace != y.WorkTablespace {
+ return false
+ }
+ if x.SdoLevel != y.SdoLevel {
+ return false
+ }
+ if x.CommitInterval != y.CommitInterval {
+ return false
+ }
+ if x.PadIndex != y.PadIndex {
+ return false
+ }
+ if x.SortInTempdb != y.SortInTempdb {
+ return false
+ }
+ if x.DropExisting != y.DropExisting {
+ return false
+ }
+ if x.Online != y.Online {
+ return false
+ }
+ if x.AllowRowLocks != y.AllowRowLocks {
+ return false
+ }
+ if x.AllowPageLocks != y.AllowPageLocks {
+ return false
+ }
+ if x.Maxdop != y.Maxdop {
+ return false
+ }
+ if x.DataCompression != y.DataCompression {
+ return false
+ }
+ return true
+}
+
+func (x *DimensionalConfig) Equal(y *DimensionalConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Dimensions != y.Dimensions {
+ return false
+ }
+ if x.DataType != y.DataType {
+ return false
+ }
+ if x.OperatorClass != y.OperatorClass {
+ return false
+ }
+ if x.LayerGtype != y.LayerGtype {
+ return false
+ }
+ if x.ParallelBuild != y.ParallelBuild {
+ return false
+ }
+ return true
+}
+
+func (x *ExtensionMetadata) Equal(y *ExtensionMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Schema != y.Schema {
+ return false
+ }
+ if x.Version != y.Version {
+ return false
+ }
+ if x.Description != y.Description {
+ return false
+ }
+ return true
+}
+
+func (x *ForeignKeyMetadata) Equal(y *ForeignKeyMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Columns) != len(y.Columns) {
+ return false
+ }
+ for i := 0; i < len(x.Columns); i++ {
+ if x.Columns[i] != y.Columns[i] {
+ return false
+ }
+ }
+ if x.ReferencedSchema != y.ReferencedSchema {
+ return false
+ }
+ if x.ReferencedTable != y.ReferencedTable {
+ return false
+ }
+ if len(x.ReferencedColumns) != len(y.ReferencedColumns) {
+ return false
+ }
+ for i := 0; i < len(x.ReferencedColumns); i++ {
+ if x.ReferencedColumns[i] != y.ReferencedColumns[i] {
+ return false
+ }
+ }
+ if x.OnDelete != y.OnDelete {
+ return false
+ }
+ if x.OnUpdate != y.OnUpdate {
+ return false
+ }
+ if x.MatchType != y.MatchType {
+ return false
+ }
+ return true
+}
+
+func (x *InstanceRoleMetadata) Equal(y *InstanceRoleMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Grant != y.Grant {
+ return false
+ }
+ return true
+}
+
+func (x *DatabaseConfig) Equal(y *DatabaseConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Schemas) != len(y.Schemas) {
+ return false
+ }
+ for i := 0; i < len(x.Schemas); i++ {
+ if !x.Schemas[i].Equal(y.Schemas[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *SchemaCatalog) Equal(y *SchemaCatalog) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Tables) != len(y.Tables) {
+ return false
+ }
+ for i := 0; i < len(x.Tables); i++ {
+ if !x.Tables[i].Equal(y.Tables[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *TableCatalog) Equal(y *TableCatalog) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Columns) != len(y.Columns) {
+ return false
+ }
+ for i := 0; i < len(x.Columns); i++ {
+ if !x.Columns[i].Equal(y.Columns[i]) {
+ return false
+ }
+ }
+ if !x.ObjectSchema.Equal(y.ObjectSchema) {
+ return false
+ }
+ if x.Classification != y.Classification {
+ return false
+ }
+ return true
+}
+
+func (x *ColumnCatalog) Equal(y *ColumnCatalog) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.SemanticType != y.SemanticType {
+ return false
+ }
+ if len(x.Labels) != len(y.Labels) {
+ return false
+ }
+ for k := range x.Labels {
+ _, ok := y.Labels[k]
+ if !ok {
+ return false
+ }
+ if x.Labels[k] != y.Labels[k] {
+ return false
+ }
+ }
+ if x.Classification != y.Classification {
+ return false
+ }
+ if !x.ObjectSchema.Equal(y.ObjectSchema) {
+ return false
+ }
+ if x.MaskingLevel != y.MaskingLevel {
+ return false
+ }
+ if x.FullMaskingAlgorithmId != y.FullMaskingAlgorithmId {
+ return false
+ }
+ if x.PartialMaskingAlgorithmId != y.PartialMaskingAlgorithmId {
+ return false
+ }
+ return true
+}
+
+func (x *ObjectSchema_StructKind) Equal(y *ObjectSchema_StructKind) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Properties) != len(y.Properties) {
+ return false
+ }
+ for k := range x.Properties {
+ _, ok := y.Properties[k]
+ if !ok {
+ return false
+ }
+ if !x.Properties[k].Equal(y.Properties[k]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ObjectSchema_ArrayKind) Equal(y *ObjectSchema_ArrayKind) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Kind.Equal(y.Kind) {
+ return false
+ }
+ return true
+}
+
+func (x *ObjectSchema) Equal(y *ObjectSchema) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if !x.GetStructKind().Equal(y.GetStructKind()) {
+ return false
+ }
+ if !x.GetArrayKind().Equal(y.GetArrayKind()) {
+ return false
+ }
+ if x.SemanticType != y.SemanticType {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/db_group_equal.pb.go b/backend/generated-go/store/db_group_equal.pb.go
new file mode 100644
index 0000000000..66543e547d
--- /dev/null
+++ b/backend/generated-go/store/db_group_equal.pb.go
@@ -0,0 +1,14 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/db_group.proto
+
+package store
+
+func (x *DatabaseGroupPayload) Equal(y *DatabaseGroupPayload) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
diff --git a/backend/generated-go/store/export_archive_equal.pb.go b/backend/generated-go/store/export_archive_equal.pb.go
new file mode 100644
index 0000000000..3cb260b029
--- /dev/null
+++ b/backend/generated-go/store/export_archive_equal.pb.go
@@ -0,0 +1,17 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/export_archive.proto
+
+package store
+
+func (x *ExportArchivePayload) Equal(y *ExportArchivePayload) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.FileFormat != y.FileFormat {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/group_equal.pb.go b/backend/generated-go/store/group_equal.pb.go
new file mode 100644
index 0000000000..7789e7554d
--- /dev/null
+++ b/backend/generated-go/store/group_equal.pb.go
@@ -0,0 +1,41 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/group.proto
+
+package store
+
+func (x *GroupMember) Equal(y *GroupMember) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Member != y.Member {
+ return false
+ }
+ if x.Role != y.Role {
+ return false
+ }
+ return true
+}
+
+func (x *GroupPayload) Equal(y *GroupPayload) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Members) != len(y.Members) {
+ return false
+ }
+ for i := 0; i < len(x.Members); i++ {
+ if !x.Members[i].Equal(y.Members[i]) {
+ return false
+ }
+ }
+ if x.Source != y.Source {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/idp_equal.pb.go b/backend/generated-go/store/idp_equal.pb.go
new file mode 100644
index 0000000000..0d337874c5
--- /dev/null
+++ b/backend/generated-go/store/idp_equal.pb.go
@@ -0,0 +1,190 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/idp.proto
+
+package store
+
+func (x *IdentityProviderConfig) Equal(y *IdentityProviderConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.GetOauth2Config().Equal(y.GetOauth2Config()) {
+ return false
+ }
+ if !x.GetOidcConfig().Equal(y.GetOidcConfig()) {
+ return false
+ }
+ if !x.GetLdapConfig().Equal(y.GetLdapConfig()) {
+ return false
+ }
+ return true
+}
+
+func (x *OAuth2IdentityProviderConfig) Equal(y *OAuth2IdentityProviderConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.AuthUrl != y.AuthUrl {
+ return false
+ }
+ if x.TokenUrl != y.TokenUrl {
+ return false
+ }
+ if x.UserInfoUrl != y.UserInfoUrl {
+ return false
+ }
+ if x.ClientId != y.ClientId {
+ return false
+ }
+ if x.ClientSecret != y.ClientSecret {
+ return false
+ }
+ if len(x.Scopes) != len(y.Scopes) {
+ return false
+ }
+ for i := 0; i < len(x.Scopes); i++ {
+ if x.Scopes[i] != y.Scopes[i] {
+ return false
+ }
+ }
+ if !x.FieldMapping.Equal(y.FieldMapping) {
+ return false
+ }
+ if x.SkipTlsVerify != y.SkipTlsVerify {
+ return false
+ }
+ if x.AuthStyle != y.AuthStyle {
+ return false
+ }
+ return true
+}
+
+func (x *OIDCIdentityProviderConfig) Equal(y *OIDCIdentityProviderConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Issuer != y.Issuer {
+ return false
+ }
+ if x.ClientId != y.ClientId {
+ return false
+ }
+ if x.ClientSecret != y.ClientSecret {
+ return false
+ }
+ if !x.FieldMapping.Equal(y.FieldMapping) {
+ return false
+ }
+ if x.SkipTlsVerify != y.SkipTlsVerify {
+ return false
+ }
+ if x.AuthStyle != y.AuthStyle {
+ return false
+ }
+ if len(x.Scopes) != len(y.Scopes) {
+ return false
+ }
+ for i := 0; i < len(x.Scopes); i++ {
+ if x.Scopes[i] != y.Scopes[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *LDAPIdentityProviderConfig) Equal(y *LDAPIdentityProviderConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Host != y.Host {
+ return false
+ }
+ if x.Port != y.Port {
+ return false
+ }
+ if x.SkipTlsVerify != y.SkipTlsVerify {
+ return false
+ }
+ if x.BindDn != y.BindDn {
+ return false
+ }
+ if x.BindPassword != y.BindPassword {
+ return false
+ }
+ if x.BaseDn != y.BaseDn {
+ return false
+ }
+ if x.UserFilter != y.UserFilter {
+ return false
+ }
+ if x.SecurityProtocol != y.SecurityProtocol {
+ return false
+ }
+ if !x.FieldMapping.Equal(y.FieldMapping) {
+ return false
+ }
+ return true
+}
+
+func (x *FieldMapping) Equal(y *FieldMapping) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Identifier != y.Identifier {
+ return false
+ }
+ if x.DisplayName != y.DisplayName {
+ return false
+ }
+ if x.Phone != y.Phone {
+ return false
+ }
+ if x.Groups != y.Groups {
+ return false
+ }
+ return true
+}
+
+func (x *IdentityProviderUserInfo) Equal(y *IdentityProviderUserInfo) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Identifier != y.Identifier {
+ return false
+ }
+ if x.DisplayName != y.DisplayName {
+ return false
+ }
+ if x.Phone != y.Phone {
+ return false
+ }
+ if len(x.Groups) != len(y.Groups) {
+ return false
+ }
+ for i := 0; i < len(x.Groups); i++ {
+ if x.Groups[i] != y.Groups[i] {
+ return false
+ }
+ }
+ if x.HasGroups != y.HasGroups {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/instance_change_history_equal.pb.go b/backend/generated-go/store/instance_change_history_equal.pb.go
new file mode 100644
index 0000000000..ce803a2c67
--- /dev/null
+++ b/backend/generated-go/store/instance_change_history_equal.pb.go
@@ -0,0 +1,17 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/instance_change_history.proto
+
+package store
+
+func (x *InstanceChangeHistoryPayload) Equal(y *InstanceChangeHistoryPayload) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.ChangedResources.Equal(y.ChangedResources) {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/instance_equal.pb.go b/backend/generated-go/store/instance_equal.pb.go
new file mode 100644
index 0000000000..313607ff2a
--- /dev/null
+++ b/backend/generated-go/store/instance_equal.pb.go
@@ -0,0 +1,434 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/instance.proto
+
+package store
+
+func (x *Instance) Equal(y *Instance) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Engine != y.Engine {
+ return false
+ }
+ if x.Activation != y.Activation {
+ return false
+ }
+ if x.Version != y.Version {
+ return false
+ }
+ if x.ExternalLink != y.ExternalLink {
+ return false
+ }
+ if len(x.DataSources) != len(y.DataSources) {
+ return false
+ }
+ for i := 0; i < len(x.DataSources); i++ {
+ if !x.DataSources[i].Equal(y.DataSources[i]) {
+ return false
+ }
+ }
+ if p, q := x.SyncInterval, y.SyncInterval; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.MaximumConnections != y.MaximumConnections {
+ return false
+ }
+ if len(x.SyncDatabases) != len(y.SyncDatabases) {
+ return false
+ }
+ for i := 0; i < len(x.SyncDatabases); i++ {
+ if x.SyncDatabases[i] != y.SyncDatabases[i] {
+ return false
+ }
+ }
+ if x.MysqlLowerCaseTableNames != y.MysqlLowerCaseTableNames {
+ return false
+ }
+ if p, q := x.LastSyncTime, y.LastSyncTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if len(x.Roles) != len(y.Roles) {
+ return false
+ }
+ for i := 0; i < len(x.Roles); i++ {
+ if !x.Roles[i].Equal(y.Roles[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *InstanceRole) Equal(y *InstanceRole) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if p, q := x.ConnectionLimit, y.ConnectionLimit; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.ValidUntil, y.ValidUntil; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.Attribute, y.Attribute; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ return true
+}
+
+func (x *DataSource_AzureCredential) Equal(y *DataSource_AzureCredential) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.TenantId != y.TenantId {
+ return false
+ }
+ if x.ClientId != y.ClientId {
+ return false
+ }
+ if x.ClientSecret != y.ClientSecret {
+ return false
+ }
+ if x.ObfuscatedClientSecret != y.ObfuscatedClientSecret {
+ return false
+ }
+ return true
+}
+
+func (x *DataSource_AWSCredential) Equal(y *DataSource_AWSCredential) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.AccessKeyId != y.AccessKeyId {
+ return false
+ }
+ if x.ObfuscatedAccessKeyId != y.ObfuscatedAccessKeyId {
+ return false
+ }
+ if x.SecretAccessKey != y.SecretAccessKey {
+ return false
+ }
+ if x.ObfuscatedSecretAccessKey != y.ObfuscatedSecretAccessKey {
+ return false
+ }
+ if x.SessionToken != y.SessionToken {
+ return false
+ }
+ if x.ObfuscatedSessionToken != y.ObfuscatedSessionToken {
+ return false
+ }
+ return true
+}
+
+func (x *DataSource_GCPCredential) Equal(y *DataSource_GCPCredential) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Content != y.Content {
+ return false
+ }
+ if x.ObfuscatedContent != y.ObfuscatedContent {
+ return false
+ }
+ return true
+}
+
+func (x *DataSource_Address) Equal(y *DataSource_Address) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Host != y.Host {
+ return false
+ }
+ if x.Port != y.Port {
+ return false
+ }
+ return true
+}
+
+func (x *DataSource) Equal(y *DataSource) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Username != y.Username {
+ return false
+ }
+ if x.Password != y.Password {
+ return false
+ }
+ if x.ObfuscatedPassword != y.ObfuscatedPassword {
+ return false
+ }
+ if x.UseSsl != y.UseSsl {
+ return false
+ }
+ if x.SslCa != y.SslCa {
+ return false
+ }
+ if x.ObfuscatedSslCa != y.ObfuscatedSslCa {
+ return false
+ }
+ if x.SslCert != y.SslCert {
+ return false
+ }
+ if x.ObfuscatedSslCert != y.ObfuscatedSslCert {
+ return false
+ }
+ if x.SslKey != y.SslKey {
+ return false
+ }
+ if x.ObfuscatedSslKey != y.ObfuscatedSslKey {
+ return false
+ }
+ if x.VerifyTlsCertificate != y.VerifyTlsCertificate {
+ return false
+ }
+ if x.Host != y.Host {
+ return false
+ }
+ if x.Port != y.Port {
+ return false
+ }
+ if x.Database != y.Database {
+ return false
+ }
+ if x.Srv != y.Srv {
+ return false
+ }
+ if x.AuthenticationDatabase != y.AuthenticationDatabase {
+ return false
+ }
+ if x.ReplicaSet != y.ReplicaSet {
+ return false
+ }
+ if x.Sid != y.Sid {
+ return false
+ }
+ if x.ServiceName != y.ServiceName {
+ return false
+ }
+ if x.SshHost != y.SshHost {
+ return false
+ }
+ if x.SshPort != y.SshPort {
+ return false
+ }
+ if x.SshUser != y.SshUser {
+ return false
+ }
+ if x.SshPassword != y.SshPassword {
+ return false
+ }
+ if x.ObfuscatedSshPassword != y.ObfuscatedSshPassword {
+ return false
+ }
+ if x.SshPrivateKey != y.SshPrivateKey {
+ return false
+ }
+ if x.ObfuscatedSshPrivateKey != y.ObfuscatedSshPrivateKey {
+ return false
+ }
+ if x.AuthenticationPrivateKey != y.AuthenticationPrivateKey {
+ return false
+ }
+ if x.ObfuscatedAuthenticationPrivateKey != y.ObfuscatedAuthenticationPrivateKey {
+ return false
+ }
+ if !x.ExternalSecret.Equal(y.ExternalSecret) {
+ return false
+ }
+ if x.AuthenticationType != y.AuthenticationType {
+ return false
+ }
+ if !x.GetAzureCredential().Equal(y.GetAzureCredential()) {
+ return false
+ }
+ if !x.GetAwsCredential().Equal(y.GetAwsCredential()) {
+ return false
+ }
+ if !x.GetGcpCredential().Equal(y.GetGcpCredential()) {
+ return false
+ }
+ if !x.SaslConfig.Equal(y.SaslConfig) {
+ return false
+ }
+ if len(x.AdditionalAddresses) != len(y.AdditionalAddresses) {
+ return false
+ }
+ for i := 0; i < len(x.AdditionalAddresses); i++ {
+ if !x.AdditionalAddresses[i].Equal(y.AdditionalAddresses[i]) {
+ return false
+ }
+ }
+ if x.DirectConnection != y.DirectConnection {
+ return false
+ }
+ if x.Region != y.Region {
+ return false
+ }
+ if x.WarehouseId != y.WarehouseId {
+ return false
+ }
+ if x.MasterName != y.MasterName {
+ return false
+ }
+ if x.MasterUsername != y.MasterUsername {
+ return false
+ }
+ if x.MasterPassword != y.MasterPassword {
+ return false
+ }
+ if x.ObfuscatedMasterPassword != y.ObfuscatedMasterPassword {
+ return false
+ }
+ if x.RedisType != y.RedisType {
+ return false
+ }
+ if x.Cluster != y.Cluster {
+ return false
+ }
+ if len(x.ExtraConnectionParameters) != len(y.ExtraConnectionParameters) {
+ return false
+ }
+ for k := range x.ExtraConnectionParameters {
+ _, ok := y.ExtraConnectionParameters[k]
+ if !ok {
+ return false
+ }
+ if x.ExtraConnectionParameters[k] != y.ExtraConnectionParameters[k] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *SASLConfig) Equal(y *SASLConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.GetKrbConfig().Equal(y.GetKrbConfig()) {
+ return false
+ }
+ return true
+}
+
+func (x *KerberosConfig) Equal(y *KerberosConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Primary != y.Primary {
+ return false
+ }
+ if x.Instance != y.Instance {
+ return false
+ }
+ if x.Realm != y.Realm {
+ return false
+ }
+ if string(x.Keytab) != string(y.Keytab) {
+ return false
+ }
+ if x.KdcHost != y.KdcHost {
+ return false
+ }
+ if x.KdcPort != y.KdcPort {
+ return false
+ }
+ if x.KdcTransportProtocol != y.KdcTransportProtocol {
+ return false
+ }
+ return true
+}
+
+func (x *DataSourceExternalSecret_AppRoleAuthOption) Equal(y *DataSourceExternalSecret_AppRoleAuthOption) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.RoleId != y.RoleId {
+ return false
+ }
+ if x.SecretId != y.SecretId {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.MountPath != y.MountPath {
+ return false
+ }
+ return true
+}
+
+func (x *DataSourceExternalSecret) Equal(y *DataSourceExternalSecret) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.SecretType != y.SecretType {
+ return false
+ }
+ if x.Url != y.Url {
+ return false
+ }
+ if x.AuthType != y.AuthType {
+ return false
+ }
+ if !x.GetAppRole().Equal(y.GetAppRole()) {
+ return false
+ }
+ if x.GetToken() != y.GetToken() {
+ return false
+ }
+ if x.EngineName != y.EngineName {
+ return false
+ }
+ if x.SecretName != y.SecretName {
+ return false
+ }
+ if x.PasswordKeyName != y.PasswordKeyName {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/issue_comment_equal.pb.go b/backend/generated-go/store/issue_comment_equal.pb.go
new file mode 100644
index 0000000000..4bf3bbc2fd
--- /dev/null
+++ b/backend/generated-go/store/issue_comment_equal.pb.go
@@ -0,0 +1,175 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/issue_comment.proto
+
+package store
+
+func (x *IssueCommentPayload_Approval) Equal(y *IssueCommentPayload_Approval) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Status != y.Status {
+ return false
+ }
+ return true
+}
+
+func (x *IssueCommentPayload_IssueUpdate) Equal(y *IssueCommentPayload_IssueUpdate) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if p, q := x.FromTitle, y.FromTitle; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.ToTitle, y.ToTitle; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.FromDescription, y.FromDescription; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.ToDescription, y.ToDescription; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.FromStatus, y.FromStatus; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.ToStatus, y.ToStatus; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if len(x.FromLabels) != len(y.FromLabels) {
+ return false
+ }
+ for i := 0; i < len(x.FromLabels); i++ {
+ if x.FromLabels[i] != y.FromLabels[i] {
+ return false
+ }
+ }
+ if len(x.ToLabels) != len(y.ToLabels) {
+ return false
+ }
+ for i := 0; i < len(x.ToLabels); i++ {
+ if x.ToLabels[i] != y.ToLabels[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *IssueCommentPayload_StageEnd) Equal(y *IssueCommentPayload_StageEnd) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Stage != y.Stage {
+ return false
+ }
+ return true
+}
+
+func (x *IssueCommentPayload_TaskUpdate) Equal(y *IssueCommentPayload_TaskUpdate) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Tasks) != len(y.Tasks) {
+ return false
+ }
+ for i := 0; i < len(x.Tasks); i++ {
+ if x.Tasks[i] != y.Tasks[i] {
+ return false
+ }
+ }
+ if p, q := x.FromSheet, y.FromSheet; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.ToSheet, y.ToSheet; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.ToStatus, y.ToStatus; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ return true
+}
+
+func (x *IssueCommentPayload_TaskPriorBackup_Table) Equal(y *IssueCommentPayload_TaskPriorBackup_Table) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Schema != y.Schema {
+ return false
+ }
+ if x.Table != y.Table {
+ return false
+ }
+ return true
+}
+
+func (x *IssueCommentPayload_TaskPriorBackup) Equal(y *IssueCommentPayload_TaskPriorBackup) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Task != y.Task {
+ return false
+ }
+ if len(x.Tables) != len(y.Tables) {
+ return false
+ }
+ for i := 0; i < len(x.Tables); i++ {
+ if !x.Tables[i].Equal(y.Tables[i]) {
+ return false
+ }
+ }
+ if p, q := x.OriginalLine, y.OriginalLine; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if x.Database != y.Database {
+ return false
+ }
+ if x.Error != y.Error {
+ return false
+ }
+ return true
+}
+
+func (x *IssueCommentPayload) Equal(y *IssueCommentPayload) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if !x.GetApproval().Equal(y.GetApproval()) {
+ return false
+ }
+ if !x.GetIssueUpdate().Equal(y.GetIssueUpdate()) {
+ return false
+ }
+ if !x.GetStageEnd().Equal(y.GetStageEnd()) {
+ return false
+ }
+ if !x.GetTaskUpdate().Equal(y.GetTaskUpdate()) {
+ return false
+ }
+ if !x.GetTaskPriorBackup().Equal(y.GetTaskPriorBackup()) {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/issue_equal.pb.go b/backend/generated-go/store/issue_equal.pb.go
new file mode 100644
index 0000000000..45e5da5fee
--- /dev/null
+++ b/backend/generated-go/store/issue_equal.pb.go
@@ -0,0 +1,57 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/issue.proto
+
+package store
+
+import (
+ expr "google.golang.org/genproto/googleapis/type/expr"
+ proto "google.golang.org/protobuf/proto"
+)
+
+func (x *Issue) Equal(y *Issue) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Approval.Equal(y.Approval) {
+ return false
+ }
+ if !x.GrantRequest.Equal(y.GrantRequest) {
+ return false
+ }
+ if len(x.Labels) != len(y.Labels) {
+ return false
+ }
+ for i := 0; i < len(x.Labels); i++ {
+ if x.Labels[i] != y.Labels[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *GrantRequest) Equal(y *GrantRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Role != y.Role {
+ return false
+ }
+ if x.User != y.User {
+ return false
+ }
+ if equal, ok := interface{}(x.Condition).(interface{ Equal(*expr.Expr) bool }); !ok || !equal.Equal(y.Condition) {
+ return false
+ } else if !proto.Equal(x.Condition, y.Condition) {
+ return false
+ }
+ if p, q := x.Expiration, y.Expiration; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/plan_check_run_equal.pb.go b/backend/generated-go/store/plan_check_run_equal.pb.go
new file mode 100644
index 0000000000..ec5c3b06c0
--- /dev/null
+++ b/backend/generated-go/store/plan_check_run_equal.pb.go
@@ -0,0 +1,139 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/plan_check_run.proto
+
+package store
+
+func (x *PlanCheckRunConfig) Equal(y *PlanCheckRunConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.SheetUid != y.SheetUid {
+ return false
+ }
+ if x.ChangeDatabaseType != y.ChangeDatabaseType {
+ return false
+ }
+ if x.InstanceId != y.InstanceId {
+ return false
+ }
+ if x.DatabaseName != y.DatabaseName {
+ return false
+ }
+ if p, q := x.DatabaseGroupUid, y.DatabaseGroupUid; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if len(x.GhostFlags) != len(y.GhostFlags) {
+ return false
+ }
+ for k := range x.GhostFlags {
+ _, ok := y.GhostFlags[k]
+ if !ok {
+ return false
+ }
+ if x.GhostFlags[k] != y.GhostFlags[k] {
+ return false
+ }
+ }
+ if x.EnablePriorBackup != y.EnablePriorBackup {
+ return false
+ }
+ return true
+}
+
+func (x *PlanCheckRunResult_Result_SqlSummaryReport) Equal(y *PlanCheckRunResult_Result_SqlSummaryReport) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.StatementTypes) != len(y.StatementTypes) {
+ return false
+ }
+ for i := 0; i < len(x.StatementTypes); i++ {
+ if x.StatementTypes[i] != y.StatementTypes[i] {
+ return false
+ }
+ }
+ if x.AffectedRows != y.AffectedRows {
+ return false
+ }
+ if !x.ChangedResources.Equal(y.ChangedResources) {
+ return false
+ }
+ return true
+}
+
+func (x *PlanCheckRunResult_Result_SqlReviewReport) Equal(y *PlanCheckRunResult_Result_SqlReviewReport) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Line != y.Line {
+ return false
+ }
+ if x.Column != y.Column {
+ return false
+ }
+ if !x.StartPosition.Equal(y.StartPosition) {
+ return false
+ }
+ if !x.EndPosition.Equal(y.EndPosition) {
+ return false
+ }
+ return true
+}
+
+func (x *PlanCheckRunResult_Result) Equal(y *PlanCheckRunResult_Result) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Status != y.Status {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Content != y.Content {
+ return false
+ }
+ if x.Code != y.Code {
+ return false
+ }
+ if !x.GetSqlSummaryReport().Equal(y.GetSqlSummaryReport()) {
+ return false
+ }
+ if !x.GetSqlReviewReport().Equal(y.GetSqlReviewReport()) {
+ return false
+ }
+ return true
+}
+
+func (x *PlanCheckRunResult) Equal(y *PlanCheckRunResult) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Results) != len(y.Results) {
+ return false
+ }
+ for i := 0; i < len(x.Results); i++ {
+ if !x.Results[i].Equal(y.Results[i]) {
+ return false
+ }
+ }
+ if x.Error != y.Error {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/plan_equal.pb.go b/backend/generated-go/store/plan_equal.pb.go
new file mode 100644
index 0000000000..22ac4f3f5b
--- /dev/null
+++ b/backend/generated-go/store/plan_equal.pb.go
@@ -0,0 +1,197 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/plan.proto
+
+package store
+
+func (x *PlanConfig_Spec) Equal(y *PlanConfig_Spec) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if !x.GetCreateDatabaseConfig().Equal(y.GetCreateDatabaseConfig()) {
+ return false
+ }
+ if !x.GetChangeDatabaseConfig().Equal(y.GetChangeDatabaseConfig()) {
+ return false
+ }
+ if !x.GetExportDataConfig().Equal(y.GetExportDataConfig()) {
+ return false
+ }
+ return true
+}
+
+func (x *PlanConfig_CreateDatabaseConfig) Equal(y *PlanConfig_CreateDatabaseConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Target != y.Target {
+ return false
+ }
+ if x.Database != y.Database {
+ return false
+ }
+ if x.Table != y.Table {
+ return false
+ }
+ if x.CharacterSet != y.CharacterSet {
+ return false
+ }
+ if x.Collation != y.Collation {
+ return false
+ }
+ if x.Cluster != y.Cluster {
+ return false
+ }
+ if x.Owner != y.Owner {
+ return false
+ }
+ if x.Environment != y.Environment {
+ return false
+ }
+ return true
+}
+
+func (x *PlanConfig_ChangeDatabaseConfig) Equal(y *PlanConfig_ChangeDatabaseConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Targets) != len(y.Targets) {
+ return false
+ }
+ for i := 0; i < len(x.Targets); i++ {
+ if x.Targets[i] != y.Targets[i] {
+ return false
+ }
+ }
+ if x.Sheet != y.Sheet {
+ return false
+ }
+ if x.Release != y.Release {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if len(x.GhostFlags) != len(y.GhostFlags) {
+ return false
+ }
+ for k := range x.GhostFlags {
+ _, ok := y.GhostFlags[k]
+ if !ok {
+ return false
+ }
+ if x.GhostFlags[k] != y.GhostFlags[k] {
+ return false
+ }
+ }
+ if x.EnablePriorBackup != y.EnablePriorBackup {
+ return false
+ }
+ return true
+}
+
+func (x *PlanConfig_ExportDataConfig) Equal(y *PlanConfig_ExportDataConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Targets) != len(y.Targets) {
+ return false
+ }
+ for i := 0; i < len(x.Targets); i++ {
+ if x.Targets[i] != y.Targets[i] {
+ return false
+ }
+ }
+ if x.Sheet != y.Sheet {
+ return false
+ }
+ if x.Format != y.Format {
+ return false
+ }
+ if p, q := x.Password, y.Password; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ return true
+}
+
+func (x *PlanConfig_Deployment_DatabaseGroupMapping) Equal(y *PlanConfig_Deployment_DatabaseGroupMapping) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.DatabaseGroup != y.DatabaseGroup {
+ return false
+ }
+ if len(x.Databases) != len(y.Databases) {
+ return false
+ }
+ for i := 0; i < len(x.Databases); i++ {
+ if x.Databases[i] != y.Databases[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *PlanConfig_Deployment) Equal(y *PlanConfig_Deployment) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Environments) != len(y.Environments) {
+ return false
+ }
+ for i := 0; i < len(x.Environments); i++ {
+ if x.Environments[i] != y.Environments[i] {
+ return false
+ }
+ }
+ if len(x.DatabaseGroupMappings) != len(y.DatabaseGroupMappings) {
+ return false
+ }
+ for i := 0; i < len(x.DatabaseGroupMappings); i++ {
+ if !x.DatabaseGroupMappings[i].Equal(y.DatabaseGroupMappings[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *PlanConfig) Equal(y *PlanConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Specs) != len(y.Specs) {
+ return false
+ }
+ for i := 0; i < len(x.Specs); i++ {
+ if !x.Specs[i].Equal(y.Specs[i]) {
+ return false
+ }
+ }
+ if !x.Deployment.Equal(y.Deployment) {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/policy_equal.pb.go b/backend/generated-go/store/policy_equal.pb.go
new file mode 100644
index 0000000000..521e07fb70
--- /dev/null
+++ b/backend/generated-go/store/policy_equal.pb.go
@@ -0,0 +1,300 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/policy.proto
+
+package store
+
+import (
+ expr "google.golang.org/genproto/googleapis/type/expr"
+ proto "google.golang.org/protobuf/proto"
+)
+
+func (x *Policy) Equal(y *Policy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
+
+func (x *RolloutPolicy) Equal(y *RolloutPolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Automatic != y.Automatic {
+ return false
+ }
+ if len(x.Roles) != len(y.Roles) {
+ return false
+ }
+ for i := 0; i < len(x.Roles); i++ {
+ if x.Roles[i] != y.Roles[i] {
+ return false
+ }
+ }
+ if len(x.IssueRoles) != len(y.IssueRoles) {
+ return false
+ }
+ for i := 0; i < len(x.IssueRoles); i++ {
+ if x.IssueRoles[i] != y.IssueRoles[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *MaskingExceptionPolicy_MaskingException) Equal(y *MaskingExceptionPolicy_MaskingException) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Action != y.Action {
+ return false
+ }
+ if x.Member != y.Member {
+ return false
+ }
+ if equal, ok := interface{}(x.Condition).(interface{ Equal(*expr.Expr) bool }); !ok || !equal.Equal(y.Condition) {
+ return false
+ } else if !proto.Equal(x.Condition, y.Condition) {
+ return false
+ }
+ return true
+}
+
+func (x *MaskingExceptionPolicy) Equal(y *MaskingExceptionPolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.MaskingExceptions) != len(y.MaskingExceptions) {
+ return false
+ }
+ for i := 0; i < len(x.MaskingExceptions); i++ {
+ if !x.MaskingExceptions[i].Equal(y.MaskingExceptions[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *MaskingRulePolicy_MaskingRule) Equal(y *MaskingRulePolicy_MaskingRule) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if equal, ok := interface{}(x.Condition).(interface{ Equal(*expr.Expr) bool }); !ok || !equal.Equal(y.Condition) {
+ return false
+ } else if !proto.Equal(x.Condition, y.Condition) {
+ return false
+ }
+ if x.SemanticType != y.SemanticType {
+ return false
+ }
+ return true
+}
+
+func (x *MaskingRulePolicy) Equal(y *MaskingRulePolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Rules) != len(y.Rules) {
+ return false
+ }
+ for i := 0; i < len(x.Rules); i++ {
+ if !x.Rules[i].Equal(y.Rules[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *SQLReviewRule) Equal(y *SQLReviewRule) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Level != y.Level {
+ return false
+ }
+ if x.Payload != y.Payload {
+ return false
+ }
+ if x.Engine != y.Engine {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ return true
+}
+
+func (x *TagPolicy) Equal(y *TagPolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Tags) != len(y.Tags) {
+ return false
+ }
+ for k := range x.Tags {
+ _, ok := y.Tags[k]
+ if !ok {
+ return false
+ }
+ if x.Tags[k] != y.Tags[k] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *Binding) Equal(y *Binding) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Role != y.Role {
+ return false
+ }
+ if len(x.Members) != len(y.Members) {
+ return false
+ }
+ for i := 0; i < len(x.Members); i++ {
+ if x.Members[i] != y.Members[i] {
+ return false
+ }
+ }
+ if equal, ok := interface{}(x.Condition).(interface{ Equal(*expr.Expr) bool }); !ok || !equal.Equal(y.Condition) {
+ return false
+ } else if !proto.Equal(x.Condition, y.Condition) {
+ return false
+ }
+ return true
+}
+
+func (x *IamPolicy) Equal(y *IamPolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Bindings) != len(y.Bindings) {
+ return false
+ }
+ for i := 0; i < len(x.Bindings); i++ {
+ if !x.Bindings[i].Equal(y.Bindings[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *EnvironmentTierPolicy) Equal(y *EnvironmentTierPolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.EnvironmentTier != y.EnvironmentTier {
+ return false
+ }
+ if x.Color != y.Color {
+ return false
+ }
+ return true
+}
+
+func (x *DisableCopyDataPolicy) Equal(y *DisableCopyDataPolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Active != y.Active {
+ return false
+ }
+ return true
+}
+
+func (x *QueryDataPolicy) Equal(y *QueryDataPolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if p, q := x.Timeout, y.Timeout; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.DisableExport != y.DisableExport {
+ return false
+ }
+ if x.MaximumResultSize != y.MaximumResultSize {
+ return false
+ }
+ if x.MaximumResultRows != y.MaximumResultRows {
+ return false
+ }
+ return true
+}
+
+func (x *RestrictIssueCreationForSQLReviewPolicy) Equal(y *RestrictIssueCreationForSQLReviewPolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Disallow != y.Disallow {
+ return false
+ }
+ return true
+}
+
+func (x *DataSourceQueryPolicy) Equal(y *DataSourceQueryPolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.AdminDataSourceRestriction != y.AdminDataSourceRestriction {
+ return false
+ }
+ if x.DisallowDdl != y.DisallowDdl {
+ return false
+ }
+ if x.DisallowDml != y.DisallowDml {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/project_equal.pb.go b/backend/generated-go/store/project_equal.pb.go
new file mode 100644
index 0000000000..c5759bf66f
--- /dev/null
+++ b/backend/generated-go/store/project_equal.pb.go
@@ -0,0 +1,99 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/project.proto
+
+package store
+
+func (x *Label) Equal(y *Label) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Value != y.Value {
+ return false
+ }
+ if x.Color != y.Color {
+ return false
+ }
+ if x.Group != y.Group {
+ return false
+ }
+ return true
+}
+
+func (x *Project_ExecutionRetryPolicy) Equal(y *Project_ExecutionRetryPolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.MaximumRetries != y.MaximumRetries {
+ return false
+ }
+ return true
+}
+
+func (x *Project) Equal(y *Project) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.IssueLabels) != len(y.IssueLabels) {
+ return false
+ }
+ for i := 0; i < len(x.IssueLabels); i++ {
+ if !x.IssueLabels[i].Equal(y.IssueLabels[i]) {
+ return false
+ }
+ }
+ if x.ForceIssueLabels != y.ForceIssueLabels {
+ return false
+ }
+ if x.AllowModifyStatement != y.AllowModifyStatement {
+ return false
+ }
+ if x.AutoResolveIssue != y.AutoResolveIssue {
+ return false
+ }
+ if x.EnforceIssueTitle != y.EnforceIssueTitle {
+ return false
+ }
+ if x.AutoEnableBackup != y.AutoEnableBackup {
+ return false
+ }
+ if x.SkipBackupErrors != y.SkipBackupErrors {
+ return false
+ }
+ if x.PostgresDatabaseTenantMode != y.PostgresDatabaseTenantMode {
+ return false
+ }
+ if x.AllowSelfApproval != y.AllowSelfApproval {
+ return false
+ }
+ if !x.ExecutionRetryPolicy.Equal(y.ExecutionRetryPolicy) {
+ return false
+ }
+ if x.CiSamplingSize != y.CiSamplingSize {
+ return false
+ }
+ if x.ParallelTasksPerRollout != y.ParallelTasksPerRollout {
+ return false
+ }
+ if len(x.Labels) != len(y.Labels) {
+ return false
+ }
+ for k := range x.Labels {
+ _, ok := y.Labels[k]
+ if !ok {
+ return false
+ }
+ if x.Labels[k] != y.Labels[k] {
+ return false
+ }
+ }
+ return true
+}
diff --git a/backend/generated-go/store/project_webhook_equal.pb.go b/backend/generated-go/store/project_webhook_equal.pb.go
new file mode 100644
index 0000000000..79fba19c13
--- /dev/null
+++ b/backend/generated-go/store/project_webhook_equal.pb.go
@@ -0,0 +1,17 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/project_webhook.proto
+
+package store
+
+func (x *ProjectWebhookPayload) Equal(y *ProjectWebhookPayload) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.DirectMessage != y.DirectMessage {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/query_history_equal.pb.go b/backend/generated-go/store/query_history_equal.pb.go
new file mode 100644
index 0000000000..b4ba78b2bb
--- /dev/null
+++ b/backend/generated-go/store/query_history_equal.pb.go
@@ -0,0 +1,20 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/query_history.proto
+
+package store
+
+func (x *QueryHistoryPayload) Equal(y *QueryHistoryPayload) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if p, q := x.Error, y.Error; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.Duration, y.Duration; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/release_equal.pb.go b/backend/generated-go/store/release_equal.pb.go
new file mode 100644
index 0000000000..4cd1ed58b0
--- /dev/null
+++ b/backend/generated-go/store/release_equal.pb.go
@@ -0,0 +1,75 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/release.proto
+
+package store
+
+func (x *ReleasePayload_File) Equal(y *ReleasePayload_File) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Path != y.Path {
+ return false
+ }
+ if x.Sheet != y.Sheet {
+ return false
+ }
+ if x.SheetSha256 != y.SheetSha256 {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Version != y.Version {
+ return false
+ }
+ if x.ChangeType != y.ChangeType {
+ return false
+ }
+ return true
+}
+
+func (x *ReleasePayload_VCSSource) Equal(y *ReleasePayload_VCSSource) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.VcsType != y.VcsType {
+ return false
+ }
+ if x.Url != y.Url {
+ return false
+ }
+ return true
+}
+
+func (x *ReleasePayload) Equal(y *ReleasePayload) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if len(x.Files) != len(y.Files) {
+ return false
+ }
+ for i := 0; i < len(x.Files); i++ {
+ if !x.Files[i].Equal(y.Files[i]) {
+ return false
+ }
+ }
+ if !x.VcsSource.Equal(y.VcsSource) {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/review_config_equal.pb.go b/backend/generated-go/store/review_config_equal.pb.go
new file mode 100644
index 0000000000..727acc8e2c
--- /dev/null
+++ b/backend/generated-go/store/review_config_equal.pb.go
@@ -0,0 +1,22 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/review_config.proto
+
+package store
+
+func (x *ReviewConfigPayload) Equal(y *ReviewConfigPayload) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.SqlReviewRules) != len(y.SqlReviewRules) {
+ return false
+ }
+ for i := 0; i < len(x.SqlReviewRules); i++ {
+ if !x.SqlReviewRules[i].Equal(y.SqlReviewRules[i]) {
+ return false
+ }
+ }
+ return true
+}
diff --git a/backend/generated-go/store/revision_equal.pb.go b/backend/generated-go/store/revision_equal.pb.go
new file mode 100644
index 0000000000..db6f537311
--- /dev/null
+++ b/backend/generated-go/store/revision_equal.pb.go
@@ -0,0 +1,32 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/revision.proto
+
+package store
+
+func (x *RevisionPayload) Equal(y *RevisionPayload) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Release != y.Release {
+ return false
+ }
+ if x.File != y.File {
+ return false
+ }
+ if x.Sheet != y.Sheet {
+ return false
+ }
+ if x.SheetSha256 != y.SheetSha256 {
+ return false
+ }
+ if x.TaskRun != y.TaskRun {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/role_equal.pb.go b/backend/generated-go/store/role_equal.pb.go
new file mode 100644
index 0000000000..8587117950
--- /dev/null
+++ b/backend/generated-go/store/role_equal.pb.go
@@ -0,0 +1,22 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/role.proto
+
+package store
+
+func (x *RolePermissions) Equal(y *RolePermissions) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Permissions) != len(y.Permissions) {
+ return false
+ }
+ for i := 0; i < len(x.Permissions); i++ {
+ if x.Permissions[i] != y.Permissions[i] {
+ return false
+ }
+ }
+ return true
+}
diff --git a/backend/generated-go/store/setting_equal.pb.go b/backend/generated-go/store/setting_equal.pb.go
new file mode 100644
index 0000000000..32f0bdc918
--- /dev/null
+++ b/backend/generated-go/store/setting_equal.pb.go
@@ -0,0 +1,718 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/setting.proto
+
+package store
+
+import (
+ v1alpha1 "google.golang.org/genproto/googleapis/api/expr/v1alpha1"
+ expr "google.golang.org/genproto/googleapis/type/expr"
+ proto "google.golang.org/protobuf/proto"
+)
+
+func (x *WorkspaceProfileSetting) Equal(y *WorkspaceProfileSetting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.ExternalUrl != y.ExternalUrl {
+ return false
+ }
+ if x.DisallowSignup != y.DisallowSignup {
+ return false
+ }
+ if x.Require_2Fa != y.Require_2Fa {
+ return false
+ }
+ if p, q := x.TokenDuration, y.TokenDuration; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if !x.Announcement.Equal(y.Announcement) {
+ return false
+ }
+ if p, q := x.MaximumRoleExpiration, y.MaximumRoleExpiration; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if len(x.Domains) != len(y.Domains) {
+ return false
+ }
+ for i := 0; i < len(x.Domains); i++ {
+ if x.Domains[i] != y.Domains[i] {
+ return false
+ }
+ }
+ if x.EnforceIdentityDomain != y.EnforceIdentityDomain {
+ return false
+ }
+ if x.DatabaseChangeMode != y.DatabaseChangeMode {
+ return false
+ }
+ if x.DisallowPasswordSignin != y.DisallowPasswordSignin {
+ return false
+ }
+ if x.EnableMetricCollection != y.EnableMetricCollection {
+ return false
+ }
+ return true
+}
+
+func (x *Announcement) Equal(y *Announcement) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Level != y.Level {
+ return false
+ }
+ if x.Text != y.Text {
+ return false
+ }
+ if x.Link != y.Link {
+ return false
+ }
+ return true
+}
+
+func (x *WorkspaceApprovalSetting_Rule) Equal(y *WorkspaceApprovalSetting_Rule) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if equal, ok := interface{}(x.Expression).(interface{ Equal(*v1alpha1.Expr) bool }); !ok || !equal.Equal(y.Expression) {
+ return false
+ } else if !proto.Equal(x.Expression, y.Expression) {
+ return false
+ }
+ if !x.Template.Equal(y.Template) {
+ return false
+ }
+ if equal, ok := interface{}(x.Condition).(interface{ Equal(*expr.Expr) bool }); !ok || !equal.Equal(y.Condition) {
+ return false
+ } else if !proto.Equal(x.Condition, y.Condition) {
+ return false
+ }
+ return true
+}
+
+func (x *WorkspaceApprovalSetting) Equal(y *WorkspaceApprovalSetting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Rules) != len(y.Rules) {
+ return false
+ }
+ for i := 0; i < len(x.Rules); i++ {
+ if !x.Rules[i].Equal(y.Rules[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *SchemaTemplateSetting_FieldTemplate) Equal(y *SchemaTemplateSetting_FieldTemplate) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Engine != y.Engine {
+ return false
+ }
+ if x.Category != y.Category {
+ return false
+ }
+ if !x.Column.Equal(y.Column) {
+ return false
+ }
+ if !x.Catalog.Equal(y.Catalog) {
+ return false
+ }
+ return true
+}
+
+func (x *SchemaTemplateSetting_ColumnType) Equal(y *SchemaTemplateSetting_ColumnType) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Engine != y.Engine {
+ return false
+ }
+ if x.Enabled != y.Enabled {
+ return false
+ }
+ if len(x.Types) != len(y.Types) {
+ return false
+ }
+ for i := 0; i < len(x.Types); i++ {
+ if x.Types[i] != y.Types[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *SchemaTemplateSetting_TableTemplate) Equal(y *SchemaTemplateSetting_TableTemplate) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Engine != y.Engine {
+ return false
+ }
+ if x.Category != y.Category {
+ return false
+ }
+ if !x.Table.Equal(y.Table) {
+ return false
+ }
+ if !x.Catalog.Equal(y.Catalog) {
+ return false
+ }
+ return true
+}
+
+func (x *SchemaTemplateSetting) Equal(y *SchemaTemplateSetting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.FieldTemplates) != len(y.FieldTemplates) {
+ return false
+ }
+ for i := 0; i < len(x.FieldTemplates); i++ {
+ if !x.FieldTemplates[i].Equal(y.FieldTemplates[i]) {
+ return false
+ }
+ }
+ if len(x.ColumnTypes) != len(y.ColumnTypes) {
+ return false
+ }
+ for i := 0; i < len(x.ColumnTypes); i++ {
+ if !x.ColumnTypes[i].Equal(y.ColumnTypes[i]) {
+ return false
+ }
+ }
+ if len(x.TableTemplates) != len(y.TableTemplates) {
+ return false
+ }
+ for i := 0; i < len(x.TableTemplates); i++ {
+ if !x.TableTemplates[i].Equal(y.TableTemplates[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *DataClassificationSetting_DataClassificationConfig_Level) Equal(y *DataClassificationSetting_DataClassificationConfig_Level) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Description != y.Description {
+ return false
+ }
+ return true
+}
+
+func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) Equal(y *DataClassificationSetting_DataClassificationConfig_DataClassification) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Description != y.Description {
+ return false
+ }
+ if p, q := x.LevelId, y.LevelId; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ return true
+}
+
+func (x *DataClassificationSetting_DataClassificationConfig) Equal(y *DataClassificationSetting_DataClassificationConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if len(x.Levels) != len(y.Levels) {
+ return false
+ }
+ for i := 0; i < len(x.Levels); i++ {
+ if !x.Levels[i].Equal(y.Levels[i]) {
+ return false
+ }
+ }
+ if len(x.Classification) != len(y.Classification) {
+ return false
+ }
+ for k := range x.Classification {
+ _, ok := y.Classification[k]
+ if !ok {
+ return false
+ }
+ if !x.Classification[k].Equal(y.Classification[k]) {
+ return false
+ }
+ }
+ if x.ClassificationFromConfig != y.ClassificationFromConfig {
+ return false
+ }
+ return true
+}
+
+func (x *DataClassificationSetting) Equal(y *DataClassificationSetting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Configs) != len(y.Configs) {
+ return false
+ }
+ for i := 0; i < len(x.Configs); i++ {
+ if !x.Configs[i].Equal(y.Configs[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *SemanticTypeSetting_SemanticType) Equal(y *SemanticTypeSetting_SemanticType) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Description != y.Description {
+ return false
+ }
+ if !x.Algorithm.Equal(y.Algorithm) {
+ return false
+ }
+ if x.Icon != y.Icon {
+ return false
+ }
+ return true
+}
+
+func (x *SemanticTypeSetting) Equal(y *SemanticTypeSetting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Types) != len(y.Types) {
+ return false
+ }
+ for i := 0; i < len(x.Types); i++ {
+ if !x.Types[i].Equal(y.Types[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *Algorithm_FullMask) Equal(y *Algorithm_FullMask) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Substitution != y.Substitution {
+ return false
+ }
+ return true
+}
+
+func (x *Algorithm_RangeMask_Slice) Equal(y *Algorithm_RangeMask_Slice) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Start != y.Start {
+ return false
+ }
+ if x.End != y.End {
+ return false
+ }
+ if x.Substitution != y.Substitution {
+ return false
+ }
+ return true
+}
+
+func (x *Algorithm_RangeMask) Equal(y *Algorithm_RangeMask) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Slices) != len(y.Slices) {
+ return false
+ }
+ for i := 0; i < len(x.Slices); i++ {
+ if !x.Slices[i].Equal(y.Slices[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *Algorithm_MD5Mask) Equal(y *Algorithm_MD5Mask) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Salt != y.Salt {
+ return false
+ }
+ return true
+}
+
+func (x *Algorithm_InnerOuterMask) Equal(y *Algorithm_InnerOuterMask) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.PrefixLen != y.PrefixLen {
+ return false
+ }
+ if x.SuffixLen != y.SuffixLen {
+ return false
+ }
+ if x.Substitution != y.Substitution {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ return true
+}
+
+func (x *Algorithm) Equal(y *Algorithm) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.GetFullMask().Equal(y.GetFullMask()) {
+ return false
+ }
+ if !x.GetRangeMask().Equal(y.GetRangeMask()) {
+ return false
+ }
+ if !x.GetMd5Mask().Equal(y.GetMd5Mask()) {
+ return false
+ }
+ if !x.GetInnerOuterMask().Equal(y.GetInnerOuterMask()) {
+ return false
+ }
+ return true
+}
+
+func (x *AppIMSetting_Slack) Equal(y *AppIMSetting_Slack) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Enabled != y.Enabled {
+ return false
+ }
+ if x.Token != y.Token {
+ return false
+ }
+ return true
+}
+
+func (x *AppIMSetting_Feishu) Equal(y *AppIMSetting_Feishu) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Enabled != y.Enabled {
+ return false
+ }
+ if x.AppId != y.AppId {
+ return false
+ }
+ if x.AppSecret != y.AppSecret {
+ return false
+ }
+ return true
+}
+
+func (x *AppIMSetting_Wecom) Equal(y *AppIMSetting_Wecom) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Enabled != y.Enabled {
+ return false
+ }
+ if x.CorpId != y.CorpId {
+ return false
+ }
+ if x.AgentId != y.AgentId {
+ return false
+ }
+ if x.Secret != y.Secret {
+ return false
+ }
+ return true
+}
+
+func (x *AppIMSetting_Lark) Equal(y *AppIMSetting_Lark) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Enabled != y.Enabled {
+ return false
+ }
+ if x.AppId != y.AppId {
+ return false
+ }
+ if x.AppSecret != y.AppSecret {
+ return false
+ }
+ return true
+}
+
+func (x *AppIMSetting_DingTalk) Equal(y *AppIMSetting_DingTalk) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Enabled != y.Enabled {
+ return false
+ }
+ if x.ClientId != y.ClientId {
+ return false
+ }
+ if x.ClientSecret != y.ClientSecret {
+ return false
+ }
+ if x.RobotCode != y.RobotCode {
+ return false
+ }
+ return true
+}
+
+func (x *AppIMSetting) Equal(y *AppIMSetting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Slack.Equal(y.Slack) {
+ return false
+ }
+ if !x.Feishu.Equal(y.Feishu) {
+ return false
+ }
+ if !x.Wecom.Equal(y.Wecom) {
+ return false
+ }
+ if !x.Lark.Equal(y.Lark) {
+ return false
+ }
+ if !x.Dingtalk.Equal(y.Dingtalk) {
+ return false
+ }
+ return true
+}
+
+func (x *SCIMSetting) Equal(y *SCIMSetting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Token != y.Token {
+ return false
+ }
+ return true
+}
+
+func (x *PasswordRestrictionSetting) Equal(y *PasswordRestrictionSetting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.MinLength != y.MinLength {
+ return false
+ }
+ if x.RequireNumber != y.RequireNumber {
+ return false
+ }
+ if x.RequireLetter != y.RequireLetter {
+ return false
+ }
+ if x.RequireUppercaseLetter != y.RequireUppercaseLetter {
+ return false
+ }
+ if x.RequireSpecialCharacter != y.RequireSpecialCharacter {
+ return false
+ }
+ if x.RequireResetPasswordForFirstLogin != y.RequireResetPasswordForFirstLogin {
+ return false
+ }
+ if p, q := x.PasswordRotation, y.PasswordRotation; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ return true
+}
+
+func (x *AISetting) Equal(y *AISetting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Enabled != y.Enabled {
+ return false
+ }
+ if x.Provider != y.Provider {
+ return false
+ }
+ if x.Endpoint != y.Endpoint {
+ return false
+ }
+ if x.ApiKey != y.ApiKey {
+ return false
+ }
+ if x.Model != y.Model {
+ return false
+ }
+ if x.Version != y.Version {
+ return false
+ }
+ return true
+}
+
+func (x *EnvironmentSetting_Environment) Equal(y *EnvironmentSetting_Environment) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if len(x.Tags) != len(y.Tags) {
+ return false
+ }
+ for k := range x.Tags {
+ _, ok := y.Tags[k]
+ if !ok {
+ return false
+ }
+ if x.Tags[k] != y.Tags[k] {
+ return false
+ }
+ }
+ if x.Color != y.Color {
+ return false
+ }
+ return true
+}
+
+func (x *EnvironmentSetting) Equal(y *EnvironmentSetting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Environments) != len(y.Environments) {
+ return false
+ }
+ for i := 0; i < len(x.Environments); i++ {
+ if !x.Environments[i].Equal(y.Environments[i]) {
+ return false
+ }
+ }
+ return true
+}
diff --git a/backend/generated-go/store/sheet_equal.pb.go b/backend/generated-go/store/sheet_equal.pb.go
new file mode 100644
index 0000000000..6901d50b11
--- /dev/null
+++ b/backend/generated-go/store/sheet_equal.pb.go
@@ -0,0 +1,41 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/sheet.proto
+
+package store
+
+func (x *SheetPayload) Equal(y *SheetPayload) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Engine != y.Engine {
+ return false
+ }
+ if len(x.Commands) != len(y.Commands) {
+ return false
+ }
+ for i := 0; i < len(x.Commands); i++ {
+ if !x.Commands[i].Equal(y.Commands[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *SheetCommand) Equal(y *SheetCommand) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Start != y.Start {
+ return false
+ }
+ if x.End != y.End {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/task_equal.pb.go b/backend/generated-go/store/task_equal.pb.go
new file mode 100644
index 0000000000..c5a5aa6a76
--- /dev/null
+++ b/backend/generated-go/store/task_equal.pb.go
@@ -0,0 +1,81 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/task.proto
+
+package store
+
+func (x *Task) Equal(y *Task) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Skipped != y.Skipped {
+ return false
+ }
+ if x.SkippedReason != y.SkippedReason {
+ return false
+ }
+ if x.SpecId != y.SpecId {
+ return false
+ }
+ if x.SheetId != y.SheetId {
+ return false
+ }
+ if x.EnvironmentId != y.EnvironmentId {
+ return false
+ }
+ if x.DatabaseName != y.DatabaseName {
+ return false
+ }
+ if x.TableName != y.TableName {
+ return false
+ }
+ if x.CharacterSet != y.CharacterSet {
+ return false
+ }
+ if x.Collation != y.Collation {
+ return false
+ }
+ if x.SchemaVersion != y.SchemaVersion {
+ return false
+ }
+ if x.EnablePriorBackup != y.EnablePriorBackup {
+ return false
+ }
+ if len(x.Flags) != len(y.Flags) {
+ return false
+ }
+ for k := range x.Flags {
+ _, ok := y.Flags[k]
+ if !ok {
+ return false
+ }
+ if x.Flags[k] != y.Flags[k] {
+ return false
+ }
+ }
+ if !x.TaskReleaseSource.Equal(y.TaskReleaseSource) {
+ return false
+ }
+ if x.Password != y.Password {
+ return false
+ }
+ if x.Format != y.Format {
+ return false
+ }
+ return true
+}
+
+func (x *TaskReleaseSource) Equal(y *TaskReleaseSource) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.File != y.File {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/task_run_equal.pb.go b/backend/generated-go/store/task_run_equal.pb.go
new file mode 100644
index 0000000000..0c1b1c57ef
--- /dev/null
+++ b/backend/generated-go/store/task_run_equal.pb.go
@@ -0,0 +1,139 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/task_run.proto
+
+package store
+
+func (x *TaskRun) Equal(y *TaskRun) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
+
+func (x *TaskRunResult) Equal(y *TaskRunResult) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Detail != y.Detail {
+ return false
+ }
+ if x.Changelog != y.Changelog {
+ return false
+ }
+ if x.Version != y.Version {
+ return false
+ }
+ if !x.StartPosition.Equal(y.StartPosition) {
+ return false
+ }
+ if !x.EndPosition.Equal(y.EndPosition) {
+ return false
+ }
+ if x.ExportArchiveUid != y.ExportArchiveUid {
+ return false
+ }
+ if !x.PriorBackupDetail.Equal(y.PriorBackupDetail) {
+ return false
+ }
+ return true
+}
+
+func (x *PriorBackupDetail_Item_Table) Equal(y *PriorBackupDetail_Item_Table) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Database != y.Database {
+ return false
+ }
+ if x.Schema != y.Schema {
+ return false
+ }
+ if x.Table != y.Table {
+ return false
+ }
+ return true
+}
+
+func (x *PriorBackupDetail_Item) Equal(y *PriorBackupDetail_Item) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.SourceTable.Equal(y.SourceTable) {
+ return false
+ }
+ if !x.TargetTable.Equal(y.TargetTable) {
+ return false
+ }
+ if !x.StartPosition.Equal(y.StartPosition) {
+ return false
+ }
+ if !x.EndPosition.Equal(y.EndPosition) {
+ return false
+ }
+ return true
+}
+
+func (x *PriorBackupDetail) Equal(y *PriorBackupDetail) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Items) != len(y.Items) {
+ return false
+ }
+ for i := 0; i < len(x.Items); i++ {
+ if !x.Items[i].Equal(y.Items[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *SchedulerInfo_WaitingCause) Equal(y *SchedulerInfo_WaitingCause) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.GetConnectionLimit() != y.GetConnectionLimit() {
+ return false
+ }
+ if x.GetTaskUid() != y.GetTaskUid() {
+ return false
+ }
+ if x.GetParallelTasksLimit() != y.GetParallelTasksLimit() {
+ return false
+ }
+ return true
+}
+
+func (x *SchedulerInfo) Equal(y *SchedulerInfo) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if p, q := x.ReportTime, y.ReportTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if !x.WaitingCause.Equal(y.WaitingCause) {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/task_run_log_equal.pb.go b/backend/generated-go/store/task_run_log_equal.pb.go
new file mode 100644
index 0000000000..fd66e9a08a
--- /dev/null
+++ b/backend/generated-go/store/task_run_log_equal.pb.go
@@ -0,0 +1,255 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/task_run_log.proto
+
+package store
+
+func (x *TaskRunLog_SchemaDumpStart) Equal(y *TaskRunLog_SchemaDumpStart) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
+
+func (x *TaskRunLog_SchemaDumpEnd) Equal(y *TaskRunLog_SchemaDumpEnd) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Error != y.Error {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRunLog_CommandExecute) Equal(y *TaskRunLog_CommandExecute) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.CommandIndexes) != len(y.CommandIndexes) {
+ return false
+ }
+ for i := 0; i < len(x.CommandIndexes); i++ {
+ if x.CommandIndexes[i] != y.CommandIndexes[i] {
+ return false
+ }
+ }
+ if x.Statement != y.Statement {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRunLog_CommandResponse) Equal(y *TaskRunLog_CommandResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.CommandIndexes) != len(y.CommandIndexes) {
+ return false
+ }
+ for i := 0; i < len(x.CommandIndexes); i++ {
+ if x.CommandIndexes[i] != y.CommandIndexes[i] {
+ return false
+ }
+ }
+ if x.Error != y.Error {
+ return false
+ }
+ if x.AffectedRows != y.AffectedRows {
+ return false
+ }
+ if len(x.AllAffectedRows) != len(y.AllAffectedRows) {
+ return false
+ }
+ for i := 0; i < len(x.AllAffectedRows); i++ {
+ if x.AllAffectedRows[i] != y.AllAffectedRows[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *TaskRunLog_DatabaseSyncStart) Equal(y *TaskRunLog_DatabaseSyncStart) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
+
+func (x *TaskRunLog_DatabaseSyncEnd) Equal(y *TaskRunLog_DatabaseSyncEnd) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Error != y.Error {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRunLog_TaskRunStatusUpdate) Equal(y *TaskRunLog_TaskRunStatusUpdate) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Status != y.Status {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRunLog_TransactionControl) Equal(y *TaskRunLog_TransactionControl) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Error != y.Error {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRunLog_PriorBackupStart) Equal(y *TaskRunLog_PriorBackupStart) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
+
+func (x *TaskRunLog_PriorBackupEnd) Equal(y *TaskRunLog_PriorBackupEnd) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.PriorBackupDetail.Equal(y.PriorBackupDetail) {
+ return false
+ }
+ if x.Error != y.Error {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRunLog_RetryInfo) Equal(y *TaskRunLog_RetryInfo) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Error != y.Error {
+ return false
+ }
+ if x.RetryCount != y.RetryCount {
+ return false
+ }
+ if x.MaximumRetries != y.MaximumRetries {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRunLog_ComputeDiffStart) Equal(y *TaskRunLog_ComputeDiffStart) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
+
+func (x *TaskRunLog_ComputeDiffEnd) Equal(y *TaskRunLog_ComputeDiffEnd) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Error != y.Error {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRunLog) Equal(y *TaskRunLog) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.DeployId != y.DeployId {
+ return false
+ }
+ if !x.SchemaDumpStart.Equal(y.SchemaDumpStart) {
+ return false
+ }
+ if !x.SchemaDumpEnd.Equal(y.SchemaDumpEnd) {
+ return false
+ }
+ if !x.CommandExecute.Equal(y.CommandExecute) {
+ return false
+ }
+ if !x.CommandResponse.Equal(y.CommandResponse) {
+ return false
+ }
+ if !x.DatabaseSyncStart.Equal(y.DatabaseSyncStart) {
+ return false
+ }
+ if !x.DatabaseSyncEnd.Equal(y.DatabaseSyncEnd) {
+ return false
+ }
+ if !x.TaskRunStatusUpdate.Equal(y.TaskRunStatusUpdate) {
+ return false
+ }
+ if !x.TransactionControl.Equal(y.TransactionControl) {
+ return false
+ }
+ if !x.PriorBackupStart.Equal(y.PriorBackupStart) {
+ return false
+ }
+ if !x.PriorBackupEnd.Equal(y.PriorBackupEnd) {
+ return false
+ }
+ if !x.RetryInfo.Equal(y.RetryInfo) {
+ return false
+ }
+ if !x.ComputeDiffStart.Equal(y.ComputeDiffStart) {
+ return false
+ }
+ if !x.ComputeDiffEnd.Equal(y.ComputeDiffEnd) {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/store/user_equal.pb.go b/backend/generated-go/store/user_equal.pb.go
new file mode 100644
index 0000000000..d6799641c3
--- /dev/null
+++ b/backend/generated-go/store/user_equal.pb.go
@@ -0,0 +1,55 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: store/user.proto
+
+package store
+
+func (x *MFAConfig) Equal(y *MFAConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.OtpSecret != y.OtpSecret {
+ return false
+ }
+ if x.TempOtpSecret != y.TempOtpSecret {
+ return false
+ }
+ if len(x.RecoveryCodes) != len(y.RecoveryCodes) {
+ return false
+ }
+ for i := 0; i < len(x.RecoveryCodes); i++ {
+ if x.RecoveryCodes[i] != y.RecoveryCodes[i] {
+ return false
+ }
+ }
+ if len(x.TempRecoveryCodes) != len(y.TempRecoveryCodes) {
+ return false
+ }
+ for i := 0; i < len(x.TempRecoveryCodes); i++ {
+ if x.TempRecoveryCodes[i] != y.TempRecoveryCodes[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *UserProfile) Equal(y *UserProfile) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if p, q := x.LastLoginTime, y.LastLoginTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if p, q := x.LastChangePasswordTime, y.LastChangePasswordTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.Source != y.Source {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/actuator_service_equal.pb.go b/backend/generated-go/v1/actuator_service_equal.pb.go
new file mode 100644
index 0000000000..30447c446c
--- /dev/null
+++ b/backend/generated-go/v1/actuator_service_equal.pb.go
@@ -0,0 +1,190 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/actuator_service.proto
+
+package v1
+
+import (
+ proto "google.golang.org/protobuf/proto"
+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
+)
+
+func (x *GetResourcePackageRequest) Equal(y *GetResourcePackageRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
+
+func (x *ResourcePackage) Equal(y *ResourcePackage) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if string(x.Logo) != string(y.Logo) {
+ return false
+ }
+ return true
+}
+
+func (x *SetupSampleRequest) Equal(y *SetupSampleRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
+
+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 *UpdateActuatorInfoRequest) Equal(y *UpdateActuatorInfoRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Actuator.Equal(y.Actuator) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *DeleteCacheRequest) Equal(y *DeleteCacheRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
+
+func (x *ActuatorInfo_StatUser) Equal(y *ActuatorInfo_StatUser) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.UserType != y.UserType {
+ return false
+ }
+ if x.State != y.State {
+ return false
+ }
+ if x.Count != y.Count {
+ 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.Readonly != y.Readonly {
+ return false
+ }
+ if x.Saas != y.Saas {
+ return false
+ }
+ if x.Demo != y.Demo {
+ return false
+ }
+ if x.Host != y.Host {
+ return false
+ }
+ if x.Port != y.Port {
+ return false
+ }
+ if x.ExternalUrl != y.ExternalUrl {
+ return false
+ }
+ if x.NeedAdminSetup != y.NeedAdminSetup {
+ return false
+ }
+ if x.DisallowSignup != y.DisallowSignup {
+ 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.Require_2Fa != y.Require_2Fa {
+ return false
+ }
+ if x.WorkspaceId != y.WorkspaceId {
+ return false
+ }
+ if x.Debug != y.Debug {
+ 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.DisallowPasswordSignin != y.DisallowPasswordSignin {
+ return false
+ }
+ if !x.PasswordRestriction.Equal(y.PasswordRestriction) {
+ return false
+ }
+ if x.Docker != y.Docker {
+ return false
+ }
+ if len(x.UserStats) != len(y.UserStats) {
+ return false
+ }
+ for i := 0; i < len(x.UserStats); i++ {
+ if !x.UserStats[i].Equal(y.UserStats[i]) {
+ return false
+ }
+ }
+ if x.ActivatedInstanceCount != y.ActivatedInstanceCount {
+ return false
+ }
+ if x.TotalInstanceCount != y.TotalInstanceCount {
+ return false
+ }
+ if x.EnableSample != y.EnableSample {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/annotation_equal.pb.go b/backend/generated-go/v1/annotation_equal.pb.go
new file mode 100644
index 0000000000..4e7911d3dc
--- /dev/null
+++ b/backend/generated-go/v1/annotation_equal.pb.go
@@ -0,0 +1,4 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/annotation.proto
+
+package v1
diff --git a/backend/generated-go/v1/audit_log_service_equal.pb.go b/backend/generated-go/v1/audit_log_service_equal.pb.go
new file mode 100644
index 0000000000..de0ee09d71
--- /dev/null
+++ b/backend/generated-go/v1/audit_log_service_equal.pb.go
@@ -0,0 +1,176 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/audit_log_service.proto
+
+package v1
+
+import (
+ status "google.golang.org/genproto/googleapis/rpc/status"
+ proto "google.golang.org/protobuf/proto"
+)
+
+func (x *SearchAuditLogsRequest) Equal(y *SearchAuditLogsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if x.Filter != y.Filter {
+ return false
+ }
+ if x.OrderBy != y.OrderBy {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ return true
+}
+
+func (x *SearchAuditLogsResponse) Equal(y *SearchAuditLogsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.AuditLogs) != len(y.AuditLogs) {
+ return false
+ }
+ for i := 0; i < len(x.AuditLogs); i++ {
+ if !x.AuditLogs[i].Equal(y.AuditLogs[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *ExportAuditLogsRequest) Equal(y *ExportAuditLogsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if x.Filter != y.Filter {
+ return false
+ }
+ if x.OrderBy != y.OrderBy {
+ return false
+ }
+ if x.Format != y.Format {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ return true
+}
+
+func (x *ExportAuditLogsResponse) Equal(y *ExportAuditLogsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if string(x.Content) != string(y.Content) {
+ return false
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *AuditLog) Equal(y *AuditLog) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if p, q := x.CreateTime, y.CreateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.User != y.User {
+ return false
+ }
+ if x.Method != y.Method {
+ return false
+ }
+ if x.Severity != y.Severity {
+ return false
+ }
+ if x.Resource != y.Resource {
+ return false
+ }
+ if x.Request != y.Request {
+ return false
+ }
+ if x.Response != y.Response {
+ return false
+ }
+ if equal, ok := interface{}(x.Status).(interface{ Equal(*status.Status) bool }); !ok || !equal.Equal(y.Status) {
+ return false
+ } else if !proto.Equal(x.Status, y.Status) {
+ return false
+ }
+ if p, q := x.Latency, y.Latency; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if p, q := x.ServiceData, y.ServiceData; (p == nil && q != nil) || (p != nil && (q == nil || p.TypeUrl != q.TypeUrl || string(p.Value) != string(q.Value))) {
+ return false
+ }
+ if !x.RequestMetadata.Equal(y.RequestMetadata) {
+ return false
+ }
+ return true
+}
+
+func (x *AuditData) Equal(y *AuditData) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.PolicyDelta.Equal(y.PolicyDelta) {
+ return false
+ }
+ return true
+}
+
+func (x *RequestMetadata) Equal(y *RequestMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.CallerIp != y.CallerIp {
+ return false
+ }
+ if x.CallerSuppliedUserAgent != y.CallerSuppliedUserAgent {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/auth_service_equal.pb.go b/backend/generated-go/v1/auth_service_equal.pb.go
new file mode 100644
index 0000000000..cf008890ec
--- /dev/null
+++ b/backend/generated-go/v1/auth_service_equal.pb.go
@@ -0,0 +1,109 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/auth_service.proto
+
+package v1
+
+func (x *LoginRequest) Equal(y *LoginRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Email != y.Email {
+ return false
+ }
+ if x.Password != y.Password {
+ return false
+ }
+ if x.Web != y.Web {
+ return false
+ }
+ if x.IdpName != y.IdpName {
+ return false
+ }
+ if !x.IdpContext.Equal(y.IdpContext) {
+ return false
+ }
+ if p, q := x.OtpCode, y.OtpCode; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.RecoveryCode, y.RecoveryCode; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.MfaTempToken, y.MfaTempToken; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ return true
+}
+
+func (x *IdentityProviderContext) Equal(y *IdentityProviderContext) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.GetOauth2Context().Equal(y.GetOauth2Context()) {
+ return false
+ }
+ if !x.GetOidcContext().Equal(y.GetOidcContext()) {
+ return false
+ }
+ return true
+}
+
+func (x *OAuth2IdentityProviderContext) Equal(y *OAuth2IdentityProviderContext) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Code != y.Code {
+ return false
+ }
+ return true
+}
+
+func (x *OIDCIdentityProviderContext) Equal(y *OIDCIdentityProviderContext) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
+
+func (x *LoginResponse) Equal(y *LoginResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Token != y.Token {
+ return false
+ }
+ if p, q := x.MfaTempToken, y.MfaTempToken; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if x.RequireResetPassword != y.RequireResetPassword {
+ return false
+ }
+ if !x.User.Equal(y.User) {
+ return false
+ }
+ return true
+}
+
+func (x *LogoutRequest) Equal(y *LogoutRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/cel_service_equal.pb.go b/backend/generated-go/v1/cel_service_equal.pb.go
new file mode 100644
index 0000000000..bdd871fb82
--- /dev/null
+++ b/backend/generated-go/v1/cel_service_equal.pb.go
@@ -0,0 +1,85 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/cel_service.proto
+
+package v1
+
+import (
+ v1alpha1 "google.golang.org/genproto/googleapis/api/expr/v1alpha1"
+ proto "google.golang.org/protobuf/proto"
+)
+
+func (x *BatchParseRequest) Equal(y *BatchParseRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Expressions) != len(y.Expressions) {
+ return false
+ }
+ for i := 0; i < len(x.Expressions); i++ {
+ if x.Expressions[i] != y.Expressions[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *BatchParseResponse) Equal(y *BatchParseResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Expressions) != len(y.Expressions) {
+ return false
+ }
+ for i := 0; i < len(x.Expressions); i++ {
+ if equal, ok := interface{}(x.Expressions[i]).(interface{ Equal(*v1alpha1.Expr) bool }); !ok || !equal.Equal(y.Expressions[i]) {
+ return false
+ } else if !proto.Equal(x.Expressions[i], y.Expressions[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *BatchDeparseRequest) Equal(y *BatchDeparseRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Expressions) != len(y.Expressions) {
+ return false
+ }
+ for i := 0; i < len(x.Expressions); i++ {
+ if equal, ok := interface{}(x.Expressions[i]).(interface{ Equal(*v1alpha1.Expr) bool }); !ok || !equal.Equal(y.Expressions[i]) {
+ return false
+ } else if !proto.Equal(x.Expressions[i], y.Expressions[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *BatchDeparseResponse) Equal(y *BatchDeparseResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Expressions) != len(y.Expressions) {
+ return false
+ }
+ for i := 0; i < len(x.Expressions); i++ {
+ if x.Expressions[i] != y.Expressions[i] {
+ return false
+ }
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/changelist_service_equal.pb.go b/backend/generated-go/v1/changelist_service_equal.pb.go
new file mode 100644
index 0000000000..a6ebc2d2e6
--- /dev/null
+++ b/backend/generated-go/v1/changelist_service_equal.pb.go
@@ -0,0 +1,163 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/changelist_service.proto
+
+package v1
+
+import (
+ proto "google.golang.org/protobuf/proto"
+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
+)
+
+func (x *CreateChangelistRequest) Equal(y *CreateChangelistRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if !x.Changelist.Equal(y.Changelist) {
+ return false
+ }
+ if x.ChangelistId != y.ChangelistId {
+ return false
+ }
+ return true
+}
+
+func (x *GetChangelistRequest) Equal(y *GetChangelistRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *ListChangelistsRequest) Equal(y *ListChangelistsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ return true
+}
+
+func (x *ListChangelistsResponse) Equal(y *ListChangelistsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Changelists) != len(y.Changelists) {
+ return false
+ }
+ for i := 0; i < len(x.Changelists); i++ {
+ if !x.Changelists[i].Equal(y.Changelists[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateChangelistRequest) Equal(y *UpdateChangelistRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Changelist.Equal(y.Changelist) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *DeleteChangelistRequest) Equal(y *DeleteChangelistRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *Changelist_Change) Equal(y *Changelist_Change) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Sheet != y.Sheet {
+ return false
+ }
+ if x.Source != y.Source {
+ return false
+ }
+ return true
+}
+
+func (x *Changelist) Equal(y *Changelist) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Description != y.Description {
+ return false
+ }
+ if x.Creator != y.Creator {
+ return false
+ }
+ if p, q := x.UpdateTime, y.UpdateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if len(x.Changes) != len(y.Changes) {
+ return false
+ }
+ for i := 0; i < len(x.Changes); i++ {
+ if !x.Changes[i].Equal(y.Changes[i]) {
+ return false
+ }
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/common_equal.pb.go b/backend/generated-go/v1/common_equal.pb.go
new file mode 100644
index 0000000000..75cc5d9bdb
--- /dev/null
+++ b/backend/generated-go/v1/common_equal.pb.go
@@ -0,0 +1,36 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/common.proto
+
+package v1
+
+func (x *Position) Equal(y *Position) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Line != y.Line {
+ return false
+ }
+ if x.Column != y.Column {
+ return false
+ }
+ return true
+}
+
+func (x *Range) Equal(y *Range) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Start != y.Start {
+ return false
+ }
+ if x.End != y.End {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/database_catalog_service_equal.pb.go b/backend/generated-go/v1/database_catalog_service_equal.pb.go
new file mode 100644
index 0000000000..12a949327d
--- /dev/null
+++ b/backend/generated-go/v1/database_catalog_service_equal.pb.go
@@ -0,0 +1,206 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/database_catalog_service.proto
+
+package v1
+
+func (x *GetDatabaseCatalogRequest) Equal(y *GetDatabaseCatalogRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateDatabaseCatalogRequest) Equal(y *UpdateDatabaseCatalogRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Catalog.Equal(y.Catalog) {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *DatabaseCatalog) Equal(y *DatabaseCatalog) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Schemas) != len(y.Schemas) {
+ return false
+ }
+ for i := 0; i < len(x.Schemas); i++ {
+ if !x.Schemas[i].Equal(y.Schemas[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *SchemaCatalog) Equal(y *SchemaCatalog) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Tables) != len(y.Tables) {
+ return false
+ }
+ for i := 0; i < len(x.Tables); i++ {
+ if !x.Tables[i].Equal(y.Tables[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *TableCatalog_Columns) Equal(y *TableCatalog_Columns) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Columns) != len(y.Columns) {
+ return false
+ }
+ for i := 0; i < len(x.Columns); i++ {
+ if !x.Columns[i].Equal(y.Columns[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *TableCatalog) Equal(y *TableCatalog) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if !x.GetColumns().Equal(y.GetColumns()) {
+ return false
+ }
+ if !x.GetObjectSchema().Equal(y.GetObjectSchema()) {
+ return false
+ }
+ if x.Classification != y.Classification {
+ return false
+ }
+ return true
+}
+
+func (x *ColumnCatalog) Equal(y *ColumnCatalog) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.SemanticType != y.SemanticType {
+ return false
+ }
+ if len(x.Labels) != len(y.Labels) {
+ return false
+ }
+ for k := range x.Labels {
+ _, ok := y.Labels[k]
+ if !ok {
+ return false
+ }
+ if x.Labels[k] != y.Labels[k] {
+ return false
+ }
+ }
+ if x.Classification != y.Classification {
+ return false
+ }
+ if !x.ObjectSchema.Equal(y.ObjectSchema) {
+ return false
+ }
+ return true
+}
+
+func (x *ObjectSchema_StructKind) Equal(y *ObjectSchema_StructKind) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Properties) != len(y.Properties) {
+ return false
+ }
+ for k := range x.Properties {
+ _, ok := y.Properties[k]
+ if !ok {
+ return false
+ }
+ if !x.Properties[k].Equal(y.Properties[k]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ObjectSchema_ArrayKind) Equal(y *ObjectSchema_ArrayKind) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Kind.Equal(y.Kind) {
+ return false
+ }
+ return true
+}
+
+func (x *ObjectSchema) Equal(y *ObjectSchema) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if !x.GetStructKind().Equal(y.GetStructKind()) {
+ return false
+ }
+ if !x.GetArrayKind().Equal(y.GetArrayKind()) {
+ return false
+ }
+ if x.SemanticType != y.SemanticType {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/database_group_service_equal.pb.go b/backend/generated-go/v1/database_group_service_equal.pb.go
new file mode 100644
index 0000000000..028de68151
--- /dev/null
+++ b/backend/generated-go/v1/database_group_service_equal.pb.go
@@ -0,0 +1,169 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/database_group_service.proto
+
+package v1
+
+import (
+ expr "google.golang.org/genproto/googleapis/type/expr"
+ proto "google.golang.org/protobuf/proto"
+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
+)
+
+func (x *ListDatabaseGroupsRequest) Equal(y *ListDatabaseGroupsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ if x.View != y.View {
+ return false
+ }
+ return true
+}
+
+func (x *ListDatabaseGroupsResponse) Equal(y *ListDatabaseGroupsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.DatabaseGroups) != len(y.DatabaseGroups) {
+ return false
+ }
+ for i := 0; i < len(x.DatabaseGroups); i++ {
+ if !x.DatabaseGroups[i].Equal(y.DatabaseGroups[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *GetDatabaseGroupRequest) Equal(y *GetDatabaseGroupRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.View != y.View {
+ return false
+ }
+ return true
+}
+
+func (x *CreateDatabaseGroupRequest) Equal(y *CreateDatabaseGroupRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if !x.DatabaseGroup.Equal(y.DatabaseGroup) {
+ return false
+ }
+ if x.DatabaseGroupId != y.DatabaseGroupId {
+ return false
+ }
+ if x.ValidateOnly != y.ValidateOnly {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateDatabaseGroupRequest) Equal(y *UpdateDatabaseGroupRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.DatabaseGroup.Equal(y.DatabaseGroup) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *DeleteDatabaseGroupRequest) Equal(y *DeleteDatabaseGroupRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *DatabaseGroup_Database) Equal(y *DatabaseGroup_Database) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *DatabaseGroup) Equal(y *DatabaseGroup) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if equal, ok := interface{}(x.DatabaseExpr).(interface{ Equal(*expr.Expr) bool }); !ok || !equal.Equal(y.DatabaseExpr) {
+ return false
+ } else if !proto.Equal(x.DatabaseExpr, y.DatabaseExpr) {
+ return false
+ }
+ if len(x.MatchedDatabases) != len(y.MatchedDatabases) {
+ return false
+ }
+ for i := 0; i < len(x.MatchedDatabases); i++ {
+ if !x.MatchedDatabases[i].Equal(y.MatchedDatabases[i]) {
+ return false
+ }
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/database_service_equal.pb.go b/backend/generated-go/v1/database_service_equal.pb.go
new file mode 100644
index 0000000000..d6c889bf8a
--- /dev/null
+++ b/backend/generated-go/v1/database_service_equal.pb.go
@@ -0,0 +1,1915 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/database_service.proto
+
+package v1
+
+import (
+ proto "google.golang.org/protobuf/proto"
+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
+ math "math"
+)
+
+func (x *GetDatabaseRequest) Equal(y *GetDatabaseRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *BatchGetDatabasesRequest) Equal(y *BatchGetDatabasesRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if len(x.Names) != len(y.Names) {
+ return false
+ }
+ for i := 0; i < len(x.Names); i++ {
+ if x.Names[i] != y.Names[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *BatchGetDatabasesResponse) Equal(y *BatchGetDatabasesResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Databases) != len(y.Databases) {
+ return false
+ }
+ for i := 0; i < len(x.Databases); i++ {
+ if !x.Databases[i].Equal(y.Databases[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ListDatabasesRequest) Equal(y *ListDatabasesRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ if x.Filter != y.Filter {
+ return false
+ }
+ if x.ShowDeleted != y.ShowDeleted {
+ return false
+ }
+ return true
+}
+
+func (x *ListDatabasesResponse) Equal(y *ListDatabasesResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Databases) != len(y.Databases) {
+ return false
+ }
+ for i := 0; i < len(x.Databases); i++ {
+ if !x.Databases[i].Equal(y.Databases[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateDatabaseRequest) Equal(y *UpdateDatabaseRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Database.Equal(y.Database) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *BatchUpdateDatabasesRequest) Equal(y *BatchUpdateDatabasesRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if len(x.Requests) != len(y.Requests) {
+ return false
+ }
+ for i := 0; i < len(x.Requests); i++ {
+ if !x.Requests[i].Equal(y.Requests[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *BatchUpdateDatabasesResponse) Equal(y *BatchUpdateDatabasesResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Databases) != len(y.Databases) {
+ return false
+ }
+ for i := 0; i < len(x.Databases); i++ {
+ if !x.Databases[i].Equal(y.Databases[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *BatchSyncDatabasesRequest) Equal(y *BatchSyncDatabasesRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if len(x.Names) != len(y.Names) {
+ return false
+ }
+ for i := 0; i < len(x.Names); i++ {
+ if x.Names[i] != y.Names[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *BatchSyncDatabasesResponse) Equal(y *BatchSyncDatabasesResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
+
+func (x *SyncDatabaseRequest) Equal(y *SyncDatabaseRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *SyncDatabaseResponse) Equal(y *SyncDatabaseResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
+
+func (x *GetDatabaseMetadataRequest) Equal(y *GetDatabaseMetadataRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Filter != y.Filter {
+ return false
+ }
+ return true
+}
+
+func (x *GetDatabaseSchemaRequest) Equal(y *GetDatabaseSchemaRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.SdlFormat != y.SdlFormat {
+ return false
+ }
+ return true
+}
+
+func (x *DiffSchemaRequest) Equal(y *DiffSchemaRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.GetSchema() != y.GetSchema() {
+ return false
+ }
+ if x.GetChangelog() != y.GetChangelog() {
+ return false
+ }
+ if x.SdlFormat != y.SdlFormat {
+ return false
+ }
+ return true
+}
+
+func (x *DiffSchemaResponse) Equal(y *DiffSchemaResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Diff != y.Diff {
+ return false
+ }
+ return true
+}
+
+func (x *Database) Equal(y *Database) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.State != y.State {
+ return false
+ }
+ if p, q := x.SuccessfulSyncTime, y.SuccessfulSyncTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.Project != y.Project {
+ return false
+ }
+ if x.SchemaVersion != y.SchemaVersion {
+ return false
+ }
+ if p, q := x.Environment, y.Environment; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.EffectiveEnvironment, y.EffectiveEnvironment; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if len(x.Labels) != len(y.Labels) {
+ return false
+ }
+ for k := range x.Labels {
+ _, ok := y.Labels[k]
+ if !ok {
+ return false
+ }
+ if x.Labels[k] != y.Labels[k] {
+ return false
+ }
+ }
+ if !x.InstanceResource.Equal(y.InstanceResource) {
+ return false
+ }
+ if x.BackupAvailable != y.BackupAvailable {
+ return false
+ }
+ if x.Drifted != y.Drifted {
+ return false
+ }
+ return true
+}
+
+func (x *DatabaseMetadata) Equal(y *DatabaseMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Schemas) != len(y.Schemas) {
+ return false
+ }
+ for i := 0; i < len(x.Schemas); i++ {
+ if !x.Schemas[i].Equal(y.Schemas[i]) {
+ return false
+ }
+ }
+ if x.CharacterSet != y.CharacterSet {
+ return false
+ }
+ if x.Collation != y.Collation {
+ return false
+ }
+ if len(x.Extensions) != len(y.Extensions) {
+ return false
+ }
+ for i := 0; i < len(x.Extensions); i++ {
+ if !x.Extensions[i].Equal(y.Extensions[i]) {
+ return false
+ }
+ }
+ if x.Owner != y.Owner {
+ return false
+ }
+ if x.SearchPath != y.SearchPath {
+ return false
+ }
+ return true
+}
+
+func (x *SchemaMetadata) Equal(y *SchemaMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Tables) != len(y.Tables) {
+ return false
+ }
+ for i := 0; i < len(x.Tables); i++ {
+ if !x.Tables[i].Equal(y.Tables[i]) {
+ return false
+ }
+ }
+ if len(x.ExternalTables) != len(y.ExternalTables) {
+ return false
+ }
+ for i := 0; i < len(x.ExternalTables); i++ {
+ if !x.ExternalTables[i].Equal(y.ExternalTables[i]) {
+ return false
+ }
+ }
+ if len(x.Views) != len(y.Views) {
+ return false
+ }
+ for i := 0; i < len(x.Views); i++ {
+ if !x.Views[i].Equal(y.Views[i]) {
+ return false
+ }
+ }
+ if len(x.Functions) != len(y.Functions) {
+ return false
+ }
+ for i := 0; i < len(x.Functions); i++ {
+ if !x.Functions[i].Equal(y.Functions[i]) {
+ return false
+ }
+ }
+ if len(x.Procedures) != len(y.Procedures) {
+ return false
+ }
+ for i := 0; i < len(x.Procedures); i++ {
+ if !x.Procedures[i].Equal(y.Procedures[i]) {
+ return false
+ }
+ }
+ if len(x.Streams) != len(y.Streams) {
+ return false
+ }
+ for i := 0; i < len(x.Streams); i++ {
+ if !x.Streams[i].Equal(y.Streams[i]) {
+ return false
+ }
+ }
+ if len(x.Tasks) != len(y.Tasks) {
+ return false
+ }
+ for i := 0; i < len(x.Tasks); i++ {
+ if !x.Tasks[i].Equal(y.Tasks[i]) {
+ return false
+ }
+ }
+ if len(x.MaterializedViews) != len(y.MaterializedViews) {
+ return false
+ }
+ for i := 0; i < len(x.MaterializedViews); i++ {
+ if !x.MaterializedViews[i].Equal(y.MaterializedViews[i]) {
+ return false
+ }
+ }
+ if len(x.Packages) != len(y.Packages) {
+ return false
+ }
+ for i := 0; i < len(x.Packages); i++ {
+ if !x.Packages[i].Equal(y.Packages[i]) {
+ return false
+ }
+ }
+ if x.Owner != y.Owner {
+ return false
+ }
+ if len(x.Sequences) != len(y.Sequences) {
+ return false
+ }
+ for i := 0; i < len(x.Sequences); i++ {
+ if !x.Sequences[i].Equal(y.Sequences[i]) {
+ return false
+ }
+ }
+ if len(x.Events) != len(y.Events) {
+ return false
+ }
+ for i := 0; i < len(x.Events); i++ {
+ if !x.Events[i].Equal(y.Events[i]) {
+ return false
+ }
+ }
+ if len(x.EnumTypes) != len(y.EnumTypes) {
+ return false
+ }
+ for i := 0; i < len(x.EnumTypes); i++ {
+ if !x.EnumTypes[i].Equal(y.EnumTypes[i]) {
+ return false
+ }
+ }
+ if x.SkipDump != y.SkipDump {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ return true
+}
+
+func (x *EnumTypeMetadata) Equal(y *EnumTypeMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Values) != len(y.Values) {
+ return false
+ }
+ for i := 0; i < len(x.Values); i++ {
+ if x.Values[i] != y.Values[i] {
+ return false
+ }
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if x.SkipDump != y.SkipDump {
+ return false
+ }
+ return true
+}
+
+func (x *EventMetadata) Equal(y *EventMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Definition != y.Definition {
+ return false
+ }
+ if x.TimeZone != y.TimeZone {
+ return false
+ }
+ if x.SqlMode != y.SqlMode {
+ return false
+ }
+ if x.CharacterSetClient != y.CharacterSetClient {
+ return false
+ }
+ if x.CollationConnection != y.CollationConnection {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ return true
+}
+
+func (x *SequenceMetadata) Equal(y *SequenceMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.DataType != y.DataType {
+ return false
+ }
+ if x.Start != y.Start {
+ return false
+ }
+ if x.MinValue != y.MinValue {
+ return false
+ }
+ if x.MaxValue != y.MaxValue {
+ return false
+ }
+ if x.Increment != y.Increment {
+ return false
+ }
+ if x.Cycle != y.Cycle {
+ return false
+ }
+ if x.CacheSize != y.CacheSize {
+ return false
+ }
+ if x.LastValue != y.LastValue {
+ return false
+ }
+ if x.OwnerTable != y.OwnerTable {
+ return false
+ }
+ if x.OwnerColumn != y.OwnerColumn {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if x.SkipDump != y.SkipDump {
+ return false
+ }
+ return true
+}
+
+func (x *TriggerMetadata) Equal(y *TriggerMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Event != y.Event {
+ return false
+ }
+ if x.Timing != y.Timing {
+ return false
+ }
+ if x.Body != y.Body {
+ return false
+ }
+ if x.SqlMode != y.SqlMode {
+ return false
+ }
+ if x.CharacterSetClient != y.CharacterSetClient {
+ return false
+ }
+ if x.CollationConnection != y.CollationConnection {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if x.SkipDump != y.SkipDump {
+ return false
+ }
+ return true
+}
+
+func (x *ExternalTableMetadata) Equal(y *ExternalTableMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.ExternalServerName != y.ExternalServerName {
+ return false
+ }
+ if x.ExternalDatabaseName != y.ExternalDatabaseName {
+ return false
+ }
+ if len(x.Columns) != len(y.Columns) {
+ return false
+ }
+ for i := 0; i < len(x.Columns); i++ {
+ if !x.Columns[i].Equal(y.Columns[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *TableMetadata) Equal(y *TableMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Columns) != len(y.Columns) {
+ return false
+ }
+ for i := 0; i < len(x.Columns); i++ {
+ if !x.Columns[i].Equal(y.Columns[i]) {
+ return false
+ }
+ }
+ if len(x.Indexes) != len(y.Indexes) {
+ return false
+ }
+ for i := 0; i < len(x.Indexes); i++ {
+ if !x.Indexes[i].Equal(y.Indexes[i]) {
+ return false
+ }
+ }
+ if x.Engine != y.Engine {
+ return false
+ }
+ if x.Collation != y.Collation {
+ return false
+ }
+ if x.Charset != y.Charset {
+ return false
+ }
+ if x.RowCount != y.RowCount {
+ return false
+ }
+ if x.DataSize != y.DataSize {
+ return false
+ }
+ if x.IndexSize != y.IndexSize {
+ return false
+ }
+ if x.DataFree != y.DataFree {
+ return false
+ }
+ if x.CreateOptions != y.CreateOptions {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if x.UserComment != y.UserComment {
+ return false
+ }
+ if len(x.ForeignKeys) != len(y.ForeignKeys) {
+ return false
+ }
+ for i := 0; i < len(x.ForeignKeys); i++ {
+ if !x.ForeignKeys[i].Equal(y.ForeignKeys[i]) {
+ return false
+ }
+ }
+ if len(x.Partitions) != len(y.Partitions) {
+ return false
+ }
+ for i := 0; i < len(x.Partitions); i++ {
+ if !x.Partitions[i].Equal(y.Partitions[i]) {
+ return false
+ }
+ }
+ if len(x.CheckConstraints) != len(y.CheckConstraints) {
+ return false
+ }
+ for i := 0; i < len(x.CheckConstraints); i++ {
+ if !x.CheckConstraints[i].Equal(y.CheckConstraints[i]) {
+ return false
+ }
+ }
+ if x.Owner != y.Owner {
+ return false
+ }
+ if len(x.SortingKeys) != len(y.SortingKeys) {
+ return false
+ }
+ for i := 0; i < len(x.SortingKeys); i++ {
+ if x.SortingKeys[i] != y.SortingKeys[i] {
+ return false
+ }
+ }
+ if len(x.Triggers) != len(y.Triggers) {
+ return false
+ }
+ for i := 0; i < len(x.Triggers); i++ {
+ if !x.Triggers[i].Equal(y.Triggers[i]) {
+ return false
+ }
+ }
+ if x.SkipDump != y.SkipDump {
+ return false
+ }
+ if x.ShardingInfo != y.ShardingInfo {
+ return false
+ }
+ if x.PrimaryKeyType != y.PrimaryKeyType {
+ return false
+ }
+ return true
+}
+
+func (x *CheckConstraintMetadata) Equal(y *CheckConstraintMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Expression != y.Expression {
+ return false
+ }
+ return true
+}
+
+func (x *TablePartitionMetadata) Equal(y *TablePartitionMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Expression != y.Expression {
+ return false
+ }
+ if x.Value != y.Value {
+ return false
+ }
+ if x.UseDefault != y.UseDefault {
+ return false
+ }
+ if len(x.Subpartitions) != len(y.Subpartitions) {
+ return false
+ }
+ for i := 0; i < len(x.Subpartitions); i++ {
+ if !x.Subpartitions[i].Equal(y.Subpartitions[i]) {
+ return false
+ }
+ }
+ if len(x.Indexes) != len(y.Indexes) {
+ return false
+ }
+ for i := 0; i < len(x.Indexes); i++ {
+ if !x.Indexes[i].Equal(y.Indexes[i]) {
+ return false
+ }
+ }
+ if len(x.CheckConstraints) != len(y.CheckConstraints) {
+ return false
+ }
+ for i := 0; i < len(x.CheckConstraints); i++ {
+ if !x.CheckConstraints[i].Equal(y.CheckConstraints[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ColumnMetadata) Equal(y *ColumnMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Position != y.Position {
+ return false
+ }
+ if x.HasDefault != y.HasDefault {
+ return false
+ }
+ if x.Default != y.Default {
+ return false
+ }
+ if x.DefaultOnNull != y.DefaultOnNull {
+ return false
+ }
+ if x.OnUpdate != y.OnUpdate {
+ return false
+ }
+ if x.Nullable != y.Nullable {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.CharacterSet != y.CharacterSet {
+ return false
+ }
+ if x.Collation != y.Collation {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if x.UserComment != y.UserComment {
+ return false
+ }
+ if !x.Generation.Equal(y.Generation) {
+ return false
+ }
+ if x.IsIdentity != y.IsIdentity {
+ return false
+ }
+ if x.IdentityGeneration != y.IdentityGeneration {
+ return false
+ }
+ if x.IdentitySeed != y.IdentitySeed {
+ return false
+ }
+ if x.IdentityIncrement != y.IdentityIncrement {
+ return false
+ }
+ if x.DefaultConstraintName != y.DefaultConstraintName {
+ return false
+ }
+ return true
+}
+
+func (x *GenerationMetadata) Equal(y *GenerationMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Expression != y.Expression {
+ return false
+ }
+ return true
+}
+
+func (x *ViewMetadata) Equal(y *ViewMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Definition != y.Definition {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if len(x.DependencyColumns) != len(y.DependencyColumns) {
+ return false
+ }
+ for i := 0; i < len(x.DependencyColumns); i++ {
+ if !x.DependencyColumns[i].Equal(y.DependencyColumns[i]) {
+ return false
+ }
+ }
+ if len(x.Columns) != len(y.Columns) {
+ return false
+ }
+ for i := 0; i < len(x.Columns); i++ {
+ if !x.Columns[i].Equal(y.Columns[i]) {
+ return false
+ }
+ }
+ if len(x.Triggers) != len(y.Triggers) {
+ return false
+ }
+ for i := 0; i < len(x.Triggers); i++ {
+ if !x.Triggers[i].Equal(y.Triggers[i]) {
+ return false
+ }
+ }
+ if x.SkipDump != y.SkipDump {
+ return false
+ }
+ return true
+}
+
+func (x *DependencyColumn) Equal(y *DependencyColumn) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Schema != y.Schema {
+ return false
+ }
+ if x.Table != y.Table {
+ return false
+ }
+ if x.Column != y.Column {
+ return false
+ }
+ return true
+}
+
+func (x *MaterializedViewMetadata) Equal(y *MaterializedViewMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Definition != y.Definition {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if len(x.DependencyColumns) != len(y.DependencyColumns) {
+ return false
+ }
+ for i := 0; i < len(x.DependencyColumns); i++ {
+ if !x.DependencyColumns[i].Equal(y.DependencyColumns[i]) {
+ return false
+ }
+ }
+ if len(x.Triggers) != len(y.Triggers) {
+ return false
+ }
+ for i := 0; i < len(x.Triggers); i++ {
+ if !x.Triggers[i].Equal(y.Triggers[i]) {
+ return false
+ }
+ }
+ if len(x.Indexes) != len(y.Indexes) {
+ return false
+ }
+ for i := 0; i < len(x.Indexes); i++ {
+ if !x.Indexes[i].Equal(y.Indexes[i]) {
+ return false
+ }
+ }
+ if x.SkipDump != y.SkipDump {
+ return false
+ }
+ return true
+}
+
+func (x *DependencyTable) Equal(y *DependencyTable) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Schema != y.Schema {
+ return false
+ }
+ if x.Table != y.Table {
+ return false
+ }
+ return true
+}
+
+func (x *FunctionMetadata) Equal(y *FunctionMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Definition != y.Definition {
+ return false
+ }
+ if x.Signature != y.Signature {
+ return false
+ }
+ if x.CharacterSetClient != y.CharacterSetClient {
+ return false
+ }
+ if x.CollationConnection != y.CollationConnection {
+ return false
+ }
+ if x.DatabaseCollation != y.DatabaseCollation {
+ return false
+ }
+ if x.SqlMode != y.SqlMode {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if len(x.DependencyTables) != len(y.DependencyTables) {
+ return false
+ }
+ for i := 0; i < len(x.DependencyTables); i++ {
+ if !x.DependencyTables[i].Equal(y.DependencyTables[i]) {
+ return false
+ }
+ }
+ if x.SkipDump != y.SkipDump {
+ return false
+ }
+ return true
+}
+
+func (x *ProcedureMetadata) Equal(y *ProcedureMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Definition != y.Definition {
+ return false
+ }
+ if x.Signature != y.Signature {
+ return false
+ }
+ if x.CharacterSetClient != y.CharacterSetClient {
+ return false
+ }
+ if x.CollationConnection != y.CollationConnection {
+ return false
+ }
+ if x.DatabaseCollation != y.DatabaseCollation {
+ return false
+ }
+ if x.SqlMode != y.SqlMode {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if x.SkipDump != y.SkipDump {
+ return false
+ }
+ return true
+}
+
+func (x *PackageMetadata) Equal(y *PackageMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Definition != y.Definition {
+ return false
+ }
+ return true
+}
+
+func (x *TaskMetadata) Equal(y *TaskMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Owner != y.Owner {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if x.Warehouse != y.Warehouse {
+ return false
+ }
+ if x.Schedule != y.Schedule {
+ return false
+ }
+ if len(x.Predecessors) != len(y.Predecessors) {
+ return false
+ }
+ for i := 0; i < len(x.Predecessors); i++ {
+ if x.Predecessors[i] != y.Predecessors[i] {
+ return false
+ }
+ }
+ if x.State != y.State {
+ return false
+ }
+ if x.Condition != y.Condition {
+ return false
+ }
+ if x.Definition != y.Definition {
+ return false
+ }
+ return true
+}
+
+func (x *StreamMetadata) Equal(y *StreamMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.TableName != y.TableName {
+ return false
+ }
+ if x.Owner != y.Owner {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Stale != y.Stale {
+ return false
+ }
+ if x.Mode != y.Mode {
+ return false
+ }
+ if x.Definition != y.Definition {
+ return false
+ }
+ return true
+}
+
+func (x *SpatialIndexConfig) Equal(y *SpatialIndexConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Method != y.Method {
+ return false
+ }
+ if !x.Tessellation.Equal(y.Tessellation) {
+ return false
+ }
+ if !x.Storage.Equal(y.Storage) {
+ return false
+ }
+ if !x.Dimensional.Equal(y.Dimensional) {
+ return false
+ }
+ return true
+}
+
+func (x *TessellationConfig) Equal(y *TessellationConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Scheme != y.Scheme {
+ return false
+ }
+ if len(x.GridLevels) != len(y.GridLevels) {
+ return false
+ }
+ for i := 0; i < len(x.GridLevels); i++ {
+ if !x.GridLevels[i].Equal(y.GridLevels[i]) {
+ return false
+ }
+ }
+ if x.CellsPerObject != y.CellsPerObject {
+ return false
+ }
+ if !x.BoundingBox.Equal(y.BoundingBox) {
+ return false
+ }
+ return true
+}
+
+func (x *GridLevel) Equal(y *GridLevel) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Level != y.Level {
+ return false
+ }
+ if x.Density != y.Density {
+ return false
+ }
+ return true
+}
+
+func (x *BoundingBox) Equal(y *BoundingBox) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if (math.IsNaN(float64(x.Xmin)) && !math.IsNaN(float64(y.Xmin)) || !math.IsNaN(float64(x.Xmin)) && math.IsNaN(float64(y.Xmin))) || (!math.IsNaN(float64(x.Xmin)) && !math.IsNaN(float64(y.Xmin)) && x.Xmin != y.Xmin) {
+ return false
+ }
+ if (math.IsNaN(float64(x.Ymin)) && !math.IsNaN(float64(y.Ymin)) || !math.IsNaN(float64(x.Ymin)) && math.IsNaN(float64(y.Ymin))) || (!math.IsNaN(float64(x.Ymin)) && !math.IsNaN(float64(y.Ymin)) && x.Ymin != y.Ymin) {
+ return false
+ }
+ if (math.IsNaN(float64(x.Xmax)) && !math.IsNaN(float64(y.Xmax)) || !math.IsNaN(float64(x.Xmax)) && math.IsNaN(float64(y.Xmax))) || (!math.IsNaN(float64(x.Xmax)) && !math.IsNaN(float64(y.Xmax)) && x.Xmax != y.Xmax) {
+ return false
+ }
+ if (math.IsNaN(float64(x.Ymax)) && !math.IsNaN(float64(y.Ymax)) || !math.IsNaN(float64(x.Ymax)) && math.IsNaN(float64(y.Ymax))) || (!math.IsNaN(float64(x.Ymax)) && !math.IsNaN(float64(y.Ymax)) && x.Ymax != y.Ymax) {
+ return false
+ }
+ return true
+}
+
+func (x *StorageConfig) Equal(y *StorageConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Fillfactor != y.Fillfactor {
+ return false
+ }
+ if x.Buffering != y.Buffering {
+ return false
+ }
+ if x.Tablespace != y.Tablespace {
+ return false
+ }
+ if x.WorkTablespace != y.WorkTablespace {
+ return false
+ }
+ if x.SdoLevel != y.SdoLevel {
+ return false
+ }
+ if x.CommitInterval != y.CommitInterval {
+ return false
+ }
+ if x.PadIndex != y.PadIndex {
+ return false
+ }
+ if x.SortInTempdb != y.SortInTempdb {
+ return false
+ }
+ if x.DropExisting != y.DropExisting {
+ return false
+ }
+ if x.Online != y.Online {
+ return false
+ }
+ if x.AllowRowLocks != y.AllowRowLocks {
+ return false
+ }
+ if x.AllowPageLocks != y.AllowPageLocks {
+ return false
+ }
+ if x.Maxdop != y.Maxdop {
+ return false
+ }
+ if x.DataCompression != y.DataCompression {
+ return false
+ }
+ return true
+}
+
+func (x *DimensionalConfig) Equal(y *DimensionalConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Dimensions != y.Dimensions {
+ return false
+ }
+ if x.DataType != y.DataType {
+ return false
+ }
+ if x.Srid != y.Srid {
+ return false
+ }
+ if len(x.Constraints) != len(y.Constraints) {
+ return false
+ }
+ for i := 0; i < len(x.Constraints); i++ {
+ if !x.Constraints[i].Equal(y.Constraints[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *DimensionConstraint) Equal(y *DimensionConstraint) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Dimension != y.Dimension {
+ return false
+ }
+ if (math.IsNaN(float64(x.MinValue)) && !math.IsNaN(float64(y.MinValue)) || !math.IsNaN(float64(x.MinValue)) && math.IsNaN(float64(y.MinValue))) || (!math.IsNaN(float64(x.MinValue)) && !math.IsNaN(float64(y.MinValue)) && x.MinValue != y.MinValue) {
+ return false
+ }
+ if (math.IsNaN(float64(x.MaxValue)) && !math.IsNaN(float64(y.MaxValue)) || !math.IsNaN(float64(x.MaxValue)) && math.IsNaN(float64(y.MaxValue))) || (!math.IsNaN(float64(x.MaxValue)) && !math.IsNaN(float64(y.MaxValue)) && x.MaxValue != y.MaxValue) {
+ return false
+ }
+ if (math.IsNaN(float64(x.Tolerance)) && !math.IsNaN(float64(y.Tolerance)) || !math.IsNaN(float64(x.Tolerance)) && math.IsNaN(float64(y.Tolerance))) || (!math.IsNaN(float64(x.Tolerance)) && !math.IsNaN(float64(y.Tolerance)) && x.Tolerance != y.Tolerance) {
+ return false
+ }
+ return true
+}
+
+func (x *IndexMetadata) Equal(y *IndexMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Expressions) != len(y.Expressions) {
+ return false
+ }
+ for i := 0; i < len(x.Expressions); i++ {
+ if x.Expressions[i] != y.Expressions[i] {
+ return false
+ }
+ }
+ if len(x.KeyLength) != len(y.KeyLength) {
+ return false
+ }
+ for i := 0; i < len(x.KeyLength); i++ {
+ if x.KeyLength[i] != y.KeyLength[i] {
+ return false
+ }
+ }
+ if len(x.Descending) != len(y.Descending) {
+ return false
+ }
+ for i := 0; i < len(x.Descending); i++ {
+ if x.Descending[i] != y.Descending[i] {
+ return false
+ }
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Unique != y.Unique {
+ return false
+ }
+ if x.Primary != y.Primary {
+ return false
+ }
+ if x.Visible != y.Visible {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if x.Definition != y.Definition {
+ return false
+ }
+ if x.ParentIndexSchema != y.ParentIndexSchema {
+ return false
+ }
+ if x.ParentIndexName != y.ParentIndexName {
+ return false
+ }
+ if x.Granularity != y.Granularity {
+ return false
+ }
+ if x.IsConstraint != y.IsConstraint {
+ return false
+ }
+ if !x.SpatialConfig.Equal(y.SpatialConfig) {
+ return false
+ }
+ if len(x.OpclassNames) != len(y.OpclassNames) {
+ return false
+ }
+ for i := 0; i < len(x.OpclassNames); i++ {
+ if x.OpclassNames[i] != y.OpclassNames[i] {
+ return false
+ }
+ }
+ if len(x.OpclassDefaults) != len(y.OpclassDefaults) {
+ return false
+ }
+ for i := 0; i < len(x.OpclassDefaults); i++ {
+ if x.OpclassDefaults[i] != y.OpclassDefaults[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ExtensionMetadata) Equal(y *ExtensionMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Schema != y.Schema {
+ return false
+ }
+ if x.Version != y.Version {
+ return false
+ }
+ if x.Description != y.Description {
+ return false
+ }
+ return true
+}
+
+func (x *ForeignKeyMetadata) Equal(y *ForeignKeyMetadata) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Columns) != len(y.Columns) {
+ return false
+ }
+ for i := 0; i < len(x.Columns); i++ {
+ if x.Columns[i] != y.Columns[i] {
+ return false
+ }
+ }
+ if x.ReferencedSchema != y.ReferencedSchema {
+ return false
+ }
+ if x.ReferencedTable != y.ReferencedTable {
+ return false
+ }
+ if len(x.ReferencedColumns) != len(y.ReferencedColumns) {
+ return false
+ }
+ for i := 0; i < len(x.ReferencedColumns); i++ {
+ if x.ReferencedColumns[i] != y.ReferencedColumns[i] {
+ return false
+ }
+ }
+ if x.OnDelete != y.OnDelete {
+ return false
+ }
+ if x.OnUpdate != y.OnUpdate {
+ return false
+ }
+ if x.MatchType != y.MatchType {
+ return false
+ }
+ return true
+}
+
+func (x *DatabaseSchema) Equal(y *DatabaseSchema) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Schema != y.Schema {
+ return false
+ }
+ return true
+}
+
+func (x *ChangedResources) Equal(y *ChangedResources) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Databases) != len(y.Databases) {
+ return false
+ }
+ for i := 0; i < len(x.Databases); i++ {
+ if !x.Databases[i].Equal(y.Databases[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ChangedResourceDatabase) Equal(y *ChangedResourceDatabase) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Schemas) != len(y.Schemas) {
+ return false
+ }
+ for i := 0; i < len(x.Schemas); i++ {
+ if !x.Schemas[i].Equal(y.Schemas[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ChangedResourceSchema) Equal(y *ChangedResourceSchema) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Tables) != len(y.Tables) {
+ return false
+ }
+ for i := 0; i < len(x.Tables); i++ {
+ if !x.Tables[i].Equal(y.Tables[i]) {
+ return false
+ }
+ }
+ if len(x.Views) != len(y.Views) {
+ return false
+ }
+ for i := 0; i < len(x.Views); i++ {
+ if !x.Views[i].Equal(y.Views[i]) {
+ return false
+ }
+ }
+ if len(x.Functions) != len(y.Functions) {
+ return false
+ }
+ for i := 0; i < len(x.Functions); i++ {
+ if !x.Functions[i].Equal(y.Functions[i]) {
+ return false
+ }
+ }
+ if len(x.Procedures) != len(y.Procedures) {
+ return false
+ }
+ for i := 0; i < len(x.Procedures); i++ {
+ if !x.Procedures[i].Equal(y.Procedures[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ChangedResourceTable) Equal(y *ChangedResourceTable) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Ranges) != len(y.Ranges) {
+ return false
+ }
+ for i := 0; i < len(x.Ranges); i++ {
+ if !x.Ranges[i].Equal(y.Ranges[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ChangedResourceView) Equal(y *ChangedResourceView) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Ranges) != len(y.Ranges) {
+ return false
+ }
+ for i := 0; i < len(x.Ranges); i++ {
+ if !x.Ranges[i].Equal(y.Ranges[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ChangedResourceFunction) Equal(y *ChangedResourceFunction) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Ranges) != len(y.Ranges) {
+ return false
+ }
+ for i := 0; i < len(x.Ranges); i++ {
+ if !x.Ranges[i].Equal(y.Ranges[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ChangedResourceProcedure) Equal(y *ChangedResourceProcedure) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Ranges) != len(y.Ranges) {
+ return false
+ }
+ for i := 0; i < len(x.Ranges); i++ {
+ if !x.Ranges[i].Equal(y.Ranges[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ListChangelogsRequest) Equal(y *ListChangelogsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ if x.View != y.View {
+ return false
+ }
+ if x.Filter != y.Filter {
+ return false
+ }
+ return true
+}
+
+func (x *ListChangelogsResponse) Equal(y *ListChangelogsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Changelogs) != len(y.Changelogs) {
+ return false
+ }
+ for i := 0; i < len(x.Changelogs); i++ {
+ if !x.Changelogs[i].Equal(y.Changelogs[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *GetChangelogRequest) Equal(y *GetChangelogRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.View != y.View {
+ return false
+ }
+ if x.SdlFormat != y.SdlFormat {
+ return false
+ }
+ return true
+}
+
+func (x *Changelog) Equal(y *Changelog) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if p, q := x.CreateTime, y.CreateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.Status != y.Status {
+ return false
+ }
+ if x.Statement != y.Statement {
+ return false
+ }
+ if x.StatementSize != y.StatementSize {
+ return false
+ }
+ if x.StatementSheet != y.StatementSheet {
+ return false
+ }
+ if x.Schema != y.Schema {
+ return false
+ }
+ if x.SchemaSize != y.SchemaSize {
+ return false
+ }
+ if x.PrevSchema != y.PrevSchema {
+ return false
+ }
+ if x.PrevSchemaSize != y.PrevSchemaSize {
+ return false
+ }
+ if x.Issue != y.Issue {
+ return false
+ }
+ if x.TaskRun != y.TaskRun {
+ return false
+ }
+ if x.Version != y.Version {
+ return false
+ }
+ if x.Revision != y.Revision {
+ return false
+ }
+ if !x.ChangedResources.Equal(y.ChangedResources) {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ return true
+}
+
+func (x *GetSchemaStringRequest) Equal(y *GetSchemaStringRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Schema != y.Schema {
+ return false
+ }
+ if x.Object != y.Object {
+ return false
+ }
+ if !x.Metadata.Equal(y.Metadata) {
+ return false
+ }
+ return true
+}
+
+func (x *GetSchemaStringResponse) Equal(y *GetSchemaStringResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.SchemaString != y.SchemaString {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/group_service_equal.pb.go b/backend/generated-go/v1/group_service_equal.pb.go
new file mode 100644
index 0000000000..0d5d10b153
--- /dev/null
+++ b/backend/generated-go/v1/group_service_equal.pb.go
@@ -0,0 +1,196 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/group_service.proto
+
+package v1
+
+import (
+ proto "google.golang.org/protobuf/proto"
+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
+)
+
+func (x *GetGroupRequest) Equal(y *GetGroupRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *BatchGetGroupsRequest) Equal(y *BatchGetGroupsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Names) != len(y.Names) {
+ return false
+ }
+ for i := 0; i < len(x.Names); i++ {
+ if x.Names[i] != y.Names[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *BatchGetGroupsResponse) Equal(y *BatchGetGroupsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Groups) != len(y.Groups) {
+ return false
+ }
+ for i := 0; i < len(x.Groups); i++ {
+ if !x.Groups[i].Equal(y.Groups[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ListGroupsRequest) Equal(y *ListGroupsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ if x.Filter != y.Filter {
+ return false
+ }
+ return true
+}
+
+func (x *ListGroupsResponse) Equal(y *ListGroupsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Groups) != len(y.Groups) {
+ return false
+ }
+ for i := 0; i < len(x.Groups); i++ {
+ if !x.Groups[i].Equal(y.Groups[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *CreateGroupRequest) Equal(y *CreateGroupRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Group.Equal(y.Group) {
+ return false
+ }
+ if x.GroupEmail != y.GroupEmail {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateGroupRequest) Equal(y *UpdateGroupRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Group.Equal(y.Group) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *DeleteGroupRequest) Equal(y *DeleteGroupRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *GroupMember) Equal(y *GroupMember) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Member != y.Member {
+ return false
+ }
+ if x.Role != y.Role {
+ return false
+ }
+ return true
+}
+
+func (x *Group) Equal(y *Group) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Description != y.Description {
+ return false
+ }
+ if len(x.Members) != len(y.Members) {
+ return false
+ }
+ for i := 0; i < len(x.Members); i++ {
+ if !x.Members[i].Equal(y.Members[i]) {
+ return false
+ }
+ }
+ if x.Source != y.Source {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/iam_policy_equal.pb.go b/backend/generated-go/v1/iam_policy_equal.pb.go
new file mode 100644
index 0000000000..e262453f1b
--- /dev/null
+++ b/backend/generated-go/v1/iam_policy_equal.pb.go
@@ -0,0 +1,136 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/iam_policy.proto
+
+package v1
+
+import (
+ v1alpha1 "google.golang.org/genproto/googleapis/api/expr/v1alpha1"
+ expr "google.golang.org/genproto/googleapis/type/expr"
+ proto "google.golang.org/protobuf/proto"
+)
+
+func (x *GetIamPolicyRequest) Equal(y *GetIamPolicyRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Resource != y.Resource {
+ return false
+ }
+ return true
+}
+
+func (x *SetIamPolicyRequest) Equal(y *SetIamPolicyRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Resource != y.Resource {
+ return false
+ }
+ if !x.Policy.Equal(y.Policy) {
+ return false
+ }
+ if x.Etag != y.Etag {
+ return false
+ }
+ return true
+}
+
+func (x *IamPolicy) Equal(y *IamPolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Bindings) != len(y.Bindings) {
+ return false
+ }
+ for i := 0; i < len(x.Bindings); i++ {
+ if !x.Bindings[i].Equal(y.Bindings[i]) {
+ return false
+ }
+ }
+ if x.Etag != y.Etag {
+ return false
+ }
+ return true
+}
+
+func (x *Binding) Equal(y *Binding) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Role != y.Role {
+ return false
+ }
+ if len(x.Members) != len(y.Members) {
+ return false
+ }
+ for i := 0; i < len(x.Members); i++ {
+ if x.Members[i] != y.Members[i] {
+ return false
+ }
+ }
+ if equal, ok := interface{}(x.Condition).(interface{ Equal(*expr.Expr) bool }); !ok || !equal.Equal(y.Condition) {
+ return false
+ } else if !proto.Equal(x.Condition, y.Condition) {
+ return false
+ }
+ if equal, ok := interface{}(x.ParsedExpr).(interface{ Equal(*v1alpha1.Expr) bool }); !ok || !equal.Equal(y.ParsedExpr) {
+ return false
+ } else if !proto.Equal(x.ParsedExpr, y.ParsedExpr) {
+ return false
+ }
+ return true
+}
+
+func (x *PolicyDelta) Equal(y *PolicyDelta) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.BindingDeltas) != len(y.BindingDeltas) {
+ return false
+ }
+ for i := 0; i < len(x.BindingDeltas); i++ {
+ if !x.BindingDeltas[i].Equal(y.BindingDeltas[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *BindingDelta) Equal(y *BindingDelta) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Action != y.Action {
+ return false
+ }
+ if x.Role != y.Role {
+ return false
+ }
+ if x.Member != y.Member {
+ return false
+ }
+ if equal, ok := interface{}(x.Condition).(interface{ Equal(*expr.Expr) bool }); !ok || !equal.Equal(y.Condition) {
+ return false
+ } else if !proto.Equal(x.Condition, y.Condition) {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/idp_service_equal.pb.go b/backend/generated-go/v1/idp_service_equal.pb.go
new file mode 100644
index 0000000000..9758aaa5bb
--- /dev/null
+++ b/backend/generated-go/v1/idp_service_equal.pb.go
@@ -0,0 +1,361 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/idp_service.proto
+
+package v1
+
+import (
+ proto "google.golang.org/protobuf/proto"
+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
+)
+
+func (x *GetIdentityProviderRequest) Equal(y *GetIdentityProviderRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *ListIdentityProvidersRequest) Equal(y *ListIdentityProvidersRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ return true
+}
+
+func (x *ListIdentityProvidersResponse) Equal(y *ListIdentityProvidersResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.IdentityProviders) != len(y.IdentityProviders) {
+ return false
+ }
+ for i := 0; i < len(x.IdentityProviders); i++ {
+ if !x.IdentityProviders[i].Equal(y.IdentityProviders[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *CreateIdentityProviderRequest) Equal(y *CreateIdentityProviderRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.IdentityProvider.Equal(y.IdentityProvider) {
+ return false
+ }
+ if x.IdentityProviderId != y.IdentityProviderId {
+ return false
+ }
+ if x.ValidateOnly != y.ValidateOnly {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateIdentityProviderRequest) Equal(y *UpdateIdentityProviderRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.IdentityProvider.Equal(y.IdentityProvider) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *DeleteIdentityProviderRequest) Equal(y *DeleteIdentityProviderRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *TestIdentityProviderRequest) Equal(y *TestIdentityProviderRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.IdentityProvider.Equal(y.IdentityProvider) {
+ return false
+ }
+ if !x.GetOauth2Context().Equal(y.GetOauth2Context()) {
+ return false
+ }
+ return true
+}
+
+func (x *OAuth2IdentityProviderTestRequestContext) Equal(y *OAuth2IdentityProviderTestRequestContext) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Code != y.Code {
+ return false
+ }
+ return true
+}
+
+func (x *TestIdentityProviderResponse) Equal(y *TestIdentityProviderResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Claims) != len(y.Claims) {
+ return false
+ }
+ for k := range x.Claims {
+ _, ok := y.Claims[k]
+ if !ok {
+ return false
+ }
+ if x.Claims[k] != y.Claims[k] {
+ return false
+ }
+ }
+ if len(x.UserInfo) != len(y.UserInfo) {
+ return false
+ }
+ for k := range x.UserInfo {
+ _, ok := y.UserInfo[k]
+ if !ok {
+ return false
+ }
+ if x.UserInfo[k] != y.UserInfo[k] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *IdentityProvider) Equal(y *IdentityProvider) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Domain != y.Domain {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if !x.Config.Equal(y.Config) {
+ return false
+ }
+ return true
+}
+
+func (x *IdentityProviderConfig) Equal(y *IdentityProviderConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.GetOauth2Config().Equal(y.GetOauth2Config()) {
+ return false
+ }
+ if !x.GetOidcConfig().Equal(y.GetOidcConfig()) {
+ return false
+ }
+ if !x.GetLdapConfig().Equal(y.GetLdapConfig()) {
+ return false
+ }
+ return true
+}
+
+func (x *OAuth2IdentityProviderConfig) Equal(y *OAuth2IdentityProviderConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.AuthUrl != y.AuthUrl {
+ return false
+ }
+ if x.TokenUrl != y.TokenUrl {
+ return false
+ }
+ if x.UserInfoUrl != y.UserInfoUrl {
+ return false
+ }
+ if x.ClientId != y.ClientId {
+ return false
+ }
+ if x.ClientSecret != y.ClientSecret {
+ return false
+ }
+ if len(x.Scopes) != len(y.Scopes) {
+ return false
+ }
+ for i := 0; i < len(x.Scopes); i++ {
+ if x.Scopes[i] != y.Scopes[i] {
+ return false
+ }
+ }
+ if !x.FieldMapping.Equal(y.FieldMapping) {
+ return false
+ }
+ if x.SkipTlsVerify != y.SkipTlsVerify {
+ return false
+ }
+ if x.AuthStyle != y.AuthStyle {
+ return false
+ }
+ return true
+}
+
+func (x *OIDCIdentityProviderConfig) Equal(y *OIDCIdentityProviderConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Issuer != y.Issuer {
+ return false
+ }
+ if x.ClientId != y.ClientId {
+ return false
+ }
+ if x.ClientSecret != y.ClientSecret {
+ return false
+ }
+ if len(x.Scopes) != len(y.Scopes) {
+ return false
+ }
+ for i := 0; i < len(x.Scopes); i++ {
+ if x.Scopes[i] != y.Scopes[i] {
+ return false
+ }
+ }
+ if !x.FieldMapping.Equal(y.FieldMapping) {
+ return false
+ }
+ if x.SkipTlsVerify != y.SkipTlsVerify {
+ return false
+ }
+ if x.AuthStyle != y.AuthStyle {
+ return false
+ }
+ if x.AuthEndpoint != y.AuthEndpoint {
+ return false
+ }
+ return true
+}
+
+func (x *LDAPIdentityProviderConfig) Equal(y *LDAPIdentityProviderConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Host != y.Host {
+ return false
+ }
+ if x.Port != y.Port {
+ return false
+ }
+ if x.SkipTlsVerify != y.SkipTlsVerify {
+ return false
+ }
+ if x.BindDn != y.BindDn {
+ return false
+ }
+ if x.BindPassword != y.BindPassword {
+ return false
+ }
+ if x.BaseDn != y.BaseDn {
+ return false
+ }
+ if x.UserFilter != y.UserFilter {
+ return false
+ }
+ if x.SecurityProtocol != y.SecurityProtocol {
+ return false
+ }
+ if !x.FieldMapping.Equal(y.FieldMapping) {
+ return false
+ }
+ return true
+}
+
+func (x *FieldMapping) Equal(y *FieldMapping) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Identifier != y.Identifier {
+ return false
+ }
+ if x.DisplayName != y.DisplayName {
+ return false
+ }
+ if x.Phone != y.Phone {
+ return false
+ }
+ if x.Groups != y.Groups {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/instance_role_service_equal.pb.go b/backend/generated-go/v1/instance_role_service_equal.pb.go
new file mode 100644
index 0000000000..c9798e536d
--- /dev/null
+++ b/backend/generated-go/v1/instance_role_service_equal.pb.go
@@ -0,0 +1,88 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/instance_role_service.proto
+
+package v1
+
+func (x *GetInstanceRoleRequest) Equal(y *GetInstanceRoleRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *ListInstanceRolesRequest) Equal(y *ListInstanceRolesRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ if x.Refresh != y.Refresh {
+ return false
+ }
+ return true
+}
+
+func (x *ListInstanceRolesResponse) Equal(y *ListInstanceRolesResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Roles) != len(y.Roles) {
+ return false
+ }
+ for i := 0; i < len(x.Roles); i++ {
+ if !x.Roles[i].Equal(y.Roles[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *InstanceRole) Equal(y *InstanceRole) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.RoleName != y.RoleName {
+ return false
+ }
+ if p, q := x.Password, y.Password; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.ConnectionLimit, y.ConnectionLimit; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.ValidUntil, y.ValidUntil; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.Attribute, y.Attribute; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/instance_service_equal.pb.go b/backend/generated-go/v1/instance_service_equal.pb.go
new file mode 100644
index 0000000000..da25f75dea
--- /dev/null
+++ b/backend/generated-go/v1/instance_service_equal.pb.go
@@ -0,0 +1,746 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/instance_service.proto
+
+package v1
+
+import (
+ proto "google.golang.org/protobuf/proto"
+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
+)
+
+func (x *GetInstanceRequest) Equal(y *GetInstanceRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *ListInstancesRequest) Equal(y *ListInstancesRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ if x.ShowDeleted != y.ShowDeleted {
+ return false
+ }
+ if x.Filter != y.Filter {
+ return false
+ }
+ return true
+}
+
+func (x *ListInstancesResponse) Equal(y *ListInstancesResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ 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
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *CreateInstanceRequest) Equal(y *CreateInstanceRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Instance.Equal(y.Instance) {
+ return false
+ }
+ if x.InstanceId != y.InstanceId {
+ return false
+ }
+ if x.ValidateOnly != y.ValidateOnly {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateInstanceRequest) Equal(y *UpdateInstanceRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Instance.Equal(y.Instance) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *DeleteInstanceRequest) Equal(y *DeleteInstanceRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Force != y.Force {
+ return false
+ }
+ if x.Purge != y.Purge {
+ return false
+ }
+ return true
+}
+
+func (x *UndeleteInstanceRequest) Equal(y *UndeleteInstanceRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *SyncInstanceRequest) Equal(y *SyncInstanceRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.EnableFullSync != y.EnableFullSync {
+ return false
+ }
+ return true
+}
+
+func (x *ListInstanceDatabaseRequest) Equal(y *ListInstanceDatabaseRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if !x.Instance.Equal(y.Instance) {
+ return false
+ }
+ return true
+}
+
+func (x *ListInstanceDatabaseResponse) Equal(y *ListInstanceDatabaseResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Databases) != len(y.Databases) {
+ return false
+ }
+ for i := 0; i < len(x.Databases); i++ {
+ if x.Databases[i] != y.Databases[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *SyncInstanceResponse) Equal(y *SyncInstanceResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Databases) != len(y.Databases) {
+ return false
+ }
+ for i := 0; i < len(x.Databases); i++ {
+ if x.Databases[i] != y.Databases[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *BatchSyncInstancesRequest) Equal(y *BatchSyncInstancesRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Requests) != len(y.Requests) {
+ return false
+ }
+ for i := 0; i < len(x.Requests); i++ {
+ if !x.Requests[i].Equal(y.Requests[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *BatchSyncInstancesResponse) Equal(y *BatchSyncInstancesResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
+
+func (x *BatchUpdateInstancesRequest) Equal(y *BatchUpdateInstancesRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Requests) != len(y.Requests) {
+ return false
+ }
+ for i := 0; i < len(x.Requests); i++ {
+ if !x.Requests[i].Equal(y.Requests[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *BatchUpdateInstancesResponse) Equal(y *BatchUpdateInstancesResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ 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 *AddDataSourceRequest) Equal(y *AddDataSourceRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if !x.DataSource.Equal(y.DataSource) {
+ return false
+ }
+ if x.ValidateOnly != y.ValidateOnly {
+ return false
+ }
+ return true
+}
+
+func (x *RemoveDataSourceRequest) Equal(y *RemoveDataSourceRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if !x.DataSource.Equal(y.DataSource) {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateDataSourceRequest) Equal(y *UpdateDataSourceRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if !x.DataSource.Equal(y.DataSource) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if x.ValidateOnly != y.ValidateOnly {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *Instance) Equal(y *Instance) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.State != y.State {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Engine != y.Engine {
+ return false
+ }
+ if x.EngineVersion != y.EngineVersion {
+ return false
+ }
+ if x.ExternalLink != y.ExternalLink {
+ return false
+ }
+ if len(x.DataSources) != len(y.DataSources) {
+ return false
+ }
+ for i := 0; i < len(x.DataSources); i++ {
+ if !x.DataSources[i].Equal(y.DataSources[i]) {
+ return false
+ }
+ }
+ if p, q := x.Environment, y.Environment; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if x.Activation != y.Activation {
+ return false
+ }
+ if len(x.Roles) != len(y.Roles) {
+ return false
+ }
+ for i := 0; i < len(x.Roles); i++ {
+ if !x.Roles[i].Equal(y.Roles[i]) {
+ return false
+ }
+ }
+ if p, q := x.SyncInterval, y.SyncInterval; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.MaximumConnections != y.MaximumConnections {
+ return false
+ }
+ if len(x.SyncDatabases) != len(y.SyncDatabases) {
+ return false
+ }
+ for i := 0; i < len(x.SyncDatabases); i++ {
+ if x.SyncDatabases[i] != y.SyncDatabases[i] {
+ return false
+ }
+ }
+ if p, q := x.LastSyncTime, y.LastSyncTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ return true
+}
+
+func (x *DataSourceExternalSecret_AppRoleAuthOption) Equal(y *DataSourceExternalSecret_AppRoleAuthOption) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.RoleId != y.RoleId {
+ return false
+ }
+ if x.SecretId != y.SecretId {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.MountPath != y.MountPath {
+ return false
+ }
+ return true
+}
+
+func (x *DataSourceExternalSecret) Equal(y *DataSourceExternalSecret) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.SecretType != y.SecretType {
+ return false
+ }
+ if x.Url != y.Url {
+ return false
+ }
+ if x.AuthType != y.AuthType {
+ return false
+ }
+ if !x.GetAppRole().Equal(y.GetAppRole()) {
+ return false
+ }
+ if x.GetToken() != y.GetToken() {
+ return false
+ }
+ if x.EngineName != y.EngineName {
+ return false
+ }
+ if x.SecretName != y.SecretName {
+ return false
+ }
+ if x.PasswordKeyName != y.PasswordKeyName {
+ return false
+ }
+ return true
+}
+
+func (x *DataSource_AzureCredential) Equal(y *DataSource_AzureCredential) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.TenantId != y.TenantId {
+ return false
+ }
+ if x.ClientId != y.ClientId {
+ return false
+ }
+ if x.ClientSecret != y.ClientSecret {
+ return false
+ }
+ return true
+}
+
+func (x *DataSource_AWSCredential) Equal(y *DataSource_AWSCredential) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.AccessKeyId != y.AccessKeyId {
+ return false
+ }
+ if x.SecretAccessKey != y.SecretAccessKey {
+ return false
+ }
+ if x.SessionToken != y.SessionToken {
+ return false
+ }
+ return true
+}
+
+func (x *DataSource_GCPCredential) Equal(y *DataSource_GCPCredential) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Content != y.Content {
+ return false
+ }
+ return true
+}
+
+func (x *DataSource_Address) Equal(y *DataSource_Address) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Host != y.Host {
+ return false
+ }
+ if x.Port != y.Port {
+ return false
+ }
+ return true
+}
+
+func (x *DataSource) Equal(y *DataSource) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Username != y.Username {
+ return false
+ }
+ if x.Password != y.Password {
+ return false
+ }
+ if x.UseSsl != y.UseSsl {
+ return false
+ }
+ if x.SslCa != y.SslCa {
+ return false
+ }
+ if x.SslCert != y.SslCert {
+ return false
+ }
+ if x.SslKey != y.SslKey {
+ return false
+ }
+ if x.VerifyTlsCertificate != y.VerifyTlsCertificate {
+ return false
+ }
+ if x.Host != y.Host {
+ return false
+ }
+ if x.Port != y.Port {
+ return false
+ }
+ if x.Database != y.Database {
+ return false
+ }
+ if x.Srv != y.Srv {
+ return false
+ }
+ if x.AuthenticationDatabase != y.AuthenticationDatabase {
+ return false
+ }
+ if x.ReplicaSet != y.ReplicaSet {
+ return false
+ }
+ if x.Sid != y.Sid {
+ return false
+ }
+ if x.ServiceName != y.ServiceName {
+ return false
+ }
+ if x.SshHost != y.SshHost {
+ return false
+ }
+ if x.SshPort != y.SshPort {
+ return false
+ }
+ if x.SshUser != y.SshUser {
+ return false
+ }
+ if x.SshPassword != y.SshPassword {
+ return false
+ }
+ if x.SshPrivateKey != y.SshPrivateKey {
+ return false
+ }
+ if x.AuthenticationPrivateKey != y.AuthenticationPrivateKey {
+ return false
+ }
+ if !x.ExternalSecret.Equal(y.ExternalSecret) {
+ return false
+ }
+ if x.AuthenticationType != y.AuthenticationType {
+ return false
+ }
+ if !x.GetAzureCredential().Equal(y.GetAzureCredential()) {
+ return false
+ }
+ if !x.GetAwsCredential().Equal(y.GetAwsCredential()) {
+ return false
+ }
+ if !x.GetGcpCredential().Equal(y.GetGcpCredential()) {
+ return false
+ }
+ if !x.SaslConfig.Equal(y.SaslConfig) {
+ return false
+ }
+ if len(x.AdditionalAddresses) != len(y.AdditionalAddresses) {
+ return false
+ }
+ for i := 0; i < len(x.AdditionalAddresses); i++ {
+ if !x.AdditionalAddresses[i].Equal(y.AdditionalAddresses[i]) {
+ return false
+ }
+ }
+ if x.DirectConnection != y.DirectConnection {
+ return false
+ }
+ if x.Region != y.Region {
+ return false
+ }
+ if x.WarehouseId != y.WarehouseId {
+ return false
+ }
+ if x.MasterName != y.MasterName {
+ return false
+ }
+ if x.MasterUsername != y.MasterUsername {
+ return false
+ }
+ if x.MasterPassword != y.MasterPassword {
+ return false
+ }
+ if x.RedisType != y.RedisType {
+ return false
+ }
+ if x.Cluster != y.Cluster {
+ return false
+ }
+ if len(x.ExtraConnectionParameters) != len(y.ExtraConnectionParameters) {
+ return false
+ }
+ for k := range x.ExtraConnectionParameters {
+ _, ok := y.ExtraConnectionParameters[k]
+ if !ok {
+ return false
+ }
+ if x.ExtraConnectionParameters[k] != y.ExtraConnectionParameters[k] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *InstanceResource) Equal(y *InstanceResource) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Engine != y.Engine {
+ return false
+ }
+ if x.EngineVersion != y.EngineVersion {
+ return false
+ }
+ if len(x.DataSources) != len(y.DataSources) {
+ return false
+ }
+ for i := 0; i < len(x.DataSources); i++ {
+ if !x.DataSources[i].Equal(y.DataSources[i]) {
+ return false
+ }
+ }
+ if x.Activation != y.Activation {
+ return false
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if p, q := x.Environment, y.Environment; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ return true
+}
+
+func (x *SASLConfig) Equal(y *SASLConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.GetKrbConfig().Equal(y.GetKrbConfig()) {
+ return false
+ }
+ return true
+}
+
+func (x *KerberosConfig) Equal(y *KerberosConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Primary != y.Primary {
+ return false
+ }
+ if x.Instance != y.Instance {
+ return false
+ }
+ if x.Realm != y.Realm {
+ return false
+ }
+ if string(x.Keytab) != string(y.Keytab) {
+ return false
+ }
+ if x.KdcHost != y.KdcHost {
+ return false
+ }
+ if x.KdcPort != y.KdcPort {
+ return false
+ }
+ if x.KdcTransportProtocol != y.KdcTransportProtocol {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/issue_service_equal.pb.go b/backend/generated-go/v1/issue_service_equal.pb.go
new file mode 100644
index 0000000000..8f6ff4aba8
--- /dev/null
+++ b/backend/generated-go/v1/issue_service_equal.pb.go
@@ -0,0 +1,720 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/issue_service.proto
+
+package v1
+
+import (
+ expr "google.golang.org/genproto/googleapis/type/expr"
+ proto "google.golang.org/protobuf/proto"
+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
+)
+
+func (x *GetIssueRequest) Equal(y *GetIssueRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Force != y.Force {
+ return false
+ }
+ return true
+}
+
+func (x *CreateIssueRequest) Equal(y *CreateIssueRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if !x.Issue.Equal(y.Issue) {
+ return false
+ }
+ return true
+}
+
+func (x *ListIssuesRequest) Equal(y *ListIssuesRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ if x.Filter != y.Filter {
+ return false
+ }
+ if x.Query != y.Query {
+ return false
+ }
+ return true
+}
+
+func (x *ListIssuesResponse) Equal(y *ListIssuesResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Issues) != len(y.Issues) {
+ return false
+ }
+ for i := 0; i < len(x.Issues); i++ {
+ if !x.Issues[i].Equal(y.Issues[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *SearchIssuesRequest) Equal(y *SearchIssuesRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ if x.Filter != y.Filter {
+ return false
+ }
+ if x.Query != y.Query {
+ return false
+ }
+ return true
+}
+
+func (x *SearchIssuesResponse) Equal(y *SearchIssuesResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Issues) != len(y.Issues) {
+ return false
+ }
+ for i := 0; i < len(x.Issues); i++ {
+ if !x.Issues[i].Equal(y.Issues[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateIssueRequest) Equal(y *UpdateIssueRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Issue.Equal(y.Issue) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *BatchUpdateIssuesStatusRequest) Equal(y *BatchUpdateIssuesStatusRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if len(x.Issues) != len(y.Issues) {
+ return false
+ }
+ for i := 0; i < len(x.Issues); i++ {
+ if x.Issues[i] != y.Issues[i] {
+ return false
+ }
+ }
+ if x.Status != y.Status {
+ return false
+ }
+ if x.Reason != y.Reason {
+ return false
+ }
+ return true
+}
+
+func (x *BatchUpdateIssuesStatusResponse) Equal(y *BatchUpdateIssuesStatusResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
+
+func (x *ApproveIssueRequest) Equal(y *ApproveIssueRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ return true
+}
+
+func (x *RejectIssueRequest) Equal(y *RejectIssueRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ return true
+}
+
+func (x *RequestIssueRequest) Equal(y *RequestIssueRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ return true
+}
+
+func (x *Issue_Approver) Equal(y *Issue_Approver) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Status != y.Status {
+ return false
+ }
+ if x.Principal != y.Principal {
+ return false
+ }
+ return true
+}
+
+func (x *Issue) Equal(y *Issue) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Description != y.Description {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Status != y.Status {
+ return false
+ }
+ if len(x.Approvers) != len(y.Approvers) {
+ return false
+ }
+ for i := 0; i < len(x.Approvers); i++ {
+ if !x.Approvers[i].Equal(y.Approvers[i]) {
+ return false
+ }
+ }
+ if len(x.ApprovalTemplates) != len(y.ApprovalTemplates) {
+ return false
+ }
+ for i := 0; i < len(x.ApprovalTemplates); i++ {
+ if !x.ApprovalTemplates[i].Equal(y.ApprovalTemplates[i]) {
+ return false
+ }
+ }
+ if x.ApprovalFindingDone != y.ApprovalFindingDone {
+ return false
+ }
+ if x.ApprovalFindingError != y.ApprovalFindingError {
+ return false
+ }
+ if x.Creator != y.Creator {
+ return false
+ }
+ if p, q := x.CreateTime, y.CreateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if p, q := x.UpdateTime, y.UpdateTime; (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.Rollout != y.Rollout {
+ return false
+ }
+ if !x.GrantRequest.Equal(y.GrantRequest) {
+ return false
+ }
+ if len(x.Releasers) != len(y.Releasers) {
+ return false
+ }
+ for i := 0; i < len(x.Releasers); i++ {
+ if x.Releasers[i] != y.Releasers[i] {
+ return false
+ }
+ }
+ if x.RiskLevel != y.RiskLevel {
+ return false
+ }
+ if len(x.TaskStatusCount) != len(y.TaskStatusCount) {
+ return false
+ }
+ for k := range x.TaskStatusCount {
+ _, ok := y.TaskStatusCount[k]
+ if !ok {
+ return false
+ }
+ if x.TaskStatusCount[k] != y.TaskStatusCount[k] {
+ return false
+ }
+ }
+ if len(x.Labels) != len(y.Labels) {
+ return false
+ }
+ for i := 0; i < len(x.Labels); i++ {
+ if x.Labels[i] != y.Labels[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *GrantRequest) Equal(y *GrantRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Role != y.Role {
+ return false
+ }
+ if x.User != y.User {
+ return false
+ }
+ if equal, ok := interface{}(x.Condition).(interface{ Equal(*expr.Expr) bool }); !ok || !equal.Equal(y.Condition) {
+ return false
+ } else if !proto.Equal(x.Condition, y.Condition) {
+ return false
+ }
+ if p, q := x.Expiration, y.Expiration; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ return true
+}
+
+func (x *ApprovalTemplate) Equal(y *ApprovalTemplate) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Flow.Equal(y.Flow) {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Description != y.Description {
+ return false
+ }
+ return true
+}
+
+func (x *ApprovalFlow) Equal(y *ApprovalFlow) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Steps) != len(y.Steps) {
+ return false
+ }
+ for i := 0; i < len(x.Steps); i++ {
+ if !x.Steps[i].Equal(y.Steps[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ApprovalStep) Equal(y *ApprovalStep) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if len(x.Nodes) != len(y.Nodes) {
+ return false
+ }
+ for i := 0; i < len(x.Nodes); i++ {
+ if !x.Nodes[i].Equal(y.Nodes[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ApprovalNode) Equal(y *ApprovalNode) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Role != y.Role {
+ return false
+ }
+ return true
+}
+
+func (x *ListIssueCommentsRequest) Equal(y *ListIssueCommentsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ return true
+}
+
+func (x *ListIssueCommentsResponse) Equal(y *ListIssueCommentsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.IssueComments) != len(y.IssueComments) {
+ return false
+ }
+ for i := 0; i < len(x.IssueComments); i++ {
+ if !x.IssueComments[i].Equal(y.IssueComments[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *CreateIssueCommentRequest) Equal(y *CreateIssueCommentRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if !x.IssueComment.Equal(y.IssueComment) {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateIssueCommentRequest) Equal(y *UpdateIssueCommentRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if !x.IssueComment.Equal(y.IssueComment) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *IssueComment_Approval) Equal(y *IssueComment_Approval) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Status != y.Status {
+ return false
+ }
+ return true
+}
+
+func (x *IssueComment_IssueUpdate) Equal(y *IssueComment_IssueUpdate) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if p, q := x.FromTitle, y.FromTitle; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.ToTitle, y.ToTitle; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.FromDescription, y.FromDescription; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.ToDescription, y.ToDescription; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.FromStatus, y.FromStatus; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.ToStatus, y.ToStatus; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if len(x.FromLabels) != len(y.FromLabels) {
+ return false
+ }
+ for i := 0; i < len(x.FromLabels); i++ {
+ if x.FromLabels[i] != y.FromLabels[i] {
+ return false
+ }
+ }
+ if len(x.ToLabels) != len(y.ToLabels) {
+ return false
+ }
+ for i := 0; i < len(x.ToLabels); i++ {
+ if x.ToLabels[i] != y.ToLabels[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *IssueComment_StageEnd) Equal(y *IssueComment_StageEnd) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Stage != y.Stage {
+ return false
+ }
+ return true
+}
+
+func (x *IssueComment_TaskUpdate) Equal(y *IssueComment_TaskUpdate) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Tasks) != len(y.Tasks) {
+ return false
+ }
+ for i := 0; i < len(x.Tasks); i++ {
+ if x.Tasks[i] != y.Tasks[i] {
+ return false
+ }
+ }
+ if p, q := x.FromSheet, y.FromSheet; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.ToSheet, y.ToSheet; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.ToStatus, y.ToStatus; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ return true
+}
+
+func (x *IssueComment_TaskPriorBackup_Table) Equal(y *IssueComment_TaskPriorBackup_Table) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Schema != y.Schema {
+ return false
+ }
+ if x.Table != y.Table {
+ return false
+ }
+ return true
+}
+
+func (x *IssueComment_TaskPriorBackup) Equal(y *IssueComment_TaskPriorBackup) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Task != y.Task {
+ return false
+ }
+ if len(x.Tables) != len(y.Tables) {
+ return false
+ }
+ for i := 0; i < len(x.Tables); i++ {
+ if !x.Tables[i].Equal(y.Tables[i]) {
+ return false
+ }
+ }
+ if p, q := x.OriginalLine, y.OriginalLine; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if x.Database != y.Database {
+ return false
+ }
+ if x.Error != y.Error {
+ return false
+ }
+ return true
+}
+
+func (x *IssueComment) Equal(y *IssueComment) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ if x.Payload != y.Payload {
+ return false
+ }
+ if p, q := x.CreateTime, y.CreateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if p, q := x.UpdateTime, y.UpdateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.Creator != y.Creator {
+ return false
+ }
+ if !x.GetApproval().Equal(y.GetApproval()) {
+ return false
+ }
+ if !x.GetIssueUpdate().Equal(y.GetIssueUpdate()) {
+ return false
+ }
+ if !x.GetStageEnd().Equal(y.GetStageEnd()) {
+ return false
+ }
+ if !x.GetTaskUpdate().Equal(y.GetTaskUpdate()) {
+ return false
+ }
+ if !x.GetTaskPriorBackup().Equal(y.GetTaskPriorBackup()) {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/org_policy_service_equal.pb.go b/backend/generated-go/v1/org_policy_service_equal.pb.go
new file mode 100644
index 0000000000..bf7fcdfcda
--- /dev/null
+++ b/backend/generated-go/v1/org_policy_service_equal.pb.go
@@ -0,0 +1,394 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/org_policy_service.proto
+
+package v1
+
+import (
+ expr "google.golang.org/genproto/googleapis/type/expr"
+ proto "google.golang.org/protobuf/proto"
+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
+)
+
+func (x *CreatePolicyRequest) Equal(y *CreatePolicyRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if !x.Policy.Equal(y.Policy) {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ return true
+}
+
+func (x *UpdatePolicyRequest) Equal(y *UpdatePolicyRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Policy.Equal(y.Policy) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *DeletePolicyRequest) Equal(y *DeletePolicyRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *GetPolicyRequest) Equal(y *GetPolicyRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *ListPoliciesRequest) Equal(y *ListPoliciesRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if p, q := x.PolicyType, y.PolicyType; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ if x.ShowDeleted != y.ShowDeleted {
+ return false
+ }
+ return true
+}
+
+func (x *ListPoliciesResponse) Equal(y *ListPoliciesResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Policies) != len(y.Policies) {
+ return false
+ }
+ for i := 0; i < len(x.Policies); i++ {
+ if !x.Policies[i].Equal(y.Policies[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *Policy) Equal(y *Policy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.InheritFromParent != y.InheritFromParent {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if !x.GetRolloutPolicy().Equal(y.GetRolloutPolicy()) {
+ return false
+ }
+ if !x.GetDisableCopyDataPolicy().Equal(y.GetDisableCopyDataPolicy()) {
+ return false
+ }
+ if !x.GetMaskingRulePolicy().Equal(y.GetMaskingRulePolicy()) {
+ return false
+ }
+ if !x.GetMaskingExceptionPolicy().Equal(y.GetMaskingExceptionPolicy()) {
+ return false
+ }
+ if !x.GetRestrictIssueCreationForSqlReviewPolicy().Equal(y.GetRestrictIssueCreationForSqlReviewPolicy()) {
+ return false
+ }
+ if !x.GetTagPolicy().Equal(y.GetTagPolicy()) {
+ return false
+ }
+ if !x.GetDataSourceQueryPolicy().Equal(y.GetDataSourceQueryPolicy()) {
+ return false
+ }
+ if !x.GetQueryDataPolicy().Equal(y.GetQueryDataPolicy()) {
+ return false
+ }
+ if x.Enforce != y.Enforce {
+ return false
+ }
+ if x.ResourceType != y.ResourceType {
+ return false
+ }
+ return true
+}
+
+func (x *RolloutPolicy) Equal(y *RolloutPolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Automatic != y.Automatic {
+ return false
+ }
+ if len(x.Roles) != len(y.Roles) {
+ return false
+ }
+ for i := 0; i < len(x.Roles); i++ {
+ if x.Roles[i] != y.Roles[i] {
+ return false
+ }
+ }
+ if len(x.IssueRoles) != len(y.IssueRoles) {
+ return false
+ }
+ for i := 0; i < len(x.IssueRoles); i++ {
+ if x.IssueRoles[i] != y.IssueRoles[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *DisableCopyDataPolicy) Equal(y *DisableCopyDataPolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Active != y.Active {
+ return false
+ }
+ return true
+}
+
+func (x *QueryDataPolicy) Equal(y *QueryDataPolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if p, q := x.Timeout, y.Timeout; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.DisableExport != y.DisableExport {
+ return false
+ }
+ if x.MaximumResultSize != y.MaximumResultSize {
+ return false
+ }
+ if x.MaximumResultRows != y.MaximumResultRows {
+ return false
+ }
+ return true
+}
+
+func (x *SQLReviewRule) Equal(y *SQLReviewRule) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Level != y.Level {
+ return false
+ }
+ if x.Payload != y.Payload {
+ return false
+ }
+ if x.Engine != y.Engine {
+ return false
+ }
+ if x.Comment != y.Comment {
+ return false
+ }
+ return true
+}
+
+func (x *MaskingExceptionPolicy_MaskingException) Equal(y *MaskingExceptionPolicy_MaskingException) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Action != y.Action {
+ return false
+ }
+ if x.Member != y.Member {
+ return false
+ }
+ if equal, ok := interface{}(x.Condition).(interface{ Equal(*expr.Expr) bool }); !ok || !equal.Equal(y.Condition) {
+ return false
+ } else if !proto.Equal(x.Condition, y.Condition) {
+ return false
+ }
+ return true
+}
+
+func (x *MaskingExceptionPolicy) Equal(y *MaskingExceptionPolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.MaskingExceptions) != len(y.MaskingExceptions) {
+ return false
+ }
+ for i := 0; i < len(x.MaskingExceptions); i++ {
+ if !x.MaskingExceptions[i].Equal(y.MaskingExceptions[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *MaskingRulePolicy_MaskingRule) Equal(y *MaskingRulePolicy_MaskingRule) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if equal, ok := interface{}(x.Condition).(interface{ Equal(*expr.Expr) bool }); !ok || !equal.Equal(y.Condition) {
+ return false
+ } else if !proto.Equal(x.Condition, y.Condition) {
+ return false
+ }
+ if x.SemanticType != y.SemanticType {
+ return false
+ }
+ return true
+}
+
+func (x *MaskingRulePolicy) Equal(y *MaskingRulePolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Rules) != len(y.Rules) {
+ return false
+ }
+ for i := 0; i < len(x.Rules); i++ {
+ if !x.Rules[i].Equal(y.Rules[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *RestrictIssueCreationForSQLReviewPolicy) Equal(y *RestrictIssueCreationForSQLReviewPolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Disallow != y.Disallow {
+ return false
+ }
+ return true
+}
+
+func (x *TagPolicy) Equal(y *TagPolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Tags) != len(y.Tags) {
+ return false
+ }
+ for k := range x.Tags {
+ _, ok := y.Tags[k]
+ if !ok {
+ return false
+ }
+ if x.Tags[k] != y.Tags[k] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *DataSourceQueryPolicy) Equal(y *DataSourceQueryPolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.AdminDataSourceRestriction != y.AdminDataSourceRestriction {
+ return false
+ }
+ if x.DisallowDdl != y.DisallowDdl {
+ return false
+ }
+ if x.DisallowDml != y.DisallowDml {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/plan_service_equal.pb.go b/backend/generated-go/v1/plan_service_equal.pb.go
new file mode 100644
index 0000000000..11f15a1761
--- /dev/null
+++ b/backend/generated-go/v1/plan_service_equal.pb.go
@@ -0,0 +1,592 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/plan_service.proto
+
+package v1
+
+import (
+ proto "google.golang.org/protobuf/proto"
+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
+)
+
+func (x *GetPlanRequest) Equal(y *GetPlanRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *ListPlansRequest) Equal(y *ListPlansRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ return true
+}
+
+func (x *ListPlansResponse) Equal(y *ListPlansResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Plans) != len(y.Plans) {
+ return false
+ }
+ for i := 0; i < len(x.Plans); i++ {
+ if !x.Plans[i].Equal(y.Plans[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *SearchPlansRequest) Equal(y *SearchPlansRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ if x.Filter != y.Filter {
+ return false
+ }
+ return true
+}
+
+func (x *SearchPlansResponse) Equal(y *SearchPlansResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Plans) != len(y.Plans) {
+ return false
+ }
+ for i := 0; i < len(x.Plans); i++ {
+ if !x.Plans[i].Equal(y.Plans[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *CreatePlanRequest) Equal(y *CreatePlanRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if !x.Plan.Equal(y.Plan) {
+ return false
+ }
+ return true
+}
+
+func (x *UpdatePlanRequest) Equal(y *UpdatePlanRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Plan.Equal(y.Plan) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *Plan_Spec) Equal(y *Plan_Spec) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if !x.GetCreateDatabaseConfig().Equal(y.GetCreateDatabaseConfig()) {
+ return false
+ }
+ if !x.GetChangeDatabaseConfig().Equal(y.GetChangeDatabaseConfig()) {
+ return false
+ }
+ if !x.GetExportDataConfig().Equal(y.GetExportDataConfig()) {
+ return false
+ }
+ return true
+}
+
+func (x *Plan_CreateDatabaseConfig) Equal(y *Plan_CreateDatabaseConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Target != y.Target {
+ return false
+ }
+ if x.Database != y.Database {
+ return false
+ }
+ if x.Table != y.Table {
+ return false
+ }
+ if x.CharacterSet != y.CharacterSet {
+ return false
+ }
+ if x.Collation != y.Collation {
+ return false
+ }
+ if x.Cluster != y.Cluster {
+ return false
+ }
+ if x.Owner != y.Owner {
+ return false
+ }
+ if x.Environment != y.Environment {
+ return false
+ }
+ return true
+}
+
+func (x *Plan_ChangeDatabaseConfig) Equal(y *Plan_ChangeDatabaseConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Targets) != len(y.Targets) {
+ return false
+ }
+ for i := 0; i < len(x.Targets); i++ {
+ if x.Targets[i] != y.Targets[i] {
+ return false
+ }
+ }
+ if x.Sheet != y.Sheet {
+ return false
+ }
+ if x.Release != y.Release {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if len(x.GhostFlags) != len(y.GhostFlags) {
+ return false
+ }
+ for k := range x.GhostFlags {
+ _, ok := y.GhostFlags[k]
+ if !ok {
+ return false
+ }
+ if x.GhostFlags[k] != y.GhostFlags[k] {
+ return false
+ }
+ }
+ if x.EnablePriorBackup != y.EnablePriorBackup {
+ return false
+ }
+ return true
+}
+
+func (x *Plan_ExportDataConfig) Equal(y *Plan_ExportDataConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Targets) != len(y.Targets) {
+ return false
+ }
+ for i := 0; i < len(x.Targets); i++ {
+ if x.Targets[i] != y.Targets[i] {
+ return false
+ }
+ }
+ if x.Sheet != y.Sheet {
+ return false
+ }
+ if x.Format != y.Format {
+ return false
+ }
+ if p, q := x.Password, y.Password; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ return true
+}
+
+func (x *Plan_Deployment_DatabaseGroupMapping) Equal(y *Plan_Deployment_DatabaseGroupMapping) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.DatabaseGroup != y.DatabaseGroup {
+ return false
+ }
+ if len(x.Databases) != len(y.Databases) {
+ return false
+ }
+ for i := 0; i < len(x.Databases); i++ {
+ if x.Databases[i] != y.Databases[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *Plan_Deployment) Equal(y *Plan_Deployment) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Environments) != len(y.Environments) {
+ return false
+ }
+ for i := 0; i < len(x.Environments); i++ {
+ if x.Environments[i] != y.Environments[i] {
+ return false
+ }
+ }
+ if len(x.DatabaseGroupMappings) != len(y.DatabaseGroupMappings) {
+ return false
+ }
+ for i := 0; i < len(x.DatabaseGroupMappings); i++ {
+ if !x.DatabaseGroupMappings[i].Equal(y.DatabaseGroupMappings[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *Plan) Equal(y *Plan) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.State != y.State {
+ return false
+ }
+ if x.Issue != y.Issue {
+ return false
+ }
+ if x.Rollout != y.Rollout {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Description != y.Description {
+ return false
+ }
+ if len(x.Specs) != len(y.Specs) {
+ return false
+ }
+ for i := 0; i < len(x.Specs); i++ {
+ if !x.Specs[i].Equal(y.Specs[i]) {
+ return false
+ }
+ }
+ if x.Creator != y.Creator {
+ return false
+ }
+ if p, q := x.CreateTime, y.CreateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if p, q := x.UpdateTime, y.UpdateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if len(x.PlanCheckRunStatusCount) != len(y.PlanCheckRunStatusCount) {
+ return false
+ }
+ for k := range x.PlanCheckRunStatusCount {
+ _, ok := y.PlanCheckRunStatusCount[k]
+ if !ok {
+ return false
+ }
+ if x.PlanCheckRunStatusCount[k] != y.PlanCheckRunStatusCount[k] {
+ return false
+ }
+ }
+ if !x.Deployment.Equal(y.Deployment) {
+ return false
+ }
+ return true
+}
+
+func (x *ListPlanCheckRunsRequest) Equal(y *ListPlanCheckRunsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ if x.LatestOnly != y.LatestOnly {
+ return false
+ }
+ if x.Filter != y.Filter {
+ return false
+ }
+ return true
+}
+
+func (x *ListPlanCheckRunsResponse) Equal(y *ListPlanCheckRunsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.PlanCheckRuns) != len(y.PlanCheckRuns) {
+ return false
+ }
+ for i := 0; i < len(x.PlanCheckRuns); i++ {
+ if !x.PlanCheckRuns[i].Equal(y.PlanCheckRuns[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *RunPlanChecksRequest) Equal(y *RunPlanChecksRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if p, q := x.SpecId, y.SpecId; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ return true
+}
+
+func (x *RunPlanChecksResponse) Equal(y *RunPlanChecksResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
+
+func (x *BatchCancelPlanCheckRunsRequest) Equal(y *BatchCancelPlanCheckRunsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if len(x.PlanCheckRuns) != len(y.PlanCheckRuns) {
+ return false
+ }
+ for i := 0; i < len(x.PlanCheckRuns); i++ {
+ if x.PlanCheckRuns[i] != y.PlanCheckRuns[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *BatchCancelPlanCheckRunsResponse) Equal(y *BatchCancelPlanCheckRunsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
+
+func (x *PlanCheckRun_Result_SqlSummaryReport) Equal(y *PlanCheckRun_Result_SqlSummaryReport) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.StatementTypes) != len(y.StatementTypes) {
+ return false
+ }
+ for i := 0; i < len(x.StatementTypes); i++ {
+ if x.StatementTypes[i] != y.StatementTypes[i] {
+ return false
+ }
+ }
+ if x.AffectedRows != y.AffectedRows {
+ return false
+ }
+ if !x.ChangedResources.Equal(y.ChangedResources) {
+ return false
+ }
+ return true
+}
+
+func (x *PlanCheckRun_Result_SqlReviewReport) Equal(y *PlanCheckRun_Result_SqlReviewReport) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Line != y.Line {
+ return false
+ }
+ if x.Column != y.Column {
+ return false
+ }
+ if !x.StartPosition.Equal(y.StartPosition) {
+ return false
+ }
+ if !x.EndPosition.Equal(y.EndPosition) {
+ return false
+ }
+ return true
+}
+
+func (x *PlanCheckRun_Result) Equal(y *PlanCheckRun_Result) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Status != y.Status {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Content != y.Content {
+ return false
+ }
+ if x.Code != y.Code {
+ return false
+ }
+ if !x.GetSqlSummaryReport().Equal(y.GetSqlSummaryReport()) {
+ return false
+ }
+ if !x.GetSqlReviewReport().Equal(y.GetSqlReviewReport()) {
+ return false
+ }
+ return true
+}
+
+func (x *PlanCheckRun) Equal(y *PlanCheckRun) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Status != y.Status {
+ return false
+ }
+ if x.Target != y.Target {
+ return false
+ }
+ if x.Sheet != y.Sheet {
+ return false
+ }
+ if len(x.Results) != len(y.Results) {
+ return false
+ }
+ for i := 0; i < len(x.Results); i++ {
+ if !x.Results[i].Equal(y.Results[i]) {
+ return false
+ }
+ }
+ if x.Error != y.Error {
+ return false
+ }
+ if p, q := x.CreateTime, y.CreateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/project_service_equal.pb.go b/backend/generated-go/v1/project_service_equal.pb.go
new file mode 100644
index 0000000000..a27d8f2676
--- /dev/null
+++ b/backend/generated-go/v1/project_service_equal.pb.go
@@ -0,0 +1,494 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/project_service.proto
+
+package v1
+
+import (
+ proto "google.golang.org/protobuf/proto"
+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
+)
+
+func (x *GetProjectRequest) Equal(y *GetProjectRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *ListProjectsRequest) Equal(y *ListProjectsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ if x.ShowDeleted != y.ShowDeleted {
+ return false
+ }
+ if x.Filter != y.Filter {
+ return false
+ }
+ return true
+}
+
+func (x *ListProjectsResponse) Equal(y *ListProjectsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Projects) != len(y.Projects) {
+ return false
+ }
+ for i := 0; i < len(x.Projects); i++ {
+ if !x.Projects[i].Equal(y.Projects[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *SearchProjectsRequest) Equal(y *SearchProjectsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.ShowDeleted != y.ShowDeleted {
+ return false
+ }
+ if x.Filter != y.Filter {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ return true
+}
+
+func (x *SearchProjectsResponse) Equal(y *SearchProjectsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Projects) != len(y.Projects) {
+ return false
+ }
+ for i := 0; i < len(x.Projects); i++ {
+ if !x.Projects[i].Equal(y.Projects[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *CreateProjectRequest) Equal(y *CreateProjectRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Project.Equal(y.Project) {
+ return false
+ }
+ if x.ProjectId != y.ProjectId {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateProjectRequest) Equal(y *UpdateProjectRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Project.Equal(y.Project) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *DeleteProjectRequest) Equal(y *DeleteProjectRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Force != y.Force {
+ return false
+ }
+ if x.Purge != y.Purge {
+ return false
+ }
+ return true
+}
+
+func (x *UndeleteProjectRequest) Equal(y *UndeleteProjectRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *BatchDeleteProjectsRequest) Equal(y *BatchDeleteProjectsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Names) != len(y.Names) {
+ return false
+ }
+ for i := 0; i < len(x.Names); i++ {
+ if x.Names[i] != y.Names[i] {
+ return false
+ }
+ }
+ if x.Force != y.Force {
+ return false
+ }
+ return true
+}
+
+func (x *BatchGetIamPolicyRequest) Equal(y *BatchGetIamPolicyRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Scope != y.Scope {
+ return false
+ }
+ if len(x.Names) != len(y.Names) {
+ return false
+ }
+ for i := 0; i < len(x.Names); i++ {
+ if x.Names[i] != y.Names[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *BatchGetIamPolicyResponse_PolicyResult) Equal(y *BatchGetIamPolicyResponse_PolicyResult) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Project != y.Project {
+ return false
+ }
+ if !x.Policy.Equal(y.Policy) {
+ return false
+ }
+ return true
+}
+
+func (x *BatchGetIamPolicyResponse) Equal(y *BatchGetIamPolicyResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.PolicyResults) != len(y.PolicyResults) {
+ return false
+ }
+ for i := 0; i < len(x.PolicyResults); i++ {
+ if !x.PolicyResults[i].Equal(y.PolicyResults[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *Label) Equal(y *Label) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Value != y.Value {
+ return false
+ }
+ if x.Color != y.Color {
+ return false
+ }
+ if x.Group != y.Group {
+ return false
+ }
+ return true
+}
+
+func (x *Project_ExecutionRetryPolicy) Equal(y *Project_ExecutionRetryPolicy) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.MaximumRetries != y.MaximumRetries {
+ return false
+ }
+ return true
+}
+
+func (x *Project) Equal(y *Project) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.State != y.State {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if len(x.Webhooks) != len(y.Webhooks) {
+ return false
+ }
+ for i := 0; i < len(x.Webhooks); i++ {
+ if !x.Webhooks[i].Equal(y.Webhooks[i]) {
+ return false
+ }
+ }
+ if x.DataClassificationConfigId != y.DataClassificationConfigId {
+ return false
+ }
+ if len(x.IssueLabels) != len(y.IssueLabels) {
+ return false
+ }
+ for i := 0; i < len(x.IssueLabels); i++ {
+ if !x.IssueLabels[i].Equal(y.IssueLabels[i]) {
+ return false
+ }
+ }
+ if x.ForceIssueLabels != y.ForceIssueLabels {
+ return false
+ }
+ if x.AllowModifyStatement != y.AllowModifyStatement {
+ return false
+ }
+ if x.AutoResolveIssue != y.AutoResolveIssue {
+ return false
+ }
+ if x.EnforceIssueTitle != y.EnforceIssueTitle {
+ return false
+ }
+ if x.AutoEnableBackup != y.AutoEnableBackup {
+ return false
+ }
+ if x.SkipBackupErrors != y.SkipBackupErrors {
+ return false
+ }
+ if x.PostgresDatabaseTenantMode != y.PostgresDatabaseTenantMode {
+ return false
+ }
+ if x.AllowSelfApproval != y.AllowSelfApproval {
+ return false
+ }
+ if !x.ExecutionRetryPolicy.Equal(y.ExecutionRetryPolicy) {
+ return false
+ }
+ if x.CiSamplingSize != y.CiSamplingSize {
+ return false
+ }
+ if x.ParallelTasksPerRollout != y.ParallelTasksPerRollout {
+ return false
+ }
+ if len(x.Labels) != len(y.Labels) {
+ return false
+ }
+ for k := range x.Labels {
+ _, ok := y.Labels[k]
+ if !ok {
+ return false
+ }
+ if x.Labels[k] != y.Labels[k] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *AddWebhookRequest) Equal(y *AddWebhookRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Project != y.Project {
+ return false
+ }
+ if !x.Webhook.Equal(y.Webhook) {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateWebhookRequest) Equal(y *UpdateWebhookRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Webhook.Equal(y.Webhook) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *RemoveWebhookRequest) Equal(y *RemoveWebhookRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Webhook.Equal(y.Webhook) {
+ return false
+ }
+ return true
+}
+
+func (x *TestWebhookRequest) Equal(y *TestWebhookRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Project != y.Project {
+ return false
+ }
+ if !x.Webhook.Equal(y.Webhook) {
+ return false
+ }
+ return true
+}
+
+func (x *TestWebhookResponse) Equal(y *TestWebhookResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Error != y.Error {
+ return false
+ }
+ return true
+}
+
+func (x *Webhook) Equal(y *Webhook) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Url != y.Url {
+ return false
+ }
+ if x.DirectMessage != y.DirectMessage {
+ return false
+ }
+ if len(x.NotificationTypes) != len(y.NotificationTypes) {
+ return false
+ }
+ for i := 0; i < len(x.NotificationTypes); i++ {
+ if x.NotificationTypes[i] != y.NotificationTypes[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *Activity) Equal(y *Activity) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/release_service_equal.pb.go b/backend/generated-go/v1/release_service_equal.pb.go
new file mode 100644
index 0000000000..46f549f179
--- /dev/null
+++ b/backend/generated-go/v1/release_service_equal.pb.go
@@ -0,0 +1,343 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/release_service.proto
+
+package v1
+
+import (
+ proto "google.golang.org/protobuf/proto"
+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
+)
+
+func (x *GetReleaseRequest) Equal(y *GetReleaseRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *ListReleasesRequest) Equal(y *ListReleasesRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ if x.ShowDeleted != y.ShowDeleted {
+ return false
+ }
+ return true
+}
+
+func (x *ListReleasesResponse) Equal(y *ListReleasesResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Releases) != len(y.Releases) {
+ return false
+ }
+ for i := 0; i < len(x.Releases); i++ {
+ if !x.Releases[i].Equal(y.Releases[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *SearchReleasesRequest) Equal(y *SearchReleasesRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ if p, q := x.Digest, y.Digest; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ return true
+}
+
+func (x *SearchReleasesResponse) Equal(y *SearchReleasesResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Releases) != len(y.Releases) {
+ return false
+ }
+ for i := 0; i < len(x.Releases); i++ {
+ if !x.Releases[i].Equal(y.Releases[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *CreateReleaseRequest) Equal(y *CreateReleaseRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if !x.Release.Equal(y.Release) {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateReleaseRequest) Equal(y *UpdateReleaseRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Release.Equal(y.Release) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *DeleteReleaseRequest) Equal(y *DeleteReleaseRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *UndeleteReleaseRequest) Equal(y *UndeleteReleaseRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *CheckReleaseRequest) Equal(y *CheckReleaseRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if !x.Release.Equal(y.Release) {
+ return false
+ }
+ if len(x.Targets) != len(y.Targets) {
+ return false
+ }
+ for i := 0; i < len(x.Targets); i++ {
+ if x.Targets[i] != y.Targets[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *CheckReleaseResponse_CheckResult) Equal(y *CheckReleaseResponse_CheckResult) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.File != y.File {
+ return false
+ }
+ if x.Target != y.Target {
+ return false
+ }
+ if len(x.Advices) != len(y.Advices) {
+ return false
+ }
+ for i := 0; i < len(x.Advices); i++ {
+ if !x.Advices[i].Equal(y.Advices[i]) {
+ return false
+ }
+ }
+ if x.AffectedRows != y.AffectedRows {
+ return false
+ }
+ if x.RiskLevel != y.RiskLevel {
+ return false
+ }
+ return true
+}
+
+func (x *CheckReleaseResponse) Equal(y *CheckReleaseResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Results) != len(y.Results) {
+ return false
+ }
+ for i := 0; i < len(x.Results); i++ {
+ if !x.Results[i].Equal(y.Results[i]) {
+ return false
+ }
+ }
+ if x.AffectedRows != y.AffectedRows {
+ return false
+ }
+ if x.RiskLevel != y.RiskLevel {
+ return false
+ }
+ return true
+}
+
+func (x *Release_File) Equal(y *Release_File) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Path != y.Path {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Version != y.Version {
+ return false
+ }
+ if x.ChangeType != y.ChangeType {
+ return false
+ }
+ if x.Sheet != y.Sheet {
+ return false
+ }
+ if string(x.Statement) != string(y.Statement) {
+ return false
+ }
+ if x.SheetSha256 != y.SheetSha256 {
+ return false
+ }
+ if x.StatementSize != y.StatementSize {
+ return false
+ }
+ return true
+}
+
+func (x *Release_VCSSource) Equal(y *Release_VCSSource) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.VcsType != y.VcsType {
+ return false
+ }
+ if x.Url != y.Url {
+ return false
+ }
+ return true
+}
+
+func (x *Release) Equal(y *Release) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if len(x.Files) != len(y.Files) {
+ return false
+ }
+ for i := 0; i < len(x.Files); i++ {
+ if !x.Files[i].Equal(y.Files[i]) {
+ return false
+ }
+ }
+ if !x.VcsSource.Equal(y.VcsSource) {
+ return false
+ }
+ if x.Creator != y.Creator {
+ return false
+ }
+ if p, q := x.CreateTime, y.CreateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.State != y.State {
+ return false
+ }
+ if x.Digest != y.Digest {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/review_config_service_equal.pb.go b/backend/generated-go/v1/review_config_service_equal.pb.go
new file mode 100644
index 0000000000..4e527c2a4f
--- /dev/null
+++ b/backend/generated-go/v1/review_config_service_equal.pb.go
@@ -0,0 +1,143 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/review_config_service.proto
+
+package v1
+
+import (
+ proto "google.golang.org/protobuf/proto"
+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
+)
+
+func (x *ListReviewConfigsRequest) Equal(y *ListReviewConfigsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ return true
+}
+
+func (x *ListReviewConfigsResponse) Equal(y *ListReviewConfigsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.ReviewConfigs) != len(y.ReviewConfigs) {
+ return false
+ }
+ for i := 0; i < len(x.ReviewConfigs); i++ {
+ if !x.ReviewConfigs[i].Equal(y.ReviewConfigs[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *CreateReviewConfigRequest) Equal(y *CreateReviewConfigRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.ReviewConfig.Equal(y.ReviewConfig) {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateReviewConfigRequest) Equal(y *UpdateReviewConfigRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.ReviewConfig.Equal(y.ReviewConfig) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *GetReviewConfigRequest) Equal(y *GetReviewConfigRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *DeleteReviewConfigRequest) Equal(y *DeleteReviewConfigRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *ReviewConfig) Equal(y *ReviewConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Enabled != y.Enabled {
+ return false
+ }
+ if len(x.Rules) != len(y.Rules) {
+ return false
+ }
+ for i := 0; i < len(x.Rules); i++ {
+ if !x.Rules[i].Equal(y.Rules[i]) {
+ return false
+ }
+ }
+ if len(x.Resources) != len(y.Resources) {
+ return false
+ }
+ for i := 0; i < len(x.Resources); i++ {
+ if x.Resources[i] != y.Resources[i] {
+ return false
+ }
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/revision_service_equal.pb.go b/backend/generated-go/v1/revision_service_equal.pb.go
new file mode 100644
index 0000000000..c46f208732
--- /dev/null
+++ b/backend/generated-go/v1/revision_service_equal.pb.go
@@ -0,0 +1,180 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/revision_service.proto
+
+package v1
+
+func (x *ListRevisionsRequest) Equal(y *ListRevisionsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ if x.ShowDeleted != y.ShowDeleted {
+ return false
+ }
+ return true
+}
+
+func (x *ListRevisionsResponse) Equal(y *ListRevisionsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Revisions) != len(y.Revisions) {
+ return false
+ }
+ for i := 0; i < len(x.Revisions); i++ {
+ if !x.Revisions[i].Equal(y.Revisions[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *CreateRevisionRequest) Equal(y *CreateRevisionRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if !x.Revision.Equal(y.Revision) {
+ return false
+ }
+ return true
+}
+
+func (x *BatchCreateRevisionsRequest) Equal(y *BatchCreateRevisionsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if len(x.Requests) != len(y.Requests) {
+ return false
+ }
+ for i := 0; i < len(x.Requests); i++ {
+ if !x.Requests[i].Equal(y.Requests[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *BatchCreateRevisionsResponse) Equal(y *BatchCreateRevisionsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Revisions) != len(y.Revisions) {
+ return false
+ }
+ for i := 0; i < len(x.Revisions); i++ {
+ if !x.Revisions[i].Equal(y.Revisions[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *GetRevisionRequest) Equal(y *GetRevisionRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *DeleteRevisionRequest) Equal(y *DeleteRevisionRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *Revision) Equal(y *Revision) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Release != y.Release {
+ return false
+ }
+ if p, q := x.CreateTime, y.CreateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.Deleter != y.Deleter {
+ return false
+ }
+ if p, q := x.DeleteTime, y.DeleteTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.File != y.File {
+ return false
+ }
+ if x.Version != y.Version {
+ return false
+ }
+ if x.Sheet != y.Sheet {
+ return false
+ }
+ if x.SheetSha256 != y.SheetSha256 {
+ return false
+ }
+ if x.Statement != y.Statement {
+ return false
+ }
+ if x.StatementSize != y.StatementSize {
+ return false
+ }
+ if x.Issue != y.Issue {
+ return false
+ }
+ if x.TaskRun != y.TaskRun {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/risk_service_equal.pb.go b/backend/generated-go/v1/risk_service_equal.pb.go
new file mode 100644
index 0000000000..1ddf7d5c9a
--- /dev/null
+++ b/backend/generated-go/v1/risk_service_equal.pb.go
@@ -0,0 +1,139 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/risk_service.proto
+
+package v1
+
+import (
+ expr "google.golang.org/genproto/googleapis/type/expr"
+ proto "google.golang.org/protobuf/proto"
+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
+)
+
+func (x *ListRisksRequest) Equal(y *ListRisksRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ return true
+}
+
+func (x *ListRisksResponse) Equal(y *ListRisksResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Risks) != len(y.Risks) {
+ return false
+ }
+ for i := 0; i < len(x.Risks); i++ {
+ if !x.Risks[i].Equal(y.Risks[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *CreateRiskRequest) Equal(y *CreateRiskRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Risk.Equal(y.Risk) {
+ return false
+ }
+ return true
+}
+
+func (x *GetRiskRequest) Equal(y *GetRiskRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateRiskRequest) Equal(y *UpdateRiskRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Risk.Equal(y.Risk) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *DeleteRiskRequest) Equal(y *DeleteRiskRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *Risk) Equal(y *Risk) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Source != y.Source {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Level != y.Level {
+ return false
+ }
+ if x.Active != y.Active {
+ return false
+ }
+ if equal, ok := interface{}(x.Condition).(interface{ Equal(*expr.Expr) bool }); !ok || !equal.Equal(y.Condition) {
+ return false
+ } else if !proto.Equal(x.Condition, y.Condition) {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/role_service_equal.pb.go b/backend/generated-go/v1/role_service_equal.pb.go
new file mode 100644
index 0000000000..5159b17a51
--- /dev/null
+++ b/backend/generated-go/v1/role_service_equal.pb.go
@@ -0,0 +1,141 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/role_service.proto
+
+package v1
+
+import (
+ proto "google.golang.org/protobuf/proto"
+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
+)
+
+func (x *ListRolesRequest) Equal(y *ListRolesRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ return true
+}
+
+func (x *ListRolesResponse) Equal(y *ListRolesResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Roles) != len(y.Roles) {
+ return false
+ }
+ for i := 0; i < len(x.Roles); i++ {
+ if !x.Roles[i].Equal(y.Roles[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *CreateRoleRequest) Equal(y *CreateRoleRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Role.Equal(y.Role) {
+ return false
+ }
+ if x.RoleId != y.RoleId {
+ return false
+ }
+ return true
+}
+
+func (x *GetRoleRequest) Equal(y *GetRoleRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateRoleRequest) Equal(y *UpdateRoleRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Role.Equal(y.Role) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *DeleteRoleRequest) Equal(y *DeleteRoleRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *Role) Equal(y *Role) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Description != y.Description {
+ return false
+ }
+ if len(x.Permissions) != len(y.Permissions) {
+ return false
+ }
+ for i := 0; i < len(x.Permissions); i++ {
+ if x.Permissions[i] != y.Permissions[i] {
+ return false
+ }
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/rollout_service_equal.pb.go b/backend/generated-go/v1/rollout_service_equal.pb.go
new file mode 100644
index 0000000000..983f6a4544
--- /dev/null
+++ b/backend/generated-go/v1/rollout_service_equal.pb.go
@@ -0,0 +1,1014 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/rollout_service.proto
+
+package v1
+
+func (x *BatchRunTasksRequest) Equal(y *BatchRunTasksRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if len(x.Tasks) != len(y.Tasks) {
+ return false
+ }
+ for i := 0; i < len(x.Tasks); i++ {
+ if x.Tasks[i] != y.Tasks[i] {
+ return false
+ }
+ }
+ if x.Reason != y.Reason {
+ return false
+ }
+ if p, q := x.RunTime, y.RunTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ return true
+}
+
+func (x *BatchRunTasksResponse) Equal(y *BatchRunTasksResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
+
+func (x *BatchSkipTasksRequest) Equal(y *BatchSkipTasksRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if len(x.Tasks) != len(y.Tasks) {
+ return false
+ }
+ for i := 0; i < len(x.Tasks); i++ {
+ if x.Tasks[i] != y.Tasks[i] {
+ return false
+ }
+ }
+ if x.Reason != y.Reason {
+ return false
+ }
+ return true
+}
+
+func (x *BatchSkipTasksResponse) Equal(y *BatchSkipTasksResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
+
+func (x *BatchCancelTaskRunsRequest) Equal(y *BatchCancelTaskRunsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if len(x.TaskRuns) != len(y.TaskRuns) {
+ return false
+ }
+ for i := 0; i < len(x.TaskRuns); i++ {
+ if x.TaskRuns[i] != y.TaskRuns[i] {
+ return false
+ }
+ }
+ if x.Reason != y.Reason {
+ return false
+ }
+ return true
+}
+
+func (x *BatchCancelTaskRunsResponse) Equal(y *BatchCancelTaskRunsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
+
+func (x *GetRolloutRequest) Equal(y *GetRolloutRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *ListRolloutsRequest) Equal(y *ListRolloutsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ if x.Filter != y.Filter {
+ return false
+ }
+ return true
+}
+
+func (x *ListRolloutsResponse) Equal(y *ListRolloutsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Rollouts) != len(y.Rollouts) {
+ return false
+ }
+ for i := 0; i < len(x.Rollouts); i++ {
+ if !x.Rollouts[i].Equal(y.Rollouts[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *CreateRolloutRequest) Equal(y *CreateRolloutRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if !x.Rollout.Equal(y.Rollout) {
+ return false
+ }
+ if p, q := x.Target, y.Target; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if x.ValidateOnly != y.ValidateOnly {
+ return false
+ }
+ return true
+}
+
+func (x *PreviewRolloutRequest) Equal(y *PreviewRolloutRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Project != y.Project {
+ return false
+ }
+ if !x.Plan.Equal(y.Plan) {
+ return false
+ }
+ return true
+}
+
+func (x *ListTaskRunsRequest) Equal(y *ListTaskRunsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ return true
+}
+
+func (x *ListTaskRunsResponse) Equal(y *ListTaskRunsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.TaskRuns) != len(y.TaskRuns) {
+ return false
+ }
+ for i := 0; i < len(x.TaskRuns); i++ {
+ if !x.TaskRuns[i].Equal(y.TaskRuns[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *GetTaskRunRequest) Equal(y *GetTaskRunRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *GetTaskRunLogRequest) Equal(y *GetTaskRunLogRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ return true
+}
+
+func (x *Rollout) Equal(y *Rollout) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Plan != y.Plan {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if len(x.Stages) != len(y.Stages) {
+ return false
+ }
+ for i := 0; i < len(x.Stages); i++ {
+ if !x.Stages[i].Equal(y.Stages[i]) {
+ return false
+ }
+ }
+ if x.Creator != y.Creator {
+ return false
+ }
+ if p, q := x.CreateTime, y.CreateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if p, q := x.UpdateTime, y.UpdateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.Issue != y.Issue {
+ return false
+ }
+ return true
+}
+
+func (x *Stage) Equal(y *Stage) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Environment != y.Environment {
+ return false
+ }
+ if len(x.Tasks) != len(y.Tasks) {
+ return false
+ }
+ for i := 0; i < len(x.Tasks); i++ {
+ if !x.Tasks[i].Equal(y.Tasks[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *Task_DatabaseCreate) Equal(y *Task_DatabaseCreate) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Project != y.Project {
+ return false
+ }
+ if x.Database != y.Database {
+ return false
+ }
+ if x.Table != y.Table {
+ return false
+ }
+ if x.Sheet != y.Sheet {
+ return false
+ }
+ if x.CharacterSet != y.CharacterSet {
+ return false
+ }
+ if x.Collation != y.Collation {
+ return false
+ }
+ if x.Environment != y.Environment {
+ return false
+ }
+ return true
+}
+
+func (x *Task_DatabaseSchemaUpdate) Equal(y *Task_DatabaseSchemaUpdate) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Sheet != y.Sheet {
+ return false
+ }
+ if x.SchemaVersion != y.SchemaVersion {
+ return false
+ }
+ return true
+}
+
+func (x *Task_DatabaseDataUpdate) Equal(y *Task_DatabaseDataUpdate) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Sheet != y.Sheet {
+ return false
+ }
+ if x.SchemaVersion != y.SchemaVersion {
+ return false
+ }
+ return true
+}
+
+func (x *Task_DatabaseDataExport) Equal(y *Task_DatabaseDataExport) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Target != y.Target {
+ return false
+ }
+ if x.Sheet != y.Sheet {
+ return false
+ }
+ if x.Format != y.Format {
+ return false
+ }
+ if p, q := x.Password, y.Password; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ return true
+}
+
+func (x *Task) Equal(y *Task) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.SpecId != y.SpecId {
+ return false
+ }
+ if x.Status != y.Status {
+ return false
+ }
+ if x.SkippedReason != y.SkippedReason {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Target != y.Target {
+ return false
+ }
+ if !x.GetDatabaseCreate().Equal(y.GetDatabaseCreate()) {
+ return false
+ }
+ if !x.GetDatabaseSchemaUpdate().Equal(y.GetDatabaseSchemaUpdate()) {
+ return false
+ }
+ if !x.GetDatabaseDataUpdate().Equal(y.GetDatabaseDataUpdate()) {
+ return false
+ }
+ if !x.GetDatabaseDataExport().Equal(y.GetDatabaseDataExport()) {
+ return false
+ }
+ if p, q := x.UpdateTime, y.UpdateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if p, q := x.RunTime, y.RunTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRun_PriorBackupDetail_Item_Table) Equal(y *TaskRun_PriorBackupDetail_Item_Table) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Database != y.Database {
+ return false
+ }
+ if x.Schema != y.Schema {
+ return false
+ }
+ if x.Table != y.Table {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRun_PriorBackupDetail_Item) Equal(y *TaskRun_PriorBackupDetail_Item) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.SourceTable.Equal(y.SourceTable) {
+ return false
+ }
+ if !x.TargetTable.Equal(y.TargetTable) {
+ return false
+ }
+ if !x.StartPosition.Equal(y.StartPosition) {
+ return false
+ }
+ if !x.EndPosition.Equal(y.EndPosition) {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRun_PriorBackupDetail) Equal(y *TaskRun_PriorBackupDetail) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Items) != len(y.Items) {
+ return false
+ }
+ for i := 0; i < len(x.Items); i++ {
+ if !x.Items[i].Equal(y.Items[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *TaskRun_SchedulerInfo_WaitingCause_Task) Equal(y *TaskRun_SchedulerInfo_WaitingCause_Task) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Task != y.Task {
+ return false
+ }
+ if x.Issue != y.Issue {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRun_SchedulerInfo_WaitingCause) Equal(y *TaskRun_SchedulerInfo_WaitingCause) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.GetConnectionLimit() != y.GetConnectionLimit() {
+ return false
+ }
+ if !x.GetTask().Equal(y.GetTask()) {
+ return false
+ }
+ if x.GetParallelTasksLimit() != y.GetParallelTasksLimit() {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRun_SchedulerInfo) Equal(y *TaskRun_SchedulerInfo) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if p, q := x.ReportTime, y.ReportTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if !x.WaitingCause.Equal(y.WaitingCause) {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRun) Equal(y *TaskRun) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Creator != y.Creator {
+ return false
+ }
+ if p, q := x.CreateTime, y.CreateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if p, q := x.UpdateTime, y.UpdateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.Status != y.Status {
+ return false
+ }
+ if x.Detail != y.Detail {
+ return false
+ }
+ if x.Changelog != y.Changelog {
+ return false
+ }
+ if x.SchemaVersion != y.SchemaVersion {
+ return false
+ }
+ if p, q := x.StartTime, y.StartTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.ExportArchiveStatus != y.ExportArchiveStatus {
+ return false
+ }
+ if !x.PriorBackupDetail.Equal(y.PriorBackupDetail) {
+ return false
+ }
+ if !x.SchedulerInfo.Equal(y.SchedulerInfo) {
+ return false
+ }
+ if x.Sheet != y.Sheet {
+ return false
+ }
+ if p, q := x.RunTime, y.RunTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRunLog) Equal(y *TaskRunLog) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Entries) != len(y.Entries) {
+ return false
+ }
+ for i := 0; i < len(x.Entries); i++ {
+ if !x.Entries[i].Equal(y.Entries[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *TaskRunLogEntry_SchemaDump) Equal(y *TaskRunLogEntry_SchemaDump) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if p, q := x.StartTime, y.StartTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if p, q := x.EndTime, y.EndTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.Error != y.Error {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRunLogEntry_CommandExecute_CommandResponse) Equal(y *TaskRunLogEntry_CommandExecute_CommandResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if p, q := x.LogTime, y.LogTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.Error != y.Error {
+ return false
+ }
+ if x.AffectedRows != y.AffectedRows {
+ return false
+ }
+ if len(x.AllAffectedRows) != len(y.AllAffectedRows) {
+ return false
+ }
+ for i := 0; i < len(x.AllAffectedRows); i++ {
+ if x.AllAffectedRows[i] != y.AllAffectedRows[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *TaskRunLogEntry_CommandExecute) Equal(y *TaskRunLogEntry_CommandExecute) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if p, q := x.LogTime, y.LogTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if len(x.CommandIndexes) != len(y.CommandIndexes) {
+ return false
+ }
+ for i := 0; i < len(x.CommandIndexes); i++ {
+ if x.CommandIndexes[i] != y.CommandIndexes[i] {
+ return false
+ }
+ }
+ if x.Statement != y.Statement {
+ return false
+ }
+ if !x.Response.Equal(y.Response) {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRunLogEntry_DatabaseSync) Equal(y *TaskRunLogEntry_DatabaseSync) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if p, q := x.StartTime, y.StartTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if p, q := x.EndTime, y.EndTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.Error != y.Error {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRunLogEntry_TaskRunStatusUpdate) Equal(y *TaskRunLogEntry_TaskRunStatusUpdate) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Status != y.Status {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRunLogEntry_TransactionControl) Equal(y *TaskRunLogEntry_TransactionControl) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Error != y.Error {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRunLogEntry_PriorBackup) Equal(y *TaskRunLogEntry_PriorBackup) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if p, q := x.StartTime, y.StartTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if p, q := x.EndTime, y.EndTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if !x.PriorBackupDetail.Equal(y.PriorBackupDetail) {
+ return false
+ }
+ if x.Error != y.Error {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRunLogEntry_RetryInfo) Equal(y *TaskRunLogEntry_RetryInfo) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Error != y.Error {
+ return false
+ }
+ if x.RetryCount != y.RetryCount {
+ return false
+ }
+ if x.MaximumRetries != y.MaximumRetries {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRunLogEntry_ComputeDiff) Equal(y *TaskRunLogEntry_ComputeDiff) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if p, q := x.StartTime, y.StartTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if p, q := x.EndTime, y.EndTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.Error != y.Error {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRunLogEntry) Equal(y *TaskRunLogEntry) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if p, q := x.LogTime, y.LogTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.DeployId != y.DeployId {
+ return false
+ }
+ if !x.SchemaDump.Equal(y.SchemaDump) {
+ return false
+ }
+ if !x.CommandExecute.Equal(y.CommandExecute) {
+ return false
+ }
+ if !x.DatabaseSync.Equal(y.DatabaseSync) {
+ return false
+ }
+ if !x.TaskRunStatusUpdate.Equal(y.TaskRunStatusUpdate) {
+ return false
+ }
+ if !x.TransactionControl.Equal(y.TransactionControl) {
+ return false
+ }
+ if !x.PriorBackup.Equal(y.PriorBackup) {
+ return false
+ }
+ if !x.RetryInfo.Equal(y.RetryInfo) {
+ return false
+ }
+ if !x.ComputeDiff.Equal(y.ComputeDiff) {
+ return false
+ }
+ return true
+}
+
+func (x *GetTaskRunSessionRequest) Equal(y *GetTaskRunSessionRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRunSession_Postgres_Session) Equal(y *TaskRunSession_Postgres_Session) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Pid != y.Pid {
+ return false
+ }
+ if len(x.BlockedByPids) != len(y.BlockedByPids) {
+ return false
+ }
+ for i := 0; i < len(x.BlockedByPids); i++ {
+ if x.BlockedByPids[i] != y.BlockedByPids[i] {
+ return false
+ }
+ }
+ if x.Query != y.Query {
+ return false
+ }
+ if p, q := x.State, y.State; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.WaitEventType, y.WaitEventType; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.WaitEvent, y.WaitEvent; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.Datname, y.Datname; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.Usename, y.Usename; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if x.ApplicationName != y.ApplicationName {
+ return false
+ }
+ if p, q := x.ClientAddr, y.ClientAddr; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.ClientPort, y.ClientPort; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.BackendStart, y.BackendStart; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if p, q := x.XactStart, y.XactStart; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if p, q := x.QueryStart, y.QueryStart; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ return true
+}
+
+func (x *TaskRunSession_Postgres) Equal(y *TaskRunSession_Postgres) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Session.Equal(y.Session) {
+ return false
+ }
+ if len(x.BlockingSessions) != len(y.BlockingSessions) {
+ return false
+ }
+ for i := 0; i < len(x.BlockingSessions); i++ {
+ if !x.BlockingSessions[i].Equal(y.BlockingSessions[i]) {
+ return false
+ }
+ }
+ if len(x.BlockedSessions) != len(y.BlockedSessions) {
+ return false
+ }
+ for i := 0; i < len(x.BlockedSessions); i++ {
+ if !x.BlockedSessions[i].Equal(y.BlockedSessions[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *TaskRunSession) Equal(y *TaskRunSession) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if !x.GetPostgres().Equal(y.GetPostgres()) {
+ return false
+ }
+ return true
+}
+
+func (x *PreviewTaskRunRollbackRequest) Equal(y *PreviewTaskRunRollbackRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *PreviewTaskRunRollbackResponse) Equal(y *PreviewTaskRunRollbackResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Statement != y.Statement {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/setting_service_equal.pb.go b/backend/generated-go/v1/setting_service_equal.pb.go
new file mode 100644
index 0000000000..a0ba71dd7b
--- /dev/null
+++ b/backend/generated-go/v1/setting_service_equal.pb.go
@@ -0,0 +1,864 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/setting_service.proto
+
+package v1
+
+import (
+ expr "google.golang.org/genproto/googleapis/type/expr"
+ proto "google.golang.org/protobuf/proto"
+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
+)
+
+func (x *ListSettingsRequest) Equal(y *ListSettingsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ return true
+}
+
+func (x *ListSettingsResponse) Equal(y *ListSettingsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Settings) != len(y.Settings) {
+ return false
+ }
+ for i := 0; i < len(x.Settings); i++ {
+ if !x.Settings[i].Equal(y.Settings[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *GetSettingRequest) Equal(y *GetSettingRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *GetSettingResponse) Equal(y *GetSettingResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Setting.Equal(y.Setting) {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateSettingRequest) Equal(y *UpdateSettingRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Setting.Equal(y.Setting) {
+ return false
+ }
+ if x.ValidateOnly != y.ValidateOnly {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ return true
+}
+
+func (x *Setting) Equal(y *Setting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if !x.Value.Equal(y.Value) {
+ return false
+ }
+ return true
+}
+
+func (x *Value) Equal(y *Value) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.GetStringValue() != y.GetStringValue() {
+ return false
+ }
+ if !x.GetAppImSettingValue().Equal(y.GetAppImSettingValue()) {
+ return false
+ }
+ if !x.GetWorkspaceProfileSettingValue().Equal(y.GetWorkspaceProfileSettingValue()) {
+ return false
+ }
+ if !x.GetWorkspaceApprovalSettingValue().Equal(y.GetWorkspaceApprovalSettingValue()) {
+ return false
+ }
+ if !x.GetSchemaTemplateSettingValue().Equal(y.GetSchemaTemplateSettingValue()) {
+ return false
+ }
+ if !x.GetDataClassificationSettingValue().Equal(y.GetDataClassificationSettingValue()) {
+ return false
+ }
+ if !x.GetSemanticTypeSettingValue().Equal(y.GetSemanticTypeSettingValue()) {
+ return false
+ }
+ if !x.GetScimSetting().Equal(y.GetScimSetting()) {
+ return false
+ }
+ if !x.GetPasswordRestrictionSetting().Equal(y.GetPasswordRestrictionSetting()) {
+ return false
+ }
+ if !x.GetAiSetting().Equal(y.GetAiSetting()) {
+ return false
+ }
+ if !x.GetEnvironmentSetting().Equal(y.GetEnvironmentSetting()) {
+ return false
+ }
+ return true
+}
+
+func (x *AppIMSetting_Slack) Equal(y *AppIMSetting_Slack) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Enabled != y.Enabled {
+ return false
+ }
+ if x.Token != y.Token {
+ return false
+ }
+ return true
+}
+
+func (x *AppIMSetting_Feishu) Equal(y *AppIMSetting_Feishu) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Enabled != y.Enabled {
+ return false
+ }
+ if x.AppId != y.AppId {
+ return false
+ }
+ if x.AppSecret != y.AppSecret {
+ return false
+ }
+ return true
+}
+
+func (x *AppIMSetting_Wecom) Equal(y *AppIMSetting_Wecom) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Enabled != y.Enabled {
+ return false
+ }
+ if x.CorpId != y.CorpId {
+ return false
+ }
+ if x.AgentId != y.AgentId {
+ return false
+ }
+ if x.Secret != y.Secret {
+ return false
+ }
+ return true
+}
+
+func (x *AppIMSetting_Lark) Equal(y *AppIMSetting_Lark) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Enabled != y.Enabled {
+ return false
+ }
+ if x.AppId != y.AppId {
+ return false
+ }
+ if x.AppSecret != y.AppSecret {
+ return false
+ }
+ return true
+}
+
+func (x *AppIMSetting_DingTalk) Equal(y *AppIMSetting_DingTalk) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Enabled != y.Enabled {
+ return false
+ }
+ if x.ClientId != y.ClientId {
+ return false
+ }
+ if x.ClientSecret != y.ClientSecret {
+ return false
+ }
+ if x.RobotCode != y.RobotCode {
+ return false
+ }
+ return true
+}
+
+func (x *AppIMSetting) Equal(y *AppIMSetting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Slack.Equal(y.Slack) {
+ return false
+ }
+ if !x.Feishu.Equal(y.Feishu) {
+ return false
+ }
+ if !x.Wecom.Equal(y.Wecom) {
+ return false
+ }
+ if !x.Lark.Equal(y.Lark) {
+ return false
+ }
+ if !x.Dingtalk.Equal(y.Dingtalk) {
+ return false
+ }
+ return true
+}
+
+func (x *WorkspaceProfileSetting) Equal(y *WorkspaceProfileSetting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.ExternalUrl != y.ExternalUrl {
+ return false
+ }
+ if x.DisallowSignup != y.DisallowSignup {
+ return false
+ }
+ if x.Require_2Fa != y.Require_2Fa {
+ return false
+ }
+ if p, q := x.TokenDuration, y.TokenDuration; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if !x.Announcement.Equal(y.Announcement) {
+ return false
+ }
+ if p, q := x.MaximumRoleExpiration, y.MaximumRoleExpiration; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if len(x.Domains) != len(y.Domains) {
+ return false
+ }
+ for i := 0; i < len(x.Domains); i++ {
+ if x.Domains[i] != y.Domains[i] {
+ return false
+ }
+ }
+ if x.EnforceIdentityDomain != y.EnforceIdentityDomain {
+ return false
+ }
+ if x.DatabaseChangeMode != y.DatabaseChangeMode {
+ return false
+ }
+ if x.DisallowPasswordSignin != y.DisallowPasswordSignin {
+ return false
+ }
+ if x.EnableMetricCollection != y.EnableMetricCollection {
+ return false
+ }
+ return true
+}
+
+func (x *Announcement) Equal(y *Announcement) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Level != y.Level {
+ return false
+ }
+ if x.Text != y.Text {
+ return false
+ }
+ if x.Link != y.Link {
+ return false
+ }
+ return true
+}
+
+func (x *WorkspaceApprovalSetting_Rule) Equal(y *WorkspaceApprovalSetting_Rule) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Template.Equal(y.Template) {
+ return false
+ }
+ if equal, ok := interface{}(x.Condition).(interface{ Equal(*expr.Expr) bool }); !ok || !equal.Equal(y.Condition) {
+ return false
+ } else if !proto.Equal(x.Condition, y.Condition) {
+ return false
+ }
+ return true
+}
+
+func (x *WorkspaceApprovalSetting) Equal(y *WorkspaceApprovalSetting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Rules) != len(y.Rules) {
+ return false
+ }
+ for i := 0; i < len(x.Rules); i++ {
+ if !x.Rules[i].Equal(y.Rules[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *SchemaTemplateSetting_FieldTemplate) Equal(y *SchemaTemplateSetting_FieldTemplate) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Engine != y.Engine {
+ return false
+ }
+ if x.Category != y.Category {
+ return false
+ }
+ if !x.Column.Equal(y.Column) {
+ return false
+ }
+ if !x.Catalog.Equal(y.Catalog) {
+ return false
+ }
+ return true
+}
+
+func (x *SchemaTemplateSetting_ColumnType) Equal(y *SchemaTemplateSetting_ColumnType) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Engine != y.Engine {
+ return false
+ }
+ if x.Enabled != y.Enabled {
+ return false
+ }
+ if len(x.Types) != len(y.Types) {
+ return false
+ }
+ for i := 0; i < len(x.Types); i++ {
+ if x.Types[i] != y.Types[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *SchemaTemplateSetting_TableTemplate) Equal(y *SchemaTemplateSetting_TableTemplate) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Engine != y.Engine {
+ return false
+ }
+ if x.Category != y.Category {
+ return false
+ }
+ if !x.Table.Equal(y.Table) {
+ return false
+ }
+ if !x.Catalog.Equal(y.Catalog) {
+ return false
+ }
+ return true
+}
+
+func (x *SchemaTemplateSetting) Equal(y *SchemaTemplateSetting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.FieldTemplates) != len(y.FieldTemplates) {
+ return false
+ }
+ for i := 0; i < len(x.FieldTemplates); i++ {
+ if !x.FieldTemplates[i].Equal(y.FieldTemplates[i]) {
+ return false
+ }
+ }
+ if len(x.ColumnTypes) != len(y.ColumnTypes) {
+ return false
+ }
+ for i := 0; i < len(x.ColumnTypes); i++ {
+ if !x.ColumnTypes[i].Equal(y.ColumnTypes[i]) {
+ return false
+ }
+ }
+ if len(x.TableTemplates) != len(y.TableTemplates) {
+ return false
+ }
+ for i := 0; i < len(x.TableTemplates); i++ {
+ if !x.TableTemplates[i].Equal(y.TableTemplates[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *DataClassificationSetting_DataClassificationConfig_Level) Equal(y *DataClassificationSetting_DataClassificationConfig_Level) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Description != y.Description {
+ return false
+ }
+ return true
+}
+
+func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) Equal(y *DataClassificationSetting_DataClassificationConfig_DataClassification) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Description != y.Description {
+ return false
+ }
+ if p, q := x.LevelId, y.LevelId; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ return true
+}
+
+func (x *DataClassificationSetting_DataClassificationConfig) Equal(y *DataClassificationSetting_DataClassificationConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if len(x.Levels) != len(y.Levels) {
+ return false
+ }
+ for i := 0; i < len(x.Levels); i++ {
+ if !x.Levels[i].Equal(y.Levels[i]) {
+ return false
+ }
+ }
+ if len(x.Classification) != len(y.Classification) {
+ return false
+ }
+ for k := range x.Classification {
+ _, ok := y.Classification[k]
+ if !ok {
+ return false
+ }
+ if !x.Classification[k].Equal(y.Classification[k]) {
+ return false
+ }
+ }
+ if x.ClassificationFromConfig != y.ClassificationFromConfig {
+ return false
+ }
+ return true
+}
+
+func (x *DataClassificationSetting) Equal(y *DataClassificationSetting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Configs) != len(y.Configs) {
+ return false
+ }
+ for i := 0; i < len(x.Configs); i++ {
+ if !x.Configs[i].Equal(y.Configs[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *SemanticTypeSetting_SemanticType) Equal(y *SemanticTypeSetting_SemanticType) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Description != y.Description {
+ return false
+ }
+ if !x.Algorithm.Equal(y.Algorithm) {
+ return false
+ }
+ if x.Icon != y.Icon {
+ return false
+ }
+ return true
+}
+
+func (x *SemanticTypeSetting) Equal(y *SemanticTypeSetting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Types) != len(y.Types) {
+ return false
+ }
+ for i := 0; i < len(x.Types); i++ {
+ if !x.Types[i].Equal(y.Types[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *Algorithm_FullMask) Equal(y *Algorithm_FullMask) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Substitution != y.Substitution {
+ return false
+ }
+ return true
+}
+
+func (x *Algorithm_RangeMask_Slice) Equal(y *Algorithm_RangeMask_Slice) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Start != y.Start {
+ return false
+ }
+ if x.End != y.End {
+ return false
+ }
+ if x.Substitution != y.Substitution {
+ return false
+ }
+ return true
+}
+
+func (x *Algorithm_RangeMask) Equal(y *Algorithm_RangeMask) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Slices) != len(y.Slices) {
+ return false
+ }
+ for i := 0; i < len(x.Slices); i++ {
+ if !x.Slices[i].Equal(y.Slices[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *Algorithm_MD5Mask) Equal(y *Algorithm_MD5Mask) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Salt != y.Salt {
+ return false
+ }
+ return true
+}
+
+func (x *Algorithm_InnerOuterMask) Equal(y *Algorithm_InnerOuterMask) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.PrefixLen != y.PrefixLen {
+ return false
+ }
+ if x.SuffixLen != y.SuffixLen {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.Substitution != y.Substitution {
+ return false
+ }
+ return true
+}
+
+func (x *Algorithm) Equal(y *Algorithm) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.GetFullMask().Equal(y.GetFullMask()) {
+ return false
+ }
+ if !x.GetRangeMask().Equal(y.GetRangeMask()) {
+ return false
+ }
+ if !x.GetMd5Mask().Equal(y.GetMd5Mask()) {
+ return false
+ }
+ if !x.GetInnerOuterMask().Equal(y.GetInnerOuterMask()) {
+ return false
+ }
+ return true
+}
+
+func (x *SCIMSetting) Equal(y *SCIMSetting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Token != y.Token {
+ return false
+ }
+ return true
+}
+
+func (x *PasswordRestrictionSetting) Equal(y *PasswordRestrictionSetting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.MinLength != y.MinLength {
+ return false
+ }
+ if x.RequireNumber != y.RequireNumber {
+ return false
+ }
+ if x.RequireLetter != y.RequireLetter {
+ return false
+ }
+ if x.RequireUppercaseLetter != y.RequireUppercaseLetter {
+ return false
+ }
+ if x.RequireSpecialCharacter != y.RequireSpecialCharacter {
+ return false
+ }
+ if x.RequireResetPasswordForFirstLogin != y.RequireResetPasswordForFirstLogin {
+ return false
+ }
+ if p, q := x.PasswordRotation, y.PasswordRotation; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ return true
+}
+
+func (x *AISetting) Equal(y *AISetting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Enabled != y.Enabled {
+ return false
+ }
+ if x.Provider != y.Provider {
+ return false
+ }
+ if x.Endpoint != y.Endpoint {
+ return false
+ }
+ if x.ApiKey != y.ApiKey {
+ return false
+ }
+ if x.Model != y.Model {
+ return false
+ }
+ if x.Version != y.Version {
+ return false
+ }
+ return true
+}
+
+func (x *EnvironmentSetting_Environment) Equal(y *EnvironmentSetting_Environment) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Id != y.Id {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if len(x.Tags) != len(y.Tags) {
+ return false
+ }
+ for k := range x.Tags {
+ _, ok := y.Tags[k]
+ if !ok {
+ return false
+ }
+ if x.Tags[k] != y.Tags[k] {
+ return false
+ }
+ }
+ if x.Color != y.Color {
+ return false
+ }
+ return true
+}
+
+func (x *EnvironmentSetting) Equal(y *EnvironmentSetting) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Environments) != len(y.Environments) {
+ return false
+ }
+ for i := 0; i < len(x.Environments); i++ {
+ if !x.Environments[i].Equal(y.Environments[i]) {
+ return false
+ }
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/sheet_service_equal.pb.go b/backend/generated-go/v1/sheet_service_equal.pb.go
new file mode 100644
index 0000000000..435fab88be
--- /dev/null
+++ b/backend/generated-go/v1/sheet_service_equal.pb.go
@@ -0,0 +1,174 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/sheet_service.proto
+
+package v1
+
+import (
+ proto "google.golang.org/protobuf/proto"
+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
+)
+
+func (x *CreateSheetRequest) Equal(y *CreateSheetRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if !x.Sheet.Equal(y.Sheet) {
+ return false
+ }
+ return true
+}
+
+func (x *BatchCreateSheetsRequest) Equal(y *BatchCreateSheetsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Parent != y.Parent {
+ return false
+ }
+ if len(x.Requests) != len(y.Requests) {
+ return false
+ }
+ for i := 0; i < len(x.Requests); i++ {
+ if !x.Requests[i].Equal(y.Requests[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *BatchCreateSheetsResponse) Equal(y *BatchCreateSheetsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Sheets) != len(y.Sheets) {
+ return false
+ }
+ for i := 0; i < len(x.Sheets); i++ {
+ if !x.Sheets[i].Equal(y.Sheets[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *GetSheetRequest) Equal(y *GetSheetRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Raw != y.Raw {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateSheetRequest) Equal(y *UpdateSheetRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Sheet.Equal(y.Sheet) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *Sheet) Equal(y *Sheet) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Creator != y.Creator {
+ return false
+ }
+ if p, q := x.CreateTime, y.CreateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if string(x.Content) != string(y.Content) {
+ return false
+ }
+ if x.ContentSize != y.ContentSize {
+ return false
+ }
+ if !x.Payload.Equal(y.Payload) {
+ return false
+ }
+ if x.Engine != y.Engine {
+ return false
+ }
+ return true
+}
+
+func (x *SheetPayload) Equal(y *SheetPayload) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if len(x.Commands) != len(y.Commands) {
+ return false
+ }
+ for i := 0; i < len(x.Commands); i++ {
+ if !x.Commands[i].Equal(y.Commands[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *SheetCommand) Equal(y *SheetCommand) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Start != y.Start {
+ return false
+ }
+ if x.End != y.End {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/sql_service_equal.pb.go b/backend/generated-go/v1/sql_service_equal.pb.go
new file mode 100644
index 0000000000..734c168d8e
--- /dev/null
+++ b/backend/generated-go/v1/sql_service_equal.pb.go
@@ -0,0 +1,762 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/sql_service.proto
+
+package v1
+
+import (
+ proto "google.golang.org/protobuf/proto"
+ structpb "google.golang.org/protobuf/types/known/structpb"
+ math "math"
+)
+
+func (x *AdminExecuteRequest) Equal(y *AdminExecuteRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Statement != y.Statement {
+ return false
+ }
+ if x.Limit != y.Limit {
+ return false
+ }
+ if p, q := x.Schema, y.Schema; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.Container, y.Container; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ return true
+}
+
+func (x *AdminExecuteResponse) Equal(y *AdminExecuteResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Results) != len(y.Results) {
+ return false
+ }
+ for i := 0; i < len(x.Results); i++ {
+ if !x.Results[i].Equal(y.Results[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *QueryRequest) Equal(y *QueryRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Statement != y.Statement {
+ return false
+ }
+ if x.Limit != y.Limit {
+ return false
+ }
+ if x.DataSourceId != y.DataSourceId {
+ return false
+ }
+ if x.Explain != y.Explain {
+ return false
+ }
+ if p, q := x.Schema, y.Schema; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if !x.QueryOption.Equal(y.QueryOption) {
+ return false
+ }
+ if p, q := x.Container, y.Container; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ return true
+}
+
+func (x *QueryResponse) Equal(y *QueryResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Results) != len(y.Results) {
+ return false
+ }
+ for i := 0; i < len(x.Results); i++ {
+ if !x.Results[i].Equal(y.Results[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *QueryOption) Equal(y *QueryOption) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.RedisRunCommandsOn != y.RedisRunCommandsOn {
+ return false
+ }
+ return true
+}
+
+func (x *QueryResult_PostgresError) Equal(y *QueryResult_PostgresError) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Severity != y.Severity {
+ return false
+ }
+ if x.Code != y.Code {
+ return false
+ }
+ if x.Message != y.Message {
+ return false
+ }
+ if x.Detail != y.Detail {
+ return false
+ }
+ if x.Hint != y.Hint {
+ return false
+ }
+ if x.Position != y.Position {
+ return false
+ }
+ if x.InternalPosition != y.InternalPosition {
+ return false
+ }
+ if x.InternalQuery != y.InternalQuery {
+ return false
+ }
+ if x.Where != y.Where {
+ return false
+ }
+ if x.SchemaName != y.SchemaName {
+ return false
+ }
+ if x.TableName != y.TableName {
+ return false
+ }
+ if x.ColumnName != y.ColumnName {
+ return false
+ }
+ if x.DataTypeName != y.DataTypeName {
+ return false
+ }
+ if x.ConstraintName != y.ConstraintName {
+ return false
+ }
+ if x.File != y.File {
+ return false
+ }
+ if x.Line != y.Line {
+ return false
+ }
+ if x.Routine != y.Routine {
+ return false
+ }
+ return true
+}
+
+func (x *QueryResult_Message) Equal(y *QueryResult_Message) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Level != y.Level {
+ return false
+ }
+ if x.Content != y.Content {
+ return false
+ }
+ return true
+}
+
+func (x *QueryResult) Equal(y *QueryResult) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.ColumnNames) != len(y.ColumnNames) {
+ return false
+ }
+ for i := 0; i < len(x.ColumnNames); i++ {
+ if x.ColumnNames[i] != y.ColumnNames[i] {
+ return false
+ }
+ }
+ if len(x.ColumnTypeNames) != len(y.ColumnTypeNames) {
+ return false
+ }
+ for i := 0; i < len(x.ColumnTypeNames); i++ {
+ if x.ColumnTypeNames[i] != y.ColumnTypeNames[i] {
+ return false
+ }
+ }
+ if len(x.Rows) != len(y.Rows) {
+ return false
+ }
+ for i := 0; i < len(x.Rows); i++ {
+ if !x.Rows[i].Equal(y.Rows[i]) {
+ return false
+ }
+ }
+ if x.RowsCount != y.RowsCount {
+ return false
+ }
+ if x.Error != y.Error {
+ return false
+ }
+ if p, q := x.Latency, y.Latency; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.Statement != y.Statement {
+ return false
+ }
+ if !x.GetPostgresError().Equal(y.GetPostgresError()) {
+ return false
+ }
+ if x.AllowExport != y.AllowExport {
+ return false
+ }
+ if len(x.Messages) != len(y.Messages) {
+ return false
+ }
+ for i := 0; i < len(x.Messages); i++ {
+ if !x.Messages[i].Equal(y.Messages[i]) {
+ return false
+ }
+ }
+ if len(x.Masked) != len(y.Masked) {
+ return false
+ }
+ for i := 0; i < len(x.Masked); i++ {
+ if !x.Masked[i].Equal(y.Masked[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *MaskingReason) Equal(y *MaskingReason) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.SemanticTypeId != y.SemanticTypeId {
+ return false
+ }
+ if x.SemanticTypeTitle != y.SemanticTypeTitle {
+ return false
+ }
+ if x.MaskingRuleId != y.MaskingRuleId {
+ return false
+ }
+ if x.Algorithm != y.Algorithm {
+ return false
+ }
+ if x.Context != y.Context {
+ return false
+ }
+ if x.ClassificationLevel != y.ClassificationLevel {
+ return false
+ }
+ if x.SemanticTypeIcon != y.SemanticTypeIcon {
+ return false
+ }
+ return true
+}
+
+func (x *QueryRow) Equal(y *QueryRow) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Values) != len(y.Values) {
+ return false
+ }
+ for i := 0; i < len(x.Values); i++ {
+ if !x.Values[i].Equal(y.Values[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *RowValue_Timestamp) Equal(y *RowValue_Timestamp) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if p, q := x.GoogleTimestamp, y.GoogleTimestamp; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.Accuracy != y.Accuracy {
+ return false
+ }
+ return true
+}
+
+func (x *RowValue_TimestampTZ) Equal(y *RowValue_TimestampTZ) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if p, q := x.GoogleTimestamp, y.GoogleTimestamp; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.Zone != y.Zone {
+ return false
+ }
+ if x.Offset != y.Offset {
+ return false
+ }
+ if x.Accuracy != y.Accuracy {
+ return false
+ }
+ return true
+}
+
+func (x *RowValue) Equal(y *RowValue) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.GetNullValue() != y.GetNullValue() {
+ return false
+ }
+ if x.GetBoolValue() != y.GetBoolValue() {
+ return false
+ }
+ if string(x.GetBytesValue()) != string(y.GetBytesValue()) {
+ return false
+ }
+ if (math.IsNaN(float64(x.GetDoubleValue())) && !math.IsNaN(float64(y.GetDoubleValue())) || !math.IsNaN(float64(x.GetDoubleValue())) && math.IsNaN(float64(y.GetDoubleValue()))) || (!math.IsNaN(float64(x.GetDoubleValue())) && !math.IsNaN(float64(y.GetDoubleValue())) && x.GetDoubleValue() != y.GetDoubleValue()) {
+ return false
+ }
+ if (math.IsNaN(float64(x.GetFloatValue())) && !math.IsNaN(float64(y.GetFloatValue())) || !math.IsNaN(float64(x.GetFloatValue())) && math.IsNaN(float64(y.GetFloatValue()))) || (!math.IsNaN(float64(x.GetFloatValue())) && !math.IsNaN(float64(y.GetFloatValue())) && x.GetFloatValue() != y.GetFloatValue()) {
+ return false
+ }
+ if x.GetInt32Value() != y.GetInt32Value() {
+ return false
+ }
+ if x.GetInt64Value() != y.GetInt64Value() {
+ return false
+ }
+ if x.GetStringValue() != y.GetStringValue() {
+ return false
+ }
+ if x.GetUint32Value() != y.GetUint32Value() {
+ return false
+ }
+ if x.GetUint64Value() != y.GetUint64Value() {
+ return false
+ }
+ if equal, ok := interface{}(x.GetValueValue()).(interface{ Equal(*structpb.Value) bool }); !ok || !equal.Equal(y.GetValueValue()) {
+ return false
+ } else if !proto.Equal(x.GetValueValue(), y.GetValueValue()) {
+ return false
+ }
+ if !x.GetTimestampValue().Equal(y.GetTimestampValue()) {
+ return false
+ }
+ if !x.GetTimestampTzValue().Equal(y.GetTimestampTzValue()) {
+ return false
+ }
+ return true
+}
+
+func (x *Advice) Equal(y *Advice) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Status != y.Status {
+ return false
+ }
+ if x.Code != y.Code {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Content != y.Content {
+ return false
+ }
+ if !x.StartPosition.Equal(y.StartPosition) {
+ return false
+ }
+ if !x.EndPosition.Equal(y.EndPosition) {
+ return false
+ }
+ return true
+}
+
+func (x *ExportRequest) Equal(y *ExportRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Statement != y.Statement {
+ return false
+ }
+ if x.Limit != y.Limit {
+ return false
+ }
+ if x.Format != y.Format {
+ return false
+ }
+ if x.Admin != y.Admin {
+ return false
+ }
+ if x.Password != y.Password {
+ return false
+ }
+ if x.DataSourceId != y.DataSourceId {
+ return false
+ }
+ if p, q := x.Schema, y.Schema; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ return true
+}
+
+func (x *ExportResponse) Equal(y *ExportResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if string(x.Content) != string(y.Content) {
+ return false
+ }
+ return true
+}
+
+func (x *PrettyRequest) Equal(y *PrettyRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Engine != y.Engine {
+ return false
+ }
+ if x.CurrentSchema != y.CurrentSchema {
+ return false
+ }
+ if x.ExpectedSchema != y.ExpectedSchema {
+ return false
+ }
+ return true
+}
+
+func (x *PrettyResponse) Equal(y *PrettyResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.CurrentSchema != y.CurrentSchema {
+ return false
+ }
+ if x.ExpectedSchema != y.ExpectedSchema {
+ return false
+ }
+ return true
+}
+
+func (x *CheckRequest) Equal(y *CheckRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Statement != y.Statement {
+ return false
+ }
+ if x.ChangeType != y.ChangeType {
+ return false
+ }
+ return true
+}
+
+func (x *CheckResponse) Equal(y *CheckResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Advices) != len(y.Advices) {
+ return false
+ }
+ for i := 0; i < len(x.Advices); i++ {
+ if !x.Advices[i].Equal(y.Advices[i]) {
+ return false
+ }
+ }
+ if x.AffectedRows != y.AffectedRows {
+ return false
+ }
+ return true
+}
+
+func (x *DiffMetadataRequest) Equal(y *DiffMetadataRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.SourceMetadata.Equal(y.SourceMetadata) {
+ return false
+ }
+ if !x.TargetMetadata.Equal(y.TargetMetadata) {
+ return false
+ }
+ if !x.SourceCatalog.Equal(y.SourceCatalog) {
+ return false
+ }
+ if !x.TargetCatalog.Equal(y.TargetCatalog) {
+ return false
+ }
+ if x.Engine != y.Engine {
+ return false
+ }
+ if x.ClassificationFromConfig != y.ClassificationFromConfig {
+ return false
+ }
+ return true
+}
+
+func (x *DiffMetadataResponse) Equal(y *DiffMetadataResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Diff != y.Diff {
+ return false
+ }
+ return true
+}
+
+func (x *SearchQueryHistoriesRequest) Equal(y *SearchQueryHistoriesRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ if x.Filter != y.Filter {
+ return false
+ }
+ return true
+}
+
+func (x *SearchQueryHistoriesResponse) Equal(y *SearchQueryHistoriesResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.QueryHistories) != len(y.QueryHistories) {
+ return false
+ }
+ for i := 0; i < len(x.QueryHistories); i++ {
+ if !x.QueryHistories[i].Equal(y.QueryHistories[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *QueryHistory) Equal(y *QueryHistory) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Database != y.Database {
+ return false
+ }
+ if x.Creator != y.Creator {
+ return false
+ }
+ if p, q := x.CreateTime, y.CreateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.Statement != y.Statement {
+ return false
+ }
+ if p, q := x.Error, y.Error; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if p, q := x.Duration, y.Duration; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ return true
+}
+
+func (x *AICompletionRequest_Message) Equal(y *AICompletionRequest_Message) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Role != y.Role {
+ return false
+ }
+ if x.Content != y.Content {
+ return false
+ }
+ return true
+}
+
+func (x *AICompletionRequest) Equal(y *AICompletionRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Messages) != len(y.Messages) {
+ return false
+ }
+ for i := 0; i < len(x.Messages); i++ {
+ if !x.Messages[i].Equal(y.Messages[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *AICompletionResponse_Candidate_Content_Part) Equal(y *AICompletionResponse_Candidate_Content_Part) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Text != y.Text {
+ return false
+ }
+ return true
+}
+
+func (x *AICompletionResponse_Candidate_Content) Equal(y *AICompletionResponse_Candidate_Content) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Parts) != len(y.Parts) {
+ return false
+ }
+ for i := 0; i < len(x.Parts); i++ {
+ if !x.Parts[i].Equal(y.Parts[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *AICompletionResponse_Candidate) Equal(y *AICompletionResponse_Candidate) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Content.Equal(y.Content) {
+ return false
+ }
+ return true
+}
+
+func (x *AICompletionResponse) Equal(y *AICompletionResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Candidates) != len(y.Candidates) {
+ return false
+ }
+ for i := 0; i < len(x.Candidates); i++ {
+ if !x.Candidates[i].Equal(y.Candidates[i]) {
+ return false
+ }
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/subscription_service_equal.pb.go b/backend/generated-go/v1/subscription_service_equal.pb.go
new file mode 100644
index 0000000000..67e2248d5a
--- /dev/null
+++ b/backend/generated-go/v1/subscription_service_equal.pb.go
@@ -0,0 +1,114 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/subscription_service.proto
+
+package v1
+
+func (x *GetSubscriptionRequest) Equal(y *GetSubscriptionRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ return true
+}
+
+func (x *UpdateSubscriptionRequest) Equal(y *UpdateSubscriptionRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.License != y.License {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *Subscription) Equal(y *Subscription) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Plan != y.Plan {
+ return false
+ }
+ if x.Seats != y.Seats {
+ return false
+ }
+ if x.Instances != y.Instances {
+ return false
+ }
+ if x.ActiveInstances != y.ActiveInstances {
+ return false
+ }
+ if p, q := x.ExpiresTime, y.ExpiresTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.Trialing != y.Trialing {
+ return false
+ }
+ if x.OrgName != y.OrgName {
+ return false
+ }
+ return true
+}
+
+func (x *PlanConfig) Equal(y *PlanConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Plans) != len(y.Plans) {
+ return false
+ }
+ for i := 0; i < len(x.Plans); i++ {
+ if !x.Plans[i].Equal(y.Plans[i]) {
+ return false
+ }
+ }
+ if len(x.InstanceFeatures) != len(y.InstanceFeatures) {
+ return false
+ }
+ for i := 0; i < len(x.InstanceFeatures); i++ {
+ if x.InstanceFeatures[i] != y.InstanceFeatures[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *PlanLimitConfig) Equal(y *PlanLimitConfig) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Type != y.Type {
+ return false
+ }
+ if x.MaximumInstanceCount != y.MaximumInstanceCount {
+ return false
+ }
+ if x.MaximumSeatCount != y.MaximumSeatCount {
+ return false
+ }
+ if len(x.Features) != len(y.Features) {
+ return false
+ }
+ for i := 0; i < len(x.Features); i++ {
+ if x.Features[i] != y.Features[i] {
+ return false
+ }
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/user_service_equal.pb.go b/backend/generated-go/v1/user_service_equal.pb.go
new file mode 100644
index 0000000000..ac698d0f3a
--- /dev/null
+++ b/backend/generated-go/v1/user_service_equal.pb.go
@@ -0,0 +1,250 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/user_service.proto
+
+package v1
+
+import (
+ proto "google.golang.org/protobuf/proto"
+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
+)
+
+func (x *GetUserRequest) Equal(y *GetUserRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *BatchGetUsersRequest) Equal(y *BatchGetUsersRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Names) != len(y.Names) {
+ return false
+ }
+ for i := 0; i < len(x.Names); i++ {
+ if x.Names[i] != y.Names[i] {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *BatchGetUsersResponse) Equal(y *BatchGetUsersResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Users) != len(y.Users) {
+ return false
+ }
+ for i := 0; i < len(x.Users); i++ {
+ if !x.Users[i].Equal(y.Users[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ListUsersRequest) Equal(y *ListUsersRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ if x.ShowDeleted != y.ShowDeleted {
+ return false
+ }
+ if x.Filter != y.Filter {
+ return false
+ }
+ return true
+}
+
+func (x *ListUsersResponse) Equal(y *ListUsersResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Users) != len(y.Users) {
+ return false
+ }
+ for i := 0; i < len(x.Users); i++ {
+ if !x.Users[i].Equal(y.Users[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *CreateUserRequest) Equal(y *CreateUserRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.User.Equal(y.User) {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateUserRequest) Equal(y *UpdateUserRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.User.Equal(y.User) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if p, q := x.OtpCode, y.OtpCode; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {
+ return false
+ }
+ if x.RegenerateTempMfaSecret != y.RegenerateTempMfaSecret {
+ return false
+ }
+ if x.RegenerateRecoveryCodes != y.RegenerateRecoveryCodes {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *DeleteUserRequest) Equal(y *DeleteUserRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *UndeleteUserRequest) Equal(y *UndeleteUserRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *User_Profile) Equal(y *User_Profile) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if p, q := x.LastLoginTime, y.LastLoginTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if p, q := x.LastChangePasswordTime, y.LastChangePasswordTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if x.Source != y.Source {
+ return false
+ }
+ return true
+}
+
+func (x *User) Equal(y *User) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.State != y.State {
+ return false
+ }
+ if x.Email != y.Email {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.UserType != y.UserType {
+ return false
+ }
+ if x.Password != y.Password {
+ return false
+ }
+ if x.ServiceKey != y.ServiceKey {
+ return false
+ }
+ if x.MfaEnabled != y.MfaEnabled {
+ return false
+ }
+ if x.MfaSecret != y.MfaSecret {
+ return false
+ }
+ if len(x.RecoveryCodes) != len(y.RecoveryCodes) {
+ return false
+ }
+ for i := 0; i < len(x.RecoveryCodes); i++ {
+ if x.RecoveryCodes[i] != y.RecoveryCodes[i] {
+ return false
+ }
+ }
+ if x.Phone != y.Phone {
+ return false
+ }
+ if !x.Profile.Equal(y.Profile) {
+ return false
+ }
+ if len(x.Groups) != len(y.Groups) {
+ return false
+ }
+ for i := 0; i < len(x.Groups); i++ {
+ if x.Groups[i] != y.Groups[i] {
+ return false
+ }
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/worksheet_service_equal.pb.go b/backend/generated-go/v1/worksheet_service_equal.pb.go
new file mode 100644
index 0000000000..ea7030c61a
--- /dev/null
+++ b/backend/generated-go/v1/worksheet_service_equal.pb.go
@@ -0,0 +1,190 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/worksheet_service.proto
+
+package v1
+
+import (
+ proto "google.golang.org/protobuf/proto"
+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
+)
+
+func (x *CreateWorksheetRequest) Equal(y *CreateWorksheetRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Worksheet.Equal(y.Worksheet) {
+ return false
+ }
+ return true
+}
+
+func (x *GetWorksheetRequest) Equal(y *GetWorksheetRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateWorksheetRequest) Equal(y *UpdateWorksheetRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Worksheet.Equal(y.Worksheet) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ return true
+}
+
+func (x *UpdateWorksheetOrganizerRequest) Equal(y *UpdateWorksheetOrganizerRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if !x.Organizer.Equal(y.Organizer) {
+ return false
+ }
+ if equal, ok := interface{}(x.UpdateMask).(interface {
+ Equal(*fieldmaskpb.FieldMask) bool
+ }); !ok || !equal.Equal(y.UpdateMask) {
+ return false
+ } else if !proto.Equal(x.UpdateMask, y.UpdateMask) {
+ return false
+ }
+ if x.AllowMissing != y.AllowMissing {
+ return false
+ }
+ return true
+}
+
+func (x *WorksheetOrganizer) Equal(y *WorksheetOrganizer) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Worksheet != y.Worksheet {
+ return false
+ }
+ if x.Starred != y.Starred {
+ return false
+ }
+ return true
+}
+
+func (x *DeleteWorksheetRequest) Equal(y *DeleteWorksheetRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ return true
+}
+
+func (x *SearchWorksheetsRequest) Equal(y *SearchWorksheetsRequest) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Filter != y.Filter {
+ return false
+ }
+ if x.PageSize != y.PageSize {
+ return false
+ }
+ if x.PageToken != y.PageToken {
+ return false
+ }
+ return true
+}
+
+func (x *SearchWorksheetsResponse) Equal(y *SearchWorksheetsResponse) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Worksheets) != len(y.Worksheets) {
+ return false
+ }
+ for i := 0; i < len(x.Worksheets); i++ {
+ if !x.Worksheets[i].Equal(y.Worksheets[i]) {
+ return false
+ }
+ }
+ if x.NextPageToken != y.NextPageToken {
+ return false
+ }
+ return true
+}
+
+func (x *Worksheet) Equal(y *Worksheet) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.Project != y.Project {
+ return false
+ }
+ if x.Database != y.Database {
+ return false
+ }
+ if x.Title != y.Title {
+ return false
+ }
+ if x.Creator != y.Creator {
+ return false
+ }
+ if p, q := x.CreateTime, y.CreateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if p, q := x.UpdateTime, y.UpdateTime; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ if string(x.Content) != string(y.Content) {
+ return false
+ }
+ if x.ContentSize != y.ContentSize {
+ return false
+ }
+ if x.Visibility != y.Visibility {
+ return false
+ }
+ if x.Starred != y.Starred {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/workspace_service_equal.pb.go b/backend/generated-go/v1/workspace_service_equal.pb.go
new file mode 100644
index 0000000000..7d6d8b5131
--- /dev/null
+++ b/backend/generated-go/v1/workspace_service_equal.pb.go
@@ -0,0 +1,4 @@
+// Code generated by protoc-gen-equal-go. DO NOT EDIT.
+// source: v1/workspace_service.proto
+
+package v1
diff --git a/proto/README.md b/proto/README.md
index ef794d450b..f596438cf4 100644
--- a/proto/README.md
+++ b/proto/README.md
@@ -1,6 +1,7 @@
# Installation
- Install buf: https://docs.buf.build/installation
+- Install protoc-gen-go-equal: `go install github.com/bytebase/protoc-gen-go-equal@main`
- Run: buf generate
- Format: buf format -w
diff --git a/proto/buf.gen.yaml b/proto/buf.gen.yaml
index 5058d79259..4c56a1ecda 100644
--- a/proto/buf.gen.yaml
+++ b/proto/buf.gen.yaml
@@ -1,6 +1,9 @@
version: v2
clean: true
plugins:
+ - local: protoc-gen-go-equal
+ out: ../backend/generated-go
+ opt: paths=source_relative
- remote: buf.build/protocolbuffers/go
out: ../backend/generated-go
opt: paths=source_relative