// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/mdb/kafka/v1/common.proto

package kafka

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type CompressionType int32

const (
	// codec is unspecified.
	CompressionType_COMPRESSION_TYPE_UNSPECIFIED CompressionType = 0
	// no codec (uncompressed).
	CompressionType_COMPRESSION_TYPE_UNCOMPRESSED CompressionType = 1
	// Zstandard codec.
	CompressionType_COMPRESSION_TYPE_ZSTD CompressionType = 2
	// LZ4 codec.
	CompressionType_COMPRESSION_TYPE_LZ4 CompressionType = 3
	// Snappy codec.
	CompressionType_COMPRESSION_TYPE_SNAPPY CompressionType = 4
	// GZip codec.
	CompressionType_COMPRESSION_TYPE_GZIP CompressionType = 5
	// the codec to use is set by a producer (can be any of `ZSTD`, `LZ4`, `GZIP` or `SNAPPY` codecs).
	CompressionType_COMPRESSION_TYPE_PRODUCER CompressionType = 6
)

// Enum value maps for CompressionType.
var (
	CompressionType_name = map[int32]string{
		0: "COMPRESSION_TYPE_UNSPECIFIED",
		1: "COMPRESSION_TYPE_UNCOMPRESSED",
		2: "COMPRESSION_TYPE_ZSTD",
		3: "COMPRESSION_TYPE_LZ4",
		4: "COMPRESSION_TYPE_SNAPPY",
		5: "COMPRESSION_TYPE_GZIP",
		6: "COMPRESSION_TYPE_PRODUCER",
	}
	CompressionType_value = map[string]int32{
		"COMPRESSION_TYPE_UNSPECIFIED":  0,
		"COMPRESSION_TYPE_UNCOMPRESSED": 1,
		"COMPRESSION_TYPE_ZSTD":         2,
		"COMPRESSION_TYPE_LZ4":          3,
		"COMPRESSION_TYPE_SNAPPY":       4,
		"COMPRESSION_TYPE_GZIP":         5,
		"COMPRESSION_TYPE_PRODUCER":     6,
	}
)

func (x CompressionType) Enum() *CompressionType {
	p := new(CompressionType)
	*p = x
	return p
}

func (x CompressionType) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (CompressionType) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_mdb_kafka_v1_common_proto_enumTypes[0].Descriptor()
}

func (CompressionType) Type() protoreflect.EnumType {
	return &file_yandex_cloud_mdb_kafka_v1_common_proto_enumTypes[0]
}

func (x CompressionType) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use CompressionType.Descriptor instead.
func (CompressionType) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_kafka_v1_common_proto_rawDescGZIP(), []int{0}
}

type SaslMechanism int32

const (
	// SASL mechanism is unspecified.
	SaslMechanism_SASL_MECHANISM_UNSPECIFIED SaslMechanism = 0
	// SHA_256.
	SaslMechanism_SASL_MECHANISM_SCRAM_SHA_256 SaslMechanism = 1
	// SHA_512.
	SaslMechanism_SASL_MECHANISM_SCRAM_SHA_512 SaslMechanism = 2
)

// Enum value maps for SaslMechanism.
var (
	SaslMechanism_name = map[int32]string{
		0: "SASL_MECHANISM_UNSPECIFIED",
		1: "SASL_MECHANISM_SCRAM_SHA_256",
		2: "SASL_MECHANISM_SCRAM_SHA_512",
	}
	SaslMechanism_value = map[string]int32{
		"SASL_MECHANISM_UNSPECIFIED":   0,
		"SASL_MECHANISM_SCRAM_SHA_256": 1,
		"SASL_MECHANISM_SCRAM_SHA_512": 2,
	}
)

func (x SaslMechanism) Enum() *SaslMechanism {
	p := new(SaslMechanism)
	*p = x
	return p
}

func (x SaslMechanism) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (SaslMechanism) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_mdb_kafka_v1_common_proto_enumTypes[1].Descriptor()
}

func (SaslMechanism) Type() protoreflect.EnumType {
	return &file_yandex_cloud_mdb_kafka_v1_common_proto_enumTypes[1]
}

func (x SaslMechanism) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use SaslMechanism.Descriptor instead.
func (SaslMechanism) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_kafka_v1_common_proto_rawDescGZIP(), []int{1}
}

type MessageTimestampType int32

const (
	// Message timestamp type is unspecified.
	MessageTimestampType_MESSAGE_TIMESTAMP_TYPE_UNSPECIFIED MessageTimestampType = 0
	// Message timestamp type is create time.
	MessageTimestampType_MESSAGE_TIMESTAMP_TYPE_CREATE_TIME MessageTimestampType = 1
	// Message timestamp type is log append time.
	MessageTimestampType_MESSAGE_TIMESTAMP_TYPE_LOG_APPEND_TIME MessageTimestampType = 2
)

