// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.6.1 // - protoc v3.21.12 // source: service_httpdns_app.proto package pb 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.64.0 or later. const _ = grpc.SupportPackageIsVersion9 const ( HTTPDNSAppService_CreateHTTPDNSApp_FullMethodName = "/pb.HTTPDNSAppService/createHTTPDNSApp" HTTPDNSAppService_UpdateHTTPDNSApp_FullMethodName = "/pb.HTTPDNSAppService/updateHTTPDNSApp" HTTPDNSAppService_DeleteHTTPDNSApp_FullMethodName = "/pb.HTTPDNSAppService/deleteHTTPDNSApp" HTTPDNSAppService_FindHTTPDNSApp_FullMethodName = "/pb.HTTPDNSAppService/findHTTPDNSApp" HTTPDNSAppService_ListHTTPDNSApps_FullMethodName = "/pb.HTTPDNSAppService/listHTTPDNSApps" HTTPDNSAppService_FindAllHTTPDNSApps_FullMethodName = "/pb.HTTPDNSAppService/findAllHTTPDNSApps" HTTPDNSAppService_UpdateHTTPDNSAppSignEnabled_FullMethodName = "/pb.HTTPDNSAppService/updateHTTPDNSAppSignEnabled" HTTPDNSAppService_ResetHTTPDNSAppSignSecret_FullMethodName = "/pb.HTTPDNSAppService/resetHTTPDNSAppSignSecret" ) // HTTPDNSAppServiceClient is the client API for HTTPDNSAppService 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 HTTPDNSAppServiceClient interface { CreateHTTPDNSApp(ctx context.Context, in *CreateHTTPDNSAppRequest, opts ...grpc.CallOption) (*CreateHTTPDNSAppResponse, error) UpdateHTTPDNSApp(ctx context.Context, in *UpdateHTTPDNSAppRequest, opts ...grpc.CallOption) (*RPCSuccess, error) DeleteHTTPDNSApp(ctx context.Context, in *DeleteHTTPDNSAppRequest, opts ...grpc.CallOption) (*RPCSuccess, error) FindHTTPDNSApp(ctx context.Context, in *FindHTTPDNSAppRequest, opts ...grpc.CallOption) (*FindHTTPDNSAppResponse, error) ListHTTPDNSApps(ctx context.Context, in *ListHTTPDNSAppsRequest, opts ...grpc.CallOption) (*ListHTTPDNSAppsResponse, error) FindAllHTTPDNSApps(ctx context.Context, in *FindAllHTTPDNSAppsRequest, opts ...grpc.CallOption) (*FindAllHTTPDNSAppsResponse, error) UpdateHTTPDNSAppSignEnabled(ctx context.Context, in *UpdateHTTPDNSAppSignEnabledRequest, opts ...grpc.CallOption) (*RPCSuccess, error) ResetHTTPDNSAppSignSecret(ctx context.Context, in *ResetHTTPDNSAppSignSecretRequest, opts ...grpc.CallOption) (*ResetHTTPDNSAppSignSecretResponse, error) } type hTTPDNSAppServiceClient struct { cc grpc.ClientConnInterface } func NewHTTPDNSAppServiceClient(cc grpc.ClientConnInterface) HTTPDNSAppServiceClient { return &hTTPDNSAppServiceClient{cc} } func (c *hTTPDNSAppServiceClient) CreateHTTPDNSApp(ctx context.Context, in *CreateHTTPDNSAppRequest, opts ...grpc.CallOption) (*CreateHTTPDNSAppResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateHTTPDNSAppResponse) err := c.cc.Invoke(ctx, HTTPDNSAppService_CreateHTTPDNSApp_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *hTTPDNSAppServiceClient) UpdateHTTPDNSApp(ctx context.Context, in *UpdateHTTPDNSAppRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RPCSuccess) err := c.cc.Invoke(ctx, HTTPDNSAppService_UpdateHTTPDNSApp_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *hTTPDNSAppServiceClient) DeleteHTTPDNSApp(ctx context.Context, in *DeleteHTTPDNSAppRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RPCSuccess) err := c.cc.Invoke(ctx, HTTPDNSAppService_DeleteHTTPDNSApp_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *hTTPDNSAppServiceClient) FindHTTPDNSApp(ctx context.Context, in *FindHTTPDNSAppRequest, opts ...grpc.CallOption) (*FindHTTPDNSAppResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FindHTTPDNSAppResponse) err := c.cc.Invoke(ctx, HTTPDNSAppService_FindHTTPDNSApp_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *hTTPDNSAppServiceClient) ListHTTPDNSApps(ctx context.Context, in *ListHTTPDNSAppsRequest, opts ...grpc.CallOption) (*ListHTTPDNSAppsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListHTTPDNSAppsResponse) err := c.cc.Invoke(ctx, HTTPDNSAppService_ListHTTPDNSApps_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *hTTPDNSAppServiceClient) FindAllHTTPDNSApps(ctx context.Context, in *FindAllHTTPDNSAppsRequest, opts ...grpc.CallOption) (*FindAllHTTPDNSAppsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FindAllHTTPDNSAppsResponse) err := c.cc.Invoke(ctx, HTTPDNSAppService_FindAllHTTPDNSApps_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *hTTPDNSAppServiceClient) UpdateHTTPDNSAppSignEnabled(ctx context.Context, in *UpdateHTTPDNSAppSignEnabledRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RPCSuccess) err := c.cc.Invoke(ctx, HTTPDNSAppService_UpdateHTTPDNSAppSignEnabled_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *hTTPDNSAppServiceClient) ResetHTTPDNSAppSignSecret(ctx context.Context, in *ResetHTTPDNSAppSignSecretRequest, opts ...grpc.CallOption) (*ResetHTTPDNSAppSignSecretResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ResetHTTPDNSAppSignSecretResponse) err := c.cc.Invoke(ctx, HTTPDNSAppService_ResetHTTPDNSAppSignSecret_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // HTTPDNSAppServiceServer is the server API for HTTPDNSAppService service. // All implementations must embed UnimplementedHTTPDNSAppServiceServer // for forward compatibility. type HTTPDNSAppServiceServer interface { CreateHTTPDNSApp(context.Context, *CreateHTTPDNSAppRequest) (*CreateHTTPDNSAppResponse, error) UpdateHTTPDNSApp(context.Context, *UpdateHTTPDNSAppRequest) (*RPCSuccess, error) DeleteHTTPDNSApp(context.Context, *DeleteHTTPDNSAppRequest) (*RPCSuccess, error) FindHTTPDNSApp(context.Context, *FindHTTPDNSAppRequest) (*FindHTTPDNSAppResponse, error) ListHTTPDNSApps(context.Context, *ListHTTPDNSAppsRequest) (*ListHTTPDNSAppsResponse, error) FindAllHTTPDNSApps(context.Context, *FindAllHTTPDNSAppsRequest) (*FindAllHTTPDNSAppsResponse, error) UpdateHTTPDNSAppSignEnabled(context.Context, *UpdateHTTPDNSAppSignEnabledRequest) (*RPCSuccess, error) ResetHTTPDNSAppSignSecret(context.Context, *ResetHTTPDNSAppSignSecretRequest) (*ResetHTTPDNSAppSignSecretResponse, error) mustEmbedUnimplementedHTTPDNSAppServiceServer() } // UnimplementedHTTPDNSAppServiceServer must be embedded to have // forward compatible implementations. // // NOTE: this should be embedded by value instead of pointer to avoid a nil // pointer dereference when methods are called. type UnimplementedHTTPDNSAppServiceServer struct{} func (UnimplementedHTTPDNSAppServiceServer) CreateHTTPDNSApp(context.Context, *CreateHTTPDNSAppRequest) (*CreateHTTPDNSAppResponse, error) { return nil, status.Error(codes.Unimplemented, "method CreateHTTPDNSApp not implemented") } func (UnimplementedHTTPDNSAppServiceServer) UpdateHTTPDNSApp(context.Context, *UpdateHTTPDNSAppRequest) (*RPCSuccess, error) { return nil, status.Error(codes.Unimplemented, "method UpdateHTTPDNSApp not implemented") } func (UnimplementedHTTPDNSAppServiceServer) DeleteHTTPDNSApp(context.Context, *DeleteHTTPDNSAppRequest) (*RPCSuccess, error) { return nil, status.Error(codes.Unimplemented, "method DeleteHTTPDNSApp not implemented") } func (UnimplementedHTTPDNSAppServiceServer) FindHTTPDNSApp(context.Context, *FindHTTPDNSAppRequest) (*FindHTTPDNSAppResponse, error) { return nil, status.Error(codes.Unimplemented, "method FindHTTPDNSApp not implemented") } func (UnimplementedHTTPDNSAppServiceServer) ListHTTPDNSApps(context.Context, *ListHTTPDNSAppsRequest) (*ListHTTPDNSAppsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListHTTPDNSApps not implemented") } func (UnimplementedHTTPDNSAppServiceServer) FindAllHTTPDNSApps(context.Context, *FindAllHTTPDNSAppsRequest) (*FindAllHTTPDNSAppsResponse, error) { return nil, status.Error(codes.Unimplemented, "method FindAllHTTPDNSApps not implemented") } func (UnimplementedHTTPDNSAppServiceServer) UpdateHTTPDNSAppSignEnabled(context.Context, *UpdateHTTPDNSAppSignEnabledRequest) (*RPCSuccess, error) { return nil, status.Error(codes.Unimplemented, "method UpdateHTTPDNSAppSignEnabled not implemented") } func (UnimplementedHTTPDNSAppServiceServer) ResetHTTPDNSAppSignSecret(context.Context, *ResetHTTPDNSAppSignSecretRequest) (*ResetHTTPDNSAppSignSecretResponse, error) { return nil, status.Error(codes.Unimplemented, "method ResetHTTPDNSAppSignSecret not implemented") } func (UnimplementedHTTPDNSAppServiceServer) mustEmbedUnimplementedHTTPDNSAppServiceServer() {} func (UnimplementedHTTPDNSAppServiceServer) testEmbeddedByValue() {} // UnsafeHTTPDNSAppServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to HTTPDNSAppServiceServer will // result in compilation errors. type UnsafeHTTPDNSAppServiceServer interface { mustEmbedUnimplementedHTTPDNSAppServiceServer() } func RegisterHTTPDNSAppServiceServer(s grpc.ServiceRegistrar, srv HTTPDNSAppServiceServer) { // If the following call panics, it indicates UnimplementedHTTPDNSAppServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { t.testEmbeddedByValue() } s.RegisterService(&HTTPDNSAppService_ServiceDesc, srv) } func _HTTPDNSAppService_CreateHTTPDNSApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateHTTPDNSAppRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HTTPDNSAppServiceServer).CreateHTTPDNSApp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: HTTPDNSAppService_CreateHTTPDNSApp_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HTTPDNSAppServiceServer).CreateHTTPDNSApp(ctx, req.(*CreateHTTPDNSAppRequest)) } return interceptor(ctx, in, info, handler) } func _HTTPDNSAppService_UpdateHTTPDNSApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateHTTPDNSAppRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HTTPDNSAppServiceServer).UpdateHTTPDNSApp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: HTTPDNSAppService_UpdateHTTPDNSApp_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HTTPDNSAppServiceServer).UpdateHTTPDNSApp(ctx, req.(*UpdateHTTPDNSAppRequest)) } return interceptor(ctx, in, info, handler) } func _HTTPDNSAppService_DeleteHTTPDNSApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteHTTPDNSAppRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HTTPDNSAppServiceServer).DeleteHTTPDNSApp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: HTTPDNSAppService_DeleteHTTPDNSApp_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HTTPDNSAppServiceServer).DeleteHTTPDNSApp(ctx, req.(*DeleteHTTPDNSAppRequest)) } return interceptor(ctx, in, info, handler) } func _HTTPDNSAppService_FindHTTPDNSApp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(FindHTTPDNSAppRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HTTPDNSAppServiceServer).FindHTTPDNSApp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: HTTPDNSAppService_FindHTTPDNSApp_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HTTPDNSAppServiceServer).FindHTTPDNSApp(ctx, req.(*FindHTTPDNSAppRequest)) } return interceptor(ctx, in, info, handler) } func _HTTPDNSAppService_ListHTTPDNSApps_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListHTTPDNSAppsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HTTPDNSAppServiceServer).ListHTTPDNSApps(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: HTTPDNSAppService_ListHTTPDNSApps_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HTTPDNSAppServiceServer).ListHTTPDNSApps(ctx, req.(*ListHTTPDNSAppsRequest)) } return interceptor(ctx, in, info, handler) } func _HTTPDNSAppService_FindAllHTTPDNSApps_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(FindAllHTTPDNSAppsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HTTPDNSAppServiceServer).FindAllHTTPDNSApps(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: HTTPDNSAppService_FindAllHTTPDNSApps_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HTTPDNSAppServiceServer).FindAllHTTPDNSApps(ctx, req.(*FindAllHTTPDNSAppsRequest)) } return interceptor(ctx, in, info, handler) } func _HTTPDNSAppService_UpdateHTTPDNSAppSignEnabled_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateHTTPDNSAppSignEnabledRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HTTPDNSAppServiceServer).UpdateHTTPDNSAppSignEnabled(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: HTTPDNSAppService_UpdateHTTPDNSAppSignEnabled_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HTTPDNSAppServiceServer).UpdateHTTPDNSAppSignEnabled(ctx, req.(*UpdateHTTPDNSAppSignEnabledRequest)) } return interceptor(ctx, in, info, handler) } func _HTTPDNSAppService_ResetHTTPDNSAppSignSecret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ResetHTTPDNSAppSignSecretRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HTTPDNSAppServiceServer).ResetHTTPDNSAppSignSecret(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: HTTPDNSAppService_ResetHTTPDNSAppSignSecret_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HTTPDNSAppServiceServer).ResetHTTPDNSAppSignSecret(ctx, req.(*ResetHTTPDNSAppSignSecretRequest)) } return interceptor(ctx, in, info, handler) } // HTTPDNSAppService_ServiceDesc is the grpc.ServiceDesc for HTTPDNSAppService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var HTTPDNSAppService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.HTTPDNSAppService", HandlerType: (*HTTPDNSAppServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "createHTTPDNSApp", Handler: _HTTPDNSAppService_CreateHTTPDNSApp_Handler, }, { MethodName: "updateHTTPDNSApp", Handler: _HTTPDNSAppService_UpdateHTTPDNSApp_Handler, }, { MethodName: "deleteHTTPDNSApp", Handler: _HTTPDNSAppService_DeleteHTTPDNSApp_Handler, }, { MethodName: "findHTTPDNSApp", Handler: _HTTPDNSAppService_FindHTTPDNSApp_Handler, }, { MethodName: "listHTTPDNSApps", Handler: _HTTPDNSAppService_ListHTTPDNSApps_Handler, }, { MethodName: "findAllHTTPDNSApps", Handler: _HTTPDNSAppService_FindAllHTTPDNSApps_Handler, }, { MethodName: "updateHTTPDNSAppSignEnabled", Handler: _HTTPDNSAppService_UpdateHTTPDNSAppSignEnabled_Handler, }, { MethodName: "resetHTTPDNSAppSignSecret", Handler: _HTTPDNSAppService_ResetHTTPDNSAppSignSecret_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service_httpdns_app.proto", }