123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761 |
- // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
- // versions:
- // - protoc-gen-go-grpc v1.2.0
- // - protoc v3.21.5
- // 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)
- //Argo Smart Routing Setting UR
- UpdateArgoSetting(ctx context.Context, in *UpdateArgoRequestCloudflare, opts ...grpc.CallOption) (*ArgoSetting, error)
- GetArgoSetting(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error)
- GetArgoSettingSubscription(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error)
- CreateArgoSettingSubscription(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, 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
- }
- func (c *zoneCloudflareClient) UpdateArgoSetting(ctx context.Context, in *UpdateArgoRequestCloudflare, opts ...grpc.CallOption) (*ArgoSetting, error) {
- out := new(ArgoSetting)
- err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/UpdateArgoSetting", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) GetArgoSetting(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error) {
- out := new(ArgoSetting)
- err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/GetArgoSetting", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) GetArgoSettingSubscription(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error) {
- out := new(ArgoSetting)
- err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/GetArgoSettingSubscription", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *zoneCloudflareClient) CreateArgoSettingSubscription(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*ArgoSetting, error) {
- out := new(ArgoSetting)
- err := c.cc.Invoke(ctx, "/cloudflareApi.zone.ZoneCloudflare/CreateArgoSettingSubscription", 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)
- //Argo Smart Routing Setting UR
- UpdateArgoSetting(context.Context, *UpdateArgoRequestCloudflare) (*ArgoSetting, error)
- GetArgoSetting(context.Context, *IdRequest) (*ArgoSetting, error)
- GetArgoSettingSubscription(context.Context, *IdRequest) (*ArgoSetting, error)
- CreateArgoSettingSubscription(context.Context, *IdRequest) (*ArgoSetting, 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) UpdateArgoSetting(context.Context, *UpdateArgoRequestCloudflare) (*ArgoSetting, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateArgoSetting not implemented")
- }
- func (UnimplementedZoneCloudflareServer) GetArgoSetting(context.Context, *IdRequest) (*ArgoSetting, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetArgoSetting not implemented")
- }
- func (UnimplementedZoneCloudflareServer) GetArgoSettingSubscription(context.Context, *IdRequest) (*ArgoSetting, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetArgoSettingSubscription not implemented")
- }
- func (UnimplementedZoneCloudflareServer) CreateArgoSettingSubscription(context.Context, *IdRequest) (*ArgoSetting, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CreateArgoSettingSubscription 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)
- }
- func _ZoneCloudflare_UpdateArgoSetting_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UpdateArgoRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).UpdateArgoSetting(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/cloudflareApi.zone.ZoneCloudflare/UpdateArgoSetting",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).UpdateArgoSetting(ctx, req.(*UpdateArgoRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_GetArgoSetting_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(IdRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).GetArgoSetting(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/cloudflareApi.zone.ZoneCloudflare/GetArgoSetting",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).GetArgoSetting(ctx, req.(*IdRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_GetArgoSettingSubscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(IdRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).GetArgoSettingSubscription(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/cloudflareApi.zone.ZoneCloudflare/GetArgoSettingSubscription",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).GetArgoSettingSubscription(ctx, req.(*IdRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _ZoneCloudflare_CreateArgoSettingSubscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(IdRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ZoneCloudflareServer).CreateArgoSettingSubscription(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/cloudflareApi.zone.ZoneCloudflare/CreateArgoSettingSubscription",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ZoneCloudflareServer).CreateArgoSettingSubscription(ctx, req.(*IdRequest))
- }
- 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,
- },
- {
- MethodName: "UpdateArgoSetting",
- Handler: _ZoneCloudflare_UpdateArgoSetting_Handler,
- },
- {
- MethodName: "GetArgoSetting",
- Handler: _ZoneCloudflare_GetArgoSetting_Handler,
- },
- {
- MethodName: "GetArgoSettingSubscription",
- Handler: _ZoneCloudflare_GetArgoSettingSubscription_Handler,
- },
- {
- MethodName: "CreateArgoSettingSubscription",
- Handler: _ZoneCloudflare_CreateArgoSettingSubscription_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "proto/zone.proto",
- }
|