// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/mdb/postgresql/v1/user.proto

package postgresql

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type AuthMethod int32

const (
	AuthMethod_AUTH_METHOD_UNSPECIFIED AuthMethod = 0
	// Standard authentication mode with password
	AuthMethod_AUTH_METHOD_PASSWORD AuthMethod = 1
	// Alternative authentication mode with IAM token
	AuthMethod_AUTH_METHOD_IAM AuthMethod = 2
)

// Enum value maps for AuthMethod.
var (
	AuthMethod_name = map[int32]string{
		0: "AUTH_METHOD_UNSPECIFIED",
		1: "AUTH_METHOD_PASSWORD",
		2: "AUTH_METHOD_IAM",
	}
	AuthMethod_value = map[string]int32{
		"AUTH_METHOD_UNSPECIFIED": 0,
		"AUTH_METHOD_PASSWORD":    1,
		"AUTH_METHOD_IAM":         2,
	}
)

func (x AuthMethod) Enum() *AuthMethod {
	p := new(AuthMethod)
	*p = x
	return p
}

func (x AuthMethod) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (AuthMethod) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_enumTypes[0].Descriptor()
}

func (AuthMethod) Type() protoreflect.EnumType {
	return &file_yandex_cloud_mdb_postgresql_v1_user_proto_enumTypes[0]
}

func (x AuthMethod) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use AuthMethod.Descriptor instead.
func (AuthMethod) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDescGZIP(), []int{0}
}

type UserPasswordEncryption int32

const (
	UserPasswordEncryption_USER_PASSWORD_ENCRYPTION_UNSPECIFIED UserPasswordEncryption = 0
	// MD5 password-based authentication method
	UserPasswordEncryption_USER_PASSWORD_ENCRYPTION_MD5 UserPasswordEncryption = 1
	// SCRAM-SHA-256 password-based authentication method
	UserPasswordEncryption_USER_PASSWORD_ENCRYPTION_SCRAM_SHA_256 UserPasswordEncryption = 2
)

// Enum value maps for UserPasswordEncryption.
var (
	UserPasswordEncryption_name = map[int32]string{
		0: "USER_PASSWORD_ENCRYPTION_UNSPECIFIED",
		1: "USER_PASSWORD_ENCRYPTION_MD5",
		2: "USER_PASSWORD_ENCRYPTION_SCRAM_SHA_256",
	}
	UserPasswordEncryption_value = map[string]int32{
		"USER_PASSWORD_ENCRYPTION_UNSPECIFIED":   0,
		"USER_PASSWORD_ENCRYPTION_MD5":           1,
		"USER_PASSWORD_ENCRYPTION_SCRAM_SHA_256": 2,
	}
)

func (x UserPasswordEncryption) Enum() *UserPasswordEncryption {
	p := new(UserPasswordEncryption)
	*p = x
	return p
}

func (x UserPasswordEncryption) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (UserPasswordEncryption) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_enumTypes[1].Descriptor()
}

func (UserPasswordEncryption) Type() protoreflect.EnumType {
	return &file_yandex_cloud_mdb_postgresql_v1_user_proto_enumTypes[1]
}

func (x UserPasswordEncryption) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use UserPasswordEncryption.Descriptor instead.
func (UserPasswordEncryption) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDescGZIP(), []int{1}
}

type PGAuditSettings_PGAuditSettingsLog int32

const (
	PGAuditSettings_PG_AUDIT_SETTINGS_LOG_UNSPECIFIED PGAuditSettings_PGAuditSettingsLog = 0
	// `SELECT` and `COPY` queries are logged if the data source is a relation or query.
	PGAuditSettings_PG_AUDIT_SETTINGS_LOG_READ PGAuditSettings_PGAuditSettingsLog = 1
	// `INSERT`, `UPDATE`, `DELETE`, `TRUNCATE`, and `COPY` queries are logged if the data target is a relation.
	PGAuditSettings_PG_AUDIT_SETTINGS_LOG_WRITE PGAuditSettings_PGAuditSettingsLog = 2
	// Function invocations and `DO` sections are logged.
	PGAuditSettings_PG_AUDIT_SETTINGS_LOG_FUNCTION PGAuditSettings_PGAuditSettingsLog = 3
	// Statements related to role and privilege management, such as `GRANT`, `REVOKE`, or `CREATE/ALTER/DROP ROLE`, are logged.
	PGAuditSettings_PG_AUDIT_SETTINGS_LOG_ROLE PGAuditSettings_PGAuditSettingsLog = 4
	// Any `DDL` statements that do not belong to the `ROLE` class are logged.
	PGAuditSettings_PG_AUDIT_SETTINGS_LOG_DDL PGAuditSettings_PGAuditSettingsLog = 5
	// Miscellaneous commands, such as `DISCARD`, `FETCH`, `CHECKPOINT`, `VACUUM`, and `SET`, are logged.
	PGAuditSettings_PG_AUDIT_SETTINGS_LOG_MISC PGAuditSettings_PGAuditSettingsLog = 6
	// Miscellaneous `SET` commands, e.g., `SET ROLE`, are logged.
	PGAuditSettings_PG_AUDIT_SETTINGS_LOG_MISC_SET PGAuditSettings_PGAuditSettingsLog = 7
)

// Enum value maps for PGAuditSettings_PGAuditSettingsLog.
var (
	PGAuditSettings_PGAuditSettingsLog_name = map[int32]string{
		0: "PG_AUDIT_SETTINGS_LOG_UNSPECIFIED",
		1: "PG_AUDIT_SETTINGS_LOG_READ",
		2: "PG_AUDIT_SETTINGS_LOG_WRITE",
		3: "PG_AUDIT_SETTINGS_LOG_FUNCTION",
		4: "PG_AUDIT_SETTINGS_LOG_ROLE",
		5: "PG_AUDIT_SETTINGS_LOG_DDL",
		6: "PG_AUDIT_SETTINGS_LOG_MISC",
		7: "PG_AUDIT_SETTINGS_LOG_MISC_SET",
	}
	PGAuditSettings_PGAuditSettingsLog_value = map[string]int32{
		"PG_AUDIT_SETTINGS_LOG_UNSPECIFIED": 0,
		"PG_AUDIT_SETTINGS_LOG_READ":        1,
		"PG_AUDIT_SETTINGS_LOG_WRITE":       2,
		"PG_AUDIT_SETTINGS_LOG_FUNCTION":    3,
		"PG_AUDIT_SETTINGS_LOG_ROLE":        4,
		"PG_AUDIT_SETTINGS_LOG_DDL":         5,
		"PG_AUDIT_SETTINGS_LOG_MISC":        6,
		"PG_AUDIT_SETTINGS_LOG_MISC_SET":    7,
	}
)

func (x PGAuditSettings_PGAuditSettingsLog) Enum() *PGAuditSettings_PGAuditSettingsLog {
	p := new(PGAuditSettings_PGAuditSettingsLog)
	*p = x
	return p
}

func (x PGAuditSettings_PGAuditSettingsLog) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (PGAuditSettings_PGAuditSettingsLog) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_enumTypes[2].Descriptor()
}

func (PGAuditSettings_PGAuditSettingsLog) Type() protoreflect.EnumType {
	return &file_yandex_cloud_mdb_postgresql_v1_user_proto_enumTypes[2]
}

func (x PGAuditSettings_PGAuditSettingsLog) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use PGAuditSettings_PGAuditSettingsLog.Descriptor instead.
func (PGAuditSettings_PGAuditSettingsLog) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDescGZIP(), []int{4, 0}
}

type UserSettings_SynchronousCommit int32

