// 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", }