// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc v3.21.4 // source: proto/zone.proto package zone import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 // ZoneCloudflareClient is the client API for ZoneCloudflare service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type ZoneCloudflareClient interface { //Zone CURD ZoneIDByNameCloudflare(ctx context.Context, in *ZoneIDByNameRequestCloudflare, opts ...grpc.CallOption) (*ZoneIDByNameReplyCloudflare, error) ZoneDetails(ctx context.Context, in *ZoneDetailsRequestCloudflare, opts ...grpc.CallOption) (*ZoneDetailsReplyCloudflare, error) GetZones(ctx context.Context, in *GetZonesRequestCloudflare, opts ...grpc.CallOption) (*GetZonesReplyCloudflare, error) EditZone(ctx context.Context, in *EditZoneRequestCloudflare, opts ...grpc.CallOption) (*EditZoneReplyCloudflare, error) DeleteZone(ctx context.Context, in *DeleteZoneRequestCloudflare, opts ...grpc.CallOption) (*DeleteZoneReplyCloudflare, error) ListZones(ctx context.Context, in *ListZonesRequestCloudflare, opts ...grpc.CallOption) (*ZonesList, error) ListZonesByAccountId(ctx context.Context, in *ListZonesByAccountIdRequestCloudflare, opts ...grpc.CallOption) (*ZonesList, error) ActivationCheck(ctx context.Context, in *ActivationCheckRequestCloudflare, opts ...grpc.CallOption) (*ActivationCheckReplyCloudflare, error) //PageRule CURD ListPageRule(ctx context.Context, in *ListPageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRuleList, error) CreatePageRule(ctx context.Context, in *CreatePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error) UpdatePageRule(ctx context.Context, in *UpdatePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error) DeletePageRule(ctx context.Context, in *DeletePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error) UpdatePageRulesPriorities(ctx context.Context, in *UpdatePageRulesPrioritiesRequestCloudflare, opts ...grpc.CallOption) (*PageRuleList, error) //RuleSet UR UpdateRuleSet(ctx context.Context, in *UpdateRuleSetRequestCloudflare, opts ...grpc.CallOption) (*RuleList, error) GetRuleSet(ctx context.Context, in *GetRuleSetRequestCloudflare, opts ...grpc.CallOption) (*RuleList, error) } type zoneCloudflareClient struct { cc grpc.ClientConnInterface } func NewZoneCloudflareClient(cc grpc.ClientConnInterface) ZoneCloudflareClient { return &zoneCloudflareClient{cc} } func (c *zoneCloudflareClient) ZoneIDByNameCloudflare(ctx context.Context, in *ZoneIDByNameRequestCloudflare, opts ...grpc.CallOption) (*ZoneIDByNameReplyCloudflare, error) { out := new(ZoneIDByNameReplyCloudflare) err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/ZoneIDByNameCloudflare", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *zoneCloudflareClient) ZoneDetails(ctx context.Context, in *ZoneDetailsRequestCloudflare, opts ...grpc.CallOption) (*ZoneDetailsReplyCloudflare, error) { out := new(ZoneDetailsReplyCloudflare) err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/ZoneDetails", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *zoneCloudflareClient) GetZones(ctx context.Context, in *GetZonesRequestCloudflare, opts ...grpc.CallOption) (*GetZonesReplyCloudflare, error) { out := new(GetZonesReplyCloudflare) err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/GetZones", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *zoneCloudflareClient) EditZone(ctx context.Context, in *EditZoneRequestCloudflare, opts ...grpc.CallOption) (*EditZoneReplyCloudflare, error) { out := new(EditZoneReplyCloudflare) err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/EditZone", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *zoneCloudflareClient) DeleteZone(ctx context.Context, in *DeleteZoneRequestCloudflare, opts ...grpc.CallOption) (*DeleteZoneReplyCloudflare, error) { out := new(DeleteZoneReplyCloudflare) err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/DeleteZone", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *zoneCloudflareClient) ListZones(ctx context.Context, in *ListZonesRequestCloudflare, opts ...grpc.CallOption) (*ZonesList, error) { out := new(ZonesList) err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/ListZones", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *zoneCloudflareClient) ListZonesByAccountId(ctx context.Context, in *ListZonesByAccountIdRequestCloudflare, opts ...grpc.CallOption) (*ZonesList, error) { out := new(ZonesList) err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/ListZonesByAccountId", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *zoneCloudflareClient) ActivationCheck(ctx context.Context, in *ActivationCheckRequestCloudflare, opts ...grpc.CallOption) (*ActivationCheckReplyCloudflare, error) { out := new(ActivationCheckReplyCloudflare) err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/ActivationCheck", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *zoneCloudflareClient) ListPageRule(ctx context.Context, in *ListPageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRuleList, error) { out := new(PageRuleList) err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/ListPageRule", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *zoneCloudflareClient) CreatePageRule(ctx context.Context, in *CreatePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error) { out := new(PageRule) err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/CreatePageRule", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *zoneCloudflareClient) UpdatePageRule(ctx context.Context, in *UpdatePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error) { out := new(PageRule) err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/UpdatePageRule", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *zoneCloudflareClient) DeletePageRule(ctx context.Context, in *DeletePageRuleRequestCloudflare, opts ...grpc.CallOption) (*PageRule, error) { out := new(PageRule) err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/DeletePageRule", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *zoneCloudflareClient) UpdatePageRulesPriorities(ctx context.Context, in *UpdatePageRulesPrioritiesRequestCloudflare, opts ...grpc.CallOption) (*PageRuleList, error) { out := new(PageRuleList) err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/UpdatePageRulesPriorities", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *zoneCloudflareClient) UpdateRuleSet(ctx context.Context, in *UpdateRuleSetRequestCloudflare, opts ...grpc.CallOption) (*RuleList, error) { out := new(RuleList) err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/UpdateRuleSet", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *zoneCloudflareClient) GetRuleSet(ctx context.Context, in *GetRuleSetRequestCloudflare, opts ...grpc.CallOption) (*RuleList, error) { out := new(RuleList) err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/GetRuleSet", in, out, opts...) if err != nil { return nil, err } return out, nil } // ZoneCloudflareServer is the server API for ZoneCloudflare service. // All implementations must embed UnimplementedZoneCloudflareServer // for forward compatibility type ZoneCloudflareServer interface { //Zone CURD ZoneIDByNameCloudflare(context.Context, *ZoneIDByNameRequestCloudflare) (*ZoneIDByNameReplyCloudflare, error) ZoneDetails(context.Context, *ZoneDetailsRequestCloudflare) (*ZoneDetailsReplyCloudflare, error) GetZones(context.Context, *GetZonesRequestCloudflare) (*GetZonesReplyCloudflare, error) EditZone(context.Context, *EditZoneRequestCloudflare) (*EditZoneReplyCloudflare, error) DeleteZone(context.Context, *DeleteZoneRequestCloudflare) (*DeleteZoneReplyCloudflare, error) ListZones(context.Context, *ListZonesRequestCloudflare) (*ZonesList, error) ListZonesByAccountId(context.Context, *ListZonesByAccountIdRequestCloudflare) (*ZonesList, error) ActivationCheck(context.Context, *ActivationCheckRequestCloudflare) (*ActivationCheckReplyCloudflare, error) //PageRule CURD ListPageRule(context.Context, *ListPageRuleRequestCloudflare) (*PageRuleList, error) CreatePageRule(context.Context, *CreatePageRuleRequestCloudflare) (*PageRule, error) UpdatePageRule(context.Context, *UpdatePageRuleRequestCloudflare) (*PageRule, error) DeletePageRule(context.Context, *DeletePageRuleRequestCloudflare) (*PageRule, error) UpdatePageRulesPriorities(context.Context, *UpdatePageRulesPrioritiesRequestCloudflare) (*PageRuleList, error) //RuleSet UR UpdateRuleSet(context.Context, *UpdateRuleSetRequestCloudflare) (*RuleList, error) GetRuleSet(context.Context, *GetRuleSetRequestCloudflare) (*RuleList, error) mustEmbedUnimplementedZoneCloudflareServer() } // UnimplementedZoneCloudflareServer must be embedded to have forward compatible implementations. type UnimplementedZoneCloudflareServer struct { } func (UnimplementedZoneCloudflareServer) ZoneIDByNameCloudflare(context.Context, *ZoneIDByNameRequestCloudflare) (*ZoneIDByNameReplyCloudflare, error) { return nil, status.Errorf(codes.Unimplemented, "method ZoneIDByNameCloudflare not implemented") } func (UnimplementedZoneCloudflareServer) ZoneDetails(context.Context, *ZoneDetailsRequestCloudflare) (*ZoneDetailsReplyCloudflare, error) { return nil, status.Errorf(codes.Unimplemented, "method ZoneDetails not implemented") } func (UnimplementedZoneCloudflareServer) GetZones(context.Context, *GetZonesRequestCloudflare) (*GetZonesReplyCloudflare, error) { return nil, status.Errorf(codes.Unimplemented, "method GetZones not implemented") } func (UnimplementedZoneCloudflareServer) EditZone(context.Context, *EditZoneRequestCloudflare) (*EditZoneReplyCloudflare, error) { return nil, status.Errorf(codes.Unimplemented, "method EditZone not implemented") } func (UnimplementedZoneCloudflareServer) DeleteZone(context.Context, *DeleteZoneRequestCloudflare) (*DeleteZoneReplyCloudflare, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteZone not implemented") } func (UnimplementedZoneCloudflareServer) ListZones(context.Context, *ListZonesRequestCloudflare) (*ZonesList, error) { return nil, status.Errorf(codes.Unimplemented, "method ListZones not implemented") } func (UnimplementedZoneCloudflareServer) ListZonesByAccountId(context.Context, *ListZonesByAccountIdRequestCloudflare) (*ZonesList, error) { return nil, status.Errorf(codes.Unimplemented, "method ListZonesByAccountId not implemented") } func (UnimplementedZoneCloudflareServer) ActivationCheck(context.Context, *ActivationCheckRequestCloudflare) (*ActivationCheckReplyCloudflare, error) { return nil, status.Errorf(codes.Unimplemented, "method ActivationCheck not implemented") } func (UnimplementedZoneCloudflareServer) ListPageRule(context.Context, *ListPageRuleRequestCloudflare) (*PageRuleList, error) { return nil, status.Errorf(codes.Unimplemented, "method ListPageRule not implemented") } func (UnimplementedZoneCloudflareServer) CreatePageRule(context.Context, *CreatePageRuleRequestCloudflare) (*PageRule, error) { return nil, status.Errorf(codes.Unimplemented, "method CreatePageRule not implemented") } func (UnimplementedZoneCloudflareServer) UpdatePageRule(context.Context, *UpdatePageRuleRequestCloudflare) (*PageRule, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdatePageRule not implemented") } func (UnimplementedZoneCloudflareServer) DeletePageRule(context.Context, *DeletePageRuleRequestCloudflare) (*PageRule, error) { return nil, status.Errorf(codes.Unimplemented, "method DeletePageRule not implemented") } func (UnimplementedZoneCloudflareServer) UpdatePageRulesPriorities(context.Context, *UpdatePageRulesPrioritiesRequestCloudflare) (*PageRuleList, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdatePageRulesPriorities not implemented") } func (UnimplementedZoneCloudflareServer) UpdateRuleSet(context.Context, *UpdateRuleSetRequestCloudflare) (*RuleList, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateRuleSet not implemented") } func (UnimplementedZoneCloudflareServer) GetRuleSet(context.Context, *GetRuleSetRequestCloudflare) (*RuleList, error) { return nil, status.Errorf(codes.Unimplemented, "method GetRuleSet not implemented") } func (UnimplementedZoneCloudflareServer) mustEmbedUnimplementedZoneCloudflareServer() {} // UnsafeZoneCloudflareServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ZoneCloudflareServer will // result in compilation errors. type UnsafeZoneCloudflareServer interface { mustEmbedUnimplementedZoneCloudflareServer() } func RegisterZoneCloudflareServer(s grpc.ServiceRegistrar, srv ZoneCloudflareServer) { s.RegisterService(&ZoneCloudflare_ServiceDesc, srv) } func _ZoneCloudflare_ZoneIDByNameCloudflare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ZoneIDByNameRequestCloudflare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ZoneCloudflareServer).ZoneIDByNameCloudflare(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cloudflareApi.zone.ZoneCloudflare/ZoneIDByNameCloudflare", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ZoneCloudflareServer).ZoneIDByNameCloudflare(ctx, req.(*ZoneIDByNameRequestCloudflare)) } return interceptor(ctx, in, info, handler) } func _ZoneCloudflare_ZoneDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ZoneDetailsRequestCloudflare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ZoneCloudflareServer).ZoneDetails(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cloudflareApi.zone.ZoneCloudflare/ZoneDetails", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ZoneCloudflareServer).ZoneDetails(ctx, req.(*ZoneDetailsRequestCloudflare)) } return interceptor(ctx, in, info, handler) } func _ZoneCloudflare_GetZones_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetZonesRequestCloudflare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ZoneCloudflareServer).GetZones(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cloudflareApi.zone.ZoneCloudflare/GetZones", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ZoneCloudflareServer).GetZones(ctx, req.(*GetZonesRequestCloudflare)) } return interceptor(ctx, in, info, handler) } func _ZoneCloudflare_EditZone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(EditZoneRequestCloudflare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ZoneCloudflareServer).EditZone(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cloudflareApi.zone.ZoneCloudflare/EditZone", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ZoneCloudflareServer).EditZone(ctx, req.(*EditZoneRequestCloudflare)) } return interceptor(ctx, in, info, handler) } func _ZoneCloudflare_DeleteZone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteZoneRequestCloudflare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ZoneCloudflareServer).DeleteZone(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cloudflareApi.zone.ZoneCloudflare/DeleteZone", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ZoneCloudflareServer).DeleteZone(ctx, req.(*DeleteZoneRequestCloudflare)) } return interceptor(ctx, in, info, handler) } func _ZoneCloudflare_ListZones_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListZonesRequestCloudflare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ZoneCloudflareServer).ListZones(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cloudflareApi.zone.ZoneCloudflare/ListZones", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ZoneCloudflareServer).ListZones(ctx, req.(*ListZonesRequestCloudflare)) } return interceptor(ctx, in, info, handler) } func _ZoneCloudflare_ListZonesByAccountId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListZonesByAccountIdRequestCloudflare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ZoneCloudflareServer).ListZonesByAccountId(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cloudflareApi.zone.ZoneCloudflare/ListZonesByAccountId", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ZoneCloudflareServer).ListZonesByAccountId(ctx, req.(*ListZonesByAccountIdRequestCloudflare)) } return interceptor(ctx, in, info, handler) } func _ZoneCloudflare_ActivationCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ActivationCheckRequestCloudflare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ZoneCloudflareServer).ActivationCheck(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cloudflareApi.zone.ZoneCloudflare/ActivationCheck", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ZoneCloudflareServer).ActivationCheck(ctx, req.(*ActivationCheckRequestCloudflare)) } return interceptor(ctx, in, info, handler) } func _ZoneCloudflare_ListPageRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListPageRuleRequestCloudflare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ZoneCloudflareServer).ListPageRule(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cloudflareApi.zone.ZoneCloudflare/ListPageRule", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ZoneCloudflareServer).ListPageRule(ctx, req.(*ListPageRuleRequestCloudflare)) } return interceptor(ctx, in, info, handler) } func _ZoneCloudflare_CreatePageRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreatePageRuleRequestCloudflare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ZoneCloudflareServer).CreatePageRule(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cloudflareApi.zone.ZoneCloudflare/CreatePageRule", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ZoneCloudflareServer).CreatePageRule(ctx, req.(*CreatePageRuleRequestCloudflare)) } return interceptor(ctx, in, info, handler) } func _ZoneCloudflare_UpdatePageRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdatePageRuleRequestCloudflare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ZoneCloudflareServer).UpdatePageRule(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cloudflareApi.zone.ZoneCloudflare/UpdatePageRule", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ZoneCloudflareServer).UpdatePageRule(ctx, req.(*UpdatePageRuleRequestCloudflare)) } return interceptor(ctx, in, info, handler) } func _ZoneCloudflare_DeletePageRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeletePageRuleRequestCloudflare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ZoneCloudflareServer).DeletePageRule(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cloudflareApi.zone.ZoneCloudflare/DeletePageRule", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ZoneCloudflareServer).DeletePageRule(ctx, req.(*DeletePageRuleRequestCloudflare)) } return interceptor(ctx, in, info, handler) } func _ZoneCloudflare_UpdatePageRulesPriorities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdatePageRulesPrioritiesRequestCloudflare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ZoneCloudflareServer).UpdatePageRulesPriorities(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cloudflareApi.zone.ZoneCloudflare/UpdatePageRulesPriorities", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ZoneCloudflareServer).UpdatePageRulesPriorities(ctx, req.(*UpdatePageRulesPrioritiesRequestCloudflare)) } return interceptor(ctx, in, info, handler) } func _ZoneCloudflare_UpdateRuleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateRuleSetRequestCloudflare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ZoneCloudflareServer).UpdateRuleSet(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cloudflareApi.zone.ZoneCloudflare/UpdateRuleSet", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ZoneCloudflareServer).UpdateRuleSet(ctx, req.(*UpdateRuleSetRequestCloudflare)) } return interceptor(ctx, in, info, handler) } func _ZoneCloudflare_GetRuleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetRuleSetRequestCloudflare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ZoneCloudflareServer).GetRuleSet(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cloudflareApi.zone.ZoneCloudflare/GetRuleSet", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ZoneCloudflareServer).GetRuleSet(ctx, req.(*GetRuleSetRequestCloudflare)) } return interceptor(ctx, in, info, handler) } // ZoneCloudflare_ServiceDesc is the grpc.ServiceDesc for ZoneCloudflare service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var ZoneCloudflare_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cloudflareApi.zone.ZoneCloudflare", HandlerType: (*ZoneCloudflareServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ZoneIDByNameCloudflare", Handler: _ZoneCloudflare_ZoneIDByNameCloudflare_Handler, }, { MethodName: "ZoneDetails", Handler: _ZoneCloudflare_ZoneDetails_Handler, }, { MethodName: "GetZones", Handler: _ZoneCloudflare_GetZones_Handler, }, { MethodName: "EditZone", Handler: _ZoneCloudflare_EditZone_Handler, }, { MethodName: "DeleteZone", Handler: _ZoneCloudflare_DeleteZone_Handler, }, { MethodName: "ListZones", Handler: _ZoneCloudflare_ListZones_Handler, }, { MethodName: "ListZonesByAccountId", Handler: _ZoneCloudflare_ListZonesByAccountId_Handler, }, { MethodName: "ActivationCheck", Handler: _ZoneCloudflare_ActivationCheck_Handler, }, { MethodName: "ListPageRule", Handler: _ZoneCloudflare_ListPageRule_Handler, }, { MethodName: "CreatePageRule", Handler: _ZoneCloudflare_CreatePageRule_Handler, }, { MethodName: "UpdatePageRule", Handler: _ZoneCloudflare_UpdatePageRule_Handler, }, { MethodName: "DeletePageRule", Handler: _ZoneCloudflare_DeletePageRule_Handler, }, { MethodName: "UpdatePageRulesPriorities", Handler: _ZoneCloudflare_UpdatePageRulesPriorities_Handler, }, { MethodName: "UpdateRuleSet", Handler: _ZoneCloudflare_UpdateRuleSet_Handler, }, { MethodName: "GetRuleSet", Handler: _ZoneCloudflare_GetRuleSet_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/zone.proto", }