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

package kafka

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

type Topic_TopicConfig = isTopic_TopicConfig

func (m *Topic) SetTopicConfig(v Topic_TopicConfig) {
	m.TopicConfig = v
}

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

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

func (m *Topic) SetPartitions(v *wrapperspb.Int64Value) {
	m.Partitions = v
}

func (m *Topic) SetReplicationFactor(v *wrapperspb.Int64Value) {
	m.ReplicationFactor = v
}

func (m *Topic) SetTopicConfig_2_8(v *TopicConfig2_8) {
	m.TopicConfig = &Topic_TopicConfig_2_8{
		TopicConfig_2_8: v,
	}
}

func (m *Topic) SetTopicConfig_3(v *TopicConfig3) {
	m.TopicConfig = &Topic_TopicConfig_3{
		TopicConfig_3: v,
	}
}

func (m *Topic) SetTopicConfig_4(v *TopicConfig4) {
	m.TopicConfig = &Topic_TopicConfig_4{
		TopicConfig_4: v,
	}
}

type TopicSpec_TopicConfig = isTopicSpec_TopicConfig

func (m *TopicSpec) SetTopicConfig(v TopicSpec_TopicConfig) {
	m.TopicConfig = v
}

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

func (m *TopicSpec) SetPartitions(v *wrapperspb.Int64Value) {
	m.Partitions = v
}

func (m *TopicSpec) SetReplicationFactor(v *wrapperspb.Int64Value) {
	m.ReplicationFactor = v
}

func (m *TopicSpec) SetTopicConfig_2_8(v *TopicConfig2_8) {
	m.TopicConfig = &TopicSpec_TopicConfig_2_8{
		TopicConfig_2_8: v,
	}
}

func (m *TopicSpec) SetTopicConfig_3(v *TopicConfig3) {
	m.TopicConfig = &TopicSpec_TopicConfig_3{
		TopicConfig_3: v,
	}
}

func (m *TopicSpec) SetTopicConfig_4(v *TopicConfig4) {
	m.TopicConfig = &TopicSpec_TopicConfig_4{
		TopicConfig_4: v,
	}
}

func (m *TopicConfig2_8) SetCleanupPolicy(v TopicConfig2_8_CleanupPolicy) {
	m.CleanupPolicy = v
}

func (m *TopicConfig2_8) SetCompressionType(v CompressionType) {
	m.CompressionType = v
}

func (m *TopicConfig2_8) SetDeleteRetentionMs(v *wrapperspb.Int64Value) {
	m.DeleteRetentionMs = v
}

func (m *TopicConfig2_8) SetFileDeleteDelayMs(v *wrapperspb.Int64Value) {
	m.FileDeleteDelayMs = v
}

func (m *TopicConfig2_8) SetFlushMessages(v *wrapperspb.Int64Value) {
	m.FlushMessages = v
}

func (m *TopicConfig2_8) SetFlushMs(v *wrapperspb.Int64Value) {
	m.FlushMs = v
}

func (m *TopicConfig2_8) SetMinCompactionLagMs(v *wrapperspb.Int64Value) {
	m.MinCompactionLagMs = v
}

func (m *TopicConfig2_8) SetRetentionBytes(v *wrapperspb.Int64Value) {
	m.RetentionBytes = v
}

func (m *TopicConfig2_8) SetRetentionMs(v *wrapperspb.Int64Value) {
	m.RetentionMs = v
}

func (m *TopicConfig2_8) SetMaxMessageBytes(v *wrapperspb.Int64Value) {
	m.MaxMessageBytes = v
}

func (m *TopicConfig2_8) SetMinInsyncReplicas(v *wrapperspb.Int64Value) {
	m.MinInsyncReplicas = v
}

func (m *TopicConfig2_8) SetSegmentBytes(v *wrapperspb.Int64Value) {
	m.SegmentBytes = v
}

func (m *TopicConfig2_8) SetPreallocate(v *wrapperspb.BoolValue) {
	m.Preallocate = v
}

func (m *TopicConfig3) SetCleanupPolicy(v TopicConfig3_CleanupPolicy) {
	m.CleanupPolicy = v
}

func (m *TopicConfig3) SetCompressionType(v CompressionType) {
	m.CompressionType = v
}

func (m *TopicConfig3) SetDeleteRetentionMs(v *wrapperspb.Int64Value) {
	m.DeleteRetentionMs = v
}

func (m *TopicConfig3) SetFileDeleteDelayMs(v *wrapperspb.Int64Value) {
	m.FileDeleteDelayMs = v
}

func (m *TopicConfig3) SetFlushMessages(v *wrapperspb.Int64Value) {
	m.FlushMessages = v
}

func (m *TopicConfig3) SetFlushMs(v *wrapperspb.Int64Value) {
	m.FlushMs = v
}

func (m *TopicConfig3) SetMinCompactionLagMs(v *wrapperspb.Int64Value) {
	m.MinCompactionLagMs = v
}

func (m *TopicConfig3) SetRetentionBytes(v *wrapperspb.Int64Value) {
	m.RetentionBytes = v
}

func (m *TopicConfig3) SetRetentionMs(v *wrapperspb.Int64Value) {
	m.RetentionMs = v
}

func (m *TopicConfig3) SetMaxMessageBytes(v *wrapperspb.Int64Value) {
	m.MaxMessageBytes = v
}

func (m *TopicConfig3) SetMinInsyncReplicas(v *wrapperspb.Int64Value) {
	m.MinInsyncReplicas = v
}

func (m *TopicConfig3) SetSegmentBytes(v *wrapperspb.Int64Value) {
	m.SegmentBytes = v
}

func (m *TopicConfig3) SetPreallocate(v *wrapperspb.BoolValue) {
	m.Preallocate = v
}

func (m *TopicConfig4) SetCleanupPolicy(v TopicConfig4_CleanupPolicy) {
	m.CleanupPolicy = v
}

func (m *TopicConfig4) SetCompressionType(v CompressionType) {
	m.CompressionType = v
}

func (m *TopicConfig4) SetDeleteRetentionMs(v *wrapperspb.Int64Value) {
	m.DeleteRetentionMs = v
}

func (m *TopicConfig4) SetFileDeleteDelayMs(v *wrapperspb.Int64Value) {
	m.FileDeleteDelayMs = v
}

func (m *TopicConfig4) SetFlushMessages(v *wrapperspb.Int64Value) {
	m.FlushMessages = v
}

func (m *TopicConfig4) SetFlushMs(v *wrapperspb.Int64Value) {
	m.FlushMs = v
}

func (m *TopicConfig4) SetMinCompactionLagMs(v *wrapperspb.Int64Value) {
	m.MinCompactionLagMs = v
}

func (m *TopicConfig4) SetRetentionBytes(v *wrapperspb.Int64Value) {
	m.RetentionBytes = v
}

func (m *TopicConfig4) SetRetentionMs(v *wrapperspb.Int64Value) {
	m.RetentionMs = v
}

func (m *TopicConfig4) SetMaxMessageBytes(v *wrapperspb.Int64Value) {
	m.MaxMessageBytes = v
}

func (m *TopicConfig4) SetMinInsyncReplicas(v *wrapperspb.Int64Value) {
	m.MinInsyncReplicas = v
}

func (m *TopicConfig4) SetSegmentBytes(v *wrapperspb.Int64Value) {
	m.SegmentBytes = v
}

func (m *TopicConfig4) SetPreallocate(v *wrapperspb.BoolValue) {
	m.Preallocate = v
}
