// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v6.33.2
// source: contrib/envoy/extensions/compression/qatzstd/compressor/v3alpha/qatzstd.proto

package v3alpha

import (
	_ "github.com/cncf/xds/go/udpa/annotations"
	_ "github.com/envoyproxy/protoc-gen-validate/validate"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
	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)
)

// Reference to http://facebook.github.io/zstd/zstd_manual.html
type Qatzstd_Strategy int32

const (
	Qatzstd_DEFAULT  Qatzstd_Strategy = 0
	Qatzstd_FAST     Qatzstd_Strategy = 1
	Qatzstd_DFAST    Qatzstd_Strategy = 2
	Qatzstd_GREEDY   Qatzstd_Strategy = 3
	Qatzstd_LAZY     Qatzstd_Strategy = 4
	Qatzstd_LAZY2    Qatzstd_Strategy = 5
	Qatzstd_BTLAZY2  Qatzstd_Strategy = 6
	Qatzstd_BTOPT    Qatzstd_Strategy = 7
	Qatzstd_BTULTRA  Qatzstd_Strategy = 8
	Qatzstd_BTULTRA2 Qatzstd_Strategy = 9
)

// Enum value maps for Qatzstd_Strategy.
var (
	Qatzstd_Strategy_name = map[int32]string{
		0: "DEFAULT",
		1: "FAST",
		2: "DFAST",
		3: "GREEDY",
		4: "LAZY",
		5: "LAZY2",
		6: "BTLAZY2",
		7: "BTOPT",
		8: "BTULTRA",
		9: "BTULTRA2",
	}
	Qatzstd_Strategy_value = map[string]int32{
		"DEFAULT":  0,
		"FAST":     1,
		"DFAST":    2,
		"GREEDY":   3,
		"LAZY":     4,
		"LAZY2":    5,
		"BTLAZY2":  6,
		"BTOPT":    7,
		"BTULTRA":  8,
		"BTULTRA2": 9,
	}
)

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

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

func (Qatzstd_Strategy) Descriptor() protoreflect.EnumDescriptor {
	return file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_enumTypes[0].Descriptor()
}

func (Qatzstd_Strategy) Type() protoreflect.EnumType {
	return &file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_enumTypes[0]
}

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

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

// [#next-free-field: 8]
type Qatzstd struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Set compression parameters according to pre-defined compression level table.
	// Note that exact compression parameters are dynamically determined,
	// depending on both compression level and source content size (when known).
	// Value 0 means default, and default level is 3.
	//
	// Setting a level does not automatically set all other compression parameters
	// to default. Setting this will however eventually dynamically impact the compression
	// parameters which have not been manually set. The manually set
	// ones will 'stick'.
	CompressionLevel *wrapperspb.UInt32Value `protobuf:"bytes,1,opt,name=compression_level,json=compressionLevel,proto3" json:"compression_level,omitempty"`
	// A 32-bits checksum of content is written at end of frame. If not set, defaults to false.
	EnableChecksum bool `protobuf:"varint,2,opt,name=enable_checksum,json=enableChecksum,proto3" json:"enable_checksum,omitempty"`
	// The higher the value of selected strategy, the more complex it is,
	// resulting in stronger and slower compression.
	//
	// Special: value 0 means "use default strategy".
	Strategy Qatzstd_Strategy `protobuf:"varint,3,opt,name=strategy,proto3,enum=envoy.extensions.compression.qatzstd.compressor.v3alpha.Qatzstd_Strategy" json:"strategy,omitempty"`
	// Value for compressor's next output buffer. If not set, defaults to 4096.
	ChunkSize *wrapperspb.UInt32Value `protobuf:"bytes,5,opt,name=chunk_size,json=chunkSize,proto3" json:"chunk_size,omitempty"`
	// Enable QAT to accelerate Zstd compression or not. If not set, defaults to false.
	//
	// This is useful in the case that users want to enable QAT for a period of time and disable QAT for another period of time,
	// they don't have to change the config too much or prepare for another config that has software zstd compressor and just changing the value of this filed.
	EnableQatZstd bool `protobuf:"varint,6,opt,name=enable_qat_zstd,json=enableQatZstd,proto3" json:"enable_qat_zstd,omitempty"`
	// Fallback to software for Qatzstd when input size is less than this value.
	// Valid only “enable_qat_zstd“ is “true“. 0 means no fallback at all. If not set, defaults to 4000.
	QatZstdFallbackThreshold *wrapperspb.UInt32Value `protobuf:"bytes,7,opt,name=qat_zstd_fallback_threshold,json=qatZstdFallbackThreshold,proto3" json:"qat_zstd_fallback_threshold,omitempty"`
	unknownFields            protoimpl.UnknownFields
	sizeCache                protoimpl.SizeCache
}

func (x *Qatzstd) Reset() {
	*x = Qatzstd{}
	mi := &file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Qatzstd) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Qatzstd) ProtoMessage() {}

