// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.31.0
// 	protoc        v4.23.4
// source: interface/web3/defi.proto

package web3

import (
	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
)

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 GetTokenPriceRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	SourceToken string `protobuf:"bytes,1,opt,name=source_token,json=sourceToken,proto3" json:"source_token,omitempty"`
	TargetToken string `protobuf:"bytes,2,opt,name=target_token,json=targetToken,proto3" json:"target_token,omitempty"`
}

func (x *GetTokenPriceRequest) Reset() {
	*x = GetTokenPriceRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_interface_web3_defi_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

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

func (*GetTokenPriceRequest) ProtoMessage() {}

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

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

func (x *GetTokenPriceRequest) GetSourceToken() string {
	if x != nil {
		return x.SourceToken
	}
	return ""
}

func (x *GetTokenPriceRequest) GetTargetToken() string {
	if x != nil {
		return x.TargetToken
	}
	return ""
}

type GetTokenPriceReply struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Price map[string]*GetTokenPriceReply_Price `protobuf:"bytes,1,rep,name=price,proto3" json:"price,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}

func (x *GetTokenPriceReply) Reset() {
	*x = GetTokenPriceReply{}
	if protoimpl.UnsafeEnabled {
		mi := &file_interface_web3_defi_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

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

func (*GetTokenPriceReply) ProtoMessage() {}

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

// Deprecated: Use GetTokenPriceReply.ProtoReflect.Descriptor instead.
func (*GetTokenPriceReply) Descriptor() ([]byte, []int) {
	return file_interface_web3_defi_proto_rawDescGZIP(), []int{1}
}

func (x *GetTokenPriceReply) GetPrice() map[string]*GetTokenPriceReply_Price {
	if x != nil {
		return x.Price
	}
	return nil
}

type GetTokenPriceReply_Price struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Price       float64 `protobuf:"fixed64,1,opt,name=price,proto3" json:"price,omitempty"`
	Timestamp   int64   `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	SourceToken string  `protobuf:"bytes,3,opt,name=source_token,proto3" json:"source_token,omitempty"`
	TargetToken string  `protobuf:"bytes,4,opt,name=target_token,proto3" json:"target_token,omitempty"`
}

