// Code generated by protoc-gen-goext. DO NOT EDIT.

package connectionmanager

import (
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
)

type ConnectionParams_Type = isConnectionParams_Type

func (m *ConnectionParams) SetType(v ConnectionParams_Type) {
	m.Type = v
}

func (m *ConnectionParams) SetPostgresql(v *PostgreSQLConnection) {
	m.Type = &ConnectionParams_Postgresql{
		Postgresql: v,
	}
}

func (m *ConnectionParams) SetMysql(v *MySQLConnection) {
	m.Type = &ConnectionParams_Mysql{
		Mysql: v,
	}
}

func (m *ConnectionParams) SetMongodb(v *MongoDBConnection) {
	m.Type = &ConnectionParams_Mongodb{
		Mongodb: v,
	}
}

func (m *ConnectionParams) SetClickhouse(v *ClickHouseConnection) {
	m.Type = &ConnectionParams_Clickhouse{
		Clickhouse: v,
	}
}

func (m *ConnectionParams) SetKafka(v *KafkaConnection) {
	m.Type = &ConnectionParams_Kafka{
		Kafka: v,
	}
}

func (m *ConnectionParams) SetRedis(v *RedisConnection) {
	m.Type = &ConnectionParams_Redis{
		Redis: v,
	}
}

func (m *ConnectionParams) SetOpensearch(v *OpenSearchConnection) {
	m.Type = &ConnectionParams_Opensearch{
		Opensearch: v,
	}
}

func (m *ConnectionParams) SetTrino(v *TrinoConnection) {
	m.Type = &ConnectionParams_Trino{
		Trino: v,
	}
}

func (m *ConnectionParams) SetValkey(v *ValkeyConnection) {
	m.Type = &ConnectionParams_Valkey{
		Valkey: v,
	}
}

func (m *ConnectionParams) SetGreenplum(v *GreenplumConnection) {
	m.Type = &ConnectionParams_Greenplum{
		Greenplum: v,
	}
}

func (m *ConnectionParams) SetStoredoc(v *StoreDocConnection) {
	m.Type = &ConnectionParams_Storedoc{
		Storedoc: v,
	}
}

func (m *LockboxSecret) SetId(v string) {
	m.Id = v
}

func (m *LockboxSecret) SetVersion(v string) {
	m.Version = v
}

func (m *LockboxSecret) SetNewestVersion(v string) {
	m.NewestVersion = v
}

type Connection_Secret = isConnection_Secret

func (m *Connection) SetSecret(v Connection_Secret) {
	m.Secret = v
}

func (m *Connection) SetId(v string) {
	m.Id = v
}

func (m *Connection) SetFolderId(v string) {
	m.FolderId = v
}

func (m *Connection) SetCreatedAt(v *timestamppb.Timestamp) {
	m.CreatedAt = v
}

func (m *Connection) SetUpdatedAt(v *timestamppb.Timestamp) {
	m.UpdatedAt = v
}

func (m *Connection) SetName(v string) {
	m.Name = v
}

func (m *Connection) SetDescription(v string) {
	m.Description = v
}

func (m *Connection) SetLabels(v map[string]string) {
	m.Labels = v
}

func (m *Connection) SetCreatedBy(v string) {
	m.CreatedBy = v
}

func (m *Connection) SetParams(v *ConnectionParams) {
	m.Params = v
}

func (m *Connection) SetLockboxSecret(v *LockboxSecret) {
	m.Secret = &Connection_LockboxSecret{
		LockboxSecret: v,
	}
}

func (m *Connection) SetIsManaged(v bool) {
	m.IsManaged = v
}

func (m *Connection) SetCanUse(v *wrapperspb.BoolValue) {
	m.CanUse = v
}
