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

package ydb

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

func (m *MoveDatabaseRequest) SetDatabaseId(v string) {
	m.DatabaseId = v
}

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

func (m *MoveDatabaseMetadata) SetDatabaseId(v string) {
	m.DatabaseId = v
}

func (m *MoveDatabaseMetadata) SetDatabaseName(v string) {
	m.DatabaseName = v
}

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

func (m *RestoreBackupRequest) SetDatabaseId(v string) {
	m.DatabaseId = v
}

func (m *RestoreBackupRequest) SetPathsToRestore(v []string) {
	m.PathsToRestore = v
}

func (m *RestoreBackupRequest) SetTargetPath(v string) {
	m.TargetPath = v
}

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

func (m *RestoreBackupMetadata) SetDatabaseId(v string) {
	m.DatabaseId = v
}

func (m *BackupDatabaseRequest) SetDatabaseId(v string) {
	m.DatabaseId = v
}

func (m *BackupDatabaseRequest) SetBackupSettings(v *BackupSettings) {
	m.BackupSettings = v
}

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

func (m *BackupDatabaseMetadata) SetDatabaseId(v string) {
	m.DatabaseId = v
}

func (m *StartDatabaseRequest) SetDatabaseId(v string) {
	m.DatabaseId = v
}

func (m *StartDatabaseMetadata) SetDatabaseId(v string) {
	m.DatabaseId = v
}

func (m *StartDatabaseMetadata) SetDatabaseName(v string) {
	m.DatabaseName = v
}

func (m *StopDatabaseRequest) SetDatabaseId(v string) {
	m.DatabaseId = v
}

func (m *StopDatabaseMetadata) SetDatabaseId(v string) {
	m.DatabaseId = v
}

func (m *StopDatabaseMetadata) SetDatabaseName(v string) {
	m.DatabaseName = v
}

func (m *GetDatabaseRequest) SetDatabaseId(v string) {
	m.DatabaseId = v
}

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

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

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

func (m *ListDatabasesResponse) SetDatabases(v []*Database) {
	m.Databases = v
}

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

type CreateDatabaseRequest_DatabaseType = isCreateDatabaseRequest_DatabaseType

func (m *CreateDatabaseRequest) SetDatabaseType(v CreateDatabaseRequest_DatabaseType) {
	m.DatabaseType = v
}

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

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

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

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

func (m *CreateDatabaseRequest) SetStorageConfig(v *StorageConfig) {
	m.StorageConfig = v
}

func (m *CreateDatabaseRequest) SetScalePolicy(v *ScalePolicy) {
	m.ScalePolicy = v
}

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

func (m *CreateDatabaseRequest) SetSubnetIds(v []string) {
	m.SubnetIds = v
}

func (m *CreateDatabaseRequest) SetZonalDatabase(v *ZonalDatabase) {
	m.DatabaseType = &CreateDatabaseRequest_ZonalDatabase{
		ZonalDatabase: v,
	}
}

func (m *CreateDatabaseRequest) SetRegionalDatabase(v *RegionalDatabase) {
	m.DatabaseType = &CreateDatabaseRequest_RegionalDatabase{
		RegionalDatabase: v,
	}
}

func (m *CreateDatabaseRequest) SetDedicatedDatabase(v *DedicatedDatabase) {
	m.DatabaseType = &CreateDatabaseRequest_DedicatedDatabase{
		DedicatedDatabase: v,
	}
}

func (m *CreateDatabaseRequest) SetServerlessDatabase(v *ServerlessDatabase) {
	m.DatabaseType = &CreateDatabaseRequest_ServerlessDatabase{
		ServerlessDatabase: v,
	}
}

func (m *CreateDatabaseRequest) SetAssignPublicIps(v bool) {
	m.AssignPublicIps = v
}

func (m *CreateDatabaseRequest) SetLocationId(v string) {
	m.LocationId = v
}

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

func (m *CreateDatabaseRequest) SetBackupConfig(v *BackupConfig) {
	m.BackupConfig = v
}

func (m *CreateDatabaseRequest) SetMonitoringConfig(v *MonitoringConfig) {
	m.MonitoringConfig = v
}

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

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

func (m *CreateDatabaseMetadata) SetDatabaseId(v string) {
	m.DatabaseId = v
}

func (m *CreateDatabaseMetadata) SetDatabaseName(v string) {
	m.DatabaseName = v
}

type UpdateDatabaseRequest_DatabaseType = isUpdateDatabaseRequest_DatabaseType

func (m *UpdateDatabaseRequest) SetDatabaseType(v UpdateDatabaseRequest_DatabaseType) {
	m.DatabaseType = v
}

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

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

func (m *UpdateDatabaseRequest) SetDatabaseId(v string) {
	m.DatabaseId = v
}

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

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

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

func (m *UpdateDatabaseRequest) SetStorageConfig(v *StorageConfig) {
	m.StorageConfig = v
}

func (m *UpdateDatabaseRequest) SetScalePolicy(v *ScalePolicy) {
	m.ScalePolicy = v
}

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

func (m *UpdateDatabaseRequest) SetSubnetIds(v []string) {
	m.SubnetIds = v
}

func (m *UpdateDatabaseRequest) SetZonalDatabase(v *ZonalDatabase) {
	m.DatabaseType = &UpdateDatabaseRequest_ZonalDatabase{
		ZonalDatabase: v,
	}
}

func (m *UpdateDatabaseRequest) SetRegionalDatabase(v *RegionalDatabase) {
	m.DatabaseType = &UpdateDatabaseRequest_RegionalDatabase{
		RegionalDatabase: v,
	}
}

func (m *UpdateDatabaseRequest) SetDedicatedDatabase(v *DedicatedDatabase) {
	m.DatabaseType = &UpdateDatabaseRequest_DedicatedDatabase{
		DedicatedDatabase: v,
	}
}

func (m *UpdateDatabaseRequest) SetServerlessDatabase(v *ServerlessDatabase) {
	m.DatabaseType = &UpdateDatabaseRequest_ServerlessDatabase{
		ServerlessDatabase: v,
	}
}

func (m *UpdateDatabaseRequest) SetAssignPublicIps(v bool) {
	m.AssignPublicIps = v
}

func (m *UpdateDatabaseRequest) SetLocationId(v string) {
	m.LocationId = v
}

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

func (m *UpdateDatabaseRequest) SetBackupConfig(v *BackupConfig) {
	m.BackupConfig = v
}

func (m *UpdateDatabaseRequest) SetMonitoringConfig(v *MonitoringConfig) {
	m.MonitoringConfig = v
}

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

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

func (m *UpdateDatabaseMetadata) SetDatabaseId(v string) {
	m.DatabaseId = v
}

func (m *UpdateDatabaseMetadata) SetDatabaseName(v string) {
	m.DatabaseName = v
}

func (m *DeleteDatabaseRequest) SetDatabaseId(v string) {
	m.DatabaseId = v
}

func (m *DeleteDatabaseMetadata) SetDatabaseId(v string) {
	m.DatabaseId = v
}

func (m *DeleteDatabaseMetadata) SetDatabaseName(v string) {
	m.DatabaseName = v
}
