| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.26.0
- // protoc v3.20.0
- // source: chain_admin.proto
- package pb
- import (
- context "context"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- 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 Body struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- //子链唯一标识
- ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
- //子链名称
- ChainName string `protobuf:"bytes,2,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
- //子链介绍
- ChainIntro string `protobuf:"bytes,3,opt,name=chain_intro,json=chainIntro,proto3" json:"chain_intro,omitempty"`
- //子链状态
- Status Status `protobuf:"varint,4,opt,name=status,proto3,enum=pb.Status" json:"status,omitempty"`
- }
- func (x *Body) Reset() {
- *x = Body{}
- if protoimpl.UnsafeEnabled {
- mi := &file_chain_admin_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Body) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Body) ProtoMessage() {}
- func (x *Body) ProtoReflect() protoreflect.Message {
- mi := &file_chain_admin_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 Body.ProtoReflect.Descriptor instead.
- func (*Body) Descriptor() ([]byte, []int) {
- return file_chain_admin_proto_rawDescGZIP(), []int{0}
- }
- func (x *Body) GetChainId() string {
- if x != nil {
- return x.ChainId
- }
- return ""
- }
- func (x *Body) GetChainName() string {
- if x != nil {
- return x.ChainName
- }
- return ""
- }
- func (x *Body) GetChainIntro() string {
- if x != nil {
- return x.ChainIntro
- }
- return ""
- }
- func (x *Body) GetStatus() Status {
- if x != nil {
- return x.Status
- }
- return Status_DISABLED
- }
- type GetAllChainsReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- //页数,默认为1
- Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
- //分页大小
- Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
- //排序字段
- Sort string `protobuf:"bytes,3,opt,name=sort,proto3" json:"sort,omitempty"`
- //排序类型
- Order OrderType `protobuf:"varint,4,opt,name=order,proto3,enum=pb.OrderType" json:"order,omitempty"`
- }
- func (x *GetAllChainsReq) Reset() {
- *x = GetAllChainsReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_chain_admin_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetAllChainsReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetAllChainsReq) ProtoMessage() {}
- func (x *GetAllChainsReq) ProtoReflect() protoreflect.Message {
- mi := &file_chain_admin_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 GetAllChainsReq.ProtoReflect.Descriptor instead.
- func (*GetAllChainsReq) Descriptor() ([]byte, []int) {
- return file_chain_admin_proto_rawDescGZIP(), []int{1}
- }
- func (x *GetAllChainsReq) GetPage() int64 {
- if x != nil {
- return x.Page
- }
- return 0
- }
- func (x *GetAllChainsReq) GetSize() int64 {
- if x != nil {
- return x.Size
- }
- return 0
- }
- func (x *GetAllChainsReq) GetSort() string {
- if x != nil {
- return x.Sort
- }
- return ""
- }
- func (x *GetAllChainsReq) GetOrder() OrderType {
- if x != nil {
- return x.Order
- }
- return OrderType_ASC
- }
- type ChainsList struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Data []*Chain `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
- }
- func (x *ChainsList) Reset() {
- *x = ChainsList{}
- if protoimpl.UnsafeEnabled {
- mi := &file_chain_admin_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ChainsList) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ChainsList) ProtoMessage() {}
- func (x *ChainsList) ProtoReflect() protoreflect.Message {
- mi := &file_chain_admin_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 ChainsList.ProtoReflect.Descriptor instead.
- func (*ChainsList) Descriptor() ([]byte, []int) {
- return file_chain_admin_proto_rawDescGZIP(), []int{2}
- }
- func (x *ChainsList) GetData() []*Chain {
- if x != nil {
- return x.Data
- }
- return nil
- }
- type Chain struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- //子链id
- ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
- //子链名称
- ChainName string `protobuf:"bytes,2,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
- //子链介绍
- ChainIntro string `protobuf:"bytes,3,opt,name=chain_intro,json=chainIntro,proto3" json:"chain_intro,omitempty"`
- //子链状态
- Status Status `protobuf:"varint,4,opt,name=status,proto3,enum=pb.Status" json:"status,omitempty"`
- //子链创建时间
- CreatedAt string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
- //子链最后修改时间
- UpdatedAt string `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
- }
- func (x *Chain) Reset() {
- *x = Chain{}
- if protoimpl.UnsafeEnabled {
- mi := &file_chain_admin_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Chain) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Chain) ProtoMessage() {}
- func (x *Chain) ProtoReflect() protoreflect.Message {
- mi := &file_chain_admin_proto_msgTypes[3]
- 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 Chain.ProtoReflect.Descriptor instead.
- func (*Chain) Descriptor() ([]byte, []int) {
- return file_chain_admin_proto_rawDescGZIP(), []int{3}
- }
- func (x *Chain) GetChainId() string {
- if x != nil {
- return x.ChainId
- }
- return ""
- }
- func (x *Chain) GetChainName() string {
- if x != nil {
- return x.ChainName
- }
- return ""
- }
- func (x *Chain) GetChainIntro() string {
- if x != nil {
- return x.ChainIntro
- }
- return ""
- }
- func (x *Chain) GetStatus() Status {
- if x != nil {
- return x.Status
- }
- return Status_DISABLED
- }
- func (x *Chain) GetCreatedAt() string {
- if x != nil {
- return x.CreatedAt
- }
- return ""
- }
- func (x *Chain) GetUpdatedAt() string {
- if x != nil {
- return x.UpdatedAt
- }
- return ""
- }
- type GetChainReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- //请求查询的子链id
- ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
- }
- func (x *GetChainReq) Reset() {
- *x = GetChainReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_chain_admin_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetChainReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetChainReq) ProtoMessage() {}
- func (x *GetChainReq) ProtoReflect() protoreflect.Message {
- mi := &file_chain_admin_proto_msgTypes[4]
- 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 GetChainReq.ProtoReflect.Descriptor instead.
- func (*GetChainReq) Descriptor() ([]byte, []int) {
- return file_chain_admin_proto_rawDescGZIP(), []int{4}
- }
- func (x *GetChainReq) GetChainId() string {
- if x != nil {
- return x.ChainId
- }
- return ""
- }
- var File_chain_admin_proto protoreflect.FileDescriptor
- var file_chain_admin_proto_rawDesc = []byte{
- 0x0a, 0x11, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x70, 0x72,
- 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x85, 0x01, 0x0a, 0x04, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x19,
- 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61,
- 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63,
- 0x68, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x69,
- 0x6e, 0x5f, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63,
- 0x68, 0x61, 0x69, 0x6e, 0x49, 0x6e, 0x74, 0x72, 0x6f, 0x12, 0x22, 0x0a, 0x06, 0x73, 0x74, 0x61,
- 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x53,
- 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x72, 0x0a,
- 0x0f, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71,
- 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04,
- 0x70, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x6f, 0x72, 0x74,
- 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x12, 0x23, 0x0a, 0x05,
- 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x70, 0x62,
- 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65,
- 0x72, 0x22, 0x2b, 0x0a, 0x0a, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12,
- 0x1d, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e,
- 0x70, 0x62, 0x2e, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xc4,
- 0x01, 0x0a, 0x05, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69,
- 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69,
- 0x6e, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d,
- 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x4e, 0x61,
- 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x6e, 0x74, 0x72,
- 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x6e,
- 0x74, 0x72, 0x6f, 0x12, 0x22, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20,
- 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
- 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74,
- 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65,
- 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
- 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61,
- 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x28, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x69,
- 0x6e, 0x52, 0x65, 0x71, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x32,
- 0xc0, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e,
- 0x12, 0x2a, 0x0a, 0x0d, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x68, 0x61, 0x69,
- 0x6e, 0x12, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0c,
- 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x0c,
- 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x13, 0x2e, 0x70,
- 0x62, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65,
- 0x71, 0x1a, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
- 0x29, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x0f, 0x2e, 0x70, 0x62,
- 0x2e, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x70,
- 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x09, 0x45, 0x64,
- 0x69, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
- 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x33,
- }
- var (
- file_chain_admin_proto_rawDescOnce sync.Once
- file_chain_admin_proto_rawDescData = file_chain_admin_proto_rawDesc
- )
- func file_chain_admin_proto_rawDescGZIP() []byte {
- file_chain_admin_proto_rawDescOnce.Do(func() {
- file_chain_admin_proto_rawDescData = protoimpl.X.CompressGZIP(file_chain_admin_proto_rawDescData)
- })
- return file_chain_admin_proto_rawDescData
- }
- var file_chain_admin_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
- var file_chain_admin_proto_goTypes = []interface{}{
- (*Body)(nil), // 0: pb.Body
- (*GetAllChainsReq)(nil), // 1: pb.GetAllChainsReq
- (*ChainsList)(nil), // 2: pb.ChainsList
- (*Chain)(nil), // 3: pb.Chain
- (*GetChainReq)(nil), // 4: pb.GetChainReq
- (Status)(0), // 5: pb.Status
- (OrderType)(0), // 6: pb.OrderType
- (*Request)(nil), // 7: pb.Request
- (*Response)(nil), // 8: pb.Response
- }
- var file_chain_admin_proto_depIdxs = []int32{
- 5, // 0: pb.Body.status:type_name -> pb.Status
- 6, // 1: pb.GetAllChainsReq.order:type_name -> pb.OrderType
- 3, // 2: pb.ChainsList.data:type_name -> pb.Chain
- 5, // 3: pb.Chain.status:type_name -> pb.Status
- 7, // 4: pb.ServiceChain.RegisterChain:input_type -> pb.Request
- 1, // 5: pb.ServiceChain.GetAllChains:input_type -> pb.GetAllChainsReq
- 4, // 6: pb.ServiceChain.GetChain:input_type -> pb.GetChainReq
- 7, // 7: pb.ServiceChain.EditChain:input_type -> pb.Request
- 8, // 8: pb.ServiceChain.RegisterChain:output_type -> pb.Response
- 8, // 9: pb.ServiceChain.GetAllChains:output_type -> pb.Response
- 8, // 10: pb.ServiceChain.GetChain:output_type -> pb.Response
- 8, // 11: pb.ServiceChain.EditChain:output_type -> pb.Response
- 8, // [8:12] is the sub-list for method output_type
- 4, // [4:8] is the sub-list for method input_type
- 4, // [4:4] is the sub-list for extension type_name
- 4, // [4:4] is the sub-list for extension extendee
- 0, // [0:4] is the sub-list for field type_name
- }
- func init() { file_chain_admin_proto_init() }
- func file_chain_admin_proto_init() {
- if File_chain_admin_proto != nil {
- return
- }
- file_common_proto_init()
- if !protoimpl.UnsafeEnabled {
- file_chain_admin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Body); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_chain_admin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetAllChainsReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_chain_admin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ChainsList); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_chain_admin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Chain); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_chain_admin_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetChainReq); 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_chain_admin_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 5,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_chain_admin_proto_goTypes,
- DependencyIndexes: file_chain_admin_proto_depIdxs,
- MessageInfos: file_chain_admin_proto_msgTypes,
- }.Build()
- File_chain_admin_proto = out.File
- file_chain_admin_proto_rawDesc = nil
- file_chain_admin_proto_goTypes = nil
- file_chain_admin_proto_depIdxs = nil
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConnInterface
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion6
- // ServiceChainClient is the client API for ServiceChain service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type ServiceChainClient interface {
- RegisterChain(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
- GetAllChains(ctx context.Context, in *GetAllChainsReq, opts ...grpc.CallOption) (*Response, error)
- GetChain(ctx context.Context, in *GetChainReq, opts ...grpc.CallOption) (*Response, error)
- EditChain(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
- }
- type serviceChainClient struct {
- cc grpc.ClientConnInterface
- }
- func NewServiceChainClient(cc grpc.ClientConnInterface) ServiceChainClient {
- return &serviceChainClient{cc}
- }
- func (c *serviceChainClient) RegisterChain(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
- out := new(Response)
- err := c.cc.Invoke(ctx, "/pb.ServiceChain/RegisterChain", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *serviceChainClient) GetAllChains(ctx context.Context, in *GetAllChainsReq, opts ...grpc.CallOption) (*Response, error) {
- out := new(Response)
- err := c.cc.Invoke(ctx, "/pb.ServiceChain/GetAllChains", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *serviceChainClient) GetChain(ctx context.Context, in *GetChainReq, opts ...grpc.CallOption) (*Response, error) {
- out := new(Response)
- err := c.cc.Invoke(ctx, "/pb.ServiceChain/GetChain", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *serviceChainClient) EditChain(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
- out := new(Response)
- err := c.cc.Invoke(ctx, "/pb.ServiceChain/EditChain", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // ServiceChainServer is the server API for ServiceChain service.
- type ServiceChainServer interface {
- RegisterChain(context.Context, *Request) (*Response, error)
- GetAllChains(context.Context, *GetAllChainsReq) (*Response, error)
- GetChain(context.Context, *GetChainReq) (*Response, error)
- EditChain(context.Context, *Request) (*Response, error)
- }
- // UnimplementedServiceChainServer can be embedded to have forward compatible implementations.
- type UnimplementedServiceChainServer struct {
- }
- func (*UnimplementedServiceChainServer) RegisterChain(context.Context, *Request) (*Response, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RegisterChain not implemented")
- }
- func (*UnimplementedServiceChainServer) GetAllChains(context.Context, *GetAllChainsReq) (*Response, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetAllChains not implemented")
- }
- func (*UnimplementedServiceChainServer) GetChain(context.Context, *GetChainReq) (*Response, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetChain not implemented")
- }
- func (*UnimplementedServiceChainServer) EditChain(context.Context, *Request) (*Response, error) {
- return nil, status.Errorf(codes.Unimplemented, "method EditChain not implemented")
- }
- func RegisterServiceChainServer(s *grpc.Server, srv ServiceChainServer) {
- s.RegisterService(&_ServiceChain_serviceDesc, srv)
- }
- func _ServiceChain_RegisterChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(Request)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ServiceChainServer).RegisterChain(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.ServiceChain/RegisterChain",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ServiceChainServer).RegisterChain(ctx, req.(*Request))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ServiceChain_GetAllChains_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetAllChainsReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ServiceChainServer).GetAllChains(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.ServiceChain/GetAllChains",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ServiceChainServer).GetAllChains(ctx, req.(*GetAllChainsReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ServiceChain_GetChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetChainReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ServiceChainServer).GetChain(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.ServiceChain/GetChain",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ServiceChainServer).GetChain(ctx, req.(*GetChainReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ServiceChain_EditChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(Request)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ServiceChainServer).EditChain(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.ServiceChain/EditChain",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ServiceChainServer).EditChain(ctx, req.(*Request))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _ServiceChain_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.ServiceChain",
- HandlerType: (*ServiceChainServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "RegisterChain",
- Handler: _ServiceChain_RegisterChain_Handler,
- },
- {
- MethodName: "GetAllChains",
- Handler: _ServiceChain_GetAllChains_Handler,
- },
- {
- MethodName: "GetChain",
- Handler: _ServiceChain_GetChain_Handler,
- },
- {
- MethodName: "EditChain",
- Handler: _ServiceChain_EditChain_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "chain_admin.proto",
- }
|