const (
	UserSettings_SYNCHRONOUS_COMMIT_UNSPECIFIED UserSettings_SynchronousCommit = 0
	// Success is reported to the client if the data is in WAL (Write-Ahead Log), and WAL is written to the storage of both the master and its synchronous standby server. Default value.
	UserSettings_SYNCHRONOUS_COMMIT_ON UserSettings_SynchronousCommit = 1
	// Success is reported to the client even if the data is not in WAL.
	// There is no synchronous write operation, data may be loss in case of storage subsystem failure.
	UserSettings_SYNCHRONOUS_COMMIT_OFF UserSettings_SynchronousCommit = 2
	// Success is reported to the client if the data is in WAL, and WAL is written to the storage of the master server.
	// The transaction may be lost due to storage subsystem failure on the master server.
	UserSettings_SYNCHRONOUS_COMMIT_LOCAL UserSettings_SynchronousCommit = 3
	// Success is reported to the client if the data is in WAL, WAL is written to the storage of the master server, and the server's synchronous standby indicates that it has received WAL and written it out to its operating system.
	// The transaction may be lost due to simultaneous storage subsystem failure on the master and operating system's failure on the synchronous standby.
	UserSettings_SYNCHRONOUS_COMMIT_REMOTE_WRITE UserSettings_SynchronousCommit = 4
	// Success is reported to the client if the data is in WAL (Write-Ahead Log), WAL is written to the storage of the master server, and its synchronous standby indicates that it has received WAL and applied it.
	// The transaction may be lost due to irrecoverably failure of both the master and its synchronous standby.
	UserSettings_SYNCHRONOUS_COMMIT_REMOTE_APPLY UserSettings_SynchronousCommit = 5
)

// Enum value maps for UserSettings_SynchronousCommit.
var (
	UserSettings_SynchronousCommit_name = map[int32]string{
		0: "SYNCHRONOUS_COMMIT_UNSPECIFIED",
		1: "SYNCHRONOUS_COMMIT_ON",
		2: "SYNCHRONOUS_COMMIT_OFF",
		3: "SYNCHRONOUS_COMMIT_LOCAL",
		4: "SYNCHRONOUS_COMMIT_REMOTE_WRITE",
		5: "SYNCHRONOUS_COMMIT_REMOTE_APPLY",
	}
	UserSettings_SynchronousCommit_value = map[string]int32{
		"SYNCHRONOUS_COMMIT_UNSPECIFIED":  0,
		"SYNCHRONOUS_COMMIT_ON":           1,
		"SYNCHRONOUS_COMMIT_OFF":          2,
		"SYNCHRONOUS_COMMIT_LOCAL":        3,
		"SYNCHRONOUS_COMMIT_REMOTE_WRITE": 4,
		"SYNCHRONOUS_COMMIT_REMOTE_APPLY": 5,
	}
)

func (x UserSettings_SynchronousCommit) Enum() *UserSettings_SynchronousCommit {
	p := new(UserSettings_SynchronousCommit)
	*p = x
	return p
}

func (x UserSettings_SynchronousCommit) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (UserSettings_SynchronousCommit) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_enumTypes[3].Descriptor()
}

func (UserSettings_SynchronousCommit) Type() protoreflect.EnumType {
	return &file_yandex_cloud_mdb_postgresql_v1_user_proto_enumTypes[3]
}

func (x UserSettings_SynchronousCommit) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use UserSettings_SynchronousCommit.Descriptor instead.
func (UserSettings_SynchronousCommit) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDescGZIP(), []int{5, 0}
}

type UserSettings_LogStatement int32

const (
	UserSettings_LOG_STATEMENT_UNSPECIFIED UserSettings_LogStatement = 0
	// Logs none of SQL statements. Default value.
	UserSettings_LOG_STATEMENT_NONE UserSettings_LogStatement = 1
	// Logs all data definition statements (such as `CREATE`, `ALTER`, `DROP` and others).
	UserSettings_LOG_STATEMENT_DDL UserSettings_LogStatement = 2
	// Logs all statements that fall in the `LOG_STATEMENT_DDL` category plus data-modifying statements (such as `INSERT`, `UPDATE` and others).
	UserSettings_LOG_STATEMENT_MOD UserSettings_LogStatement = 3
	// Logs all SQL statements.
	UserSettings_LOG_STATEMENT_ALL UserSettings_LogStatement = 4
)

// Enum value maps for UserSettings_LogStatement.
var (
	UserSettings_LogStatement_name = map[int32]string{
		0: "LOG_STATEMENT_UNSPECIFIED",
		1: "LOG_STATEMENT_NONE",
		2: "LOG_STATEMENT_DDL",
		3: "LOG_STATEMENT_MOD",
		4: "LOG_STATEMENT_ALL",
	}
	UserSettings_LogStatement_value = map[string]int32{
		"LOG_STATEMENT_UNSPECIFIED": 0,
		"LOG_STATEMENT_NONE":        1,
		"LOG_STATEMENT_DDL":         2,
		"LOG_STATEMENT_MOD":         3,
		"LOG_STATEMENT_ALL":         4,
	}
)

func (x UserSettings_LogStatement) Enum() *UserSettings_LogStatement {
	p := new(UserSettings_LogStatement)
	*p = x
	return p
}

func (x UserSettings_LogStatement) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (UserSettings_LogStatement) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_enumTypes[4].Descriptor()
}

func (UserSettings_LogStatement) Type() protoreflect.EnumType {
	return &file_yandex_cloud_mdb_postgresql_v1_user_proto_enumTypes[4]
}

func (x UserSettings_LogStatement) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use UserSettings_LogStatement.Descriptor instead.
func (UserSettings_LogStatement) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDescGZIP(), []int{5, 1}
}

type UserSettings_TransactionIsolation int32

const (
	UserSettings_TRANSACTION_ISOLATION_UNSPECIFIED UserSettings_TransactionIsolation = 0
	// This level behaves like `TRANSACTION_ISOLATION_READ_COMMITTED` in PostgreSQL.
	UserSettings_TRANSACTION_ISOLATION_READ_UNCOMMITTED UserSettings_TransactionIsolation = 1
	// On this level query sees only data committed before the query began. Default value.
	UserSettings_TRANSACTION_ISOLATION_READ_COMMITTED UserSettings_TransactionIsolation = 2
	// On this level all subsequent queries in a transaction will see the same rows, that were read by the first `SELECT` or `INSERT` query in this transaction, unchanged (these rows are locked during the first query).
	UserSettings_TRANSACTION_ISOLATION_REPEATABLE_READ UserSettings_TransactionIsolation = 3
	// This level provides the strictest transaction isolation.
	// All queries in the current transaction see only the rows that were fixed prior to execution of the first `SELECT` or `INSERT` query in this transaction.
	// If read and write operations in a concurrent set of serializable transactions overlap and this may cause an inconsistency that is not possible during the serial transaction execution, then one of the transaction will be rolled back, triggering a serialization failure.
	UserSettings_TRANSACTION_ISOLATION_SERIALIZABLE UserSettings_TransactionIsolation = 4
)

// Enum value maps for UserSettings_TransactionIsolation.
var (
	UserSettings_TransactionIsolation_name = map[int32]string{
		0: "TRANSACTION_ISOLATION_UNSPECIFIED",
		1: "TRANSACTION_ISOLATION_READ_UNCOMMITTED",
		2: "TRANSACTION_ISOLATION_READ_COMMITTED",
		3: "TRANSACTION_ISOLATION_REPEATABLE_READ",
		4: "TRANSACTION_ISOLATION_SERIALIZABLE",
	}
	UserSettings_TransactionIsolation_value = map[string]int32{
		"TRANSACTION_ISOLATION_UNSPECIFIED":      0,
		"TRANSACTION_ISOLATION_READ_UNCOMMITTED": 1,
		"TRANSACTION_ISOLATION_READ_COMMITTED":   2,
		"TRANSACTION_ISOLATION_REPEATABLE_READ":  3,
		"TRANSACTION_ISOLATION_SERIALIZABLE":     4,
	}
)

