Skip to content

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

1.5 KB
Raw Blame
// Code generated by protoc-gen-equal-go. DO NOT EDIT.
// source: store/oauth2.proto

package store

func (x *OAuth2ClientConfig) Equal(y *OAuth2ClientConfig) bool {
	if x == y {
		return true
	}
	if x == nil || y == nil {
		return x == nil && y == nil
	}
	if x.ClientName != y.ClientName {
		return false
	}
	if len(x.RedirectUris) != len(y.RedirectUris) {
		return false
	}
	for i := 0; i < len(x.RedirectUris); i++ {
		if x.RedirectUris[i] != y.RedirectUris[i] {
			return false
		}
	}
	if len(x.GrantTypes) != len(y.GrantTypes) {
		return false
	}
	for i := 0; i < len(x.GrantTypes); i++ {
		if x.GrantTypes[i] != y.GrantTypes[i] {
			return false
		}
	}
	if x.TokenEndpointAuthMethod != y.TokenEndpointAuthMethod {
		return false
	}
	return true
}

func (x *OAuth2RefreshTokenConfig) Equal(y *OAuth2RefreshTokenConfig) 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.Scope != y.Scope {
		return false
	}
	return true
}

func (x *OAuth2AuthorizationCodeConfig) Equal(y *OAuth2AuthorizationCodeConfig) bool {
	if x == y {
		return true
	}
	if x == nil || y == nil {
		return x == nil && y == nil
	}
	if x.RedirectUri != y.RedirectUri {
		return false
	}
	if x.CodeChallenge != y.CodeChallenge {
		return false
	}
	if x.CodeChallengeMethod != y.CodeChallengeMethod {
		return false
	}
	if x.Resource != y.Resource {
		return false
	}
	if x.Scope != y.Scope {
		return false
	}
	return true
}