func (x *Qatzstd) ProtoReflect() protoreflect.Message {
	mi := &file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Qatzstd.ProtoReflect.Descriptor instead.
func (*Qatzstd) Descriptor() ([]byte, []int) {
	return file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_rawDescGZIP(), []int{0}
}

func (x *Qatzstd) GetCompressionLevel() *wrapperspb.UInt32Value {
	if x != nil {
		return x.CompressionLevel
	}
	return nil
}

func (x *Qatzstd) GetEnableChecksum() bool {
	if x != nil {
		return x.EnableChecksum
	}
	return false
}

func (x *Qatzstd) GetStrategy() Qatzstd_Strategy {
	if x != nil {
		return x.Strategy
	}
	return Qatzstd_DEFAULT
}

func (x *Qatzstd) GetChunkSize() *wrapperspb.UInt32Value {
	if x != nil {
		return x.ChunkSize
	}
	return nil
}

func (x *Qatzstd) GetEnableQatZstd() bool {
	if x != nil {
		return x.EnableQatZstd
	}
	return false
}

func (x *Qatzstd) GetQatZstdFallbackThreshold() *wrapperspb.UInt32Value {
	if x != nil {
		return x.QatZstdFallbackThreshold
	}
	return nil
}

var File_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto protoreflect.FileDescriptor

const file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_rawDesc = "" +
	"\n" +
	"Mcontrib/envoy/extensions/compression/qatzstd/compressor/v3alpha/qatzstd.proto\x127envoy.extensions.compression.qatzstd.compressor.v3alpha\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1dudpa/annotations/status.proto\x1a\x17validate/validate.proto\"\xd9\x04\n" +
	"\aQatzstd\x12T\n" +
	"\x11compression_level\x18\x01 \x01(\v2\x1c.google.protobuf.UInt32ValueB\t\xfaB\x06*\x04\x18\x16(\x01R\x10compressionLevel\x12'\n" +
	"\x0fenable_checksum\x18\x02 \x01(\bR\x0eenableChecksum\x12o\n" +
	"\bstrategy\x18\x03 \x01(\x0e2I.envoy.extensions.compression.qatzstd.compressor.v3alpha.Qatzstd.StrategyB\b\xfaB\x05\x82\x01\x02\x10\x01R\bstrategy\x12I\n" +
	"\n" +
	"chunk_size\x18\x05 \x01(\v2\x1c.google.protobuf.UInt32ValueB\f\xfaB\t*\a\x18\x80\x80\x04(\x80 R\tchunkSize\x12&\n" +
	"\x0fenable_qat_zstd\x18\x06 \x01(\bR\renableQatZstd\x12h\n" +
	"\x1bqat_zstd_fallback_threshold\x18\a \x01(\v2\x1c.google.protobuf.UInt32ValueB\v\xfaB\b*\x06\x18\x80\x80\x04(\x00R\x18qatZstdFallbackThreshold\"\x80\x01\n" +
	"\bStrategy\x12\v\n" +
	"\aDEFAULT\x10\x00\x12\b\n" +
	"\x04FAST\x10\x01\x12\t\n" +
	"\x05DFAST\x10\x02\x12\n" +
	"\n" +
	"\x06GREEDY\x10\x03\x12\b\n" +
	"\x04LAZY\x10\x04\x12\t\n" +
	"\x05LAZY2\x10\x05\x12\v\n" +
	"\aBTLAZY2\x10\x06\x12\t\n" +
	"\x05BTOPT\x10\a\x12\v\n" +
	"\aBTULTRA\x10\b\x12\f\n" +
	"\bBTULTRA2\x10\tB\xc7\x01\xba\x80\xc8\xd1\x06\x02\x10\x02\n" +
	"Eio.envoyproxy.envoy.extensions.compression.qatzstd.compressor.v3alphaB\fQatzstdProtoP\x01Zfgithub.com/envoyproxy/go-control-plane/contrib/envoy/extensions/compression/qatzstd/compressor/v3alphab\x06proto3"

var (
	file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_rawDescOnce sync.Once
	file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_rawDescData []byte
)

func file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_rawDescGZIP() []byte {
	file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_rawDescOnce.Do(func() {
		file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_rawDesc), len(file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_rawDesc)))
	})
	return file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_rawDescData
}

var file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_goTypes = []any{
	(Qatzstd_Strategy)(0),          // 0: envoy.extensions.compression.qatzstd.compressor.v3alpha.Qatzstd.Strategy
	(*Qatzstd)(nil),                // 1: envoy.extensions.compression.qatzstd.compressor.v3alpha.Qatzstd
	(*wrapperspb.UInt32Value)(nil), // 2: google.protobuf.UInt32Value
}
var file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_depIdxs = []int32{
	2, // 0: envoy.extensions.compression.qatzstd.compressor.v3alpha.Qatzstd.compression_level:type_name -> google.protobuf.UInt32Value
	0, // 1: envoy.extensions.compression.qatzstd.compressor.v3alpha.Qatzstd.strategy:type_name -> envoy.extensions.compression.qatzstd.compressor.v3alpha.Qatzstd.Strategy
	2, // 2: envoy.extensions.compression.qatzstd.compressor.v3alpha.Qatzstd.chunk_size:type_name -> google.protobuf.UInt32Value
	2, // 3: envoy.extensions.compression.qatzstd.compressor.v3alpha.Qatzstd.qat_zstd_fallback_threshold:type_name -> google.protobuf.UInt32Value
	4, // [4:4] is the sub-list for method output_type
	4, // [4:4] is the sub-list for method input_type
	4, // [4:4] is the sub-list for extension type_name
	4, // [4:4] is the sub-list for extension extendee
	0, // [0:4] is the sub-list for field type_name
}

func init() {
	file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_init()
}
func file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_init() {
	if File_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_rawDesc), len(file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_goTypes,
		DependencyIndexes: file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_depIdxs,
		EnumInfos:         file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_enumTypes,
		MessageInfos:      file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_msgTypes,
	}.Build()
	File_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto = out.File
	file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_goTypes = nil
	file_contrib_envoy_extensions_compression_qatzstd_compressor_v3alpha_qatzstd_proto_depIdxs = nil
}
