diff --git a/gen/ai/sttv3/asyncrecognizerclient.go b/gen/ai/sttv3/asyncrecognizerclient.go index 13c1866..609a939 100644 --- a/gen/ai/sttv3/asyncrecognizerclient.go +++ b/gen/ai/sttv3/asyncrecognizerclient.go @@ -7,6 +7,7 @@ import ( "context" "google.golang.org/grpc" + "google.golang.org/protobuf/types/known/emptypb" stt "github.com/yandex-cloud/go-genproto/yandex/cloud/ai/stt/v3" "github.com/yandex-cloud/go-genproto/yandex/cloud/operation" @@ -20,6 +21,15 @@ type AsyncRecognizerClient struct { getConn func(ctx context.Context) (*grpc.ClientConn, error) } +// DeleteRecognition implements stt.AsyncRecognizerClient +func (c *AsyncRecognizerClient) DeleteRecognition(ctx context.Context, in *stt.DeleteRecognitionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return stt.NewAsyncRecognizerClient(conn).DeleteRecognition(ctx, in, opts...) +} + // GetRecognition implements stt.AsyncRecognizerClient func (c *AsyncRecognizerClient) GetRecognition(ctx context.Context, in *stt.GetRecognitionRequest, opts ...grpc.CallOption) (stt.AsyncRecognizer_GetRecognitionClient, error) { conn, err := c.getConn(ctx) diff --git a/gen/workflows/execution.go b/gen/workflows/execution.go index 1e035ef..11c53f9 100644 --- a/gen/workflows/execution.go +++ b/gen/workflows/execution.go @@ -170,3 +170,12 @@ func (c *ExecutionServiceClient) Stop(ctx context.Context, in *workflows.StopExe } return workflows.NewExecutionServiceClient(conn).Stop(ctx, in, opts...) } + +// Terminate implements workflows.ExecutionServiceClient +func (c *ExecutionServiceClient) Terminate(ctx context.Context, in *workflows.TerminateExecutionRequest, opts ...grpc.CallOption) (*workflows.TerminateExecutionResponse, error) { + conn, err := c.getConn(ctx) + if err != nil { + return nil, err + } + return workflows.NewExecutionServiceClient(conn).Terminate(ctx, in, opts...) +} diff --git a/go.mod b/go.mod index 2565796..0c96e8f 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/hashicorp/go-multierror v1.1.1 github.com/mitchellh/go-testing-interface v1.14.1 github.com/stretchr/testify v1.9.0 - github.com/yandex-cloud/go-genproto v0.0.0-20241101135610-76a0cfc1a773 + github.com/yandex-cloud/go-genproto v0.0.0-20241113173716-0b2f694b4bab golang.org/x/net v0.28.0 google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 google.golang.org/grpc v1.66.2 diff --git a/go.sum b/go.sum index d1ad17a..7c81f72 100644 --- a/go.sum +++ b/go.sum @@ -40,6 +40,8 @@ github.com/yandex-cloud/go-genproto v0.0.0-20241021132621-28bb61d00c2f h1:u7ETK4 github.com/yandex-cloud/go-genproto v0.0.0-20241021132621-28bb61d00c2f/go.mod h1:0LDD/IZLIUIV4iPH+YcF+jysO3jkSvADFGm4dCAuwQo= github.com/yandex-cloud/go-genproto v0.0.0-20241101135610-76a0cfc1a773 h1:xkWrnYFWxiwCKVbmuOEMR030UCFklpglmOcPv9yJz2c= github.com/yandex-cloud/go-genproto v0.0.0-20241101135610-76a0cfc1a773/go.mod h1:0LDD/IZLIUIV4iPH+YcF+jysO3jkSvADFGm4dCAuwQo= +github.com/yandex-cloud/go-genproto v0.0.0-20241113173716-0b2f694b4bab h1:DhPxmqkNtx4LsZHazkhwzVl1GE8WkzcNKyCe6MTDZ6I= +github.com/yandex-cloud/go-genproto v0.0.0-20241113173716-0b2f694b4bab/go.mod h1:0LDD/IZLIUIV4iPH+YcF+jysO3jkSvADFGm4dCAuwQo= golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE= golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg= golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg=