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

package postgresql

import (
	v1 "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/operationlog/v1"
	config "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1/config"
	operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation"
	timeofday "google.golang.org/genproto/googleapis/type/timeofday"
	fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
)

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

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

func (m *ListClustersRequest) SetPageSize(v int64) {
	m.PageSize = v
}

func (m *ListClustersRequest) SetPageToken(v string) {
	m.PageToken = v
}

func (m *ListClustersRequest) SetFilter(v string) {
	m.Filter = v
}

func (m *ListClustersResponse) SetClusters(v []*Cluster) {
	m.Clusters = v
}

func (m *ListClustersResponse) SetNextPageToken(v string) {
	m.NextPageToken = v
}

func (m *BackupRetentionPolicySpec) SetPolicyName(v string) {
	m.PolicyName = v
}

func (m *BackupRetentionPolicySpec) SetCron(v *CronTab) {
	m.Cron = v
}

func (m *BackupRetentionPolicySpec) SetRetainForDays(v int64) {
	m.RetainForDays = v
}

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

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

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

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

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

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

func (m *CreateClusterRequest) SetConfigSpec(v *ConfigSpec) {
	m.ConfigSpec = v
}

func (m *CreateClusterRequest) SetDatabaseSpecs(v []*DatabaseSpec) {
	m.DatabaseSpecs = v
}

func (m *CreateClusterRequest) SetUserSpecs(v []*UserSpec) {
	m.UserSpecs = v
}

func (m *CreateClusterRequest) SetHostSpecs(v []*HostSpec) {
	m.HostSpecs = v
}

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

func (m *CreateClusterRequest) SetSecurityGroupIds(v []string) {
	m.SecurityGroupIds = v
}

func (m *CreateClusterRequest) SetDeletionProtection(v bool) {
	m.DeletionProtection = v
}

func (m *CreateClusterRequest) SetHostGroupIds(v []string) {
	m.HostGroupIds = v
}

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

func (m *CreateClusterRequest) SetRetentionPolicies(v []*BackupRetentionPolicySpec) {
	m.RetentionPolicies = v
}

func (m *CreateClusterRequest) SetDiskEncryptionKeyId(v *wrapperspb.StringValue) {
	m.DiskEncryptionKeyId = v
}

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

func (m *CreateClusterMetadata) SetOperationLog(v *v1.OperationLog) {
	m.OperationLog = v
}

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

func (m *UpdateClusterRequest) SetUpdateMask(v *fieldmaskpb.FieldMask) {
	m.UpdateMask = v
}

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

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

func (m *UpdateClusterRequest) SetConfigSpec(v *ConfigSpec) {
	m.ConfigSpec = v
}

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

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

func (m *UpdateClusterRequest) SetSecurityGroupIds(v []string) {
	m.SecurityGroupIds = v
}

func (m *UpdateClusterRequest) SetDeletionProtection(v bool) {
	m.DeletionProtection = v
}

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

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

func (m *UpdateClusterMetadata) SetOperationLog(v *v1.OperationLog) {
	m.OperationLog = v
}

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

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

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

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

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

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

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

func (m *MoveClusterRequest) SetDestinationFolderId(v string) {
	m.DestinationFolderId = v
}

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

func (m *MoveClusterMetadata) SetSourceFolderId(v string) {
	m.SourceFolderId = v
}

func (m *MoveClusterMetadata) SetDestinationFolderId(v string) {
	m.DestinationFolderId = v
}

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

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

func (m *BackupClusterMetadata) SetBackupId(v string) {
	m.BackupId = v
}

func (m *RestoreClusterRequest) SetBackupId(v string) {
	m.BackupId = v
}

func (m *RestoreClusterRequest) SetTime(v *timestamppb.Timestamp) {
	m.Time = v
}

func (m *RestoreClusterRequest) SetTimeInclusive(v bool) {
	m.TimeInclusive = v
}

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

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

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

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

func (m *RestoreClusterRequest) SetConfigSpec(v *ConfigSpec) {
	m.ConfigSpec = v
}

func (m *RestoreClusterRequest) SetHostSpecs(v []*HostSpec) {
	m.HostSpecs = v
}

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

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

func (m *RestoreClusterRequest) SetSecurityGroupIds(v []string) {
	m.SecurityGroupIds = v
}

func (m *RestoreClusterRequest) SetDeletionProtection(v bool) {
	m.DeletionProtection = v
}

func (m *RestoreClusterRequest) SetHostGroupIds(v []string) {
	m.HostGroupIds = v
}

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

func (m *RestoreClusterRequest) SetDiskEncryptionKeyId(v *wrapperspb.StringValue) {
	m.DiskEncryptionKeyId = v
}

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

func (m *RestoreClusterMetadata) SetBackupId(v string) {
	m.BackupId = v
}

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

func (m *StartClusterFailoverRequest) SetHostName(v string) {
	m.HostName = v
}

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

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

func (m *RescheduleMaintenanceRequest) SetRescheduleType(v RescheduleMaintenanceRequest_RescheduleType) {
	m.RescheduleType = v
}

func (m *RescheduleMaintenanceRequest) SetDelayedUntil(v *timestamppb.Timestamp) {
	m.DelayedUntil = v
}

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

func (m *RescheduleMaintenanceMetadata) SetDelayedUntil(v *timestamppb.Timestamp) {
	m.DelayedUntil = v
}

func (m *LogRecord) SetTimestamp(v *timestamppb.Timestamp) {
	m.Timestamp = v
}

func (m *LogRecord) SetMessage(v map[string]string) {
	m.Message = v
}

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

func (m *ListClusterLogsRequest) SetColumnFilter(v []string) {
	m.ColumnFilter = v
}

func (m *ListClusterLogsRequest) SetServiceType(v ListClusterLogsRequest_ServiceType) {
	m.ServiceType = v
}

func (m *ListClusterLogsRequest) SetFromTime(v *timestamppb.Timestamp) {
	m.FromTime = v
}

func (m *ListClusterLogsRequest) SetToTime(v *timestamppb.Timestamp) {
	m.ToTime = v
}

func (m *ListClusterLogsRequest) SetPageSize(v int64) {
	m.PageSize = v
}

func (m *ListClusterLogsRequest) SetPageToken(v string) {
	m.PageToken = v
}

func (m *ListClusterLogsRequest) SetAlwaysNextPageToken(v bool) {
	m.AlwaysNextPageToken = v
}

func (m *ListClusterLogsResponse) SetLogs(v []*LogRecord) {
	m.Logs = v
}

func (m *ListClusterLogsResponse) SetNextPageToken(v string) {
	m.NextPageToken = v
}

func (m *StreamLogRecord) SetRecord(v *LogRecord) {
	m.Record = v
}

func (m *StreamLogRecord) SetNextRecordToken(v string) {
	m.NextRecordToken = v
}

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

func (m *StreamClusterLogsRequest) SetColumnFilter(v []string) {
	m.ColumnFilter = v
}

func (m *StreamClusterLogsRequest) SetServiceType(v StreamClusterLogsRequest_ServiceType) {
	m.ServiceType = v
}

func (m *StreamClusterLogsRequest) SetFromTime(v *timestamppb.Timestamp) {
	m.FromTime = v
}

func (m *StreamClusterLogsRequest) SetToTime(v *timestamppb.Timestamp) {
	m.ToTime = v
}

func (m *StreamClusterLogsRequest) SetRecordToken(v string) {
	m.RecordToken = v
}

func (m *StreamClusterLogsRequest) SetFilter(v string) {
	m.Filter = v
}

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

func (m *ListClusterOperationsRequest) SetPageSize(v int64) {
	m.PageSize = v
}

func (m *ListClusterOperationsRequest) SetPageToken(v string) {
	m.PageToken = v
}

func (m *ListClusterOperationsResponse) SetOperations(v []*operation.Operation) {
	m.Operations = v
}

func (m *ListClusterOperationsResponse) SetNextPageToken(v string) {
	m.NextPageToken = v
}

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

func (m *ListClusterBackupsRequest) SetPageSize(v int64) {
	m.PageSize = v
}

func (m *ListClusterBackupsRequest) SetPageToken(v string) {
	m.PageToken = v
}

func (m *ListClusterBackupsResponse) SetBackups(v []*Backup) {
	m.Backups = v
}

func (m *ListClusterBackupsResponse) SetNextPageToken(v string) {
	m.NextPageToken = v
}

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

func (m *ListClusterHostsRequest) SetPageSize(v int64) {
	m.PageSize = v
}

func (m *ListClusterHostsRequest) SetPageToken(v string) {
	m.PageToken = v
}

func (m *ListClusterHostsResponse) SetHosts(v []*Host) {
	m.Hosts = v
}

func (m *ListClusterHostsResponse) SetNextPageToken(v string) {
	m.NextPageToken = v
}

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

func (m *AddClusterHostsRequest) SetHostSpecs(v []*HostSpec) {
	m.HostSpecs = v
}

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

func (m *AddClusterHostsMetadata) SetHostNames(v []string) {
	m.HostNames = v
}

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

func (m *DeleteClusterHostsRequest) SetHostNames(v []string) {
	m.HostNames = v
}

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

func (m *DeleteClusterHostsMetadata) SetHostNames(v []string) {
	m.HostNames = v
}

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

func (m *UpdateClusterHostsRequest) SetUpdateHostSpecs(v []*UpdateHostSpec) {
	m.UpdateHostSpecs = v
}

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

func (m *UpdateClusterHostsMetadata) SetHostNames(v []string) {
	m.HostNames = v
}

func (m *UpdateHostSpec) SetHostName(v string) {
	m.HostName = v
}

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

func (m *UpdateHostSpec) SetPriority(v *wrapperspb.Int64Value) {
	m.Priority = v
}

func (m *UpdateHostSpec) SetConfigSpec(v *ConfigHostSpec) {
	m.ConfigSpec = v
}

func (m *UpdateHostSpec) SetUpdateMask(v *fieldmaskpb.FieldMask) {
	m.UpdateMask = v
}

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

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

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

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

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

func (m *HostSpec) SetPriority(v *wrapperspb.Int64Value) {
	m.Priority = v
}

func (m *HostSpec) SetConfigSpec(v *ConfigHostSpec) {
	m.ConfigSpec = v
}

type ConfigSpec_PostgresqlConfig = isConfigSpec_PostgresqlConfig

func (m *ConfigSpec) SetPostgresqlConfig(v ConfigSpec_PostgresqlConfig) {
	m.PostgresqlConfig = v
}

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

func (m *ConfigSpec) SetPostgresqlConfig_11(v *config.PostgresqlConfig11) {
	m.PostgresqlConfig = &ConfigSpec_PostgresqlConfig_11{
		PostgresqlConfig_11: v,
	}
}

func (m *ConfigSpec) SetPostgresqlConfig_12(v *config.PostgresqlConfig12) {
	m.PostgresqlConfig = &ConfigSpec_PostgresqlConfig_12{
		PostgresqlConfig_12: v,
	}
}

func (m *ConfigSpec) SetPostgresqlConfig_13(v *config.PostgresqlConfig13) {
	m.PostgresqlConfig = &ConfigSpec_PostgresqlConfig_13{
		PostgresqlConfig_13: v,
	}
}

func (m *ConfigSpec) SetPostgresqlConfig_13_1C(v *config.PostgresqlConfig13_1C) {
	m.PostgresqlConfig = &ConfigSpec_PostgresqlConfig_13_1C{
		PostgresqlConfig_13_1C: v,
	}
}

func (m *ConfigSpec) SetPostgresqlConfig_14(v *config.PostgresqlConfig14) {
	m.PostgresqlConfig = &ConfigSpec_PostgresqlConfig_14{
		PostgresqlConfig_14: v,
	}
}

func (m *ConfigSpec) SetPostgresqlConfig_14_1C(v *config.PostgresqlConfig14_1C) {
	m.PostgresqlConfig = &ConfigSpec_PostgresqlConfig_14_1C{
		PostgresqlConfig_14_1C: v,
	}
}

func (m *ConfigSpec) SetPostgresqlConfig_15(v *config.PostgresqlConfig15) {
	m.PostgresqlConfig = &ConfigSpec_PostgresqlConfig_15{
		PostgresqlConfig_15: v,
	}
}

func (m *ConfigSpec) SetPostgresqlConfig_15_1C(v *config.PostgresqlConfig15_1C) {
	m.PostgresqlConfig = &ConfigSpec_PostgresqlConfig_15_1C{
		PostgresqlConfig_15_1C: v,
	}
}

func (m *ConfigSpec) SetPostgresqlConfig_16(v *config.PostgresqlConfig16) {
	m.PostgresqlConfig = &ConfigSpec_PostgresqlConfig_16{
		PostgresqlConfig_16: v,
	}
}

func (m *ConfigSpec) SetPostgresqlConfig_16_1C(v *config.PostgresqlConfig16_1C) {
	m.PostgresqlConfig = &ConfigSpec_PostgresqlConfig_16_1C{
		PostgresqlConfig_16_1C: v,
	}
}

func (m *ConfigSpec) SetPostgresqlConfig_17(v *config.PostgresqlConfig17) {
	m.PostgresqlConfig = &ConfigSpec_PostgresqlConfig_17{
		PostgresqlConfig_17: v,
	}
}

func (m *ConfigSpec) SetPostgresqlConfig_17_1C(v *config.PostgresqlConfig17_1C) {
	m.PostgresqlConfig = &ConfigSpec_PostgresqlConfig_17_1C{
		PostgresqlConfig_17_1C: v,
	}
}

func (m *ConfigSpec) SetPostgresqlConfig_18(v *config.PostgresqlConfig18) {
	m.PostgresqlConfig = &ConfigSpec_PostgresqlConfig_18{
		PostgresqlConfig_18: v,
	}
}

func (m *ConfigSpec) SetPostgresqlConfig_18_1C(v *config.PostgresqlConfig18_1C) {
	m.PostgresqlConfig = &ConfigSpec_PostgresqlConfig_18_1C{
		PostgresqlConfig_18_1C: v,
	}
}

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

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

func (m *ConfigSpec) SetAutofailover(v *wrapperspb.BoolValue) {
	m.Autofailover = v
}

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

func (m *ConfigSpec) SetBackupRetainPeriodDays(v *wrapperspb.Int64Value) {
	m.BackupRetainPeriodDays = v
}

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

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

func (m *ConfigSpec) SetDiskSizeAutoscaling(v *DiskSizeAutoscaling) {
	m.DiskSizeAutoscaling = v
}

type ConfigHostSpec_PostgresqlConfig = isConfigHostSpec_PostgresqlConfig

func (m *ConfigHostSpec) SetPostgresqlConfig(v ConfigHostSpec_PostgresqlConfig) {
	m.PostgresqlConfig = v
}

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

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

func (m *ConfigHostSpec) SetPostgresqlConfig_13(v *config.PostgresqlHostConfig13) {
	m.PostgresqlConfig = &ConfigHostSpec_PostgresqlConfig_13{
		PostgresqlConfig_13: v,
	}
}

func (m *ConfigHostSpec) SetPostgresqlConfig_13_1C(v *config.PostgresqlHostConfig13_1C) {
	m.PostgresqlConfig = &ConfigHostSpec_PostgresqlConfig_13_1C{
		PostgresqlConfig_13_1C: v,
	}
}

func (m *ConfigHostSpec) SetPostgresqlConfig_14(v *config.PostgresqlHostConfig14) {
	m.PostgresqlConfig = &ConfigHostSpec_PostgresqlConfig_14{
		PostgresqlConfig_14: v,
	}
}

func (m *ConfigHostSpec) SetPostgresqlConfig_14_1C(v *config.PostgresqlHostConfig14_1C) {
	m.PostgresqlConfig = &ConfigHostSpec_PostgresqlConfig_14_1C{
		PostgresqlConfig_14_1C: v,
	}
}

func (m *ConfigHostSpec) SetPostgresqlConfig_15(v *config.PostgresqlHostConfig15) {
	m.PostgresqlConfig = &ConfigHostSpec_PostgresqlConfig_15{
		PostgresqlConfig_15: v,
	}
}

func (m *ConfigHostSpec) SetPostgresqlConfig_15_1C(v *config.PostgresqlHostConfig15_1C) {
	m.PostgresqlConfig = &ConfigHostSpec_PostgresqlConfig_15_1C{
		PostgresqlConfig_15_1C: v,
	}
}

func (m *ConfigHostSpec) SetPostgresqlConfig_16(v *config.PostgresqlHostConfig16) {
	m.PostgresqlConfig = &ConfigHostSpec_PostgresqlConfig_16{
		PostgresqlConfig_16: v,
	}
}

func (m *ConfigHostSpec) SetPostgresqlConfig_16_1C(v *config.PostgresqlHostConfig16_1C) {
	m.PostgresqlConfig = &ConfigHostSpec_PostgresqlConfig_16_1C{
		PostgresqlConfig_16_1C: v,
	}
}

func (m *ConfigHostSpec) SetPostgresqlConfig_17(v *config.PostgresqlHostConfig17) {
	m.PostgresqlConfig = &ConfigHostSpec_PostgresqlConfig_17{
		PostgresqlConfig_17: v,
	}
}

func (m *ConfigHostSpec) SetPostgresqlConfig_17_1C(v *config.PostgresqlHostConfig17_1C) {
	m.PostgresqlConfig = &ConfigHostSpec_PostgresqlConfig_17_1C{
		PostgresqlConfig_17_1C: v,
	}
}

func (m *ConfigHostSpec) SetPostgresqlConfig_18(v *config.PostgresqlHostConfig18) {
	m.PostgresqlConfig = &ConfigHostSpec_PostgresqlConfig_18{
		PostgresqlConfig_18: v,
	}
}

func (m *ConfigHostSpec) SetPostgresqlConfig_18_1C(v *config.PostgresqlHostConfig18_1C) {
	m.PostgresqlConfig = &ConfigHostSpec_PostgresqlConfig_18_1C{
		PostgresqlConfig_18_1C: v,
	}
}