func (x UserSettings_TransactionIsolation) Enum() *UserSettings_TransactionIsolation {
	p := new(UserSettings_TransactionIsolation)
	*p = x
	return p
}

func (x UserSettings_TransactionIsolation) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (UserSettings_TransactionIsolation) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_enumTypes[5].Descriptor()
}

func (UserSettings_TransactionIsolation) Type() protoreflect.EnumType {
	return &file_yandex_cloud_mdb_postgresql_v1_user_proto_enumTypes[5]
}

func (x UserSettings_TransactionIsolation) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use UserSettings_TransactionIsolation.Descriptor instead.
func (UserSettings_TransactionIsolation) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDescGZIP(), []int{5, 2}
}

type UserSettings_PoolingMode int32

const (
	UserSettings_POOLING_MODE_UNSPECIFIED UserSettings_PoolingMode = 0
	// Server connection will be assigned to it for the whole duration the client stays connected. Default value.
	UserSettings_SESSION UserSettings_PoolingMode = 1
	// Server connection is assigned to a client only during a transaction.
	UserSettings_TRANSACTION UserSettings_PoolingMode = 2
	// Server connection will be put back into the pool immediately after a query completes.
	UserSettings_STATEMENT UserSettings_PoolingMode = 3
)

// Enum value maps for UserSettings_PoolingMode.
var (
	UserSettings_PoolingMode_name = map[int32]string{
		0: "POOLING_MODE_UNSPECIFIED",
		1: "SESSION",
		2: "TRANSACTION",
		3: "STATEMENT",
	}
	UserSettings_PoolingMode_value = map[string]int32{
		"POOLING_MODE_UNSPECIFIED": 0,
		"SESSION":                  1,
		"TRANSACTION":              2,
		"STATEMENT":                3,
	}
)

func (x UserSettings_PoolingMode) Enum() *UserSettings_PoolingMode {
	p := new(UserSettings_PoolingMode)
	*p = x
	return p
}

func (x UserSettings_PoolingMode) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (UserSettings_PoolingMode) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_enumTypes[6].Descriptor()
}

func (UserSettings_PoolingMode) Type() protoreflect.EnumType {
	return &file_yandex_cloud_mdb_postgresql_v1_user_proto_enumTypes[6]
}

func (x UserSettings_PoolingMode) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use UserSettings_PoolingMode.Descriptor instead.
func (UserSettings_PoolingMode) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDescGZIP(), []int{5, 3}
}

// A PostgreSQL User resource. For more information, see
// the [Developer's Guide](/docs/managed-postgresql/concepts).
type User struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Name of the PostgreSQL user.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// ID of the PostgreSQL cluster the user belongs to.
	ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Set of permissions granted to the user to access specific databases.
	Permissions []*Permission `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// Maximum number of database connections available to the user.
	//
	// When used in session pooling, this setting limits the number of connections to every single host in PostgreSQL cluster. In this case, the setting's value must be greater than the total number of connections that backend services can open to access the PostgreSQL cluster. The setting's value should not exceed the value of the [Cluster.config.postgresql_config_12.effective_config.max_connections] setting.
	//
	// When used in transaction pooling, this setting limits the number of user's active transactions; therefore, in this mode user can open thousands of connections, but only `N` concurrent connections will be opened, where `N` is the value of the setting.
	//
	// Minimum value: `10` (default: `50`), when used in session pooling.
	ConnLimit int64 `protobuf:"varint,4,opt,name=conn_limit,json=connLimit,proto3" json:"conn_limit,omitempty"`
	// PostgreSQL and connection pooler user settings.
	Settings *UserSettings `protobuf:"bytes,5,opt,name=settings,proto3" json:"settings,omitempty"`
	// This flag defines whether the user can login to a PostgreSQL database.
	//
	// Default value: `true` (login is allowed).
	Login *wrapperspb.BoolValue `protobuf:"bytes,6,opt,name=login,proto3" json:"login,omitempty"`
	// A set of roles and privileges that are granted to the user.
	//
	// For more information, see [the documentation](/docs/managed-postgresql/operations/grant).
	Grants []string `protobuf:"bytes,7,rep,name=grants,proto3" json:"grants,omitempty"`
	// Determines whether the user deletion protection is enabled.
	//
	// The default value is `unspecified`. In this case, the user configuration inherits the cluster's deletion protection settings.
	DeletionProtection *wrapperspb.BoolValue `protobuf:"bytes,8,opt,name=deletion_protection,json=deletionProtection,proto3" json:"deletion_protection,omitempty"`
	// Password-based authentication method for user.
	// Possible values are “ USER_PASSWORD_ENCRYPTION_MD5 “ or “ USER_PASSWORD_ENCRYPTION_SCRAM_SHA_256 “.
	// The default is “ password_encryption “ setting for cluster.
	UserPasswordEncryption UserPasswordEncryption `protobuf:"varint,9,opt,name=user_password_encryption,json=userPasswordEncryption,proto3,enum=yandex.cloud.mdb.postgresql.v1.UserPasswordEncryption" json:"user_password_encryption,omitempty"`
	// Connection Manager Connection and settings associated with user. Read only field.
	ConnectionManager *ConnectionManager `protobuf:"bytes,10,opt,name=connection_manager,json=connectionManager,proto3" json:"connection_manager,omitempty"`
	// Auth method for user
	AuthMethod    AuthMethod `protobuf:"varint,11,opt,name=auth_method,json=authMethod,proto3,enum=yandex.cloud.mdb.postgresql.v1.AuthMethod" json:"auth_method,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *User) Reset() {
	*x = User{}
	mi := &file_yandex_cloud_mdb_postgresql_v1_user_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *User) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*User) ProtoMessage() {}

func (x *User) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_mdb_postgresql_v1_user_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use User.ProtoReflect.Descriptor instead.
func (*User) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDescGZIP(), []int{0}
}

func (x *User) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *User) GetClusterId() string {
	if x != nil {
		return x.ClusterId
	}
	return ""
}

func (x *User) GetPermissions() []*Permission {
	if x != nil {
		return x.Permissions
	}
	return nil
}

func (x *User) GetConnLimit() int64 {
	if x != nil {
		return x.ConnLimit
	}
	return 0
}

func (x *User) GetSettings() *UserSettings {
	if x != nil {
		return x.Settings
	}
	return nil
}

func (x *User) GetLogin() *wrapperspb.BoolValue {
	if x != nil {
		return x.Login
	}
	return nil
}

func (x *User) GetGrants() []string {
	if x != nil {
		return x.Grants
	}
	return nil
}

func (x *User) GetDeletionProtection() *wrapperspb.BoolValue {
	if x != nil {
		return x.DeletionProtection
	}
	return nil
}

func (x *User) GetUserPasswordEncryption() UserPasswordEncryption {
	if x != nil {
		return x.UserPasswordEncryption
	}
	return UserPasswordEncryption_USER_PASSWORD_ENCRYPTION_UNSPECIFIED
}

func (x *User) GetConnectionManager() *ConnectionManager {
	if x != nil {
		return x.ConnectionManager
	}
	return nil
}

func (x *User) GetAuthMethod() AuthMethod {
	if x != nil {
		return x.AuthMethod
	}
	return AuthMethod_AUTH_METHOD_UNSPECIFIED
}

