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

package trino

import (
	v1 "github.com/yandex-cloud/go-genproto/yandex/cloud/logging/v1"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)

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

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

func (m *Cluster) SetCreatedAt(v *timestamppb.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) SetMonitoring(v []*Monitoring) {
	m.Monitoring = v
}

func (m *Cluster) SetTrino(v *TrinoConfig) {
	m.Trino = v
}

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

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

func (m *Cluster) SetNetwork(v *NetworkConfig) {
	m.Network = v
}

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

func (m *Cluster) SetServiceAccountId(v string) {
	m.ServiceAccountId = v
}

func (m *Cluster) SetLogging(v *LoggingConfig) {
	m.Logging = v
}

func (m *Cluster) SetCoordinatorUrl(v string) {
	m.CoordinatorUrl = 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 LoggingConfig_Destination = isLoggingConfig_Destination

func (m *LoggingConfig) SetDestination(v LoggingConfig_Destination) {
	m.Destination = v
}

func (m *LoggingConfig) SetFolderId(v string) {
	m.Destination = &LoggingConfig_FolderId{
		FolderId: v,
	}
}

func (m *LoggingConfig) SetLogGroupId(v string) {
	m.Destination = &LoggingConfig_LogGroupId{
		LogGroupId: v,
	}
}

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

func (m *LoggingConfig) SetMinLevel(v v1.LogLevel_Level) {
	m.MinLevel = v
}

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

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

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

func (m *NetworkConfig) SetPrivateAccess(v *PrivateAccessConfig) {
	m.PrivateAccess = v
}

func (m *TrinoConfig) SetCoordinatorConfig(v *CoordinatorConfig) {
	m.CoordinatorConfig = v
}

func (m *TrinoConfig) SetWorkerConfig(v *WorkerConfig) {
	m.WorkerConfig = v
}

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

func (m *TrinoConfig) SetRetryPolicy(v *RetryPolicyConfig) {
	m.RetryPolicy = v
}

func (m *TrinoConfig) SetAccessControl(v *AccessControlConfig) {
	m.AccessControl = v
}

func (m *TrinoConfig) SetResourceManagement(v *ResourceManagementConfig) {
	m.ResourceManagement = v
}

func (m *TrinoConfig) SetTls(v *TLSConfig) {
	m.Tls = v
}

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

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

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

type WorkerConfig_WorkerScalePolicy_ScaleType = isWorkerConfig_WorkerScalePolicy_ScaleType

func (m *WorkerConfig_WorkerScalePolicy) SetScaleType(v WorkerConfig_WorkerScalePolicy_ScaleType) {
	m.ScaleType = v
}

func (m *WorkerConfig_WorkerScalePolicy) SetFixedScale(v *FixedScalePolicy) {
	m.ScaleType = &WorkerConfig_WorkerScalePolicy_FixedScale{
		FixedScale: v,
	}
}

func (m *WorkerConfig_WorkerScalePolicy) SetAutoScale(v *AutoScalePolicy) {
	m.ScaleType = &WorkerConfig_WorkerScalePolicy_AutoScale{
		AutoScale: v,
	}
}

func (m *RetryPolicyConfig) SetPolicy(v RetryPolicyConfig_RetryPolicy) {
	m.Policy = v
}

func (m *RetryPolicyConfig) SetExchangeManager(v *ExchangeManagerConfig) {
	m.ExchangeManager = v
}

func (m *RetryPolicyConfig) SetAdditionalProperties(v map[string]string) {
	m.AdditionalProperties = v
}

func (m *TLSConfig) SetTrustedCertificates(v []string) {
	m.TrustedCertificates = v
}

type ExchangeManagerStorage_Type = isExchangeManagerStorage_Type

func (m *ExchangeManagerStorage) SetType(v ExchangeManagerStorage_Type) {
	m.Type = v
}

func (m *ExchangeManagerStorage) SetServiceS3(v *ExchangeManagerStorage_ServiceS3) {
	m.Type = &ExchangeManagerStorage_ServiceS3_{
		ServiceS3: v,
	}
}

func (m *ExchangeManagerConfig) SetAdditionalProperties(v map[string]string) {
	m.AdditionalProperties = v
}

func (m *ExchangeManagerConfig) SetStorage(v *ExchangeManagerStorage) {
	m.Storage = v
}

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

func (m *FixedScalePolicy) SetCount(v int64) {
	m.Count = v
}

func (m *AutoScalePolicy) SetMinCount(v int64) {
	m.MinCount = v
}

func (m *AutoScalePolicy) SetMaxCount(v int64) {
	m.MaxCount = v
}
