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

package postgresql

import (
	timestamp "github.com/golang/protobuf/ptypes/timestamp"
	wrappers "github.com/golang/protobuf/ptypes/wrappers"
	config "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config"
	timeofday "google.golang.org/genproto/googleapis/type/timeofday"
)

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

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

func (m *Cluster) SetCreatedAt(v *timestamp.Timestamp) {
	m.CreatedAt = v
}

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

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

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

func (m *Cluster) SetEnvironment(v Cluster_Environment) {
	m.Environment = v
}

func (m *Cluster) SetMonitoring(v []*Monitoring) {
	m.Monitoring = v
}

func (m *Cluster) SetConfig(v *ClusterConfig) {
	m.Config = v
}

func (m *Cluster) SetNetworkId(v string) {
	m.NetworkId = v
}

func (m *Cluster) SetHealth(v Cluster_Health) {
	m.Health = v
}

func (m *Cluster) SetStatus(v Cluster_Status) {
	m.Status = v
}

func (m *Cluster) SetMaintenanceWindow(v *MaintenanceWindow) {
	m.MaintenanceWindow = v
}

func (m *Cluster) SetPlannedOperation(v *MaintenanceOperation) {
	m.PlannedOperation = v
}

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

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

func (m *Monitoring) SetLink(v string) {
	m.Link = v
}

type ClusterConfig_PostgresqlConfig = isClusterConfig_PostgresqlConfig

func (m *ClusterConfig) SetPostgresqlConfig(v ClusterConfig_PostgresqlConfig) {
	m.PostgresqlConfig = v
}

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

func (m *ClusterConfig) SetPostgresqlConfig_9_6(v *config.PostgresqlConfigSet9_6) {
	m.PostgresqlConfig = &ClusterConfig_PostgresqlConfig_9_6{
		PostgresqlConfig_9_6: v,
	}
}

func (m *ClusterConfig) SetPostgresqlConfig_10_1C(v *config.PostgresqlConfigSet10_1C) {
	m.PostgresqlConfig = &ClusterConfig_PostgresqlConfig_10_1C{
		PostgresqlConfig_10_1C: v,
	}
}

func (m *ClusterConfig) SetPostgresqlConfig_10(v *config.PostgresqlConfigSet10) {
	m.PostgresqlConfig = &ClusterConfig_PostgresqlConfig_10{
		PostgresqlConfig_10: v,
	}
}

func (m *ClusterConfig) SetPostgresqlConfig_11(v *config.PostgresqlConfigSet11) {
	m.PostgresqlConfig = &ClusterConfig_PostgresqlConfig_11{
		PostgresqlConfig_11: v,
	}
}

func (m *ClusterConfig) SetPostgresqlConfig_12(v *config.PostgresqlConfigSet12) {
	m.PostgresqlConfig = &ClusterConfig_PostgresqlConfig_12{
		PostgresqlConfig_12: v,
	}
}

func (m *ClusterConfig) SetPoolerConfig(v *ConnectionPoolerConfig) {
	m.PoolerConfig = v
}

func (m *ClusterConfig) SetResources(v *Resources) {
	m.Resources = v
}

func (m *ClusterConfig) SetAutofailover(v *wrappers.BoolValue) {
	m.Autofailover = v
}

func (m *ClusterConfig) SetBackupWindowStart(v *timeofday.TimeOfDay) {
	m.BackupWindowStart = v
}

func (m *ClusterConfig) SetAccess(v *Access) {
	m.Access = v
}

func (m *ClusterConfig) SetPerformanceDiagnostics(v *PerformanceDiagnostics) {
	m.PerformanceDiagnostics = v
}

func (m *ConnectionPoolerConfig) SetPoolingMode(v ConnectionPoolerConfig_PoolingMode) {
	m.PoolingMode = v
}

func (m *ConnectionPoolerConfig) SetPoolDiscard(v *wrappers.BoolValue) {
	m.PoolDiscard = v
}

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

func (m *Host) SetClusterId(v string) {
	m.ClusterId = v
}

func (m *Host) SetZoneId(v string) {
	m.ZoneId = v
}

func (m *Host) SetResources(v *Resources) {
	m.Resources = v
}

func (m *Host) SetRole(v Host_Role) {
	m.Role = v
}

func (m *Host) SetHealth(v Host_Health) {
	m.Health = v
}

func (m *Host) SetServices(v []*Service) {
	m.Services = v
}

func (m *Host) SetSubnetId(v string) {
	m.SubnetId = v
}

func (m *Host) SetReplicationSource(v string) {
	m.ReplicationSource = v
}

func (m *Host) SetPriority(v *wrappers.Int64Value) {
	m.Priority = v
}

func (m *Host) SetConfig(v *HostConfig) {
	m.Config = v
}

func (m *Host) SetAssignPublicIp(v bool) {
	m.AssignPublicIp = v
}

func (m *Host) SetReplicaType(v Host_ReplicaType) {
	m.ReplicaType = v
}

type HostConfig_PostgresqlConfig = isHostConfig_PostgresqlConfig

func (m *HostConfig) SetPostgresqlConfig(v HostConfig_PostgresqlConfig) {
	m.PostgresqlConfig = v
}

func (m *HostConfig) SetPostgresqlConfig_9_6(v *config.PostgresqlHostConfig9_6) {
	m.PostgresqlConfig = &HostConfig_PostgresqlConfig_9_6{
		PostgresqlConfig_9_6: v,
	}
}

func (m *HostConfig) SetPostgresqlConfig_10_1C(v *config.PostgresqlHostConfig10_1C) {
	m.PostgresqlConfig = &HostConfig_PostgresqlConfig_10_1C{
		PostgresqlConfig_10_1C: v,
	}
}

func (m *HostConfig) SetPostgresqlConfig_10(v *config.PostgresqlHostConfig10) {
	m.PostgresqlConfig = &HostConfig_PostgresqlConfig_10{
		PostgresqlConfig_10: v,
	}
}

func (m *HostConfig) SetPostgresqlConfig_11(v *config.PostgresqlHostConfig11) {
	m.PostgresqlConfig = &HostConfig_PostgresqlConfig_11{
		PostgresqlConfig_11: v,
	}
}

func (m *HostConfig) SetPostgresqlConfig_12(v *config.PostgresqlHostConfig12) {
	m.PostgresqlConfig = &HostConfig_PostgresqlConfig_12{
		PostgresqlConfig_12: v,
	}
}

func (m *Service) SetType(v Service_Type) {
	m.Type = v
}

func (m *Service) SetHealth(v Service_Health) {
	m.Health = v
}

func (m *Resources) SetResourcePresetId(v string) {
	m.ResourcePresetId = v
}

func (m *Resources) SetDiskSize(v int64) {
	m.DiskSize = v
}

func (m *Resources) SetDiskTypeId(v string) {
	m.DiskTypeId = v
}

func (m *Access) SetDataLens(v bool) {
	m.DataLens = v
}

func (m *PerformanceDiagnostics) SetEnabled(v bool) {
	m.Enabled = v
}

func (m *PerformanceDiagnostics) SetSessionsSamplingInterval(v int64) {
	m.SessionsSamplingInterval = v
}

func (m *PerformanceDiagnostics) SetStatementsSamplingInterval(v int64) {
	m.StatementsSamplingInterval = v
}
