Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
// Code generated by protoc-gen-equal-go. DO NOT EDIT.
// source: v1/access_grant_service.proto
package v1
func (x *AccessGrant) Equal(y *AccessGrant) 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 x.Status != y.Status {
return false
}
if p, q := x.GetExpireTime(), y.GetExpireTime(); (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
return false
}
if p, q := x.GetTtl(), y.GetTtl(); (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
}
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.Query != y.Query {
return false
}
if x.Unmask != y.Unmask {
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.Reason != y.Reason {
return false
}
if x.Export != y.Export {
return false
}
if x.Schema != y.Schema {
return false
}
if x.Container != y.Container {
return false
}
return true
}
func (x *GetAccessGrantRequest) Equal(y *GetAccessGrantRequest) 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 *ListAccessGrantsRequest) Equal(y *ListAccessGrantsRequest) 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.OrderBy != y.OrderBy {
return false
}
return true
}
func (x *ListAccessGrantsResponse) Equal(y *ListAccessGrantsResponse) bool {
if x == y {
return true
}
if x == nil || y == nil {
return x == nil && y == nil
}
if len(x.AccessGrants) != len(y.AccessGrants) {
return false
}
for i := 0; i < len(x.AccessGrants); i++ {
if !x.AccessGrants[i].Equal(y.AccessGrants[i]) {
return false
}
}
if x.NextPageToken != y.NextPageToken {
return false
}
return true
}
func (x *CreateAccessGrantRequest) Equal(y *CreateAccessGrantRequest) 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.AccessGrant.Equal(y.AccessGrant) {
return false
}
return true
}
func (x *ActivateAccessGrantRequest) Equal(y *ActivateAccessGrantRequest) 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 *RevokeAccessGrantRequest) Equal(y *RevokeAccessGrantRequest) 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 *SearchMyAccessGrantsRequest) Equal(y *SearchMyAccessGrantsRequest) 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.OrderBy != y.OrderBy {
return false
}
return true
}
func (x *SearchMyAccessGrantsResponse) Equal(y *SearchMyAccessGrantsResponse) bool {
if x == y {
return true
}
if x == nil || y == nil {
return x == nil && y == nil
}
if len(x.AccessGrants) != len(y.AccessGrants) {
return false
}
for i := 0; i < len(x.AccessGrants); i++ {
if !x.AccessGrants[i].Equal(y.AccessGrants[i]) {
return false
}
}
if x.NextPageToken != y.NextPageToken {
return false
}
return true
}