// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc v3.21.12 // source: generate/rpc/blockchain.proto package app_cloudep_blockchain 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) ) // OKResp type OKResp struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *OKResp) Reset() { *x = OKResp{} mi := &file_generate_rpc_blockchain_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *OKResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*OKResp) ProtoMessage() {} func (x *OKResp) ProtoReflect() protoreflect.Message { mi := &file_generate_rpc_blockchain_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 OKResp.ProtoReflect.Descriptor instead. func (*OKResp) Descriptor() ([]byte, []int) { return file_generate_rpc_blockchain_proto_rawDescGZIP(), []int{0} } // NoneReq type NoneReq struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *NoneReq) Reset() { *x = NoneReq{} mi := &file_generate_rpc_blockchain_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *NoneReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*NoneReq) ProtoMessage() {} func (x *NoneReq) ProtoReflect() protoreflect.Message { mi := &file_generate_rpc_blockchain_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 NoneReq.ProtoReflect.Descriptor instead. func (*NoneReq) Descriptor() ([]byte, []int) { return file_generate_rpc_blockchain_proto_rawDescGZIP(), []int{1} } // ListSymbolsRequest is the request for the ListSymbols RPC. // It is currently empty but can be extended with filtering or pagination fields in the future. type ListSymbolsRequest struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListSymbolsRequest) Reset() { *x = ListSymbolsRequest{} mi := &file_generate_rpc_blockchain_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListSymbolsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListSymbolsRequest) ProtoMessage() {} func (x *ListSymbolsRequest) ProtoReflect() protoreflect.Message { mi := &file_generate_rpc_blockchain_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 ListSymbolsRequest.ProtoReflect.Descriptor instead. func (*ListSymbolsRequest) Descriptor() ([]byte, []int) { return file_generate_rpc_blockchain_proto_rawDescGZIP(), []int{2} } // ListSymbolsResponse contains a list of symbols. type ListSymbolsResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Symbols []*Symbol `protobuf:"bytes,1,rep,name=symbols,proto3" json:"symbols,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListSymbolsResponse) Reset() { *x = ListSymbolsResponse{} mi := &file_generate_rpc_blockchain_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListSymbolsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListSymbolsResponse) ProtoMessage() {} func (x *ListSymbolsResponse) ProtoReflect() protoreflect.Message { mi := &file_generate_rpc_blockchain_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 ListSymbolsResponse.ProtoReflect.Descriptor instead. func (*ListSymbolsResponse) Descriptor() ([]byte, []int) { return file_generate_rpc_blockchain_proto_rawDescGZIP(), []int{3} } func (x *ListSymbolsResponse) GetSymbols() []*Symbol { if x != nil { return x.Symbols } return nil } // Symbol represents information about a trading pair. type Symbol struct { state protoimpl.MessageState `protogen:"open.v1"` Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` // 交易對名稱 (BTCUSDT) Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // 狀態(如 "TRADING" 表示可交易) BaseAsset string `protobuf:"bytes,3,opt,name=base_asset,json=baseAsset,proto3" json:"base_asset,omitempty"` // 主幣種(如 BTCUSDT 的 BTC) BaseAssetPrecision int32 `protobuf:"varint,4,opt,name=base_asset_precision,json=baseAssetPrecision,proto3" json:"base_asset_precision,omitempty"` // 主幣的小數點精度 QuoteAsset string `protobuf:"bytes,5,opt,name=quote_asset,json=quoteAsset,proto3" json:"quote_asset,omitempty"` // 報價幣種(如 BTCUSDT 的 USDT) QuoteAssetPrecision int32 `protobuf:"varint,6,opt,name=quote_asset_precision,json=quoteAssetPrecision,proto3" json:"quote_asset_precision,omitempty"` // 報價資產顯示的小數位數 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Symbol) Reset() { *x = Symbol{} mi := &file_generate_rpc_blockchain_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Symbol) String() string { return protoimpl.X.MessageStringOf(x) } func (*Symbol) ProtoMessage() {} func (x *Symbol) ProtoReflect() protoreflect.Message { mi := &file_generate_rpc_blockchain_proto_msgTypes[4] 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 Symbol.ProtoReflect.Descriptor instead. func (*Symbol) Descriptor() ([]byte, []int) { return file_generate_rpc_blockchain_proto_rawDescGZIP(), []int{4} } func (x *Symbol) GetSymbol() string { if x != nil { return x.Symbol } return "" } func (x *Symbol) GetStatus() string { if x != nil { return x.Status } return "" } func (x *Symbol) GetBaseAsset() string { if x != nil { return x.BaseAsset } return "" } func (x *Symbol) GetBaseAssetPrecision() int32 { if x != nil { return x.BaseAssetPrecision } return 0 } func (x *Symbol) GetQuoteAsset() string { if x != nil { return x.QuoteAsset } return "" } func (x *Symbol) GetQuoteAssetPrecision() int32 { if x != nil { return x.QuoteAssetPrecision } return 0 } var File_generate_rpc_blockchain_proto protoreflect.FileDescriptor const file_generate_rpc_blockchain_proto_rawDesc = "" + "\n" + "\x1dgenerate/rpc/blockchain.proto\x12\n" + "blockchain\"\b\n" + "\x06OKResp\"\t\n" + "\aNoneReq\"\x14\n" + "\x12ListSymbolsRequest\"C\n" + "\x13ListSymbolsResponse\x12,\n" + "\asymbols\x18\x01 \x03(\v2\x12.blockchain.SymbolR\asymbols\"\xde\x01\n" + "\x06Symbol\x12\x16\n" + "\x06symbol\x18\x01 \x01(\tR\x06symbol\x12\x16\n" + "\x06status\x18\x02 \x01(\tR\x06status\x12\x1d\n" + "\n" + "base_asset\x18\x03 \x01(\tR\tbaseAsset\x120\n" + "\x14base_asset_precision\x18\x04 \x01(\x05R\x12baseAssetPrecision\x12\x1f\n" + "\vquote_asset\x18\x05 \x01(\tR\n" + "quoteAsset\x122\n" + "\x15quote_asset_precision\x18\x06 \x01(\x05R\x13quoteAssetPrecision2\x94\x01\n" + "\x11BlockchainService\x12N\n" + "\vListSymbols\x12\x1e.blockchain.ListSymbolsRequest\x1a\x1f.blockchain.ListSymbolsResponse\x12/\n" + "\x04Ping\x12\x13.blockchain.NoneReq\x1a\x12.blockchain.OKRespB.Z,code.30cm.net/digimon/app-cloudep-blockchainb\x06proto3" var ( file_generate_rpc_blockchain_proto_rawDescOnce sync.Once file_generate_rpc_blockchain_proto_rawDescData []byte ) func file_generate_rpc_blockchain_proto_rawDescGZIP() []byte { file_generate_rpc_blockchain_proto_rawDescOnce.Do(func() { file_generate_rpc_blockchain_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_generate_rpc_blockchain_proto_rawDesc), len(file_generate_rpc_blockchain_proto_rawDesc))) }) return file_generate_rpc_blockchain_proto_rawDescData } var file_generate_rpc_blockchain_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_generate_rpc_blockchain_proto_goTypes = []any{ (*OKResp)(nil), // 0: blockchain.OKResp (*NoneReq)(nil), // 1: blockchain.NoneReq (*ListSymbolsRequest)(nil), // 2: blockchain.ListSymbolsRequest (*ListSymbolsResponse)(nil), // 3: blockchain.ListSymbolsResponse (*Symbol)(nil), // 4: blockchain.Symbol } var file_generate_rpc_blockchain_proto_depIdxs = []int32{ 4, // 0: blockchain.ListSymbolsResponse.symbols:type_name -> blockchain.Symbol 2, // 1: blockchain.BlockchainService.ListSymbols:input_type -> blockchain.ListSymbolsRequest 1, // 2: blockchain.BlockchainService.Ping:input_type -> blockchain.NoneReq 3, // 3: blockchain.BlockchainService.ListSymbols:output_type -> blockchain.ListSymbolsResponse 0, // 4: blockchain.BlockchainService.Ping:output_type -> blockchain.OKResp 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_generate_rpc_blockchain_proto_init() } func file_generate_rpc_blockchain_proto_init() { if File_generate_rpc_blockchain_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_generate_rpc_blockchain_proto_rawDesc), len(file_generate_rpc_blockchain_proto_rawDesc)), NumEnums: 0, NumMessages: 5, NumExtensions: 0, NumServices: 1, }, GoTypes: file_generate_rpc_blockchain_proto_goTypes, DependencyIndexes: file_generate_rpc_blockchain_proto_depIdxs, MessageInfos: file_generate_rpc_blockchain_proto_msgTypes, }.Build() File_generate_rpc_blockchain_proto = out.File file_generate_rpc_blockchain_proto_goTypes = nil file_generate_rpc_blockchain_proto_depIdxs = nil }