func (x *GetTokenPriceReply_Price) Reset() {
	*x = GetTokenPriceReply_Price{}
	if protoimpl.UnsafeEnabled {
		mi := &file_interface_web3_defi_proto_msgTypes[2]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

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

func (*GetTokenPriceReply_Price) ProtoMessage() {}

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

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

func (x *GetTokenPriceReply_Price) GetPrice() float64 {
	if x != nil {
		return x.Price
	}
	return 0
}

func (x *GetTokenPriceReply_Price) GetTimestamp() int64 {
	if x != nil {
		return x.Timestamp
	}
	return 0
}

func (x *GetTokenPriceReply_Price) GetSourceToken() string {
	if x != nil {
		return x.SourceToken
	}
	return ""
}

func (x *GetTokenPriceReply_Price) GetTargetToken() string {
	if x != nil {
		return x.TargetToken
	}
	return ""
}

var File_interface_web3_defi_proto protoreflect.FileDescriptor

var file_interface_web3_defi_proto_rawDesc = []byte{
	0x0a, 0x19, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2f, 0x77, 0x65, 0x62, 0x33,
	0x2f, 0x64, 0x65, 0x66, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x61, 0x70, 0x69,
	0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x77, 0x65, 0x62, 0x33, 0x1a,
	0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f,
	0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5c, 0x0a,
	0x14, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65,
	0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f,
	0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x6f, 0x75,
	0x72, 0x63, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67,
	0x65, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
	0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xcb, 0x02, 0x0a, 0x12,
	0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x70,
	0x6c, 0x79, 0x12, 0x47, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28,
	0x0b, 0x32, 0x31, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63,
	0x65, 0x2e, 0x77, 0x65, 0x62, 0x33, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50,
	0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x45,
	0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x1a, 0x83, 0x01, 0x0a, 0x05,
	0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01,
	0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74,
	0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
	0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x6f, 0x75,
	0x72, 0x63, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
	0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x22, 0x0a,
	0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20,
	0x01, 0x28, 0x09, 0x52, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65,
	0x6e, 0x1a, 0x66, 0x0a, 0x0a, 0x50, 0x72, 0x69, 0x63, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
	0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
	0x79, 0x12, 0x42, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
	0x32, 0x2c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65,
	0x2e, 0x77, 0x65, 0x62, 0x33, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x72,
	0x69, 0x63, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x05,
	0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0x9a, 0x01, 0x0a, 0x04, 0x44, 0x65,
	0x66, 0x69, 0x12, 0x91, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50,
	0x72, 0x69, 0x63, 0x65, 0x12, 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72,
	0x66, 0x61, 0x63, 0x65, 0x2e, 0x77, 0x65, 0x62, 0x33, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b,
	0x65, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26,
	0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x77,
	0x65, 0x62, 0x33, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x72, 0x69, 0x63,
	0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26,
	0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x69, 0x6e, 0x74,
	0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2f, 0x77, 0x65, 0x62, 0x33, 0x2f, 0x64, 0x65, 0x66, 0x69,
	0x2f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x42, 0x34, 0x0a, 0x12, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6e,
	0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x77, 0x65, 0x62, 0x33, 0x50, 0x01, 0x5a, 0x1c,
	0x77, 0x65, 0x62, 0x33, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61,
	0x63, 0x65, 0x2f, 0x77, 0x65, 0x62, 0x33, 0x3b, 0x77, 0x65, 0x62, 0x33, 0x62, 0x06, 0x70, 0x72,
	0x6f, 0x74, 0x6f, 0x33,
}

var (
	file_interface_web3_defi_proto_rawDescOnce sync.Once
	file_interface_web3_defi_proto_rawDescData = file_interface_web3_defi_proto_rawDesc
)

func file_interface_web3_defi_proto_rawDescGZIP() []byte {
	file_interface_web3_defi_proto_rawDescOnce.Do(func() {
		file_interface_web3_defi_proto_rawDescData = protoimpl.X.CompressGZIP(file_interface_web3_defi_proto_rawDescData)
	})
	return file_interface_web3_defi_proto_rawDescData
}

var file_interface_web3_defi_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_interface_web3_defi_proto_goTypes = []interface{}{
	(*GetTokenPriceRequest)(nil),     // 0: api.interface.web3.GetTokenPriceRequest
	(*GetTokenPriceReply)(nil),       // 1: api.interface.web3.GetTokenPriceReply
	(*GetTokenPriceReply_Price)(nil), // 2: api.interface.web3.GetTokenPriceReply.Price
	nil,                              // 3: api.interface.web3.GetTokenPriceReply.PriceEntry
}
var file_interface_web3_defi_proto_depIdxs = []int32{
	3, // 0: api.interface.web3.GetTokenPriceReply.price:type_name -> api.interface.web3.GetTokenPriceReply.PriceEntry
	2, // 1: api.interface.web3.GetTokenPriceReply.PriceEntry.value:type_name -> api.interface.web3.GetTokenPriceReply.Price
	0, // 2: api.interface.web3.Defi.GetTokenPrice:input_type -> api.interface.web3.GetTokenPriceRequest
	1, // 3: api.interface.web3.Defi.GetTokenPrice:output_type -> api.interface.web3.GetTokenPriceReply
	3, // [3:4] is the sub-list for method output_type
	2, // [2:3] 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_interface_web3_defi_proto_init() }
func file_interface_web3_defi_proto_init() {
	if File_interface_web3_defi_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_interface_web3_defi_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*GetTokenPriceRequest); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_interface_web3_defi_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*GetTokenPriceReply); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_interface_web3_defi_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*GetTokenPriceReply_Price); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_interface_web3_defi_proto_rawDesc,
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_interface_web3_defi_proto_goTypes,
		DependencyIndexes: file_interface_web3_defi_proto_depIdxs,
		MessageInfos:      file_interface_web3_defi_proto_msgTypes,
	}.Build()
	File_interface_web3_defi_proto = out.File
	file_interface_web3_defi_proto_rawDesc = nil
	file_interface_web3_defi_proto_goTypes = nil
	file_interface_web3_defi_proto_depIdxs = nil
}
