// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v5.29.3
// source: spark_tree.proto

package spark_tree

import (
	spark "github.com/lightsparkdev/spark/proto/spark"
	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 GetLeafDenominationCountsRequest struct {
	state                  protoimpl.MessageState `protogen:"open.v1"`
	OwnerIdentityPublicKey []byte                 `protobuf:"bytes,1,opt,name=owner_identity_public_key,json=ownerIdentityPublicKey,proto3" json:"owner_identity_public_key,omitempty"`
	Network                spark.Network          `protobuf:"varint,2,opt,name=network,proto3,enum=spark.Network" json:"network,omitempty"`
	unknownFields          protoimpl.UnknownFields
	sizeCache              protoimpl.SizeCache
}

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

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

func (*GetLeafDenominationCountsRequest) ProtoMessage() {}

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

func (x *GetLeafDenominationCountsRequest) GetOwnerIdentityPublicKey() []byte {
	if x != nil {
		return x.OwnerIdentityPublicKey
	}
	return nil
}

func (x *GetLeafDenominationCountsRequest) GetNetwork() spark.Network {
	if x != nil {
		return x.Network
	}
	return spark.Network(0)
}

type GetLeafDenominationCountsResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Counts        map[uint64]uint64      `protobuf:"bytes,1,rep,name=counts,proto3" json:"counts,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetLeafDenominationCountsResponse) ProtoMessage() {}

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

func (x *GetLeafDenominationCountsResponse) GetCounts() map[uint64]uint64 {
	if x != nil {
		return x.Counts
	}
	return nil
}

type FetchPolarityScoreRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	PublicKeys    [][]byte               `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*FetchPolarityScoreRequest) ProtoMessage() {}

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

func (x *FetchPolarityScoreRequest) GetPublicKeys() [][]byte {
	if x != nil {
		return x.PublicKeys
	}
	return nil
}

type PolarityScore struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	LeafId        string                 `protobuf:"bytes,1,opt,name=leaf_id,json=leafId,proto3" json:"leaf_id,omitempty"`
	PublicKey     []byte                 `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	Score         float32                `protobuf:"fixed32,3,opt,name=score,proto3" json:"score,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *PolarityScore) Reset() {
	*x = PolarityScore{}
	mi := &file_spark_tree_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*PolarityScore) ProtoMessage() {}

func (x *PolarityScore) ProtoReflect() protoreflect.Message {
	mi := &file_spark_tree_proto_msgTypes[3]
	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 PolarityScore.ProtoReflect.Descriptor instead.
func (*PolarityScore) Descriptor() ([]byte, []int) {
	return file_spark_tree_proto_rawDescGZIP(), []int{3}
}

func (x *PolarityScore) GetLeafId() string {
	if x != nil {
		return x.LeafId
	}
	return ""
}

func (x *PolarityScore) GetPublicKey() []byte {
	if x != nil {
		return x.PublicKey
	}
	return nil
}

func (x *PolarityScore) GetScore() float32 {
	if x != nil {
		return x.Score
	}
	return 0
}

var File_spark_tree_proto protoreflect.FileDescriptor

const file_spark_tree_proto_rawDesc = "" +
	"\n" +
	"\x10spark_tree.proto\x12\x05spark\x1a\vspark.proto\"\x87\x01\n" +
	" GetLeafDenominationCountsRequest\x129\n" +
	"\x19owner_identity_public_key\x18\x01 \x01(\fR\x16ownerIdentityPublicKey\x12(\n" +
	"\anetwork\x18\x02 \x01(\x0e2\x0e.spark.NetworkR\anetwork\"\xac\x01\n" +
	"!GetLeafDenominationCountsResponse\x12L\n" +
	"\x06counts\x18\x01 \x03(\v24.spark.GetLeafDenominationCountsResponse.CountsEntryR\x06counts\x1a9\n" +
	"\vCountsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\x04R\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\x04R\x05value:\x028\x01\"<\n" +
	"\x19FetchPolarityScoreRequest\x12\x1f\n" +
	"\vpublic_keys\x18\x01 \x03(\fR\n" +
	"publicKeys\"]\n" +
	"\rPolarityScore\x12\x17\n" +
	"\aleaf_id\x18\x01 \x01(\tR\x06leafId\x12\x1d\n" +
	"\n" +
	"public_key\x18\x02 \x01(\fR\tpublicKey\x12\x14\n" +
	"\x05score\x18\x03 \x01(\x02R\x05score2\xdc\x01\n" +
	"\x10SparkTreeService\x12s\n" +
	"\x1cget_leaf_denomination_counts\x12'.spark.GetLeafDenominationCountsRequest\x1a(.spark.GetLeafDenominationCountsResponse\"\x00\x12S\n" +
	"\x15fetch_polarity_scores\x12 .spark.FetchPolarityScoreRequest\x1a\x14.spark.PolarityScore\"\x000\x01B1Z/github.com/lightsparkdev/spark/proto/spark_treeb\x06proto3"

var (
	file_spark_tree_proto_rawDescOnce sync.Once
	file_spark_tree_proto_rawDescData []byte
)

func file_spark_tree_proto_rawDescGZIP() []byte {
	file_spark_tree_proto_rawDescOnce.Do(func() {
		file_spark_tree_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_spark_tree_proto_rawDesc), len(file_spark_tree_proto_rawDesc)))
	})
	return file_spark_tree_proto_rawDescData
}

var file_spark_tree_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_spark_tree_proto_goTypes = []any{
	(*GetLeafDenominationCountsRequest)(nil),  // 0: spark.GetLeafDenominationCountsRequest
	(*GetLeafDenominationCountsResponse)(nil), // 1: spark.GetLeafDenominationCountsResponse
	(*FetchPolarityScoreRequest)(nil),         // 2: spark.FetchPolarityScoreRequest
	(*PolarityScore)(nil),                     // 3: spark.PolarityScore
	nil,                                       // 4: spark.GetLeafDenominationCountsResponse.CountsEntry
	(spark.Network)(0),                        // 5: spark.Network
}
var file_spark_tree_proto_depIdxs = []int32{
	5, // 0: spark.GetLeafDenominationCountsRequest.network:type_name -> spark.Network
	4, // 1: spark.GetLeafDenominationCountsResponse.counts:type_name -> spark.GetLeafDenominationCountsResponse.CountsEntry
	0, // 2: spark.SparkTreeService.get_leaf_denomination_counts:input_type -> spark.GetLeafDenominationCountsRequest
	2, // 3: spark.SparkTreeService.fetch_polarity_scores:input_type -> spark.FetchPolarityScoreRequest
	1, // 4: spark.SparkTreeService.get_leaf_denomination_counts:output_type -> spark.GetLeafDenominationCountsResponse
	3, // 5: spark.SparkTreeService.fetch_polarity_scores:output_type -> spark.PolarityScore
	4, // [4:6] is the sub-list for method output_type
	2, // [2:4] 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_spark_tree_proto_init() }
func file_spark_tree_proto_init() {
	if File_spark_tree_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_spark_tree_proto_rawDesc), len(file_spark_tree_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_spark_tree_proto_goTypes,
		DependencyIndexes: file_spark_tree_proto_depIdxs,
		MessageInfos:      file_spark_tree_proto_msgTypes,
	}.Build()
	File_spark_tree_proto = out.File
	file_spark_tree_proto_goTypes = nil
	file_spark_tree_proto_depIdxs = nil
}