// Enum value maps for MessageTimestampType.
var (
	MessageTimestampType_name = map[int32]string{
		0: "MESSAGE_TIMESTAMP_TYPE_UNSPECIFIED",
		1: "MESSAGE_TIMESTAMP_TYPE_CREATE_TIME",
		2: "MESSAGE_TIMESTAMP_TYPE_LOG_APPEND_TIME",
	}
	MessageTimestampType_value = map[string]int32{
		"MESSAGE_TIMESTAMP_TYPE_UNSPECIFIED":     0,
		"MESSAGE_TIMESTAMP_TYPE_CREATE_TIME":     1,
		"MESSAGE_TIMESTAMP_TYPE_LOG_APPEND_TIME": 2,
	}
)

func (x MessageTimestampType) Enum() *MessageTimestampType {
	p := new(MessageTimestampType)
	*p = x
	return p
}

func (x MessageTimestampType) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (MessageTimestampType) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_mdb_kafka_v1_common_proto_enumTypes[2].Descriptor()
}

func (MessageTimestampType) Type() protoreflect.EnumType {
	return &file_yandex_cloud_mdb_kafka_v1_common_proto_enumTypes[2]
}

func (x MessageTimestampType) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use MessageTimestampType.Descriptor instead.
func (MessageTimestampType) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_kafka_v1_common_proto_rawDescGZIP(), []int{2}
}

var File_yandex_cloud_mdb_kafka_v1_common_proto protoreflect.FileDescriptor

const file_yandex_cloud_mdb_kafka_v1_common_proto_rawDesc = "" +
	"\n" +
	"&yandex/cloud/mdb/kafka/v1/common.proto\x12\x19yandex.cloud.mdb.kafka.v1*\xe2\x01\n" +
	"\x0fCompressionType\x12 \n" +
	"\x1cCOMPRESSION_TYPE_UNSPECIFIED\x10\x00\x12!\n" +
	"\x1dCOMPRESSION_TYPE_UNCOMPRESSED\x10\x01\x12\x19\n" +
	"\x15COMPRESSION_TYPE_ZSTD\x10\x02\x12\x18\n" +
	"\x14COMPRESSION_TYPE_LZ4\x10\x03\x12\x1b\n" +
	"\x17COMPRESSION_TYPE_SNAPPY\x10\x04\x12\x19\n" +
	"\x15COMPRESSION_TYPE_GZIP\x10\x05\x12\x1d\n" +
	"\x19COMPRESSION_TYPE_PRODUCER\x10\x06*s\n" +
	"\rSaslMechanism\x12\x1e\n" +
	"\x1aSASL_MECHANISM_UNSPECIFIED\x10\x00\x12 \n" +
	"\x1cSASL_MECHANISM_SCRAM_SHA_256\x10\x01\x12 \n" +
	"\x1cSASL_MECHANISM_SCRAM_SHA_512\x10\x02*\x92\x01\n" +
	"\x14MessageTimestampType\x12&\n" +
	"\"MESSAGE_TIMESTAMP_TYPE_UNSPECIFIED\x10\x00\x12&\n" +
	"\"MESSAGE_TIMESTAMP_TYPE_CREATE_TIME\x10\x01\x12*\n" +
	"&MESSAGE_TIMESTAMP_TYPE_LOG_APPEND_TIME\x10\x02Bd\n" +
	"\x1dyandex.cloud.api.mdb.kafka.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/kafka/v1;kafkab\x06proto3"

var (
	file_yandex_cloud_mdb_kafka_v1_common_proto_rawDescOnce sync.Once
	file_yandex_cloud_mdb_kafka_v1_common_proto_rawDescData []byte
)

func file_yandex_cloud_mdb_kafka_v1_common_proto_rawDescGZIP() []byte {
	file_yandex_cloud_mdb_kafka_v1_common_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_mdb_kafka_v1_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_mdb_kafka_v1_common_proto_rawDesc), len(file_yandex_cloud_mdb_kafka_v1_common_proto_rawDesc)))
	})
	return file_yandex_cloud_mdb_kafka_v1_common_proto_rawDescData
}

var file_yandex_cloud_mdb_kafka_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
var file_yandex_cloud_mdb_kafka_v1_common_proto_goTypes = []any{
	(CompressionType)(0),      // 0: yandex.cloud.mdb.kafka.v1.CompressionType
	(SaslMechanism)(0),        // 1: yandex.cloud.mdb.kafka.v1.SaslMechanism
	(MessageTimestampType)(0), // 2: yandex.cloud.mdb.kafka.v1.MessageTimestampType
}
var file_yandex_cloud_mdb_kafka_v1_common_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_yandex_cloud_mdb_kafka_v1_common_proto_init() }
func file_yandex_cloud_mdb_kafka_v1_common_proto_init() {
	if File_yandex_cloud_mdb_kafka_v1_common_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_mdb_kafka_v1_common_proto_rawDesc), len(file_yandex_cloud_mdb_kafka_v1_common_proto_rawDesc)),
			NumEnums:      3,
			NumMessages:   0,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_mdb_kafka_v1_common_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_mdb_kafka_v1_common_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_mdb_kafka_v1_common_proto_enumTypes,
	}.Build()
	File_yandex_cloud_mdb_kafka_v1_common_proto = out.File
	file_yandex_cloud_mdb_kafka_v1_common_proto_goTypes = nil
	file_yandex_cloud_mdb_kafka_v1_common_proto_depIdxs = nil
}
