mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-25 11:36:35 +08:00
使用最新的protoc-gen-go和protoc-gen-go-grpc插件
This commit is contained in:
@@ -1,17 +1,12 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v3.19.4
|
||||
// source: service_report_node_group.proto
|
||||
|
||||
package pb
|
||||
|
||||
import (
|
||||
context "context"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
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"
|
||||
@@ -25,10 +20,6 @@ const (
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// 创建分组
|
||||
type CreateReportNodeGroupRequest struct {
|
||||
state protoimpl.MessageState
|
||||
@@ -726,275 +717,3 @@ func file_service_report_node_group_proto_init() {
|
||||
file_service_report_node_group_proto_goTypes = nil
|
||||
file_service_report_node_group_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
|
||||
|
||||
// ReportNodeGroupServiceClient is the client API for ReportNodeGroupService service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type ReportNodeGroupServiceClient interface {
|
||||
// 创建分组
|
||||
CreateReportNodeGroup(ctx context.Context, in *CreateReportNodeGroupRequest, opts ...grpc.CallOption) (*CreateReportNodeGroupResponse, error)
|
||||
// 修改分组
|
||||
UpdateReportNodeGroup(ctx context.Context, in *UpdateReportNodeGroupRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 删除分组
|
||||
DeleteReportNodeGroup(ctx context.Context, in *DeleteReportNodeGroupRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 查找所有分组
|
||||
FindAllEnabledReportNodeGroups(ctx context.Context, in *FindAllEnabledReportNodeGroupsRequest, opts ...grpc.CallOption) (*FindAllEnabledReportNodeGroupsResponse, error)
|
||||
// 查找单个分组
|
||||
FindEnabledReportNodeGroup(ctx context.Context, in *FindEnabledReportNodeGroupRequest, opts ...grpc.CallOption) (*FindEnabledReportNodeGroupResponse, error)
|
||||
// 计算所有分组数量
|
||||
CountAllEnabledReportNodeGroups(ctx context.Context, in *CountAllEnabledReportNodeGroupsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
|
||||
}
|
||||
|
||||
type reportNodeGroupServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewReportNodeGroupServiceClient(cc grpc.ClientConnInterface) ReportNodeGroupServiceClient {
|
||||
return &reportNodeGroupServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *reportNodeGroupServiceClient) CreateReportNodeGroup(ctx context.Context, in *CreateReportNodeGroupRequest, opts ...grpc.CallOption) (*CreateReportNodeGroupResponse, error) {
|
||||
out := new(CreateReportNodeGroupResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.ReportNodeGroupService/createReportNodeGroup", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *reportNodeGroupServiceClient) UpdateReportNodeGroup(ctx context.Context, in *UpdateReportNodeGroupRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||
out := new(RPCSuccess)
|
||||
err := c.cc.Invoke(ctx, "/pb.ReportNodeGroupService/updateReportNodeGroup", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *reportNodeGroupServiceClient) DeleteReportNodeGroup(ctx context.Context, in *DeleteReportNodeGroupRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||
out := new(RPCSuccess)
|
||||
err := c.cc.Invoke(ctx, "/pb.ReportNodeGroupService/deleteReportNodeGroup", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *reportNodeGroupServiceClient) FindAllEnabledReportNodeGroups(ctx context.Context, in *FindAllEnabledReportNodeGroupsRequest, opts ...grpc.CallOption) (*FindAllEnabledReportNodeGroupsResponse, error) {
|
||||
out := new(FindAllEnabledReportNodeGroupsResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.ReportNodeGroupService/findAllEnabledReportNodeGroups", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *reportNodeGroupServiceClient) FindEnabledReportNodeGroup(ctx context.Context, in *FindEnabledReportNodeGroupRequest, opts ...grpc.CallOption) (*FindEnabledReportNodeGroupResponse, error) {
|
||||
out := new(FindEnabledReportNodeGroupResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.ReportNodeGroupService/findEnabledReportNodeGroup", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *reportNodeGroupServiceClient) CountAllEnabledReportNodeGroups(ctx context.Context, in *CountAllEnabledReportNodeGroupsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
|
||||
out := new(RPCCountResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.ReportNodeGroupService/countAllEnabledReportNodeGroups", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// ReportNodeGroupServiceServer is the server API for ReportNodeGroupService service.
|
||||
type ReportNodeGroupServiceServer interface {
|
||||
// 创建分组
|
||||
CreateReportNodeGroup(context.Context, *CreateReportNodeGroupRequest) (*CreateReportNodeGroupResponse, error)
|
||||
// 修改分组
|
||||
UpdateReportNodeGroup(context.Context, *UpdateReportNodeGroupRequest) (*RPCSuccess, error)
|
||||
// 删除分组
|
||||
DeleteReportNodeGroup(context.Context, *DeleteReportNodeGroupRequest) (*RPCSuccess, error)
|
||||
// 查找所有分组
|
||||
FindAllEnabledReportNodeGroups(context.Context, *FindAllEnabledReportNodeGroupsRequest) (*FindAllEnabledReportNodeGroupsResponse, error)
|
||||
// 查找单个分组
|
||||
FindEnabledReportNodeGroup(context.Context, *FindEnabledReportNodeGroupRequest) (*FindEnabledReportNodeGroupResponse, error)
|
||||
// 计算所有分组数量
|
||||
CountAllEnabledReportNodeGroups(context.Context, *CountAllEnabledReportNodeGroupsRequest) (*RPCCountResponse, error)
|
||||
}
|
||||
|
||||
// UnimplementedReportNodeGroupServiceServer can be embedded to have forward compatible implementations.
|
||||
type UnimplementedReportNodeGroupServiceServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedReportNodeGroupServiceServer) CreateReportNodeGroup(context.Context, *CreateReportNodeGroupRequest) (*CreateReportNodeGroupResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CreateReportNodeGroup not implemented")
|
||||
}
|
||||
func (*UnimplementedReportNodeGroupServiceServer) UpdateReportNodeGroup(context.Context, *UpdateReportNodeGroupRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateReportNodeGroup not implemented")
|
||||
}
|
||||
func (*UnimplementedReportNodeGroupServiceServer) DeleteReportNodeGroup(context.Context, *DeleteReportNodeGroupRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DeleteReportNodeGroup not implemented")
|
||||
}
|
||||
func (*UnimplementedReportNodeGroupServiceServer) FindAllEnabledReportNodeGroups(context.Context, *FindAllEnabledReportNodeGroupsRequest) (*FindAllEnabledReportNodeGroupsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledReportNodeGroups not implemented")
|
||||
}
|
||||
func (*UnimplementedReportNodeGroupServiceServer) FindEnabledReportNodeGroup(context.Context, *FindEnabledReportNodeGroupRequest) (*FindEnabledReportNodeGroupResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledReportNodeGroup not implemented")
|
||||
}
|
||||
func (*UnimplementedReportNodeGroupServiceServer) CountAllEnabledReportNodeGroups(context.Context, *CountAllEnabledReportNodeGroupsRequest) (*RPCCountResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledReportNodeGroups not implemented")
|
||||
}
|
||||
|
||||
func RegisterReportNodeGroupServiceServer(s *grpc.Server, srv ReportNodeGroupServiceServer) {
|
||||
s.RegisterService(&_ReportNodeGroupService_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _ReportNodeGroupService_CreateReportNodeGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateReportNodeGroupRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ReportNodeGroupServiceServer).CreateReportNodeGroup(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.ReportNodeGroupService/CreateReportNodeGroup",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ReportNodeGroupServiceServer).CreateReportNodeGroup(ctx, req.(*CreateReportNodeGroupRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ReportNodeGroupService_UpdateReportNodeGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateReportNodeGroupRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ReportNodeGroupServiceServer).UpdateReportNodeGroup(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.ReportNodeGroupService/UpdateReportNodeGroup",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ReportNodeGroupServiceServer).UpdateReportNodeGroup(ctx, req.(*UpdateReportNodeGroupRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ReportNodeGroupService_DeleteReportNodeGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteReportNodeGroupRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ReportNodeGroupServiceServer).DeleteReportNodeGroup(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.ReportNodeGroupService/DeleteReportNodeGroup",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ReportNodeGroupServiceServer).DeleteReportNodeGroup(ctx, req.(*DeleteReportNodeGroupRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ReportNodeGroupService_FindAllEnabledReportNodeGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FindAllEnabledReportNodeGroupsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ReportNodeGroupServiceServer).FindAllEnabledReportNodeGroups(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.ReportNodeGroupService/FindAllEnabledReportNodeGroups",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ReportNodeGroupServiceServer).FindAllEnabledReportNodeGroups(ctx, req.(*FindAllEnabledReportNodeGroupsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ReportNodeGroupService_FindEnabledReportNodeGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FindEnabledReportNodeGroupRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ReportNodeGroupServiceServer).FindEnabledReportNodeGroup(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.ReportNodeGroupService/FindEnabledReportNodeGroup",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ReportNodeGroupServiceServer).FindEnabledReportNodeGroup(ctx, req.(*FindEnabledReportNodeGroupRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ReportNodeGroupService_CountAllEnabledReportNodeGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CountAllEnabledReportNodeGroupsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ReportNodeGroupServiceServer).CountAllEnabledReportNodeGroups(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.ReportNodeGroupService/CountAllEnabledReportNodeGroups",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ReportNodeGroupServiceServer).CountAllEnabledReportNodeGroups(ctx, req.(*CountAllEnabledReportNodeGroupsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _ReportNodeGroupService_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "pb.ReportNodeGroupService",
|
||||
HandlerType: (*ReportNodeGroupServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "createReportNodeGroup",
|
||||
Handler: _ReportNodeGroupService_CreateReportNodeGroup_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "updateReportNodeGroup",
|
||||
Handler: _ReportNodeGroupService_UpdateReportNodeGroup_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "deleteReportNodeGroup",
|
||||
Handler: _ReportNodeGroupService_DeleteReportNodeGroup_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "findAllEnabledReportNodeGroups",
|
||||
Handler: _ReportNodeGroupService_FindAllEnabledReportNodeGroups_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "findEnabledReportNodeGroup",
|
||||
Handler: _ReportNodeGroupService_FindEnabledReportNodeGroup_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "countAllEnabledReportNodeGroups",
|
||||
Handler: _ReportNodeGroupService_CountAllEnabledReportNodeGroups_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "service_report_node_group.proto",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user