// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.20.3
// source: lease.proto

package leasepb

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

	etcdserverpb "go.etcd.io/etcd/api/v3/etcdserverpb"
	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 Lease struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	ID            int64                  `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	TTL           int64                  `protobuf:"varint,2,opt,name=TTL,proto3" json:"TTL,omitempty"`
	RemainingTTL  int64                  `protobuf:"varint,3,opt,name=RemainingTTL,proto3" json:"RemainingTTL,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Lease) ProtoMessage() {}

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

func (x *Lease) GetID() int64 {
	if x != nil {
		return x.ID
	}
	return 0
}

func (x *Lease) GetTTL() int64 {
	if x != nil {
		return x.TTL
	}
	return 0
}

func (x *Lease) GetRemainingTTL() int64 {
	if x != nil {
		return x.RemainingTTL
	}
	return 0
}

type LeaseInternalRequest struct {
	state                  protoimpl.MessageState               `protogen:"open.v1"`
	LeaseTimeToLiveRequest *etcdserverpb.LeaseTimeToLiveRequest `protobuf:"bytes,1,opt,name=LeaseTimeToLiveRequest,proto3" json:"LeaseTimeToLiveRequest,omitempty"`
	unknownFields          protoimpl.UnknownFields
	sizeCache              protoimpl.SizeCache
}

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

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

func (*LeaseInternalRequest) ProtoMessage() {}

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

func (x *LeaseInternalRequest) GetLeaseTimeToLiveRequest() *etcdserverpb.LeaseTimeToLiveRequest {
	if x != nil {
		return x.LeaseTimeToLiveRequest
	}
	return nil
}

type LeaseInternalResponse struct {
	state                   protoimpl.MessageState                `protogen:"open.v1"`
	LeaseTimeToLiveResponse *etcdserverpb.LeaseTimeToLiveResponse `protobuf:"bytes,1,opt,name=LeaseTimeToLiveResponse,proto3" json:"LeaseTimeToLiveResponse,omitempty"`
	unknownFields           protoimpl.UnknownFields
	sizeCache               protoimpl.SizeCache
}

func (x *LeaseInternalResponse) Reset() {
	*x = LeaseInternalResponse{}
	mi := &file_lease_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*LeaseInternalResponse) ProtoMessage() {}

func (x *LeaseInternalResponse) ProtoReflect() protoreflect.Message {
	mi := &file_lease_proto_msgTypes[2]
	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 LeaseInternalResponse.ProtoReflect.Descriptor instead.
func (*LeaseInternalResponse) Descriptor() ([]byte, []int) {
	return file_lease_proto_rawDescGZIP(), []int{2}
}

func (x *LeaseInternalResponse) GetLeaseTimeToLiveResponse() *etcdserverpb.LeaseTimeToLiveResponse {
	if x != nil {
		return x.LeaseTimeToLiveResponse
	}
	return nil
}

var File_lease_proto protoreflect.FileDescriptor

const file_lease_proto_rawDesc = "" +
	"\n" +
	"\vlease.proto\x12\aleasepb\x1a\x1fetcd/api/etcdserverpb/rpc.proto\"M\n" +
	"\x05Lease\x12\x0e\n" +
	"\x02ID\x18\x01 \x01(\x03R\x02ID\x12\x10\n" +
	"\x03TTL\x18\x02 \x01(\x03R\x03TTL\x12\"\n" +
	"\fRemainingTTL\x18\x03 \x01(\x03R\fRemainingTTL\"t\n" +
	"\x14LeaseInternalRequest\x12\\\n" +
	"\x16LeaseTimeToLiveRequest\x18\x01 \x01(\v2$.etcdserverpb.LeaseTimeToLiveRequestR\x16LeaseTimeToLiveRequest\"x\n" +
	"\x15LeaseInternalResponse\x12_\n" +
	"\x17LeaseTimeToLiveResponse\x18\x01 \x01(\v2%.etcdserverpb.LeaseTimeToLiveResponseR\x17LeaseTimeToLiveResponseB1Z/go.etcd.io/etcd/server/v3/lease/leasepb;leasepbb\x06proto3"

var (
	file_lease_proto_rawDescOnce sync.Once
	file_lease_proto_rawDescData []byte
)

func file_lease_proto_rawDescGZIP() []byte {
	file_lease_proto_rawDescOnce.Do(func() {
		file_lease_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_lease_proto_rawDesc), len(file_lease_proto_rawDesc)))
	})
	return file_lease_proto_rawDescData
}

var file_lease_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_lease_proto_goTypes = []any{
	(*Lease)(nil),                                // 0: leasepb.Lease
	(*LeaseInternalRequest)(nil),                 // 1: leasepb.LeaseInternalRequest
	(*LeaseInternalResponse)(nil),                // 2: leasepb.LeaseInternalResponse
	(*etcdserverpb.LeaseTimeToLiveRequest)(nil),  // 3: etcdserverpb.LeaseTimeToLiveRequest
	(*etcdserverpb.LeaseTimeToLiveResponse)(nil), // 4: etcdserverpb.LeaseTimeToLiveResponse
}
var file_lease_proto_depIdxs = []int32{
	3, // 0: leasepb.LeaseInternalRequest.LeaseTimeToLiveRequest:type_name -> etcdserverpb.LeaseTimeToLiveRequest
	4, // 1: leasepb.LeaseInternalResponse.LeaseTimeToLiveResponse:type_name -> etcdserverpb.LeaseTimeToLiveResponse
	2, // [2:2] is the sub-list for method output_type
	2, // [2:2] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_lease_proto_init() }
func file_lease_proto_init() {
	if File_lease_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_lease_proto_rawDesc), len(file_lease_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_lease_proto_goTypes,
		DependencyIndexes: file_lease_proto_depIdxs,
		MessageInfos:      file_lease_proto_msgTypes,
	}.Build()
	File_lease_proto = out.File
	file_lease_proto_goTypes = nil
	file_lease_proto_depIdxs = nil
}