type Permission struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Name of the database that the permission grants access to.
	DatabaseName  string `protobuf:"bytes,1,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Permission) Reset() {
	*x = Permission{}
	mi := &file_yandex_cloud_mdb_postgresql_v1_user_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Permission) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Permission) ProtoMessage() {}

func (x *Permission) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_mdb_postgresql_v1_user_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Permission.ProtoReflect.Descriptor instead.
func (*Permission) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDescGZIP(), []int{1}
}

func (x *Permission) GetDatabaseName() string {
	if x != nil {
		return x.DatabaseName
	}
	return ""
}

type ConnectionManager struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of Connection Manager Connection
	ConnectionId  string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ConnectionManager) Reset() {
	*x = ConnectionManager{}
	mi := &file_yandex_cloud_mdb_postgresql_v1_user_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ConnectionManager) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ConnectionManager) ProtoMessage() {}

func (x *ConnectionManager) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_mdb_postgresql_v1_user_proto_msgTypes[2]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ConnectionManager.ProtoReflect.Descriptor instead.
func (*ConnectionManager) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDescGZIP(), []int{2}
}

func (x *ConnectionManager) GetConnectionId() string {
	if x != nil {
		return x.ConnectionId
	}
	return ""
}

type UserSpec struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Name of the PostgreSQL user.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Password of the PostgreSQL user.
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// Set of permissions to grant to the user to access specific databases.
	Permissions []*Permission `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// Maximum number of database connections that should be available to the user.
	//
	// When used in session pooling, this setting limits the number of connections to every single host in PostgreSQL cluster. In this case, the setting's value must be greater than the total number of connections that backend services can open to access the PostgreSQL cluster. The setting's value should not exceed the value of the [Cluster.config.postgresql_config_12.effective_config.max_connections] setting.
	//
	// When used in transaction pooling, this setting limits the number of user's active transactions; therefore, in this mode user can open thousands of connections, but only `N` concurrent connections will be opened, where `N` is the value of the setting.
	//
	// Minimum value: `10` (default: `50`), when used in session pooling.
	ConnLimit *wrapperspb.Int64Value `protobuf:"bytes,4,opt,name=conn_limit,json=connLimit,proto3" json:"conn_limit,omitempty"`
	// PostgreSQL settings for the user.
	Settings *UserSettings `protobuf:"bytes,5,opt,name=settings,proto3" json:"settings,omitempty"`
	// This flag defines whether the user can login to a PostgreSQL database.
	//
	// Default value: `true` (login is allowed).
	Login *wrapperspb.BoolValue `protobuf:"bytes,6,opt,name=login,proto3" json:"login,omitempty"`
	// A set of roles and privileges that are granted to the user.
	//
	// For more information, see [the documentation](/docs/managed-postgresql/operations/grant).
	Grants []string `protobuf:"bytes,7,rep,name=grants,proto3" json:"grants,omitempty"`
	// Deletion Protection inhibits deletion of the user
	//
	// Default value: `unspecified` (inherits cluster's deletion_protection)
	DeletionProtection *wrapperspb.BoolValue `protobuf:"bytes,8,opt,name=deletion_protection,json=deletionProtection,proto3" json:"deletion_protection,omitempty"`
	// Password-based authentication method for user.
	// Possible values are “ USER_PASSWORD_ENCRYPTION_MD5 “ or “ USER_PASSWORD_ENCRYPTION_SCRAM_SHA_256 “.
	// The default is “ password_encryption “ setting for cluster.
	UserPasswordEncryption UserPasswordEncryption `protobuf:"varint,9,opt,name=user_password_encryption,json=userPasswordEncryption,proto3,enum=yandex.cloud.mdb.postgresql.v1.UserPasswordEncryption" json:"user_password_encryption,omitempty"`
	// Generate password using Connection Manager.
	GeneratePassword *wrapperspb.BoolValue `protobuf:"bytes,10,opt,name=generate_password,json=generatePassword,proto3" json:"generate_password,omitempty"`
	// Auth method for user
	AuthMethod    AuthMethod `protobuf:"varint,11,opt,name=auth_method,json=authMethod,proto3,enum=yandex.cloud.mdb.postgresql.v1.AuthMethod" json:"auth_method,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UserSpec) Reset() {
	*x = UserSpec{}
	mi := &file_yandex_cloud_mdb_postgresql_v1_user_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *UserSpec) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*UserSpec) ProtoMessage() {}

func (x *UserSpec) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_mdb_postgresql_v1_user_proto_msgTypes[3]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use UserSpec.ProtoReflect.Descriptor instead.
func (*UserSpec) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDescGZIP(), []int{3}
}

func (x *UserSpec) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *UserSpec) GetPassword() string {
	if x != nil {
		return x.Password
	}
	return ""
}

func (x *UserSpec) GetPermissions() []*Permission {
	if x != nil {
		return x.Permissions
	}
	return nil
}

func (x *UserSpec) GetConnLimit() *wrapperspb.Int64Value {
	if x != nil {
		return x.ConnLimit
	}
	return nil
}

func (x *UserSpec) GetSettings() *UserSettings {
	if x != nil {
		return x.Settings
	}
	return nil
}

func (x *UserSpec) GetLogin() *wrapperspb.BoolValue {
	if x != nil {
		return x.Login
	}
	return nil
}

func (x *UserSpec) GetGrants() []string {
	if x != nil {
		return x.Grants
	}
	return nil
}

func (x *UserSpec) GetDeletionProtection() *wrapperspb.BoolValue {
	if x != nil {
		return x.DeletionProtection
	}
	return nil
}

func (x *UserSpec) GetUserPasswordEncryption() UserPasswordEncryption {
	if x != nil {
		return x.UserPasswordEncryption
	}
	return UserPasswordEncryption_USER_PASSWORD_ENCRYPTION_UNSPECIFIED
}

func (x *UserSpec) GetGeneratePassword() *wrapperspb.BoolValue {
	if x != nil {
		return x.GeneratePassword
	}
	return nil
}

func (x *UserSpec) GetAuthMethod() AuthMethod {
	if x != nil {
		return x.AuthMethod
	}
	return AuthMethod_AUTH_METHOD_UNSPECIFIED
}

type PGAuditSettings struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Defines which user queries will be written to the audit log. Corresponds to the [Pg audit log](https://yandex.cloud/en/docs/managed-postgresql/concepts/settings-list#setting-pg-audit-log) user setting.
	//
	// The possible values are the following:
	//
	// * PG_AUDIT_SETTINGS_LOG_READ: `SELECT` and `COPY` queries are logged if the data source is a relation or query.
	// * PG_AUDIT_SETTINGS_LOG_WRITE: `INSERT`, `UPDATE`, `DELETE`, `TRUNCATE`, and `COPY` queries are logged if the data target is a relation.
	// * PG_AUDIT_SETTINGS_LOG_FUNCTION: Function invocations and `DO` sections are logged.
	// * PG_AUDIT_SETTINGS_LOG_ROLE: Statements related to role and privilege management, such as `GRANT`, `REVOKE`, or `CREATE/ALTER/DROP ROLE`, are logged.
	// * PG_AUDIT_SETTINGS_LOG_DDL: Any `DDL` statements that do not belong to the `ROLE` class are logged.
	// * PG_AUDIT_SETTINGS_LOG_MISC: Miscellaneous commands, such as `DISCARD`, `FETCH`, `CHECKPOINT`, `VACUUM`, and `SET`, are logged.
	// * PG_AUDIT_SETTINGS_LOG_MISC_SET: Miscellaneous `SET` commands, e.g., `SET ROLE`, are logged.
	//
	// The default value is PG_AUDIT_SETTINGS_LOG_UNSPECIFIED. In this case, the parameter is not configured.
	Log           []PGAuditSettings_PGAuditSettingsLog `protobuf:"varint,1,rep,packed,name=log,proto3,enum=yandex.cloud.mdb.postgresql.v1.PGAuditSettings_PGAuditSettingsLog" json:"log,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *PGAuditSettings) Reset() {
	*x = PGAuditSettings{}
	mi := &file_yandex_cloud_mdb_postgresql_v1_user_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *PGAuditSettings) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*PGAuditSettings) ProtoMessage() {}

