// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        (unknown)
// source: xyz/block/ftl/lease/v1/lease.proto

package leasepb

import (
	v1 "github.com/block/ftl/backend/protos/xyz/block/ftl/v1"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	durationpb "google.golang.org/protobuf/types/known/durationpb"
	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 AcquireLeaseRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Key           []string               `protobuf:"bytes,1,rep,name=key,proto3" json:"key,omitempty"`
	Ttl           *durationpb.Duration   `protobuf:"bytes,3,opt,name=ttl,proto3" json:"ttl,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AcquireLeaseRequest) ProtoMessage() {}

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

func (x *AcquireLeaseRequest) GetKey() []string {
	if x != nil {
		return x.Key
	}
	return nil
}

func (x *AcquireLeaseRequest) GetTtl() *durationpb.Duration {
	if x != nil {
		return x.Ttl
	}
	return nil
}

type AcquireLeaseResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AcquireLeaseResponse) ProtoMessage() {}

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

var File_xyz_block_ftl_lease_v1_lease_proto protoreflect.FileDescriptor

const file_xyz_block_ftl_lease_v1_lease_proto_rawDesc = "" +
	"\n" +
	"\"xyz/block/ftl/lease/v1/lease.proto\x12\x16xyz.block.ftl.lease.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1axyz/block/ftl/v1/ftl.proto\"T\n" +
	"\x13AcquireLeaseRequest\x12\x10\n" +
	"\x03key\x18\x01 \x03(\tR\x03key\x12+\n" +
	"\x03ttl\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\x03ttl\"\x16\n" +
	"\x14AcquireLeaseResponse2\xc9\x01\n" +
	"\fLeaseService\x12J\n" +
	"\x04Ping\x12\x1d.xyz.block.ftl.v1.PingRequest\x1a\x1e.xyz.block.ftl.v1.PingResponse\"\x03\x90\x02\x01\x12m\n" +
	"\fAcquireLease\x12+.xyz.block.ftl.lease.v1.AcquireLeaseRequest\x1a,.xyz.block.ftl.lease.v1.AcquireLeaseResponse(\x010\x01BFP\x01ZBgithub.com/block/ftl/backend/protos/xyz/block/ftl/lease/v1;leasepbb\x06proto3"

var (
	file_xyz_block_ftl_lease_v1_lease_proto_rawDescOnce sync.Once
	file_xyz_block_ftl_lease_v1_lease_proto_rawDescData []byte
)

func file_xyz_block_ftl_lease_v1_lease_proto_rawDescGZIP() []byte {
	file_xyz_block_ftl_lease_v1_lease_proto_rawDescOnce.Do(func() {
		file_xyz_block_ftl_lease_v1_lease_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_xyz_block_ftl_lease_v1_lease_proto_rawDesc), len(file_xyz_block_ftl_lease_v1_lease_proto_rawDesc)))
	})
	return file_xyz_block_ftl_lease_v1_lease_proto_rawDescData
}

var file_xyz_block_ftl_lease_v1_lease_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_xyz_block_ftl_lease_v1_lease_proto_goTypes = []any{
	(*AcquireLeaseRequest)(nil),  // 0: xyz.block.ftl.lease.v1.AcquireLeaseRequest
	(*AcquireLeaseResponse)(nil), // 1: xyz.block.ftl.lease.v1.AcquireLeaseResponse
	(*durationpb.Duration)(nil),  // 2: google.protobuf.Duration
	(*v1.PingRequest)(nil),       // 3: xyz.block.ftl.v1.PingRequest
	(*v1.PingResponse)(nil),      // 4: xyz.block.ftl.v1.PingResponse
}
var file_xyz_block_ftl_lease_v1_lease_proto_depIdxs = []int32{
	2, // 0: xyz.block.ftl.lease.v1.AcquireLeaseRequest.ttl:type_name -> google.protobuf.Duration
	3, // 1: xyz.block.ftl.lease.v1.LeaseService.Ping:input_type -> xyz.block.ftl.v1.PingRequest
	0, // 2: xyz.block.ftl.lease.v1.LeaseService.AcquireLease:input_type -> xyz.block.ftl.lease.v1.AcquireLeaseRequest
	4, // 3: xyz.block.ftl.lease.v1.LeaseService.Ping:output_type -> xyz.block.ftl.v1.PingResponse
	1, // 4: xyz.block.ftl.lease.v1.LeaseService.AcquireLease:output_type -> xyz.block.ftl.lease.v1.AcquireLeaseResponse
	3, // [3:5] is the sub-list for method output_type
	1, // [1:3] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_xyz_block_ftl_lease_v1_lease_proto_init() }
func file_xyz_block_ftl_lease_v1_lease_proto_init() {
	if File_xyz_block_ftl_lease_v1_lease_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_xyz_block_ftl_lease_v1_lease_proto_rawDesc), len(file_xyz_block_ftl_lease_v1_lease_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_xyz_block_ftl_lease_v1_lease_proto_goTypes,
		DependencyIndexes: file_xyz_block_ftl_lease_v1_lease_proto_depIdxs,
		MessageInfos:      file_xyz_block_ftl_lease_v1_lease_proto_msgTypes,
	}.Build()
	File_xyz_block_ftl_lease_v1_lease_proto = out.File
	file_xyz_block_ftl_lease_v1_lease_proto_goTypes = nil
	file_xyz_block_ftl_lease_v1_lease_proto_depIdxs = nil
}
