使用最新的protoc-gen-go和protoc-gen-go-grpc插件

This commit is contained in:
刘祥超
2023-08-06 23:36:50 +08:00
parent 65be70d015
commit e6af6b6575
315 changed files with 55373 additions and 51574 deletions

View File

@@ -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_node_cluster_firewall_action.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 CreateNodeClusterFirewallActionRequest struct {
state protoimpl.MessageState
@@ -843,275 +834,3 @@ func file_service_node_cluster_firewall_action_proto_init() {
file_service_node_cluster_firewall_action_proto_goTypes = nil
file_service_node_cluster_firewall_action_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
// NodeClusterFirewallActionServiceClient is the client API for NodeClusterFirewallActionService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type NodeClusterFirewallActionServiceClient interface {
// 创建动作
CreateNodeClusterFirewallAction(ctx context.Context, in *CreateNodeClusterFirewallActionRequest, opts ...grpc.CallOption) (*NodeClusterFirewallActionResponse, error)
// 修改动作
UpdateNodeClusterFirewallAction(ctx context.Context, in *UpdateNodeClusterFirewallActionRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 删除动作
DeleteNodeClusterFirewallAction(ctx context.Context, in *DeleteNodeClusterFirewallActionRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 查询集群的所有动作
FindAllEnabledNodeClusterFirewallActions(ctx context.Context, in *FindAllEnabledNodeClusterFirewallActionsRequest, opts ...grpc.CallOption) (*FindAllEnabledNodeClusterFirewallActionsResponse, error)
// 查询单个动作
FindEnabledNodeClusterFirewallAction(ctx context.Context, in *FindEnabledNodeClusterFirewallActionRequest, opts ...grpc.CallOption) (*FindEnabledNodeClusterFirewallActionResponse, error)
// 计算动作数量
CountAllEnabledNodeClusterFirewallActions(ctx context.Context, in *CountAllEnabledNodeClusterFirewallActionsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
}
type nodeClusterFirewallActionServiceClient struct {
cc grpc.ClientConnInterface
}
func NewNodeClusterFirewallActionServiceClient(cc grpc.ClientConnInterface) NodeClusterFirewallActionServiceClient {
return &nodeClusterFirewallActionServiceClient{cc}
}
func (c *nodeClusterFirewallActionServiceClient) CreateNodeClusterFirewallAction(ctx context.Context, in *CreateNodeClusterFirewallActionRequest, opts ...grpc.CallOption) (*NodeClusterFirewallActionResponse, error) {
out := new(NodeClusterFirewallActionResponse)
err := c.cc.Invoke(ctx, "/pb.NodeClusterFirewallActionService/createNodeClusterFirewallAction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeClusterFirewallActionServiceClient) UpdateNodeClusterFirewallAction(ctx context.Context, in *UpdateNodeClusterFirewallActionRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.NodeClusterFirewallActionService/updateNodeClusterFirewallAction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeClusterFirewallActionServiceClient) DeleteNodeClusterFirewallAction(ctx context.Context, in *DeleteNodeClusterFirewallActionRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.NodeClusterFirewallActionService/deleteNodeClusterFirewallAction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeClusterFirewallActionServiceClient) FindAllEnabledNodeClusterFirewallActions(ctx context.Context, in *FindAllEnabledNodeClusterFirewallActionsRequest, opts ...grpc.CallOption) (*FindAllEnabledNodeClusterFirewallActionsResponse, error) {
out := new(FindAllEnabledNodeClusterFirewallActionsResponse)
err := c.cc.Invoke(ctx, "/pb.NodeClusterFirewallActionService/findAllEnabledNodeClusterFirewallActions", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeClusterFirewallActionServiceClient) FindEnabledNodeClusterFirewallAction(ctx context.Context, in *FindEnabledNodeClusterFirewallActionRequest, opts ...grpc.CallOption) (*FindEnabledNodeClusterFirewallActionResponse, error) {
out := new(FindEnabledNodeClusterFirewallActionResponse)
err := c.cc.Invoke(ctx, "/pb.NodeClusterFirewallActionService/findEnabledNodeClusterFirewallAction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeClusterFirewallActionServiceClient) CountAllEnabledNodeClusterFirewallActions(ctx context.Context, in *CountAllEnabledNodeClusterFirewallActionsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
out := new(RPCCountResponse)
err := c.cc.Invoke(ctx, "/pb.NodeClusterFirewallActionService/countAllEnabledNodeClusterFirewallActions", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// NodeClusterFirewallActionServiceServer is the server API for NodeClusterFirewallActionService service.
type NodeClusterFirewallActionServiceServer interface {
// 创建动作
CreateNodeClusterFirewallAction(context.Context, *CreateNodeClusterFirewallActionRequest) (*NodeClusterFirewallActionResponse, error)
// 修改动作
UpdateNodeClusterFirewallAction(context.Context, *UpdateNodeClusterFirewallActionRequest) (*RPCSuccess, error)
// 删除动作
DeleteNodeClusterFirewallAction(context.Context, *DeleteNodeClusterFirewallActionRequest) (*RPCSuccess, error)
// 查询集群的所有动作
FindAllEnabledNodeClusterFirewallActions(context.Context, *FindAllEnabledNodeClusterFirewallActionsRequest) (*FindAllEnabledNodeClusterFirewallActionsResponse, error)
// 查询单个动作
FindEnabledNodeClusterFirewallAction(context.Context, *FindEnabledNodeClusterFirewallActionRequest) (*FindEnabledNodeClusterFirewallActionResponse, error)
// 计算动作数量
CountAllEnabledNodeClusterFirewallActions(context.Context, *CountAllEnabledNodeClusterFirewallActionsRequest) (*RPCCountResponse, error)
}
// UnimplementedNodeClusterFirewallActionServiceServer can be embedded to have forward compatible implementations.
type UnimplementedNodeClusterFirewallActionServiceServer struct {
}
func (*UnimplementedNodeClusterFirewallActionServiceServer) CreateNodeClusterFirewallAction(context.Context, *CreateNodeClusterFirewallActionRequest) (*NodeClusterFirewallActionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateNodeClusterFirewallAction not implemented")
}
func (*UnimplementedNodeClusterFirewallActionServiceServer) UpdateNodeClusterFirewallAction(context.Context, *UpdateNodeClusterFirewallActionRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateNodeClusterFirewallAction not implemented")
}
func (*UnimplementedNodeClusterFirewallActionServiceServer) DeleteNodeClusterFirewallAction(context.Context, *DeleteNodeClusterFirewallActionRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteNodeClusterFirewallAction not implemented")
}
func (*UnimplementedNodeClusterFirewallActionServiceServer) FindAllEnabledNodeClusterFirewallActions(context.Context, *FindAllEnabledNodeClusterFirewallActionsRequest) (*FindAllEnabledNodeClusterFirewallActionsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledNodeClusterFirewallActions not implemented")
}
func (*UnimplementedNodeClusterFirewallActionServiceServer) FindEnabledNodeClusterFirewallAction(context.Context, *FindEnabledNodeClusterFirewallActionRequest) (*FindEnabledNodeClusterFirewallActionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledNodeClusterFirewallAction not implemented")
}
func (*UnimplementedNodeClusterFirewallActionServiceServer) CountAllEnabledNodeClusterFirewallActions(context.Context, *CountAllEnabledNodeClusterFirewallActionsRequest) (*RPCCountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledNodeClusterFirewallActions not implemented")
}
func RegisterNodeClusterFirewallActionServiceServer(s *grpc.Server, srv NodeClusterFirewallActionServiceServer) {
s.RegisterService(&_NodeClusterFirewallActionService_serviceDesc, srv)
}
func _NodeClusterFirewallActionService_CreateNodeClusterFirewallAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateNodeClusterFirewallActionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeClusterFirewallActionServiceServer).CreateNodeClusterFirewallAction(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeClusterFirewallActionService/CreateNodeClusterFirewallAction",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeClusterFirewallActionServiceServer).CreateNodeClusterFirewallAction(ctx, req.(*CreateNodeClusterFirewallActionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeClusterFirewallActionService_UpdateNodeClusterFirewallAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateNodeClusterFirewallActionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeClusterFirewallActionServiceServer).UpdateNodeClusterFirewallAction(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeClusterFirewallActionService/UpdateNodeClusterFirewallAction",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeClusterFirewallActionServiceServer).UpdateNodeClusterFirewallAction(ctx, req.(*UpdateNodeClusterFirewallActionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeClusterFirewallActionService_DeleteNodeClusterFirewallAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteNodeClusterFirewallActionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeClusterFirewallActionServiceServer).DeleteNodeClusterFirewallAction(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeClusterFirewallActionService/DeleteNodeClusterFirewallAction",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeClusterFirewallActionServiceServer).DeleteNodeClusterFirewallAction(ctx, req.(*DeleteNodeClusterFirewallActionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeClusterFirewallActionService_FindAllEnabledNodeClusterFirewallActions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllEnabledNodeClusterFirewallActionsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeClusterFirewallActionServiceServer).FindAllEnabledNodeClusterFirewallActions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeClusterFirewallActionService/FindAllEnabledNodeClusterFirewallActions",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeClusterFirewallActionServiceServer).FindAllEnabledNodeClusterFirewallActions(ctx, req.(*FindAllEnabledNodeClusterFirewallActionsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeClusterFirewallActionService_FindEnabledNodeClusterFirewallAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindEnabledNodeClusterFirewallActionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeClusterFirewallActionServiceServer).FindEnabledNodeClusterFirewallAction(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeClusterFirewallActionService/FindEnabledNodeClusterFirewallAction",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeClusterFirewallActionServiceServer).FindEnabledNodeClusterFirewallAction(ctx, req.(*FindEnabledNodeClusterFirewallActionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeClusterFirewallActionService_CountAllEnabledNodeClusterFirewallActions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CountAllEnabledNodeClusterFirewallActionsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeClusterFirewallActionServiceServer).CountAllEnabledNodeClusterFirewallActions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeClusterFirewallActionService/CountAllEnabledNodeClusterFirewallActions",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeClusterFirewallActionServiceServer).CountAllEnabledNodeClusterFirewallActions(ctx, req.(*CountAllEnabledNodeClusterFirewallActionsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _NodeClusterFirewallActionService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.NodeClusterFirewallActionService",
HandlerType: (*NodeClusterFirewallActionServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "createNodeClusterFirewallAction",
Handler: _NodeClusterFirewallActionService_CreateNodeClusterFirewallAction_Handler,
},
{
MethodName: "updateNodeClusterFirewallAction",
Handler: _NodeClusterFirewallActionService_UpdateNodeClusterFirewallAction_Handler,
},
{
MethodName: "deleteNodeClusterFirewallAction",
Handler: _NodeClusterFirewallActionService_DeleteNodeClusterFirewallAction_Handler,
},
{
MethodName: "findAllEnabledNodeClusterFirewallActions",
Handler: _NodeClusterFirewallActionService_FindAllEnabledNodeClusterFirewallActions_Handler,
},
{
MethodName: "findEnabledNodeClusterFirewallAction",
Handler: _NodeClusterFirewallActionService_FindEnabledNodeClusterFirewallAction_Handler,
},
{
MethodName: "countAllEnabledNodeClusterFirewallActions",
Handler: _NodeClusterFirewallActionService_CountAllEnabledNodeClusterFirewallActions_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "service_node_cluster_firewall_action.proto",
}