// Code generated by sdkgen. DO NOT EDIT.

// nolint
package waf

import (
	"context"

	"google.golang.org/grpc"

	waf "github.com/yandex-cloud/go-genproto/yandex/cloud/smartwebsecurity/v1/waf"
)

//revive:disable

// RuleSetDescriptorServiceClient is a waf.RuleSetDescriptorServiceClient with
// lazy GRPC connection initialization.
type RuleSetDescriptorServiceClient struct {
	getConn func(ctx context.Context) (*grpc.ClientConn, error)
}

// Get implements waf.RuleSetDescriptorServiceClient
func (c *RuleSetDescriptorServiceClient) Get(ctx context.Context, in *waf.GetRuleSetDescriptorRequest, opts ...grpc.CallOption) (*waf.RuleSetDescriptor, error) {
	conn, err := c.getConn(ctx)
	if err != nil {
		return nil, err
	}
	return waf.NewRuleSetDescriptorServiceClient(conn).Get(ctx, in, opts...)
}
