// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.7
// 	protoc        v6.32.0
// source: internal/tool/redistool/redistool.proto

package redistool

import (
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"

	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)

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 ExpiringValue struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	ExpiresAt     int64                  `protobuf:"varint,1,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	Value         []byte                 `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ExpiringValue) ProtoMessage() {}

func (x *ExpiringValue) ProtoReflect() protoreflect.Message {
	mi := &file_internal_tool_redistool_redistool_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 ExpiringValue.ProtoReflect.Descriptor instead.
func (*ExpiringValue) Descriptor() ([]byte, []int) {
	return file_internal_tool_redistool_redistool_proto_rawDescGZIP(), []int{0}
}

func (x *ExpiringValue) GetExpiresAt() int64 {
	if x != nil {
		return x.ExpiresAt
	}
	return 0
}

func (x *ExpiringValue) GetValue() []byte {
	if x != nil {
		return x.Value
	}
	return nil
}

type ExpiringValueTimestamp struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	ExpiresAt     int64                  `protobuf:"varint,1,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ExpiringValueTimestamp) Reset() {
	*x = ExpiringValueTimestamp{}
	mi := &file_internal_tool_redistool_redistool_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ExpiringValueTimestamp) ProtoMessage() {}

func (x *ExpiringValueTimestamp) ProtoReflect() protoreflect.Message {
	mi := &file_internal_tool_redistool_redistool_proto_msgTypes[1]
	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 ExpiringValueTimestamp.ProtoReflect.Descriptor instead.
func (*ExpiringValueTimestamp) Descriptor() ([]byte, []int) {
	return file_internal_tool_redistool_redistool_proto_rawDescGZIP(), []int{1}
}

func (x *ExpiringValueTimestamp) GetExpiresAt() int64 {
	if x != nil {
		return x.ExpiresAt
	}
	return 0
}

var File_internal_tool_redistool_redistool_proto protoreflect.FileDescriptor

const file_internal_tool_redistool_redistool_proto_rawDesc = "" +
	"\n" +
	"'internal/tool/redistool/redistool.proto\x12\x16gitlab.agent.redistool\"D\n" +
	"\rExpiringValue\x12\x1d\n" +
	"\n" +
	"expires_at\x18\x01 \x01(\x03R\texpiresAt\x12\x14\n" +
	"\x05value\x18\x02 \x01(\fR\x05value\"7\n" +
	"\x16ExpiringValueTimestamp\x12\x1d\n" +
	"\n" +
	"expires_at\x18\x01 \x01(\x03R\texpiresAtBTZRgitlab.com/gitlab-org/cluster-integration/gitlab-agent/v18/internal/tool/redistoolb\x06proto3"

var (
	file_internal_tool_redistool_redistool_proto_rawDescOnce sync.Once
	file_internal_tool_redistool_redistool_proto_rawDescData []byte
)

func file_internal_tool_redistool_redistool_proto_rawDescGZIP() []byte {
	file_internal_tool_redistool_redistool_proto_rawDescOnce.Do(func() {
		file_internal_tool_redistool_redistool_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_internal_tool_redistool_redistool_proto_rawDesc), len(file_internal_tool_redistool_redistool_proto_rawDesc)))
	})
	return file_internal_tool_redistool_redistool_proto_rawDescData
}

var file_internal_tool_redistool_redistool_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_internal_tool_redistool_redistool_proto_goTypes = []any{
	(*ExpiringValue)(nil),          // 0: gitlab.agent.redistool.ExpiringValue
	(*ExpiringValueTimestamp)(nil), // 1: gitlab.agent.redistool.ExpiringValueTimestamp
}
var file_internal_tool_redistool_redistool_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_internal_tool_redistool_redistool_proto_init() }
func file_internal_tool_redistool_redistool_proto_init() {
	if File_internal_tool_redistool_redistool_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_tool_redistool_redistool_proto_rawDesc), len(file_internal_tool_redistool_redistool_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_internal_tool_redistool_redistool_proto_goTypes,
		DependencyIndexes: file_internal_tool_redistool_redistool_proto_depIdxs,
		MessageInfos:      file_internal_tool_redistool_redistool_proto_msgTypes,
	}.Build()
	File_internal_tool_redistool_redistool_proto = out.File
	file_internal_tool_redistool_redistool_proto_goTypes = nil
	file_internal_tool_redistool_redistool_proto_depIdxs = nil
}
