// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 // - protoc v3.21.12 // source: service_httpdns_cluster.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 ( HTTPDNSClusterService_CreateHTTPDNSCluster_FullMethodName = "/pb.HTTPDNSClusterService/createHTTPDNSCluster" HTTPDNSClusterService_UpdateHTTPDNSCluster_FullMethodName = "/pb.HTTPDNSClusterService/updateHTTPDNSCluster" HTTPDNSClusterService_DeleteHTTPDNSCluster_FullMethodName = "/pb.HTTPDNSClusterService/deleteHTTPDNSCluster" HTTPDNSClusterService_FindHTTPDNSCluster_FullMethodName = "/pb.HTTPDNSClusterService/findHTTPDNSCluster" HTTPDNSClusterService_ListHTTPDNSClusters_FullMethodName = "/pb.HTTPDNSClusterService/listHTTPDNSClusters" HTTPDNSClusterService_FindAllHTTPDNSClusters_FullMethodName = "/pb.HTTPDNSClusterService/findAllHTTPDNSClusters" HTTPDNSClusterService_UpdateHTTPDNSClusterDefault_FullMethodName = "/pb.HTTPDNSClusterService/updateHTTPDNSClusterDefault" HTTPDNSClusterService_ListHTTPDNSNodesWithClusterId_FullMethodName = "/pb.HTTPDNSClusterService/listHTTPDNSNodesWithClusterId" ) // HTTPDNSClusterServiceClient is the client API for HTTPDNSClusterService 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 HTTPDNSClusterServiceClient interface { CreateHTTPDNSCluster(ctx context.Context, in *CreateHTTPDNSClusterRequest, opts ...grpc.CallOption) (*CreateHTTPDNSClusterResponse, error) UpdateHTTPDNSCluster(ctx context.Context, in *UpdateHTTPDNSClusterRequest, opts ...grpc.CallOption) (*RPCSuccess, error) DeleteHTTPDNSCluster(ctx context.Context, in *DeleteHTTPDNSClusterRequest, opts ...grpc.CallOption) (*RPCSuccess, error) FindHTTPDNSCluster(ctx context.Context, in *FindHTTPDNSClusterRequest, opts ...grpc.CallOption) (*FindHTTPDNSClusterResponse, error) ListHTTPDNSClusters(ctx context.Context, in *ListHTTPDNSClustersRequest, opts ...grpc.CallOption) (*ListHTTPDNSClustersResponse, error) FindAllHTTPDNSClusters(ctx context.Context, in *FindAllHTTPDNSClustersRequest, opts ...grpc.CallOption) (*FindAllHTTPDNSClustersResponse, error) UpdateHTTPDNSClusterDefault(ctx context.Context, in *UpdateHTTPDNSClusterDefaultRequest, opts ...grpc.CallOption) (*RPCSuccess, error) ListHTTPDNSNodesWithClusterId(ctx context.Context, in *ListHTTPDNSNodesWithClusterIdRequest, opts ...grpc.CallOption) (*ListHTTPDNSNodesWithClusterIdResponse, error) } type hTTPDNSClusterServiceClient struct { cc grpc.ClientConnInterface } func NewHTTPDNSClusterServiceClient(cc grpc.ClientConnInterface) HTTPDNSClusterServiceClient { return &hTTPDNSClusterServiceClient{cc} } func (c *hTTPDNSClusterServiceClient) CreateHTTPDNSCluster(ctx context.Context, in *CreateHTTPDNSClusterRequest, opts ...grpc.CallOption) (*CreateHTTPDNSClusterResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateHTTPDNSClusterResponse) err := c.cc.Invoke(ctx, HTTPDNSClusterService_CreateHTTPDNSCluster_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *hTTPDNSClusterServiceClient) UpdateHTTPDNSCluster(ctx context.Context, in *UpdateHTTPDNSClusterRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RPCSuccess) err := c.cc.Invoke(ctx, HTTPDNSClusterService_UpdateHTTPDNSCluster_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *hTTPDNSClusterServiceClient) DeleteHTTPDNSCluster(ctx context.Context, in *DeleteHTTPDNSClusterRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RPCSuccess) err := c.cc.Invoke(ctx, HTTPDNSClusterService_DeleteHTTPDNSCluster_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *hTTPDNSClusterServiceClient) FindHTTPDNSCluster(ctx context.Context, in *FindHTTPDNSClusterRequest, opts ...grpc.CallOption) (*FindHTTPDNSClusterResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FindHTTPDNSClusterResponse) err := c.cc.Invoke(ctx, HTTPDNSClusterService_FindHTTPDNSCluster_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *hTTPDNSClusterServiceClient) ListHTTPDNSClusters(ctx context.Context, in *ListHTTPDNSClustersRequest, opts ...grpc.CallOption) (*ListHTTPDNSClustersResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListHTTPDNSClustersResponse) err := c.cc.Invoke(ctx, HTTPDNSClusterService_ListHTTPDNSClusters_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *hTTPDNSClusterServiceClient) FindAllHTTPDNSClusters(ctx context.Context, in *FindAllHTTPDNSClustersRequest, opts ...grpc.CallOption) (*FindAllHTTPDNSClustersResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FindAllHTTPDNSClustersResponse) err := c.cc.Invoke(ctx, HTTPDNSClusterService_FindAllHTTPDNSClusters_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *hTTPDNSClusterServiceClient) UpdateHTTPDNSClusterDefault(ctx context.Context, in *UpdateHTTPDNSClusterDefaultRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RPCSuccess) err := c.cc.Invoke(ctx, HTTPDNSClusterService_UpdateHTTPDNSClusterDefault_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *hTTPDNSClusterServiceClient) ListHTTPDNSNodesWithClusterId(ctx context.Context, in *ListHTTPDNSNodesWithClusterIdRequest, opts ...grpc.CallOption) (*ListHTTPDNSNodesWithClusterIdResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListHTTPDNSNodesWithClusterIdResponse) err := c.cc.Invoke(ctx, HTTPDNSClusterService_ListHTTPDNSNodesWithClusterId_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // HTTPDNSClusterServiceServer is the server API for HTTPDNSClusterService service. // All implementations should embed UnimplementedHTTPDNSClusterServiceServer // for forward compatibility. type HTTPDNSClusterServiceServer interface { CreateHTTPDNSCluster(context.Context, *CreateHTTPDNSClusterRequest) (*CreateHTTPDNSClusterResponse, error) UpdateHTTPDNSCluster(context.Context, *UpdateHTTPDNSClusterRequest) (*RPCSuccess, error) DeleteHTTPDNSCluster(context.Context, *DeleteHTTPDNSClusterRequest) (*RPCSuccess, error) FindHTTPDNSCluster(context.Context, *FindHTTPDNSClusterRequest) (*FindHTTPDNSClusterResponse, error) ListHTTPDNSClusters(context.Context, *ListHTTPDNSClustersRequest) (*ListHTTPDNSClustersResponse, error) FindAllHTTPDNSClusters(context.Context, *FindAllHTTPDNSClustersRequest) (*FindAllHTTPDNSClustersResponse, error) UpdateHTTPDNSClusterDefault(context.Context, *UpdateHTTPDNSClusterDefaultRequest) (*RPCSuccess, error) ListHTTPDNSNodesWithClusterId(context.Context, *ListHTTPDNSNodesWithClusterIdRequest) (*ListHTTPDNSNodesWithClusterIdResponse, error) } // UnimplementedHTTPDNSClusterServiceServer should 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 UnimplementedHTTPDNSClusterServiceServer struct{} func (UnimplementedHTTPDNSClusterServiceServer) CreateHTTPDNSCluster(context.Context, *CreateHTTPDNSClusterRequest) (*CreateHTTPDNSClusterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateHTTPDNSCluster not implemented") } func (UnimplementedHTTPDNSClusterServiceServer) UpdateHTTPDNSCluster(context.Context, *UpdateHTTPDNSClusterRequest) (*RPCSuccess, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPDNSCluster not implemented") } func (UnimplementedHTTPDNSClusterServiceServer) DeleteHTTPDNSCluster(context.Context, *DeleteHTTPDNSClusterRequest) (*RPCSuccess, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteHTTPDNSCluster not implemented") } func (UnimplementedHTTPDNSClusterServiceServer) FindHTTPDNSCluster(context.Context, *FindHTTPDNSClusterRequest) (*FindHTTPDNSClusterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FindHTTPDNSCluster not implemented") } func (UnimplementedHTTPDNSClusterServiceServer) ListHTTPDNSClusters(context.Context, *ListHTTPDNSClustersRequest) (*ListHTTPDNSClustersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListHTTPDNSClusters not implemented") } func (UnimplementedHTTPDNSClusterServiceServer) FindAllHTTPDNSClusters(context.Context, *FindAllHTTPDNSClustersRequest) (*FindAllHTTPDNSClustersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FindAllHTTPDNSClusters not implemented") } func (UnimplementedHTTPDNSClusterServiceServer) UpdateHTTPDNSClusterDefault(context.Context, *UpdateHTTPDNSClusterDefaultRequest) (*RPCSuccess, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPDNSClusterDefault not implemented") } func (UnimplementedHTTPDNSClusterServiceServer) ListHTTPDNSNodesWithClusterId(context.Context, *ListHTTPDNSNodesWithClusterIdRequest) (*ListHTTPDNSNodesWithClusterIdResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListHTTPDNSNodesWithClusterId not implemented") } func (UnimplementedHTTPDNSClusterServiceServer) testEmbeddedByValue() {} // UnsafeHTTPDNSClusterServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to HTTPDNSClusterServiceServer will // result in compilation errors. type UnsafeHTTPDNSClusterServiceServer interface { mustEmbedUnimplementedHTTPDNSClusterServiceServer() } func RegisterHTTPDNSClusterServiceServer(s grpc.ServiceRegistrar, srv HTTPDNSClusterServiceServer) { // If the following call pancis, it indicates UnimplementedHTTPDNSClusterServiceServer 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(&HTTPDNSClusterService_ServiceDesc, srv) } func _HTTPDNSClusterService_CreateHTTPDNSCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateHTTPDNSClusterRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HTTPDNSClusterServiceServer).CreateHTTPDNSCluster(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: HTTPDNSClusterService_CreateHTTPDNSCluster_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HTTPDNSClusterServiceServer).CreateHTTPDNSCluster(ctx, req.(*CreateHTTPDNSClusterRequest)) } return interceptor(ctx, in, info, handler) } func _HTTPDNSClusterService_UpdateHTTPDNSCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateHTTPDNSClusterRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HTTPDNSClusterServiceServer).UpdateHTTPDNSCluster(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: HTTPDNSClusterService_UpdateHTTPDNSCluster_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HTTPDNSClusterServiceServer).UpdateHTTPDNSCluster(ctx, req.(*UpdateHTTPDNSClusterRequest)) } return interceptor(ctx, in, info, handler) } func _HTTPDNSClusterService_DeleteHTTPDNSCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteHTTPDNSClusterRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HTTPDNSClusterServiceServer).DeleteHTTPDNSCluster(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: HTTPDNSClusterService_DeleteHTTPDNSCluster_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HTTPDNSClusterServiceServer).DeleteHTTPDNSCluster(ctx, req.(*DeleteHTTPDNSClusterRequest)) } return interceptor(ctx, in, info, handler) } func _HTTPDNSClusterService_FindHTTPDNSCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(FindHTTPDNSClusterRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HTTPDNSClusterServiceServer).FindHTTPDNSCluster(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: HTTPDNSClusterService_FindHTTPDNSCluster_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HTTPDNSClusterServiceServer).FindHTTPDNSCluster(ctx, req.(*FindHTTPDNSClusterRequest)) } return interceptor(ctx, in, info, handler) } func _HTTPDNSClusterService_ListHTTPDNSClusters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListHTTPDNSClustersRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HTTPDNSClusterServiceServer).ListHTTPDNSClusters(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: HTTPDNSClusterService_ListHTTPDNSClusters_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HTTPDNSClusterServiceServer).ListHTTPDNSClusters(ctx, req.(*ListHTTPDNSClustersRequest)) } return interceptor(ctx, in, info, handler) } func _HTTPDNSClusterService_FindAllHTTPDNSClusters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(FindAllHTTPDNSClustersRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HTTPDNSClusterServiceServer).FindAllHTTPDNSClusters(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: HTTPDNSClusterService_FindAllHTTPDNSClusters_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HTTPDNSClusterServiceServer).FindAllHTTPDNSClusters(ctx, req.(*FindAllHTTPDNSClustersRequest)) } return interceptor(ctx, in, info, handler) } func _HTTPDNSClusterService_UpdateHTTPDNSClusterDefault_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateHTTPDNSClusterDefaultRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HTTPDNSClusterServiceServer).UpdateHTTPDNSClusterDefault(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: HTTPDNSClusterService_UpdateHTTPDNSClusterDefault_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HTTPDNSClusterServiceServer).UpdateHTTPDNSClusterDefault(ctx, req.(*UpdateHTTPDNSClusterDefaultRequest)) } return interceptor(ctx, in, info, handler) } func _HTTPDNSClusterService_ListHTTPDNSNodesWithClusterId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListHTTPDNSNodesWithClusterIdRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(HTTPDNSClusterServiceServer).ListHTTPDNSNodesWithClusterId(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: HTTPDNSClusterService_ListHTTPDNSNodesWithClusterId_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(HTTPDNSClusterServiceServer).ListHTTPDNSNodesWithClusterId(ctx, req.(*ListHTTPDNSNodesWithClusterIdRequest)) } return interceptor(ctx, in, info, handler) } // HTTPDNSClusterService_ServiceDesc is the grpc.ServiceDesc for HTTPDNSClusterService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var HTTPDNSClusterService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.HTTPDNSClusterService", HandlerType: (*HTTPDNSClusterServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "createHTTPDNSCluster", Handler: _HTTPDNSClusterService_CreateHTTPDNSCluster_Handler, }, { MethodName: "updateHTTPDNSCluster", Handler: _HTTPDNSClusterService_UpdateHTTPDNSCluster_Handler, }, { MethodName: "deleteHTTPDNSCluster", Handler: _HTTPDNSClusterService_DeleteHTTPDNSCluster_Handler, }, { MethodName: "findHTTPDNSCluster", Handler: _HTTPDNSClusterService_FindHTTPDNSCluster_Handler, }, { MethodName: "listHTTPDNSClusters", Handler: _HTTPDNSClusterService_ListHTTPDNSClusters_Handler, }, { MethodName: "findAllHTTPDNSClusters", Handler: _HTTPDNSClusterService_FindAllHTTPDNSClusters_Handler, }, { MethodName: "updateHTTPDNSClusterDefault", Handler: _HTTPDNSClusterService_UpdateHTTPDNSClusterDefault_Handler, }, { MethodName: "listHTTPDNSNodesWithClusterId", Handler: _HTTPDNSClusterService_ListHTTPDNSNodesWithClusterId_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service_httpdns_cluster.proto", }