func (x *PGAuditSettings) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_mdb_postgresql_v1_user_proto_msgTypes[4]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use PGAuditSettings.ProtoReflect.Descriptor instead.
func (*PGAuditSettings) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDescGZIP(), []int{4}
}

func (x *PGAuditSettings) GetLog() []PGAuditSettings_PGAuditSettingsLog {
	if x != nil {
		return x.Log
	}
	return nil
}

// PostgreSQL and connection pooler user settings.
type UserSettings struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// SQL sets an isolation level for each transaction.
	// This setting defines the default isolation level to be set for all new SQL transactions.
	//
	// For more information, see the [PostgreSQL documentation](https://www.postgresql.org/docs/current/transaction-iso.html).
	DefaultTransactionIsolation UserSettings_TransactionIsolation `protobuf:"varint,1,opt,name=default_transaction_isolation,json=defaultTransactionIsolation,proto3,enum=yandex.cloud.mdb.postgresql.v1.UserSettings_TransactionIsolation" json:"default_transaction_isolation,omitempty"`
	// The maximum time (in milliseconds) for any statement to wait for acquiring a lock on an table, index, row or other database object.
	// If the wait time is longer than the specified amount, then this statement is aborted.
	//
	// Default value: `0` (no control is enforced, a statement waiting time is unlimited).
	LockTimeout *wrapperspb.Int64Value `protobuf:"bytes,2,opt,name=lock_timeout,json=lockTimeout,proto3" json:"lock_timeout,omitempty"`
	// This setting controls logging of the duration of statements.
	//
	// The duration of each completed statement will be logged if the statement ran for at least the specified amount of time (in milliseconds).
	// E.g., if this setting's value is set to `500`, a statement that took 300 milliseconds to complete will not be logged; on the other hand, the one that took 2000 milliseconds to complete, will be logged.
	//
	// Value of `0` forces PostgreSQL to log the duration of all statements.
	//
	// Value of `-1` (default) disables logging of the duration of statements.
	//
	// For more information, see the [PostgreSQL documentation](https://www.postgresql.org/docs/current/runtime-config-logging.html).
	LogMinDurationStatement *wrapperspb.Int64Value `protobuf:"bytes,3,opt,name=log_min_duration_statement,json=logMinDurationStatement,proto3" json:"log_min_duration_statement,omitempty"`
	// This setting defines whether DBMS will commit transaction in a synchronous way.
	//
	// When synchronization is enabled, cluster waits for the synchronous operations to be completed prior to reporting `success` to the client.
	// These operations guarantee different levels of the data safety and visibility in the cluster.
	//
	// For more information, see the [PostgreSQL documentation](https://www.postgresql.org/docs/current/runtime-config-wal.html#GUC-SYNCHRONOUS-COMMIT).
	SynchronousCommit UserSettings_SynchronousCommit `protobuf:"varint,4,opt,name=synchronous_commit,json=synchronousCommit,proto3,enum=yandex.cloud.mdb.postgresql.v1.UserSettings_SynchronousCommit" json:"synchronous_commit,omitempty"`
	// The maximum storage space size (in kilobytes) that a single process can use to create temporary files.
	// If a transaction exceeds this limit during execution, it will be aborted.
	//
	// A huge query may not fit into a server's RAM, therefore PostgreSQL will use some storage to store and execute such a query. Too big queries can make excessive use of the storage system, effectively making other quieries to run slow. This setting prevents execution of a big queries that can influence other queries by limiting size of temporary files.
	TempFileLimit *wrapperspb.Int64Value `protobuf:"bytes,5,opt,name=temp_file_limit,json=tempFileLimit,proto3" json:"temp_file_limit,omitempty"`
	// This setting specifies which SQL statements should be logged (on the user level).
	//
	// For more information, see the [PostgreSQL documentation](https://www.postgresql.org/docs/current/runtime-config-logging.html).
	LogStatement UserSettings_LogStatement `protobuf:"varint,6,opt,name=log_statement,json=logStatement,proto3,enum=yandex.cloud.mdb.postgresql.v1.UserSettings_LogStatement" json:"log_statement,omitempty"`
	// Mode that the connection pooler is working in with specified user.
	//
	// For more information, see the [Odyssey documentation](https://github.com/yandex/odyssey/blob/master/documentation/configuration.md#pool-string).
	PoolMode UserSettings_PoolingMode `protobuf:"varint,7,opt,name=pool_mode,json=poolMode,proto3,enum=yandex.cloud.mdb.postgresql.v1.UserSettings_PoolingMode" json:"pool_mode,omitempty"`
	// User can use [prepared statements](https://www.postgresql.org/docs/current/sql-prepare.html) with transaction pooling.
	// This requires `pool_mode` to be set to TRANSACTION.
	//
	// [Odyssey documentation](https://pg-odyssey.tech/configuration/rules.html#pool_reserve_prepared_statement).
	PreparedStatementsPooling *wrapperspb.BoolValue `protobuf:"bytes,8,opt,name=prepared_statements_pooling,json=preparedStatementsPooling,proto3" json:"prepared_statements_pooling,omitempty"`
	// The connection pooler setting. It determines the maximum allowed replication lag (in seconds).
	// Pooler will reject connections to the replica with a lag above this threshold.
	// It can be useful to prevent application from reading stale data.
	//
	// Default value: 0
	//
	// Value of `0` disables this mechanism
	CatchupTimeout *wrapperspb.Int64Value `protobuf:"bytes,9,opt,name=catchup_timeout,json=catchupTimeout,proto3" json:"catchup_timeout,omitempty"`
	// The maximum time (in milliseconds) to wait for WAL replication (can be set only for PostgreSQL 12+)
	// Terminate replication connections that are inactive for longer than this amount of time.
	//
	// Default value: `60000` (60 seconds).
	//
	// Value of `0` disables the timeout mechanism.
	//
	// For more information, see the [PostgreSQL documentation](https://www.postgresql.org/docs/current/runtime-config-replication.html).
	WalSenderTimeout *wrapperspb.Int64Value `protobuf:"bytes,10,opt,name=wal_sender_timeout,json=walSenderTimeout,proto3" json:"wal_sender_timeout,omitempty"`
	// Sets the maximum allowed idle time, in milliseconds, between queries while in a transaction.
	//
	// The default value is `0`, which disables the timeout.
	//
	// For more information, see the [PostgreSQL documentation](https://www.postgresql.org/docs/current/runtime-config-client.html).
	IdleInTransactionSessionTimeout *wrapperspb.Int64Value `protobuf:"bytes,11,opt,name=idle_in_transaction_session_timeout,json=idleInTransactionSessionTimeout,proto3" json:"idle_in_transaction_session_timeout,omitempty"` // in milliseconds.
	// The maximum time (in milliseconds) to wait for statement.
	// The timeout is measured from the time a command arrives at the server until it is completed by the server.
	//
	// If `log_min_error_statement` is set to ERROR or lower, the statement that timed out will also be logged.
	//
	// # Value of `0` (default) disables the timeout
	//
	// For more information, see the [PostgreSQL documentation](https://www.postgresql.org/docs/current/runtime-config-client.html).
	StatementTimeout *wrapperspb.Int64Value `protobuf:"bytes,12,opt,name=statement_timeout,json=statementTimeout,proto3" json:"statement_timeout,omitempty"`
	// Settings of the [PostgreSQL Audit Extension](https://www.pgaudit.org/) (pgaudit).
	Pgaudit *PGAuditSettings `protobuf:"bytes,13,opt,name=pgaudit,proto3" json:"pgaudit,omitempty"`
	// in milliseconds; can be set only for PostgreSQL 14+
	IdleSessionTimeout *wrapperspb.Int64Value `protobuf:"bytes,14,opt,name=idle_session_timeout,json=idleSessionTimeout,proto3" json:"idle_session_timeout,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

func (x *UserSettings) Reset() {
	*x = UserSettings{}
	mi := &file_yandex_cloud_mdb_postgresql_v1_user_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *UserSettings) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*UserSettings) ProtoMessage() {}

func (x *UserSettings) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_mdb_postgresql_v1_user_proto_msgTypes[5]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use UserSettings.ProtoReflect.Descriptor instead.
func (*UserSettings) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDescGZIP(), []int{5}
}

func (x *UserSettings) GetDefaultTransactionIsolation() UserSettings_TransactionIsolation {
	if x != nil {
		return x.DefaultTransactionIsolation
	}
	return UserSettings_TRANSACTION_ISOLATION_UNSPECIFIED
}

func (x *UserSettings) GetLockTimeout() *wrapperspb.Int64Value {
	if x != nil {
		return x.LockTimeout
	}
	return nil
}

func (x *UserSettings) GetLogMinDurationStatement() *wrapperspb.Int64Value {
	if x != nil {
		return x.LogMinDurationStatement
	}
	return nil
}

func (x *UserSettings) GetSynchronousCommit() UserSettings_SynchronousCommit {
	if x != nil {
		return x.SynchronousCommit
	}
	return UserSettings_SYNCHRONOUS_COMMIT_UNSPECIFIED
}

func (x *UserSettings) GetTempFileLimit() *wrapperspb.Int64Value {
	if x != nil {
		return x.TempFileLimit
	}
	return nil
}

func (x *UserSettings) GetLogStatement() UserSettings_LogStatement {
	if x != nil {
		return x.LogStatement
	}
	return UserSettings_LOG_STATEMENT_UNSPECIFIED
}

func (x *UserSettings) GetPoolMode() UserSettings_PoolingMode {
	if x != nil {
		return x.PoolMode
	}
	return UserSettings_POOLING_MODE_UNSPECIFIED
}

func (x *UserSettings) GetPreparedStatementsPooling() *wrapperspb.BoolValue {
	if x != nil {
		return x.PreparedStatementsPooling
	}
	return nil
}

func (x *UserSettings) GetCatchupTimeout() *wrapperspb.Int64Value {
	if x != nil {
		return x.CatchupTimeout
	}
	return nil
}

func (x *UserSettings) GetWalSenderTimeout() *wrapperspb.Int64Value {
	if x != nil {
		return x.WalSenderTimeout
	}
	return nil
}

func (x *UserSettings) GetIdleInTransactionSessionTimeout() *wrapperspb.Int64Value {
	if x != nil {
		return x.IdleInTransactionSessionTimeout
	}
	return nil
}

func (x *UserSettings) GetStatementTimeout() *wrapperspb.Int64Value {
	if x != nil {
		return x.StatementTimeout
	}
	return nil
}

func (x *UserSettings) GetPgaudit() *PGAuditSettings {
	if x != nil {
		return x.Pgaudit
	}
	return nil
}

func (x *UserSettings) GetIdleSessionTimeout() *wrapperspb.Int64Value {
	if x != nil {
		return x.IdleSessionTimeout
	}
	return nil
}

var File_yandex_cloud_mdb_postgresql_v1_user_proto protoreflect.FileDescriptor

const file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDesc = "" +
	"\n" +
	")yandex/cloud/mdb/postgresql/v1/user.proto\x12\x1eyandex.cloud.mdb.postgresql.v1\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1dyandex/cloud/validation.proto\"\xc3\x05\n" +
	"\x04User\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12\x1d\n" +
	"\n" +
	"cluster_id\x18\x02 \x01(\tR\tclusterId\x12L\n" +
	"\vpermissions\x18\x03 \x03(\v2*.yandex.cloud.mdb.postgresql.v1.PermissionR\vpermissions\x12\x1d\n" +
	"\n" +
	"conn_limit\x18\x04 \x01(\x03R\tconnLimit\x12H\n" +
	"\bsettings\x18\x05 \x01(\v2,.yandex.cloud.mdb.postgresql.v1.UserSettingsR\bsettings\x120\n" +
	"\x05login\x18\x06 \x01(\v2\x1a.google.protobuf.BoolValueR\x05login\x121\n" +
	"\x06grants\x18\a \x03(\tB\x19\xf2\xc71\r[a-zA-Z0-9_]*\x8a\xc81\x04<=63R\x06grants\x12K\n" +
	"\x13deletion_protection\x18\b \x01(\v2\x1a.google.protobuf.BoolValueR\x12deletionProtection\x12p\n" +
	"\x18user_password_encryption\x18\t \x01(\x0e26.yandex.cloud.mdb.postgresql.v1.UserPasswordEncryptionR\x16userPasswordEncryption\x12`\n" +
	"\x12connection_manager\x18\n" +
	" \x01(\v21.yandex.cloud.mdb.postgresql.v1.ConnectionManagerR\x11connectionManager\x12K\n" +
	"\vauth_method\x18\v \x01(\x0e2*.yandex.cloud.mdb.postgresql.v1.AuthMethodR\n" +
	"authMethod\"1\n" +
	"\n" +
	"Permission\x12#\n" +
	"\rdatabase_name\x18\x01 \x01(\tR\fdatabaseName\"8\n" +
	"\x11ConnectionManager\x12#\n" +
	"\rconnection_id\x18\x01 \x01(\tR\fconnectionId\"\x83\x06\n" +
	"\bUserSpec\x124\n" +
	"\x04name\x18\x01 \x01(\tB \xe8\xc71\x01\xf2\xc71\x10[a-zA-Z0-9_@.-]*\x8a\xc81\x04<=63R\x04name\x12)\n" +
	"\bpassword\x18\x02 \x01(\tB\r\xe8\xc71\x01\x8a\xc81\x058-128R\bpassword\x12L\n" +
	"\vpermissions\x18\x03 \x03(\v2*.yandex.cloud.mdb.postgresql.v1.PermissionR\vpermissions\x12D\n" +
	"\n" +
	"conn_limit\x18\x04 \x01(\v2\x1b.google.protobuf.Int64ValueB\b\xfa\xc71\x04>=10R\tconnLimit\x12H\n" +
	"\bsettings\x18\x05 \x01(\v2,.yandex.cloud.mdb.postgresql.v1.UserSettingsR\bsettings\x120\n" +
	"\x05login\x18\x06 \x01(\v2\x1a.google.protobuf.BoolValueR\x05login\x121\n" +
	"\x06grants\x18\a \x03(\tB\x19\xf2\xc71\r[a-zA-Z0-9_]*\x8a\xc81\x04<=63R\x06grants\x12K\n" +
	"\x13deletion_protection\x18\b \x01(\v2\x1a.google.protobuf.BoolValueR\x12deletionProtection\x12p\n" +
	"\x18user_password_encryption\x18\t \x01(\x0e26.yandex.cloud.mdb.postgresql.v1.UserPasswordEncryptionR\x16userPasswordEncryption\x12G\n" +
	"\x11generate_password\x18\n" +
	" \x01(\v2\x1a.google.protobuf.BoolValueR\x10generatePassword\x12K\n" +
	"\vauth_method\x18\v \x01(\x0e2*.yandex.cloud.mdb.postgresql.v1.AuthMethodR\n" +
	"authMethod\"\x8d\x03\n" +
	"\x0fPGAuditSettings\x12T\n" +
	"\x03log\x18\x01 \x03(\x0e2B.yandex.cloud.mdb.postgresql.v1.PGAuditSettings.PGAuditSettingsLogR\x03log\"\xa3\x02\n" +
	"\x12PGAuditSettingsLog\x12%\n" +
	"!PG_AUDIT_SETTINGS_LOG_UNSPECIFIED\x10\x00\x12\x1e\n" +
	"\x1aPG_AUDIT_SETTINGS_LOG_READ\x10\x01\x12\x1f\n" +
	"\x1bPG_AUDIT_SETTINGS_LOG_WRITE\x10\x02\x12\"\n" +
	"\x1ePG_AUDIT_SETTINGS_LOG_FUNCTION\x10\x03\x12\x1e\n" +
	"\x1aPG_AUDIT_SETTINGS_LOG_ROLE\x10\x04\x12\x1d\n" +
	"\x19PG_AUDIT_SETTINGS_LOG_DDL\x10\x05\x12\x1e\n" +
	"\x1aPG_AUDIT_SETTINGS_LOG_MISC\x10\x06\x12\"\n" +
	"\x1ePG_AUDIT_SETTINGS_LOG_MISC_SET\x10\a\"\xa4\x0f\n" +
	"\fUserSettings\x12\x85\x01\n" +
	"\x1ddefault_transaction_isolation\x18\x01 \x01(\x0e2A.yandex.cloud.mdb.postgresql.v1.UserSettings.TransactionIsolationR\x1bdefaultTransactionIsolation\x12>\n" +
	"\flock_timeout\x18\x02 \x01(\v2\x1b.google.protobuf.Int64ValueR\vlockTimeout\x12X\n" +
	"\x1alog_min_duration_statement\x18\x03 \x01(\v2\x1b.google.protobuf.Int64ValueR\x17logMinDurationStatement\x12m\n" +
	"\x12synchronous_commit\x18\x04 \x01(\x0e2>.yandex.cloud.mdb.postgresql.v1.UserSettings.SynchronousCommitR\x11synchronousCommit\x12C\n" +
	"\x0ftemp_file_limit\x18\x05 \x01(\v2\x1b.google.protobuf.Int64ValueR\rtempFileLimit\x12^\n" +
	"\rlog_statement\x18\x06 \x01(\x0e29.yandex.cloud.mdb.postgresql.v1.UserSettings.LogStatementR\flogStatement\x12U\n" +
	"\tpool_mode\x18\a \x01(\x0e28.yandex.cloud.mdb.postgresql.v1.UserSettings.PoolingModeR\bpoolMode\x12Z\n" +
	"\x1bprepared_statements_pooling\x18\b \x01(\v2\x1a.google.protobuf.BoolValueR\x19preparedStatementsPooling\x12D\n" +
	"\x0fcatchup_timeout\x18\t \x01(\v2\x1b.google.protobuf.Int64ValueR\x0ecatchupTimeout\x12I\n" +
	"\x12wal_sender_timeout\x18\n" +
	" \x01(\v2\x1b.google.protobuf.Int64ValueR\x10walSenderTimeout\x12{\n" +
	"#idle_in_transaction_session_timeout\x18\v \x01(\v2\x1b.google.protobuf.Int64ValueB\x10\xfa\xc71\f0-2147483647R\x1fidleInTransactionSessionTimeout\x12H\n" +
	"\x11statement_timeout\x18\f \x01(\v2\x1b.google.protobuf.Int64ValueR\x10statementTimeout\x12I\n" +
	"\apgaudit\x18\r \x01(\v2/.yandex.cloud.mdb.postgresql.v1.PGAuditSettingsR\apgaudit\x12_\n" +
	"\x14idle_session_timeout\x18\x0e \x01(\v2\x1b.google.protobuf.Int64ValueB\x10\xfa\xc71\f0-2147483647R\x12idleSessionTimeout\"\xd6\x01\n" +
	"\x11SynchronousCommit\x12\"\n" +
	"\x1eSYNCHRONOUS_COMMIT_UNSPECIFIED\x10\x00\x12\x19\n" +
	"\x15SYNCHRONOUS_COMMIT_ON\x10\x01\x12\x1a\n" +
	"\x16SYNCHRONOUS_COMMIT_OFF\x10\x02\x12\x1c\n" +
	"\x18SYNCHRONOUS_COMMIT_LOCAL\x10\x03\x12#\n" +
	"\x1fSYNCHRONOUS_COMMIT_REMOTE_WRITE\x10\x04\x12#\n" +
	"\x1fSYNCHRONOUS_COMMIT_REMOTE_APPLY\x10\x05\"\x8a\x01\n" +
	"\fLogStatement\x12\x1d\n" +
	"\x19LOG_STATEMENT_UNSPECIFIED\x10\x00\x12\x16\n" +
	"\x12LOG_STATEMENT_NONE\x10\x01\x12\x15\n" +
	"\x11LOG_STATEMENT_DDL\x10\x02\x12\x15\n" +
	"\x11LOG_STATEMENT_MOD\x10\x03\x12\x15\n" +
	"\x11LOG_STATEMENT_ALL\x10\x04\"\xe6\x01\n" +
	"\x14TransactionIsolation\x12%\n" +
	"!TRANSACTION_ISOLATION_UNSPECIFIED\x10\x00\x12*\n" +
	"&TRANSACTION_ISOLATION_READ_UNCOMMITTED\x10\x01\x12(\n" +
	"$TRANSACTION_ISOLATION_READ_COMMITTED\x10\x02\x12)\n" +
	"%TRANSACTION_ISOLATION_REPEATABLE_READ\x10\x03\x12&\n" +
	"\"TRANSACTION_ISOLATION_SERIALIZABLE\x10\x04\"X\n" +
	"\vPoolingMode\x12\x1c\n" +
	"\x18POOLING_MODE_UNSPECIFIED\x10\x00\x12\v\n" +
	"\aSESSION\x10\x01\x12\x0f\n" +
	"\vTRANSACTION\x10\x02\x12\r\n" +
	"\tSTATEMENT\x10\x03*X\n" +
	"\n" +
	"AuthMethod\x12\x1b\n" +
	"\x17AUTH_METHOD_UNSPECIFIED\x10\x00\x12\x18\n" +
	"\x14AUTH_METHOD_PASSWORD\x10\x01\x12\x13\n" +
	"\x0fAUTH_METHOD_IAM\x10\x02*\x90\x01\n" +
	"\x16UserPasswordEncryption\x12(\n" +
	"$USER_PASSWORD_ENCRYPTION_UNSPECIFIED\x10\x00\x12 \n" +
	"\x1cUSER_PASSWORD_ENCRYPTION_MD5\x10\x01\x12*\n" +
	"&USER_PASSWORD_ENCRYPTION_SCRAM_SHA_256\x10\x02Bs\n" +
	"\"yandex.cloud.api.mdb.postgresql.v1ZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1;postgresqlb\x06proto3"

var (
	file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDescOnce sync.Once
	file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDescData []byte
)

func file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDescGZIP() []byte {
	file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDesc), len(file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDesc)))
	})
	return file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDescData
}

var file_yandex_cloud_mdb_postgresql_v1_user_proto_enumTypes = make([]protoimpl.EnumInfo, 7)
var file_yandex_cloud_mdb_postgresql_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_yandex_cloud_mdb_postgresql_v1_user_proto_goTypes = []any{
	(AuthMethod)(0),                         // 0: yandex.cloud.mdb.postgresql.v1.AuthMethod
	(UserPasswordEncryption)(0),             // 1: yandex.cloud.mdb.postgresql.v1.UserPasswordEncryption
	(PGAuditSettings_PGAuditSettingsLog)(0), // 2: yandex.cloud.mdb.postgresql.v1.PGAuditSettings.PGAuditSettingsLog
	(UserSettings_SynchronousCommit)(0),     // 3: yandex.cloud.mdb.postgresql.v1.UserSettings.SynchronousCommit
	(UserSettings_LogStatement)(0),          // 4: yandex.cloud.mdb.postgresql.v1.UserSettings.LogStatement
	(UserSettings_TransactionIsolation)(0),  // 5: yandex.cloud.mdb.postgresql.v1.UserSettings.TransactionIsolation
	(UserSettings_PoolingMode)(0),           // 6: yandex.cloud.mdb.postgresql.v1.UserSettings.PoolingMode
	(*User)(nil),                            // 7: yandex.cloud.mdb.postgresql.v1.User
	(*Permission)(nil),                      // 8: yandex.cloud.mdb.postgresql.v1.Permission
	(*ConnectionManager)(nil),               // 9: yandex.cloud.mdb.postgresql.v1.ConnectionManager
	(*UserSpec)(nil),                        // 10: yandex.cloud.mdb.postgresql.v1.UserSpec
	(*PGAuditSettings)(nil),                 // 11: yandex.cloud.mdb.postgresql.v1.PGAuditSettings
	(*UserSettings)(nil),                    // 12: yandex.cloud.mdb.postgresql.v1.UserSettings
	(*wrapperspb.BoolValue)(nil),            // 13: google.protobuf.BoolValue
	(*wrapperspb.Int64Value)(nil),           // 14: google.protobuf.Int64Value
}
var file_yandex_cloud_mdb_postgresql_v1_user_proto_depIdxs = []int32{
	8,  // 0: yandex.cloud.mdb.postgresql.v1.User.permissions:type_name -> yandex.cloud.mdb.postgresql.v1.Permission
	12, // 1: yandex.cloud.mdb.postgresql.v1.User.settings:type_name -> yandex.cloud.mdb.postgresql.v1.UserSettings
	13, // 2: yandex.cloud.mdb.postgresql.v1.User.login:type_name -> google.protobuf.BoolValue
	13, // 3: yandex.cloud.mdb.postgresql.v1.User.deletion_protection:type_name -> google.protobuf.BoolValue
	1,  // 4: yandex.cloud.mdb.postgresql.v1.User.user_password_encryption:type_name -> yandex.cloud.mdb.postgresql.v1.UserPasswordEncryption
	9,  // 5: yandex.cloud.mdb.postgresql.v1.User.connection_manager:type_name -> yandex.cloud.mdb.postgresql.v1.ConnectionManager
	0,  // 6: yandex.cloud.mdb.postgresql.v1.User.auth_method:type_name -> yandex.cloud.mdb.postgresql.v1.AuthMethod
	8,  // 7: yandex.cloud.mdb.postgresql.v1.UserSpec.permissions:type_name -> yandex.cloud.mdb.postgresql.v1.Permission
	14, // 8: yandex.cloud.mdb.postgresql.v1.UserSpec.conn_limit:type_name -> google.protobuf.Int64Value
	12, // 9: yandex.cloud.mdb.postgresql.v1.UserSpec.settings:type_name -> yandex.cloud.mdb.postgresql.v1.UserSettings
	13, // 10: yandex.cloud.mdb.postgresql.v1.UserSpec.login:type_name -> google.protobuf.BoolValue
	13, // 11: yandex.cloud.mdb.postgresql.v1.UserSpec.deletion_protection:type_name -> google.protobuf.BoolValue
	1,  // 12: yandex.cloud.mdb.postgresql.v1.UserSpec.user_password_encryption:type_name -> yandex.cloud.mdb.postgresql.v1.UserPasswordEncryption
	13, // 13: yandex.cloud.mdb.postgresql.v1.UserSpec.generate_password:type_name -> google.protobuf.BoolValue
	0,  // 14: yandex.cloud.mdb.postgresql.v1.UserSpec.auth_method:type_name -> yandex.cloud.mdb.postgresql.v1.AuthMethod
	2,  // 15: yandex.cloud.mdb.postgresql.v1.PGAuditSettings.log:type_name -> yandex.cloud.mdb.postgresql.v1.PGAuditSettings.PGAuditSettingsLog
	5,  // 16: yandex.cloud.mdb.postgresql.v1.UserSettings.default_transaction_isolation:type_name -> yandex.cloud.mdb.postgresql.v1.UserSettings.TransactionIsolation
	14, // 17: yandex.cloud.mdb.postgresql.v1.UserSettings.lock_timeout:type_name -> google.protobuf.Int64Value
	14, // 18: yandex.cloud.mdb.postgresql.v1.UserSettings.log_min_duration_statement:type_name -> google.protobuf.Int64Value
	3,  // 19: yandex.cloud.mdb.postgresql.v1.UserSettings.synchronous_commit:type_name -> yandex.cloud.mdb.postgresql.v1.UserSettings.SynchronousCommit
	14, // 20: yandex.cloud.mdb.postgresql.v1.UserSettings.temp_file_limit:type_name -> google.protobuf.Int64Value
	4,  // 21: yandex.cloud.mdb.postgresql.v1.UserSettings.log_statement:type_name -> yandex.cloud.mdb.postgresql.v1.UserSettings.LogStatement
	6,  // 22: yandex.cloud.mdb.postgresql.v1.UserSettings.pool_mode:type_name -> yandex.cloud.mdb.postgresql.v1.UserSettings.PoolingMode
	13, // 23: yandex.cloud.mdb.postgresql.v1.UserSettings.prepared_statements_pooling:type_name -> google.protobuf.BoolValue
	14, // 24: yandex.cloud.mdb.postgresql.v1.UserSettings.catchup_timeout:type_name -> google.protobuf.Int64Value
	14, // 25: yandex.cloud.mdb.postgresql.v1.UserSettings.wal_sender_timeout:type_name -> google.protobuf.Int64Value
	14, // 26: yandex.cloud.mdb.postgresql.v1.UserSettings.idle_in_transaction_session_timeout:type_name -> google.protobuf.Int64Value
	14, // 27: yandex.cloud.mdb.postgresql.v1.UserSettings.statement_timeout:type_name -> google.protobuf.Int64Value
	11, // 28: yandex.cloud.mdb.postgresql.v1.UserSettings.pgaudit:type_name -> yandex.cloud.mdb.postgresql.v1.PGAuditSettings
	14, // 29: yandex.cloud.mdb.postgresql.v1.UserSettings.idle_session_timeout:type_name -> google.protobuf.Int64Value
	30, // [30:30] is the sub-list for method output_type
	30, // [30:30] is the sub-list for method input_type
	30, // [30:30] is the sub-list for extension type_name
	30, // [30:30] is the sub-list for extension extendee
	0,  // [0:30] is the sub-list for field type_name
}

func init() { file_yandex_cloud_mdb_postgresql_v1_user_proto_init() }
func file_yandex_cloud_mdb_postgresql_v1_user_proto_init() {
	if File_yandex_cloud_mdb_postgresql_v1_user_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDesc), len(file_yandex_cloud_mdb_postgresql_v1_user_proto_rawDesc)),
			NumEnums:      7,
			NumMessages:   6,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_mdb_postgresql_v1_user_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_mdb_postgresql_v1_user_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_mdb_postgresql_v1_user_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_mdb_postgresql_v1_user_proto_msgTypes,
	}.Build()
	File_yandex_cloud_mdb_postgresql_v1_user_proto = out.File
	file_yandex_cloud_mdb_postgresql_v1_user_proto_goTypes = nil
	file_yandex_cloud_mdb_postgresql_v1_user_proto_depIdxs = nil
}
